Bug 1388319 - Mark ServoStyleSet dirty in its Init. r?emilio draft
authorXidorn Quan <me@upsuper.org>
Tue, 08 Aug 2017 22:41:32 +1000
changeset 642557 eaa8926b435f8ac0e101dd0f571056fb941b1143
parent 642518 a921bfb8a2cf3db4d9edebe9b35799a3f9d035da
child 725031 ddf7f12e938f33f47d4aa9c0783d8ae8e519e730
push id72793
push userxquan@mozilla.com
push dateTue, 08 Aug 2017 12:42:06 +0000
reviewersemilio
bugs1388319
milestone57.0a1
Bug 1388319 - Mark ServoStyleSet dirty in its Init. r?emilio MozReview-Commit-ID: 804KasIiS6E
layout/style/ServoStyleSet.cpp
--- a/layout/style/ServoStyleSet.cpp
+++ b/layout/style/ServoStyleSet.cpp
@@ -76,18 +76,19 @@ ServoStyleSet::Init(nsPresContext* aPres
       // type, which this preserves.
 
       MOZ_ASSERT(sheet->RawContents(),
                  "We should only append non-null raw sheets.");
       Servo_StyleSet_AppendStyleSheet(mRawSet.get(), sheet);
     }
   }
 
-  // No need to Servo_StyleSet_FlushStyleSheets because we just created the
-  // mRawSet, so there was nothing to flush.
+  // We added prefilled stylesheets into mRawSet, so the stylist is dirty.
+  // The Stylist should be updated later when necessary.
+  SetStylistStyleSheetsDirty();
 }
 
 void
 ServoStyleSet::BeginShutdown()
 {
   nsIDocument* doc = mPresContext->Document();
 
   // Remove the style rule map from document's observer and drop it.