1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 17:58:12 +00:00

LibHTML: Simplify Node::create_layout_node()

There's no need to pass the StyleResolver to this function. Nodes that
need it can just get it from the document.
This commit is contained in:
Andreas Kling 2019-10-15 15:06:16 +02:00
parent f7cd5662ef
commit f4f5ede10a
13 changed files with 20 additions and 30 deletions

View file

@ -54,7 +54,7 @@ public:
const LayoutNodeWithStyle* layout_node() const { return static_cast<const LayoutNodeWithStyle*>(Node::layout_node()); }
private:
RefPtr<LayoutNode> create_layout_node(const StyleResolver&, const StyleProperties* parent_style) const override;
RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override;
Attribute* find_attribute(const String& name);
const Attribute* find_attribute(const String& name) const;