summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Page/EventHandler.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-22 17:48:04 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-22 20:10:20 +0200
commit86a4eaca389f6ab4f0250c666833cddf34ddcafa (patch)
treee1854ec0e40b472dcd4be915bf5d5424fa201f14 /Libraries/LibWeb/Page/EventHandler.cpp
parent69bbf0285bf6e5ce85956aed3d86075a9ddf65b9 (diff)
downloadserenity-86a4eaca389f6ab4f0250c666833cddf34ddcafa.zip
LibWeb: Rename HTMLIFrameElement::hosted_frame() => content_frame()
This matches the standard API names contentWindow and contentDocument.
Diffstat (limited to 'Libraries/LibWeb/Page/EventHandler.cpp')
-rw-r--r--Libraries/LibWeb/Page/EventHandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibWeb/Page/EventHandler.cpp b/Libraries/LibWeb/Page/EventHandler.cpp
index 3307290e5b..cc54cda41f 100644
--- a/Libraries/LibWeb/Page/EventHandler.cpp
+++ b/Libraries/LibWeb/Page/EventHandler.cpp
@@ -97,7 +97,7 @@ bool EventHandler::handle_mouseup(const Gfx::IntPoint& position, unsigned button
if (result.layout_node && result.layout_node->node()) {
RefPtr<DOM::Node> node = result.layout_node->node();
if (is<HTML::HTMLIFrameElement>(*node)) {
- if (auto* subframe = downcast<HTML::HTMLIFrameElement>(*node).hosted_frame())
+ if (auto* subframe = downcast<HTML::HTMLIFrameElement>(*node).content_frame())
return subframe->event_handler().handle_mouseup(position.translated(compute_mouse_event_offset({}, *result.layout_node)), button, modifiers);
return false;
}
@@ -142,7 +142,7 @@ bool EventHandler::handle_mousedown(const Gfx::IntPoint& position, unsigned butt
return false;
if (is<HTML::HTMLIFrameElement>(*node)) {
- if (auto* subframe = downcast<HTML::HTMLIFrameElement>(*node).hosted_frame())
+ if (auto* subframe = downcast<HTML::HTMLIFrameElement>(*node).content_frame())
return subframe->event_handler().handle_mousedown(position.translated(compute_mouse_event_offset({}, *result.layout_node)), button, modifiers);
return false;
}
@@ -226,7 +226,7 @@ bool EventHandler::handle_mousemove(const Gfx::IntPoint& position, unsigned butt
RefPtr<DOM::Node> node = result.layout_node->node();
if (node && is<HTML::HTMLIFrameElement>(*node)) {
- if (auto* subframe = downcast<HTML::HTMLIFrameElement>(*node).hosted_frame())
+ if (auto* subframe = downcast<HTML::HTMLIFrameElement>(*node).content_frame())
return subframe->event_handler().handle_mousemove(position.translated(compute_mouse_event_offset({}, *result.layout_node)), buttons, modifiers);
return false;
}