From 802ad83dca2efd57fde6c7ba666555ea78b5324c Mon Sep 17 00:00:00 2001 From: mtklein Date: Mon, 20 Oct 2014 12:54:31 -0700 Subject: Revert of Replace SkTypeface::Style with SkFontStyle. (patchset #9 id:160001 of https://codereview.chromium.org/488143002/) Reason for revert: CrOS GM failures: [*] 2 ExpectationsMismatch: fontmgr_iter_565.png fontmgr_iter_8888.png Original issue's description: > Replace SkTypeface::Style with SkFontStyle. > > Committed: https://skia.googlesource.com/skia/+/43b8b36b20ae00e2d78421c4cda1f3f922983a20 TBR=reed@google.com,bungeman@google.com NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/667023002 --- include/core/SkTypeface.h | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) (limited to 'include/core/SkTypeface.h') diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h index f7af5d2b61..a080d84bd8 100644 --- a/include/core/SkTypeface.h +++ b/include/core/SkTypeface.h @@ -11,7 +11,6 @@ #define SkTypeface_DEFINED #include "SkAdvancedTypefaceMetrics.h" -#include "SkFontStyle.h" #include "SkWeakRefCnt.h" class SkDescriptor; @@ -50,25 +49,17 @@ public: kBoldItalic = 0x03 }; - /** Returns the typeface's intrinsic style attributes. */ - SkFontStyle fontStyle() const { - return fStyle; - } - - /** Returns the typeface's intrinsic style attributes. - * @deprecated use fontStyle() instead. - */ - Style style() const { - return static_cast