LibWeb: Rename Layout::FrameBox => NavigableContainerViewport

This commit is contained in:
Andreas Kling 2024-11-26 12:00:15 +01:00 committed by Andreas Kling
commit 443a8539e9
Notes: github-actions[bot] 2024-11-26 17:59:43 +00:00
10 changed files with 61 additions and 61 deletions

View file

@ -15,7 +15,7 @@
#include <LibWeb/HTML/HTMLIFrameElement.h>
#include <LibWeb/HTML/Navigable.h>
#include <LibWeb/HTML/Parser/HTMLParser.h>
#include <LibWeb/Layout/FrameBox.h>
#include <LibWeb/Layout/NavigableContainerViewport.h>
namespace Web::HTML {
@ -36,7 +36,7 @@ void HTMLIFrameElement::initialize(JS::Realm& realm)
GC::Ptr<Layout::Node> HTMLIFrameElement::create_layout_node(CSS::StyleProperties style)
{
return heap().allocate<Layout::FrameBox>(document(), *this, move(style));
return heap().allocate<Layout::NavigableContainerViewport>(document(), *this, move(style));
}
void HTMLIFrameElement::adjust_computed_style(CSS::StyleProperties& style)

View file

@ -143,7 +143,7 @@ GC::Ptr<Layout::Node> HTMLObjectElement::create_layout_node(CSS::StyleProperties
case Representation::Children:
return NavigableContainer::create_layout_node(move(style));
case Representation::NestedBrowsingContext:
// FIXME: Actually paint the nested browsing context's document, similar to how iframes are painted with FrameBox and NestedBrowsingContextPaintable.
// FIXME: Actually paint the nested browsing context's document, similar to how iframes are painted with NavigableContainerViewport and NestedBrowsingContextPaintable.
return nullptr;
case Representation::Image:
if (image_data())