1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

LibWeb: Use FrameLoader to load iframes :^)

This commit is contained in:
Andreas Kling 2020-06-06 13:10:11 +02:00
parent 075bd75859
commit 5c0ee72b30
3 changed files with 9 additions and 16 deletions

View file

@ -48,6 +48,8 @@ LayoutFrame::~LayoutFrame()
void LayoutFrame::layout(LayoutMode layout_mode)
{
ASSERT(node().hosted_frame());
set_has_intrinsic_width(true);
set_has_intrinsic_height(true);
// FIXME: Do proper error checking, etc.
@ -81,8 +83,6 @@ void LayoutFrame::did_set_rect()
ASSERT(node().hosted_frame());
node().hosted_frame()->set_size(Gfx::Size(rect().width(), rect().height()));
node().hosted_frame()->document()->layout();
}
}