aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/css.rs
diff options
context:
space:
mode:
authorBoris Zbarsky <bzbarsky@mit.edu>2017-04-27 15:53:38 -0400
committerBoris Zbarsky <bzbarsky@mit.edu>2017-04-27 16:00:40 -0400
commitc9fd747e6983521ff92f67b276b9adde6a936170 (patch)
tree36aef60ae407299f940d2e53158639444cfd191f /components/script/dom/css.rs
parent2c445169ad7ccf0e4b2be8f1eee2e198c54ee666 (diff)
downloadservo-c9fd747e6983521ff92f67b276b9adde6a936170.tar.gz
servo-c9fd747e6983521ff92f67b276b9adde6a936170.zip
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.
Diffstat (limited to 'components/script/dom/css.rs')
0 files changed, 0 insertions, 0 deletions