mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Add stroke-linecap attribute and plumb it to SVGGraphicsElement
SVGGraphicsElement then goes ahead and does nothing with it for now.
This commit is contained in:
parent
202bfabdc6
commit
cc0cfd044b
Notes:
github-actions[bot]
2024-10-10 23:28:42 +00:00
Author: https://github.com/nico
Commit: cc0cfd044b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1714
Reviewed-by: https://github.com/AtkinsSJ ✅
11 changed files with 41 additions and 1 deletions
|
@ -840,6 +840,8 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
|
|||
computed_values.set_fill_rule(*fill_rule);
|
||||
|
||||
computed_values.set_fill_opacity(computed_style.fill_opacity());
|
||||
if (auto stroke_linecap = computed_style.stroke_linecap(); stroke_linecap.has_value())
|
||||
computed_values.set_stroke_linecap(stroke_linecap.value());
|
||||
computed_values.set_stroke_opacity(computed_style.stroke_opacity());
|
||||
computed_values.set_stop_opacity(computed_style.stop_opacity());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue