mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibWeb: Add LayoutNode::frame() reference getter
Any live layout tree always has a corresponding live Frame, as we will never create a layout tree for a frameless document.
This commit is contained in:
@@ -43,8 +43,7 @@ LayoutDocument::~LayoutDocument()
|
||||
|
||||
void LayoutDocument::layout(LayoutMode layout_mode)
|
||||
{
|
||||
ASSERT(document().frame());
|
||||
set_width(document().frame()->size().width());
|
||||
set_width(frame().size().width());
|
||||
|
||||
LayoutNode::layout(layout_mode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user