summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/DOM/HTMLBRElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibWeb/DOM/HTMLBRElement.cpp')
-rw-r--r--Libraries/LibWeb/DOM/HTMLBRElement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/DOM/HTMLBRElement.cpp b/Libraries/LibWeb/DOM/HTMLBRElement.cpp
index 59c6a923a5..6763bb7b38 100644
--- a/Libraries/LibWeb/DOM/HTMLBRElement.cpp
+++ b/Libraries/LibWeb/DOM/HTMLBRElement.cpp
@@ -38,9 +38,9 @@ HTMLBRElement::~HTMLBRElement()
{
}
-RefPtr<LayoutNode> HTMLBRElement::create_layout_node(const StyleProperties*) const
+RefPtr<LayoutNode> HTMLBRElement::create_layout_node(const StyleProperties*)
{
- return adopt(*new LayoutBreak(*this));
+ return adopt(*new LayoutBreak(document(), *this));
}
}