Bug 1296739: Change the protected to public, clang complaining. r?dvander draft
authorMilan Sreckovic <milan@mozilla.com>
Mon, 22 Aug 2016 09:20:24 -0400
changeset 403916 381143cf05bd06ad16aba541b480f124d2d2bf94
parent 402150 97a52326b06a07930216ebefa5af333271578904
child 529036 ff782373004e969f9fcf9648eaa910276d3de766
push id27050
push usermsreckovic@mozilla.com
push dateMon, 22 Aug 2016 13:20:55 +0000
reviewersdvander
bugs1296739
milestone51.0a1
Bug 1296739: Change the protected to public, clang complaining. r?dvander MozReview-Commit-ID: IGagSOWI0PQ
gfx/thebes/gfxPlatform.h
--- a/gfx/thebes/gfxPlatform.h
+++ b/gfx/thebes/gfxPlatform.h
@@ -667,16 +667,18 @@ public:
      * Check the blocklist for a feature. Returns false if the feature is blocked
      * with an appropriate message and failure ID.
      * */
     static bool IsGfxInfoStatusOkay(int32_t aFeature, nsCString* aOutMessage,
                                     nsCString& aFailureId);
 
     const gfxSkipChars& EmptySkipChars() const { return kEmptySkipChars; }
 
+    static mozilla::gfx::DeviceInitData& GetParentDevicePrefs();
+
 protected:
     gfxPlatform();
     virtual ~gfxPlatform();
 
     virtual void InitAcceleration();
 
     /**
      * Initialized hardware vsync based on each platform.
@@ -732,18 +734,16 @@ protected:
     /**
      * Decode the backend enumberation from a string.
      */
     static mozilla::gfx::BackendType BackendTypeForName(const nsCString& aName);
 
     static already_AddRefed<mozilla::gfx::ScaledFont>
       GetScaledFontForFontWithCairoSkia(mozilla::gfx::DrawTarget* aTarget, gfxFont* aFont);
 
-    static mozilla::gfx::DeviceInitData& GetParentDevicePrefs();
-
     int8_t  mAllowDownloadableFonts;
     int8_t  mGraphiteShapingEnabled;
     int8_t  mOpenTypeSVGEnabled;
 
     int8_t  mBidiNumeralOption;
 
     // whether to always search font cmaps globally 
     // when doing system font fallback