Bug 1444193: followup: Remove comment which is no longer accurate. r=me

MozReview-Commit-ID: HyynrpMgKis
This commit is contained in:
Emilio Cobos Álvarez 2018-06-24 03:59:21 +02:00
parent 2027465bad
commit 084ced3b22

View File

@ -2465,15 +2465,13 @@ nsDocumentViewer::CreateStyleSet(nsIDocument* aDocument)
styleSet->PrependStyleSheet(SheetType::Agent, sheet);
}
// This is the only place components.css / xul.css get loaded.
if (aDocument->LoadsFullXULStyleSheetUpFront()) {
// This is the only place components.css gets loaded, unlike xul.css
sheet = cache->XULComponentsSheet();
if (sheet) {
styleSet->PrependStyleSheet(SheetType::Agent, sheet);
}
// nsXULElement::BindToTree loads xul.css on-demand if we don't load it
// up-front here.
sheet = cache->XULSheet();
if (sheet) {
styleSet->PrependStyleSheet(SheetType::Agent, sheet);