mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Bug 1271549 - Remove details and summary preference.
Tag UXP Issue #1344
This commit is contained in:
parent
e8e20e994d
commit
a2e1955dc6
20 changed files with 21 additions and 121 deletions
|
|
@ -122,11 +122,6 @@ nsLayoutStylesheetCache::UASheet()
|
|||
StyleSheet*
|
||||
nsLayoutStylesheetCache::HTMLSheet()
|
||||
{
|
||||
if (!mHTMLSheet) {
|
||||
LoadSheetURL("resource://gre-resources/html.css",
|
||||
&mHTMLSheet, eAgentSheetFeatures, eCrash);
|
||||
}
|
||||
|
||||
return mHTMLSheet;
|
||||
}
|
||||
|
||||
|
|
@ -322,6 +317,8 @@ nsLayoutStylesheetCache::nsLayoutStylesheetCache(StyleBackendType aType)
|
|||
// per-profile, since they're profile-invariant.
|
||||
LoadSheetURL("resource://gre-resources/counterstyles.css",
|
||||
&mCounterStylesSheet, eAgentSheetFeatures, eCrash);
|
||||
LoadSheetURL("resource://gre-resources/html.css",
|
||||
&mHTMLSheet, eAgentSheetFeatures, eCrash);
|
||||
LoadSheetURL("chrome://global/content/minimal-xul.css",
|
||||
&mMinimalXULSheet, eAgentSheetFeatures, eCrash);
|
||||
LoadSheetURL("resource://gre-resources/quirk.css",
|
||||
|
|
@ -382,8 +379,6 @@ nsLayoutStylesheetCache::For(StyleBackendType aType)
|
|||
// "layout.css.example-pref.enabled");
|
||||
Preferences::RegisterCallback(&DependentPrefChanged,
|
||||
"layout.css.grid.enabled");
|
||||
Preferences::RegisterCallback(&DependentPrefChanged,
|
||||
"dom.details_element.enabled");
|
||||
}
|
||||
|
||||
return cache;
|
||||
|
|
@ -555,7 +550,6 @@ nsLayoutStylesheetCache::DependentPrefChanged(const char* aPref, void* aData)
|
|||
gStyleCache_Servo ? &gStyleCache_Servo->sheet_ : nullptr);
|
||||
|
||||
INVALIDATE(mUASheet); // for layout.css.grid.enabled
|
||||
INVALIDATE(mHTMLSheet); // for dom.details_element.enabled
|
||||
|
||||
#undef INVALIDATE
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue