LibHTML: LayoutInline can only be constructed with an Element

Since LayoutText no longer inherits from LayoutInline, all of the
DOM nodes with a LayoutInline are going to be Elements.
This commit is contained in:
Andreas Kling 2019-10-06 11:14:13 +02:00
commit c8e5039418
Notes: sideshowbarker 2024-07-19 11:48:04 +09:00
2 changed files with 4 additions and 3 deletions

View file

@ -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"; }