summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Page
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-04-20 16:01:16 +0100
committerAndreas Kling <kling@serenityos.org>2023-04-20 20:43:30 +0200
commitd58b671ff6520ea35bd75a8f4dae19f4b4eecbab (patch)
tree1a4e368437486c1c6bb7a9fd0d8a21fd62fa54b2 /Userland/Libraries/LibWeb/Page
parent754e458d0a0680b0b8388e68ec3856b2c5bda03b (diff)
downloadserenity-d58b671ff6520ea35bd75a8f4dae19f4b4eecbab.zip
LibWeb/DOM: Rename Node::{paint => paintable}_box()
It returns a PaintableBox, not a 'PaintBox'.
Diffstat (limited to 'Userland/Libraries/LibWeb/Page')
-rw-r--r--Userland/Libraries/LibWeb/Page/EventHandler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibWeb/Page/EventHandler.cpp b/Userland/Libraries/LibWeb/Page/EventHandler.cpp
index 63b3779dcf..922ab7132c 100644
--- a/Userland/Libraries/LibWeb/Page/EventHandler.cpp
+++ b/Userland/Libraries/LibWeb/Page/EventHandler.cpp
@@ -146,14 +146,14 @@ Painting::PaintableBox* EventHandler::paint_root()
{
if (!m_browsing_context->active_document())
return nullptr;
- return const_cast<Painting::PaintableBox*>(m_browsing_context->active_document()->paint_box());
+ return const_cast<Painting::PaintableBox*>(m_browsing_context->active_document()->paintable_box());
}
Painting::PaintableBox const* EventHandler::paint_root() const
{
if (!m_browsing_context->active_document())
return nullptr;
- return const_cast<Painting::PaintableBox*>(m_browsing_context->active_document()->paint_box());
+ return const_cast<Painting::PaintableBox*>(m_browsing_context->active_document()->paintable_box());
}
bool EventHandler::handle_mousewheel(CSSPixelPoint position, unsigned button, unsigned buttons, unsigned int modifiers, int wheel_delta_x, int wheel_delta_y)
@@ -385,7 +385,7 @@ bool EventHandler::handle_mousedown(CSSPixelPoint position, unsigned button, uns
}
// NOTE: Dispatching an event may have disturbed the world.
- if (!paint_root() || paint_root() != node->document().paint_box())
+ if (!paint_root() || paint_root() != node->document().paintable_box())
return true;
if (button == GUI::MouseButton::Primary) {
@@ -499,7 +499,7 @@ bool EventHandler::handle_mousemove(CSSPixelPoint position, unsigned buttons, un
auto page_offset = compute_mouse_event_page_offset(client_offset);
node->dispatch_event(UIEvents::MouseEvent::create_from_platform_event(node->realm(), UIEvents::EventNames::mousemove, offset, client_offset, page_offset, buttons).release_value_but_fixme_should_propagate_errors());
// NOTE: Dispatching an event may have disturbed the world.
- if (!paint_root() || paint_root() != node->document().paint_box())
+ if (!paint_root() || paint_root() != node->document().paintable_box())
return true;
}
if (m_in_mouse_selection) {
@@ -589,7 +589,7 @@ bool EventHandler::handle_doubleclick(CSSPixelPoint position, unsigned button, u
node->dispatch_event(UIEvents::MouseEvent::create_from_platform_event(node->realm(), UIEvents::EventNames::dblclick, offset, client_offset, page_offset, buttons, button).release_value_but_fixme_should_propagate_errors());
// NOTE: Dispatching an event may have disturbed the world.
- if (!paint_root() || paint_root() != node->document().paint_box())
+ if (!paint_root() || paint_root() != node->document().paintable_box())
return true;
if (button == GUI::MouseButton::Primary) {