mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Cache substituted values from shorthand properties during the cascade.
This brings the time down to 1.6ms from 4.8ms on the test-case in the bug. This should be improvable too, but I think this is a nice improvement for regular styling as well. Differential Revision: https://phabricator.services.mozilla.com/D105187
This commit is contained in:
parent
1b18b06186
commit
b0d05d1a5d
4 changed files with 96 additions and 54 deletions
|
@ -837,6 +837,7 @@ impl PropertyDeclarationBlock {
|
|||
custom_properties.as_ref(),
|
||||
QuirksMode::NoQuirks,
|
||||
device,
|
||||
&mut Default::default()
|
||||
)
|
||||
.to_css(dest)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue