diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-03-07 12:48:07 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-03-13 15:08:36 +0100 |
commit | 4a1f390788f647c4a96371a8a6608a677b600552 (patch) | |
tree | 2aaa912fa95f40fe1579a99856322ac642191212 /components/style/rule_tree/mod.rs | |
parent | 6fd17ccb35b665f8518d3a11a532e217fdb9f3cc (diff) | |
download | servo-4a1f390788f647c4a96371a8a6608a677b600552.tar.gz servo-4a1f390788f647c4a96371a8a6608a677b600552.zip |
style: Optimize cascading of other wide keywords if possible.
The way the copy-on-write stuff works, and the way that we have to apply
properties from most specific to less specific guarantees that always that we're
going to inherit an inherited property, or reset a reset property, we have
already the right value on the style.
Revert relies on that, so there doesn't seem to be a reason to not use that fact
more often and skip useless work earlier.
Font-size is still special of course... I think I have a way to move the
specialness outside of the style, but piece by piece.
Differential Revision: https://phabricator.services.mozilla.com/D21882
Diffstat (limited to 'components/style/rule_tree/mod.rs')
0 files changed, 0 insertions, 0 deletions