diff options
Diffstat (limited to 'Libraries/LibHTML/Layout/LayoutReplaced.h')
-rw-r--r-- | Libraries/LibHTML/Layout/LayoutReplaced.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibHTML/Layout/LayoutReplaced.h b/Libraries/LibHTML/Layout/LayoutReplaced.h index 0d76b7352b..c76fc3b930 100644 --- a/Libraries/LibHTML/Layout/LayoutReplaced.h +++ b/Libraries/LibHTML/Layout/LayoutReplaced.h @@ -6,7 +6,7 @@ public: LayoutReplaced(const Element&, NonnullRefPtr<StyleProperties>); virtual ~LayoutReplaced() override; - const Element& node() const { return static_cast<const Element&>(*LayoutNode::node()); } + const Element& node() const { return to<Element>(*LayoutNode::node()); } virtual bool is_replaced() const final { return true; } |