mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Create LayoutNodes for each SVG element
This brings the SVG API closer to the rest of LibWeb
This commit is contained in:
parent
f2055bb509
commit
455ce0b9c3
Notes:
sideshowbarker
2024-07-19 01:56:20 +09:00
Author: https://github.com/mattco98
Commit: 455ce0b9c3
Pull-request: https://github.com/SerenityOS/serenity/pull/3730
Reviewed-by: https://github.com/awesomekling
16 changed files with 402 additions and 122 deletions
|
@ -48,13 +48,4 @@ void SVGGraphicsElement::parse_attribute(const FlyString& name, const String& va
|
|||
}
|
||||
}
|
||||
|
||||
SVGPaintingContext SVGGraphicsElement::make_painting_context_from(const SVGPaintingContext& context)
|
||||
{
|
||||
return SVGPaintingContext {
|
||||
m_fill_color.value_or(context.fill_color),
|
||||
m_stroke_color.value_or(context.stroke_color),
|
||||
m_stroke_width.value_or(context.stroke_width),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue