New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] svg: support <circle> element #17681
Changes from 1 commit
61067f4
cee18c1
a973309
8d19783
cbeef7d
3cce825
75f00ca
f1a0003
516cffa
c8a4f0a
File filter...
Jump to…
style: Supoort "fill", "x", "y", and "r" svg properties
Implement "fill", "x", "y", and "r" svg properties in servo.
- Loading branch information
| @@ -169,3 +169,27 @@ ${helpers.predefined_type("mask-image", "ImageLayer", | ||
| animation_value_type="discrete", | ||
| flags="CREATES_STACKING_CONTEXT", | ||
| has_uncacheable_values="True" if product == "gecko" else "False")} | ||
|
|
||
| ${helpers.predefined_type( | ||
stshine
Author
Contributor
|
||
| "cx", "LengthOrPercentage", | ||
| "computed::LengthOrPercentage::Length(Au(0))", | ||
| "parse_numbers_are_pixels_non_negative", | ||
| products="servo", | ||
| animation_value_type="ComputedValue", | ||
| spec="https://svgwg.org/svg2-draft/geometry.html#CxProperty")} | ||
|
|
||
| ${helpers.predefined_type( | ||
| "cy", "LengthOrPercentage", | ||
| "computed::LengthOrPercentage::Length(Au(0))", | ||
| "parse_numbers_are_pixels_non_negative", | ||
| products="servo", | ||
| animation_value_type="ComputedValue", | ||
| spec="https://svgwg.org/svg2-draft/geometry.html#CyProperty")} | ||
|
|
||
| ${helpers.predefined_type( | ||
| "r", "LengthOrPercentage", | ||
| "computed::LengthOrPercentage::Length(Au(0))", | ||
| "parse_numbers_are_pixels_non_negative", | ||
| products="servo", | ||
| animation_value_type="ComputedValue", | ||
| spec="https://svgwg.org/svg2-draft/geometry.html#R")} | ||
| @@ -212,7 +212,8 @@ fn compute_damage(old: &ComputedValues, new: &ComputedValues) -> ServoRestyleDam | ||
| get_inheritedbox.direction, get_inheritedbox.writing_mode, | ||
| get_text.text_decoration_line, get_text.unicode_bidi, | ||
| get_inheritedtable.empty_cells, get_inheritedtable.caption_side, | ||
| get_column.column_width, get_column.column_count | ||
| get_column.column_width, get_column.column_count, | ||
| get_inheritedsvg.fill, get_svg.cx, get_svg.cy, get_svg.r | ||
emilio
Member
|
||
| ]) || (new.get_box().display == display::T::inline && | ||
| add_if_not_equal!(old, new, damage, | ||
| [REPAINT, REPOSITION, STORE_OVERFLOW, BUBBLE_ISIZES, | ||
Are these actual CSS properties? This will allow them to be parsed from style attributes, which may not be what you want.