From 2e532b8e00c97da3e067354c5deac2e85c9848c7 Mon Sep 17 00:00:00 2001 From: Jessica Jong Date: Tue, 16 Jan 2018 17:52:50 +0800 Subject: [PATCH 1/2] style: Update shadow dom preference. --- components/style/gecko/selector_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/gecko/selector_parser.rs b/components/style/gecko/selector_parser.rs index 4a7bd18c855..cb57d9b21fb 100644 --- a/components/style/gecko/selector_parser.rs +++ b/components/style/gecko/selector_parser.rs @@ -332,7 +332,7 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> { // NOTE(emilio): Slot assignment and such works per-document, but // getting a document around here is not trivial, and it's not worth // anyway to handle this in a per-doc basis. - unsafe { structs::nsContentUtils_sIsWebComponentsEnabled } + unsafe { structs::nsContentUtils_sIsShadowDOMEnabled } } fn pseudo_element_allows_single_colon(name: &str) -> bool { From 1c1f9c94fd99662e364ccdfa6d66684d73c7fe6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 16 Jan 2018 15:49:50 +0100 Subject: [PATCH 2/2] style: update bindings. --- components/style/gecko/generated/structs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/style/gecko/generated/structs.rs b/components/style/gecko/generated/structs.rs index 80239ae1dbd..ada62c704ea 100644 --- a/components/style/gecko/generated/structs.rs +++ b/components/style/gecko/generated/structs.rs @@ -1906,8 +1906,8 @@ pub type ServoStyleContextStrong = ::gecko_bindings::sugar::ownership::Strong<:: # [ link_name = "\u{1}_ZN14nsContentUtils34sIsFormAutofillAutocompleteEnabledE" ] pub static mut nsContentUtils_sIsFormAutofillAutocompleteEnabled : bool ; } extern "C" { - # [ link_name = "\u{1}_ZN14nsContentUtils23sIsWebComponentsEnabledE" ] - pub static mut nsContentUtils_sIsWebComponentsEnabled : bool ; + # [ link_name = "\u{1}_ZN14nsContentUtils23sIsShadowDOMEnabledE" ] + pub static mut nsContentUtils_sIsShadowDOMEnabled : bool ; } extern "C" { # [ link_name = "\u{1}_ZN14nsContentUtils24sIsCustomElementsEnabledE" ] pub static mut nsContentUtils_sIsCustomElementsEnabled : bool ;