Bug 1388319 - Mark ServoStyleSet dirty in its Init. r=emilio, a=bustage
☠☠ backed out by 02e56d2e2c64 ☠ ☠
authorXidorn Quan <me@upsuper.org>
Tue, 08 Aug 2017 22:41:32 +1000
changeset 423640 554f6e2674fecadc3a66ec5a497bcaf7064068ee
parent 423639 006122d3bffe2e7e6a311d889282f0bd70e60620
child 423641 02e56d2e2c64d34976067ee52df34c15344be1de
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio, bustage
bugs1388319
milestone56.0
Bug 1388319 - Mark ServoStyleSet dirty in its Init. r=emilio, a=bustage 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.