diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-11-23 23:32:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-23 23:32:32 -0800 |
commit | a9b0eb101f452278fa805dd04a5b4ab9d036be70 (patch) | |
tree | 8a4005cade948c2e7bd468421ea9a6a518640486 /components/style/servo/selector_parser.rs | |
parent | 61a225bab0d82dd9a4e3b1cec910e78a02cf875a (diff) | |
parent | 22b62e091313824c8ca283f093d6dcc01a090a0c (diff) | |
download | servo-a9b0eb101f452278fa805dd04a5b4ab9d036be70.tar.gz servo-a9b0eb101f452278fa805dd04a5b4ab9d036be70.zip |
Auto merge of #14356 - heycam:nac-no-doc, r=emilio
stylo: don't match native anonymous content to user/author rules
<!-- Please describe your changes on the following line: -->
This makes us skip user and document style sheets when performing the cascade for Gecko native anonymous content. It was reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1293809 by @emilio.
<!-- 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/14356)
<!-- Reviewable:end -->
Diffstat (limited to 'components/style/servo/selector_parser.rs')
-rw-r--r-- | components/style/servo/selector_parser.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs index 493710debfb..8dc844456bd 100644 --- a/components/style/servo/selector_parser.rs +++ b/components/style/servo/selector_parser.rs @@ -398,4 +398,9 @@ impl<E: Element<Impl=SelectorImpl>> ElementExt for E { fn is_link(&self) -> bool { self.match_non_ts_pseudo_class(NonTSPseudoClass::AnyLink) } + + #[inline] + fn matches_user_and_author_rules(&self) -> bool { + true + } } |