LibWeb: Remove some unnecessary casts

This commit is contained in:
Kevin Meyer 2020-07-10 23:52:06 +02:00 committed by Andreas Kling
parent d5d732cc87
commit 821043d798
Notes: sideshowbarker 2024-07-19 04:58:21 +09:00

View file

@ -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)