aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/css.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-04-27 18:31:20 -0500
committerGitHub <noreply@github.com>2017-04-27 18:31:20 -0500
commit04aac0247aea29e361589a75954b4f769478dd02 (patch)
tree6ca7b92da92e31850ca12ad29704732c12b64499 /components/script/dom/css.rs
parent5c321737c65c1c7f11b9c58d010e07412403167a (diff)
parentc9fd747e6983521ff92f67b276b9adde6a936170 (diff)
downloadservo-04aac0247aea29e361589a75954b4f769478dd02.tar.gz
servo-04aac0247aea29e361589a75954b4f769478dd02.zip
Auto merge of #16637 - bzbarsky:probing-lazy-pseudos, r=emilio
Fix Stylist::lazily_compute_pseudo_element_style to return None when it should. We have a fast path to return None if we have no rules for the pseudo-element at all, but we should also return None if we have no _matching_ rules for it for the given originating element. This is relied on by consumers like Servo_ResolvePseudoStyle, which needs to be able to detect the "no styles for this pseudo-element for this originating element case", to support probing for whether work for a specific pseudo-element should be done at all. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/16637) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/css.rs')
0 files changed, 0 insertions, 0 deletions