mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb: Don't include CSS/CSSStyleDeclaration.h from DOM/Element.h
This required splitting out CSS::StyleProperty into its own file and out-of-lining Element::layout_node().
This commit is contained in:
parent
5b5fbecb38
commit
4399ca2d82
Notes:
sideshowbarker
2024-07-17 02:06:40 +09:00
Author: https://github.com/awesomekling
Commit: 4399ca2d82
Pull-request: https://github.com/SerenityOS/serenity/pull/18718
Reviewed-by: https://github.com/gmta ✅
4 changed files with 37 additions and 15 deletions
|
@ -1682,4 +1682,14 @@ void Element::for_each_attribute(Function<void(DeprecatedFlyString const&, Depre
|
|||
}
|
||||
}
|
||||
|
||||
Layout::NodeWithStyle* Element::layout_node()
|
||||
{
|
||||
return static_cast<Layout::NodeWithStyle*>(Node::layout_node());
|
||||
}
|
||||
|
||||
Layout::NodeWithStyle const* Element::layout_node() const
|
||||
{
|
||||
return static_cast<Layout::NodeWithStyle const*>(Node::layout_node());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue