mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Remove dom.webcomponents.customelements.enabled pref.
This patch removes the following functions: * nsContentUtils::IsCustomElementsEnabled() * CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject) * CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc) and all references of the pref. Depends on D11183 Differential Revision: https://phabricator.services.mozilla.com/D11249
This commit is contained in:
parent
3977854ee2
commit
9f28242def
2 changed files with 1 additions and 4 deletions
|
@ -37,7 +37,7 @@ macro_rules! apply_non_ts_list {
|
|||
("visited", Visited, visited, IN_VISITED_STATE, _),
|
||||
("active", Active, active, IN_ACTIVE_STATE, _),
|
||||
("checked", Checked, checked, IN_CHECKED_STATE, _),
|
||||
("defined", Defined, defined, IN_DEFINED_STATE, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS_AND_CHROME),
|
||||
("defined", Defined, defined, IN_DEFINED_STATE, _),
|
||||
("disabled", Disabled, disabled, IN_DISABLED_STATE, _),
|
||||
("enabled", Enabled, enabled, IN_ENABLED_STATE, _),
|
||||
("focus", Focus, focus, IN_FOCUS_STATE, _),
|
||||
|
|
|
@ -178,9 +178,6 @@ impl NonTSPseudoClass {
|
|||
NonTSPseudoClass::Fullscreen => unsafe {
|
||||
mozilla::StaticPrefs_sVarCache_full_screen_api_unprefix_enabled
|
||||
},
|
||||
NonTSPseudoClass::Defined => unsafe {
|
||||
structs::nsContentUtils_sIsCustomElementsEnabled
|
||||
},
|
||||
// Otherwise, a pseudo-class is enabled in content when it
|
||||
// doesn't have any enabled flag.
|
||||
_ => !self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue