diff options
-rw-r--r-- | Libraries/LibHTML/Layout/LayoutText.cpp | 3 | ||||
-rw-r--r-- | Libraries/LibHTML/Layout/LayoutText.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Libraries/LibHTML/Layout/LayoutText.cpp b/Libraries/LibHTML/Layout/LayoutText.cpp index 43b640f43f..99d6c9e722 100644 --- a/Libraries/LibHTML/Layout/LayoutText.cpp +++ b/Libraries/LibHTML/Layout/LayoutText.cpp @@ -8,8 +8,9 @@ #include <ctype.h> LayoutText::LayoutText(const Text& text) - : LayoutInline(text, {}) + : LayoutNode(&text, {}) { + set_inline(true); } LayoutText::~LayoutText() diff --git a/Libraries/LibHTML/Layout/LayoutText.h b/Libraries/LibHTML/Layout/LayoutText.h index 008e60ede6..9a70eb23f8 100644 --- a/Libraries/LibHTML/Layout/LayoutText.h +++ b/Libraries/LibHTML/Layout/LayoutText.h @@ -1,12 +1,12 @@ #pragma once #include <LibHTML/DOM/Text.h> -#include <LibHTML/Layout/LayoutInline.h> +#include <LibHTML/Layout/LayoutNode.h> class Font; class LineBoxFragment; -class LayoutText : public LayoutInline { +class LayoutText : public LayoutNode { public: explicit LayoutText(const Text&); virtual ~LayoutText() override; |