summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Layout/LayoutListItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibWeb/Layout/LayoutListItem.cpp')
-rw-r--r--Libraries/LibWeb/Layout/LayoutListItem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutListItem.cpp b/Libraries/LibWeb/Layout/LayoutListItem.cpp
index 0c10aa29cd..74bcb13e39 100644
--- a/Libraries/LibWeb/Layout/LayoutListItem.cpp
+++ b/Libraries/LibWeb/Layout/LayoutListItem.cpp
@@ -29,8 +29,8 @@
namespace Web {
-LayoutListItem::LayoutListItem(const Element& element, NonnullRefPtr<StyleProperties> style)
- : LayoutBlock(&element, move(style))
+LayoutListItem::LayoutListItem(Document& document, const Element& element, NonnullRefPtr<StyleProperties> style)
+ : LayoutBlock(document, &element, move(style))
{
}
@@ -52,7 +52,7 @@ void LayoutListItem::layout(LayoutMode layout_mode)
}
if (!m_marker) {
- m_marker = adopt(*new LayoutListItemMarker);
+ m_marker = adopt(*new LayoutListItemMarker(document()));
if (first_child())
m_marker->set_inline(first_child()->is_inline());
append_child(*m_marker);