mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Only expose longhands to rust via iterators.
The key here is that we only filter longhands if the shorthand is accessible to content and vice-versa. This prevents the bug that prevented me to land this patch before, which was us not expanding properly chrome-only shorthands. Again, this is incomplete, and I need to teach LonghandsToSerialize to get a potentially incomplete list of properties, and all that.
This commit is contained in:
parent
6fbf2c1e3c
commit
8c4b401dd3
8 changed files with 95 additions and 59 deletions
|
@ -927,7 +927,7 @@ pub extern "C" fn Servo_ComputedValues_ExtractAnimationValue(
|
|||
Err(()) => return Strong::null(),
|
||||
};
|
||||
|
||||
match AnimationValue::from_computed_values(&property, &computed_values) {
|
||||
match AnimationValue::from_computed_values(property, &computed_values) {
|
||||
Some(v) => Arc::new(v).into_strong(),
|
||||
None => Strong::null(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue