Bug 1381851 - Update comments for nsXBLPrototypeResources::ComputeServoStyleSet(). draft
authorTing-Yu Lin <tlin@mozilla.com>
Fri, 28 Jul 2017 16:33:22 +0800
changeset 620270 126d7f212bb306b552848e68d379b4c9fe499166
parent 620269 b38287dadd992cdf52c4d7bb10580d814d7937cf
child 640638 f02205c9edef04fe2b9e670bb37b041987df17a0
push id71974
push userbmo:tlin@mozilla.com
push dateThu, 03 Aug 2017 08:39:55 +0000
bugs1381851
milestone57.0a1
Bug 1381851 - Update comments for nsXBLPrototypeResources::ComputeServoStyleSet(). MozReview-Commit-ID: E1Ols3kfEKU
dom/xbl/nsXBLPrototypeResources.cpp
--- a/dom/xbl/nsXBLPrototypeResources.cpp
+++ b/dom/xbl/nsXBLPrototypeResources.cpp
@@ -167,19 +167,20 @@ nsXBLPrototypeResources::GatherRuleProce
 void
 nsXBLPrototypeResources::ComputeServoStyleSet(nsPresContext* aPresContext)
 {
   mServoStyleSet.reset(new ServoStyleSet());
   mServoStyleSet->Init(aPresContext, nullptr);
   for (StyleSheet* sheet : mStyleSheetList) {
     MOZ_ASSERT(sheet->IsServo(),
                "This should only be called with Servo-flavored style backend!");
-    // The sheets aren't document sheets, but we need to decide a particular
-    // SheetType so that we can pull them out from the right place on the
-    // Servo side.
+    // The XBL style sheets aren't document level sheets, but we need to
+    // decide a particular SheetType to add them to style set. This type
+    // doesn't affect the place where we pull those rules from
+    // stylist::push_applicable_declarations_as_xbl_only_stylist().
     mServoStyleSet->AppendStyleSheet(SheetType::Doc, sheet->AsServo());
   }
   mServoStyleSet->UpdateStylistIfNeeded();
 }
 
 void
 nsXBLPrototypeResources::AppendStyleSheet(StyleSheet* aSheet)
 {