diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-30 12:36:53 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-30 12:39:53 +0200 |
commit | 4190fd219930a6c8b631c396ccafe5190f821414 (patch) | |
tree | 2cb430b87b468023a3c2601618187554f00797c9 /Userland/Libraries/LibWeb/Layout/ImageBox.cpp | |
parent | 8be98af77cae3191cf97a4686824c98d89f87ef7 (diff) | |
download | serenity-4190fd219930a6c8b631c396ccafe5190f821414.zip |
LibWeb: Rename Web::Frame to Web::BrowsingContext
Our "frame" concept very closely matches what the web specs call a
"browsing context", so let's rename it to that. :^)
The "main frame" becomes the "top-level browsing context",
and "sub-frames" are now "nested browsing contexts".
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/ImageBox.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/ImageBox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/ImageBox.cpp b/Userland/Libraries/LibWeb/Layout/ImageBox.cpp index c358c08d66..c1b0065002 100644 --- a/Userland/Libraries/LibWeb/Layout/ImageBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/ImageBox.cpp @@ -8,7 +8,7 @@ #include <LibGfx/Painter.h> #include <LibGfx/StylePainter.h> #include <LibWeb/Layout/ImageBox.h> -#include <LibWeb/Page/Frame.h> +#include <LibWeb/Page/BrowsingContext.h> namespace Web::Layout { @@ -16,12 +16,12 @@ ImageBox::ImageBox(DOM::Document& document, DOM::Element& element, NonnullRefPtr : ReplacedBox(document, element, move(style)) , m_image_loader(image_loader) { - frame().register_viewport_client(*this); + browsing_context().register_viewport_client(*this); } ImageBox::~ImageBox() { - frame().unregister_viewport_client(*this); + browsing_context().unregister_viewport_client(*this); } int ImageBox::preferred_width() const |