diff options
Diffstat (limited to 'Libraries/LibHTML/Layout')
-rw-r--r-- | Libraries/LibHTML/Layout/LayoutInline.cpp | 5 | ||||
-rw-r--r-- | Libraries/LibHTML/Layout/LayoutInline.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Libraries/LibHTML/Layout/LayoutInline.cpp b/Libraries/LibHTML/Layout/LayoutInline.cpp index 41133cbd2d..0b0d1db62b 100644 --- a/Libraries/LibHTML/Layout/LayoutInline.cpp +++ b/Libraries/LibHTML/Layout/LayoutInline.cpp @@ -1,8 +1,9 @@ +#include <LibHTML/DOM/Element.h> #include <LibHTML/Layout/LayoutBlock.h> #include <LibHTML/Layout/LayoutInline.h> -LayoutInline::LayoutInline(const Node& node, RefPtr<StyleProperties> style_properties) - : LayoutNode(&node, move(style_properties)) +LayoutInline::LayoutInline(const Element& element, NonnullRefPtr<StyleProperties> style) + : LayoutNode(&element, move(style)) { set_inline(true); } diff --git a/Libraries/LibHTML/Layout/LayoutInline.h b/Libraries/LibHTML/Layout/LayoutInline.h index 3f9f6e019a..7103afb72e 100644 --- a/Libraries/LibHTML/Layout/LayoutInline.h +++ b/Libraries/LibHTML/Layout/LayoutInline.h @@ -6,7 +6,7 @@ class LayoutBlock; class LayoutInline : public LayoutNode { public: - LayoutInline(const Node&, RefPtr<StyleProperties>); + LayoutInline(const Element&, NonnullRefPtr<StyleProperties>); virtual ~LayoutInline() override; virtual const char* class_name() const override { return "LayoutInline"; } |