summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-04-20 16:00:42 +0100
committerAndreas Kling <kling@serenityos.org>2023-04-20 20:43:30 +0200
commit754e458d0a0680b0b8388e68ec3856b2c5bda03b (patch)
tree5aa565ba3ea6121d398e3950cfcaf7e8e5b44838 /Userland/Libraries/LibWeb/DOM
parentec37b557773ed46ab5ab38878c304de8c48a53a1 (diff)
downloadserenity-754e458d0a0680b0b8388e68ec3856b2c5bda03b.zip
LibWeb/Layout: Rename Box::{paint => paintable}_box()
It returns a PaintableBox, not a 'PaintBox'.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Element.cpp2
-rw-r--r--Userland/Libraries/LibWeb/DOM/Node.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp
index b7ddbbe169..55f957d747 100644
--- a/Userland/Libraries/LibWeb/DOM/Element.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Element.cpp
@@ -1327,7 +1327,7 @@ static ErrorOr<void> scroll_an_element_into_view(DOM::Element& element, Bindings
if (!layout_node)
return Error::from_string_view("Element has no parent layout node that is a box."sv);
- page->client().page_did_request_scroll_into_view(verify_cast<Layout::Box>(*layout_node).paint_box()->absolute_padding_box_rect());
+ page->client().page_did_request_scroll_into_view(verify_cast<Layout::Box>(*layout_node).paintable_box()->absolute_padding_box_rect());
return {};
}
diff --git a/Userland/Libraries/LibWeb/DOM/Node.cpp b/Userland/Libraries/LibWeb/DOM/Node.cpp
index 337790d04a..0d1bfa1e87 100644
--- a/Userland/Libraries/LibWeb/DOM/Node.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Node.cpp
@@ -1413,7 +1413,7 @@ Painting::PaintableBox const* Node::paint_box() const
return nullptr;
if (!layout_node()->is_box())
return nullptr;
- return static_cast<Layout::Box const&>(*layout_node()).paint_box();
+ return static_cast<Layout::Box const&>(*layout_node()).paintable_box();
}
// https://dom.spec.whatwg.org/#queue-a-mutation-record