mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Record the property we are computing on computed::Context, if it's a non-inherited one.
This commit is contained in:
parent
9230030daa
commit
1cde26eacb
7 changed files with 19 additions and 1 deletions
|
@ -314,6 +314,13 @@
|
|||
_ => panic!("entered the wrong cascade_property() implementation"),
|
||||
};
|
||||
|
||||
context.for_non_inherited_property =
|
||||
% if property.style_struct.inherited:
|
||||
None;
|
||||
% else:
|
||||
Some(LonghandId::${property.camel_case});
|
||||
% endif
|
||||
|
||||
% if not property.derived_from:
|
||||
match value {
|
||||
DeclaredValue::Value(specified_value) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue