mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Move and rename CSSStyleValue to StyleValues/StyleValue.{h,cpp}
This reverts 0e3487b9ab.
Back when I made that change, I thought we could make our StyleValue
classes match the typed-om definitions directly. However, they have
different requirements. Typed-om types need to be mutable and GCed,
whereas StyleValues are immutable and ideally wouldn't require a JS VM.
While I was already making such a cataclysmic change, I've moved it into
the StyleValues directory, because it *not* being there has bothered me
for a long time. 😅
This commit is contained in:
parent
0d8ad0a9fe
commit
c57975c9fd
Notes:
github-actions[bot]
2025-08-08 14:20:54 +00:00
Author: https://github.com/AtkinsSJ
Commit: c57975c9fd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5775
Reviewed-by: https://github.com/tcl3 ✅
167 changed files with 989 additions and 990 deletions
|
|
@ -49,7 +49,7 @@ GC::Ptr<Layout::Node> SVGSVGElement::create_layout_node(GC::Ref<CSS::ComputedPro
|
|||
return heap().allocate<Layout::SVGSVGBox>(document(), *this, move(style));
|
||||
}
|
||||
|
||||
RefPtr<CSS::CSSStyleValue const> SVGSVGElement::width_style_value_from_attribute() const
|
||||
RefPtr<CSS::StyleValue const> SVGSVGElement::width_style_value_from_attribute() const
|
||||
{
|
||||
auto parsing_context = CSS::Parser::ParsingParams { document(), CSS::Parser::ParsingMode::SVGPresentationAttribute };
|
||||
auto width_attribute = attribute(SVG::AttributeNames::width);
|
||||
|
|
@ -65,7 +65,7 @@ RefPtr<CSS::CSSStyleValue const> SVGSVGElement::width_style_value_from_attribute
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
RefPtr<CSS::CSSStyleValue const> SVGSVGElement::height_style_value_from_attribute() const
|
||||
RefPtr<CSS::StyleValue const> SVGSVGElement::height_style_value_from_attribute() const
|
||||
{
|
||||
auto parsing_context = CSS::Parser::ParsingParams { document(), CSS::Parser::ParsingMode::SVGPresentationAttribute };
|
||||
auto height_attribute = attribute(SVG::AttributeNames::height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue