mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +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
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