summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorKevin Meyer <kevinmeyer@me.com>2020-07-10 23:52:06 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-11 11:34:59 +0200
commit821043d798bb180c29d841223ea839a3e7da6dbb (patch)
tree14a7e54dcbff3d02dc3caa6f15f7c9075cf3631f /Libraries
parentd5d732cc873cab40dc74ebe7093aac78a0b61b80 (diff)
downloadserenity-821043d798bb180c29d841223ea839a3e7da6dbb.zip
LibWeb: Remove some unnecessary casts
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibWeb/Frame/EventHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/Frame/EventHandler.cpp b/Libraries/LibWeb/Frame/EventHandler.cpp
index 6c0e804848..f37d24ce86 100644
--- a/Libraries/LibWeb/Frame/EventHandler.cpp
+++ b/Libraries/LibWeb/Frame/EventHandler.cpp
@@ -60,14 +60,14 @@ const LayoutDocument* EventHandler::layout_root() const
{
if (!m_frame.document())
return nullptr;
- return static_cast<LayoutDocument*>(m_frame.document()->layout_node());
+ return m_frame.document()->layout_node();
}
LayoutDocument* EventHandler::layout_root()
{
if (!m_frame.document())
return nullptr;
- return const_cast<LayoutDocument*>(m_frame.document()->layout_node());
+ return m_frame.document()->layout_node();
}
bool EventHandler::handle_mouseup(const Gfx::IntPoint& position, unsigned button, unsigned modifiers)