diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-10-15 02:21:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-15 02:21:47 -0500 |
commit | a200fb4b9df4e7461b4238fe3a6d49881f438e25 (patch) | |
tree | 2a3f2e56719e043f4635c3afac18c78b2d7d2ab1 /components/script/task_source/mod.rs | |
parent | 4375a89f35424fa92b68a003531cadc811481532 (diff) | |
parent | dcb8c2fdc7a3ad162cc7312faaebccd2d2a5e6fa (diff) | |
download | servo-a200fb4b9df4e7461b4238fe3a6d49881f438e25.tar.gz servo-a200fb4b9df4e7461b4238fe3a6d49881f438e25.zip |
Auto merge of #18876 - emilio:die-localmatchingcontext-die, r=SimonSapin
style: Do not expose LocalMatchingContext.
This type is a lot of complexity related to a very specific thing such as the
hover and active quirk.
Instead of that, move `nesting_level` to `MatchingContext`, and simplify all
this computing whether the quirk applies upfront, for each complex selector we
test.
This is less error-prone, and also allows simplifying more stuff in a bit.
Also, this makes the hover and active quirk work in Servo with no extra effort.
<!-- 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/18876)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/task_source/mod.rs')
0 files changed, 0 insertions, 0 deletions