LibHTML: Add Element::name() convenience attribute getter

This commit is contained in:
Andreas Kling 2019-10-20 09:09:15 +02:00
commit 202dfbd6cd
Notes: sideshowbarker 2024-07-19 11:37:25 +09:00

View file

@ -54,6 +54,8 @@ public:
LayoutNodeWithStyle* layout_node() { return static_cast<LayoutNodeWithStyle*>(Node::layout_node()); }
const LayoutNodeWithStyle* layout_node() const { return static_cast<const LayoutNodeWithStyle*>(Node::layout_node()); }
String name() const { return attribute("name"); }
private:
RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override;