Auto merge of #19783 - jessi3py:bug-1428685, r=emilio

style: Update shadow dom preference.

We have updated gecko's preference for shadow dom, so updating servo part too.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19783)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-01-16 08:50:35 -06:00 committed by GitHub
commit cafc152e1b
2 changed files with 3 additions and 3 deletions

View file

@ -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 ;

View file

@ -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 {