Bug 1323404 - Fixed Stylo renders black text as grey issue draft
authorShing Lyu <shing.lyu@gmail.com>
Fri, 16 Dec 2016 12:03:18 +0800
changeset 450220 7b3546fd96e096d3014edaf35a154511a3870d4d
parent 450219 429cdff66482c52bee077ae4cadfb8632bd06477
child 539700 62484ba3d959a44745b589c5f1ddfe52fecefb28
push id38796
push userbmo:slyu@mozilla.com
push dateFri, 16 Dec 2016 06:23:11 +0000
bugs1323404
milestone53.0a1
Bug 1323404 - Fixed Stylo renders black text as grey issue MozReview-Commit-ID: JJktt4ZxIRS
layout/style/StyleStructContext.h
--- a/layout/style/StyleStructContext.h
+++ b/layout/style/StyleStructContext.h
@@ -75,18 +75,18 @@ public:
   nscoord DevPixelsToAppUnits(int32_t aPixels)
   {
     return NSIntPixelsToAppUnits(aPixels, AppUnitsPerDevPixel());
   }
 
   typedef mozilla::LookAndFeel LookAndFeel;
   nscolor DefaultColor()
   {
-    SERVO_DEFAULT(LookAndFeel::GetColor(LookAndFeel::eColorID_WindowForeground,
-                                        NS_RGB(0x00, 0x00, 0x00)));
+    // Workaround Bug 1323404
+    SERVO_DEFAULT(NS_RGB(0x00, 0x00, 0x00));
     return mPresContext->DefaultColor();
   }
 
   mozilla::CounterStyle* BuildCounterStyle(const nsSubstring& aName)
   {
     SERVO_DEFAULT(mozilla::CounterStyleManager::GetBuiltinStyle(NS_STYLE_LIST_STYLE_DISC));
     return mPresContext->CounterStyleManager()->BuildCounterStyle(aName);
   }