diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-22 17:48:04 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-22 20:10:20 +0200 |
commit | 86a4eaca389f6ab4f0250c666833cddf34ddcafa (patch) | |
tree | e1854ec0e40b472dcd4be915bf5d5424fa201f14 /Libraries/LibWeb/Layout | |
parent | 69bbf0285bf6e5ce85956aed3d86075a9ddf65b9 (diff) | |
download | serenity-86a4eaca389f6ab4f0250c666833cddf34ddcafa.zip |
LibWeb: Rename HTMLIFrameElement::hosted_frame() => content_frame()
This matches the standard API names contentWindow and contentDocument.
Diffstat (limited to 'Libraries/LibWeb/Layout')
-rw-r--r-- | Libraries/LibWeb/Layout/LayoutFrame.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Libraries/LibWeb/Layout/LayoutFrame.cpp b/Libraries/LibWeb/Layout/LayoutFrame.cpp index e7a999f368..7108065460 100644 --- a/Libraries/LibWeb/Layout/LayoutFrame.cpp +++ b/Libraries/LibWeb/Layout/LayoutFrame.cpp @@ -50,7 +50,7 @@ LayoutFrame::~LayoutFrame() void LayoutFrame::layout(LayoutMode layout_mode) { - ASSERT(node().hosted_frame()); + ASSERT(node().content_frame()); set_has_intrinsic_width(true); set_has_intrinsic_height(true); @@ -79,14 +79,14 @@ void LayoutFrame::paint(PaintContext& context, PaintPhase phase) context.painter().add_clip_rect(enclosing_int_rect(absolute_rect())); context.painter().translate(absolute_x(), absolute_y()); - context.set_viewport_rect({ {}, node().hosted_frame()->size() }); + context.set_viewport_rect({ {}, node().content_frame()->size() }); const_cast<LayoutDocument*>(hosted_layout_tree)->paint_all_phases(context); context.set_viewport_rect(old_viewport_rect); context.painter().restore(); #ifdef DEBUG_HIGHLIGHT_FOCUSED_FRAME - if (node().hosted_frame()->is_focused_frame()) { + if (node().content_frame()->is_focused_frame()) { context.painter().draw_rect(absolute_rect().to<int>(), Color::Cyan); } #endif @@ -97,8 +97,8 @@ void LayoutFrame::did_set_rect() { LayoutReplaced::did_set_rect(); - ASSERT(node().hosted_frame()); - node().hosted_frame()->set_size(size().to_type<int>()); + ASSERT(node().content_frame()); + node().content_frame()->set_size(size().to_type<int>()); } } |