mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
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:
parent
1b7aa00768
commit
c8e5039418
2 changed files with 4 additions and 3 deletions
|
@ -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"; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue