зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1350734 - Have nsLayoutStylesheetCache load xul.css lazily in the content process. r=heycam
MozReview-Commit-ID: 5gKiJT1rdSY
This commit is contained in:
Родитель
da33662df5
Коммит
39d660dfde
|
@ -147,6 +147,11 @@ nsLayoutStylesheetCache::MinimalXULSheet()
|
|||
StyleSheet*
|
||||
nsLayoutStylesheetCache::XULSheet()
|
||||
{
|
||||
if (!mXULSheet) {
|
||||
LoadSheetURL("chrome://global/content/xul.css",
|
||||
&mXULSheet, eAgentSheetFeatures, eCrash);
|
||||
}
|
||||
|
||||
return mXULSheet;
|
||||
}
|
||||
|
||||
|
@ -338,8 +343,10 @@ nsLayoutStylesheetCache::nsLayoutStylesheetCache(StyleBackendType aType)
|
|||
&mQuirkSheet, eAgentSheetFeatures, eCrash);
|
||||
LoadSheetURL("resource://gre/res/svg.css",
|
||||
&mSVGSheet, eAgentSheetFeatures, eCrash);
|
||||
LoadSheetURL("chrome://global/content/xul.css",
|
||||
&mXULSheet, eAgentSheetFeatures, eCrash);
|
||||
if (XRE_IsParentProcess()) {
|
||||
// We know we need xul.css for the UI, so load that now too:
|
||||
XULSheet();
|
||||
}
|
||||
|
||||
if (gUserContentSheetURL) {
|
||||
MOZ_ASSERT(XRE_IsContentProcess(), "Only used in content processes.");
|
||||
|
|
Загрузка…
Ссылка в новой задаче