Bug 1269933 - Pass the builtin counter manager corresponding to the appropriate default when initializing style structs for servo. r=xidorn
authorBobby Holley <bobbyholley@gmail.com>
Tue, 03 May 2016 17:30:39 -0700
changeset 296325 382ae5a4758827203896dc52b7fa37368386cd0a
parent 296324 0fd722ed257caa229cffdd3aa4949eb1fd326068
child 296326 922ba5fbebbea6536173b2d8e7f6ab60d50bd1a4
push id76300
push userbholley@mozilla.com
push dateFri, 06 May 2016 07:09:43 +0000
treeherdermozilla-inbound@94fe66b7e3c2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersxidorn
bugs1269933
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1269933 - Pass the builtin counter manager corresponding to the appropriate default when initializing style structs for servo. r=xidorn
layout/style/StyleStructContext.h
--- a/layout/style/StyleStructContext.h
+++ b/layout/style/StyleStructContext.h
@@ -82,17 +82,17 @@ public:
   {
     SERVO_DEFAULT(LookAndFeel::GetColor(LookAndFeel::eColorID_WindowForeground,
                                         NS_RGB(0x00, 0x00, 0x00)));
     return mPresContext->DefaultColor();
   }
 
   mozilla::CounterStyle* BuildCounterStyle(const nsSubstring& aName)
   {
-    SERVO_DEFAULT(nullptr);
+    SERVO_DEFAULT(mozilla::CounterStyleManager::GetBuiltinStyle(NS_STYLE_LIST_STYLE_DISC));
     return mPresContext->CounterStyleManager()->BuildCounterStyle(aName);
   }
 
   nsIAtom* GetLanguageFromCharset() const
   {
     SERVO_DEFAULT(nsGkAtoms::x_western);
     return mPresContext->GetLanguageFromCharset();
   }