mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibWeb: Remove some unnecessary casts
This commit is contained in:
parent
d5d732cc87
commit
821043d798
1 changed files with 2 additions and 2 deletions
|
@ -60,14 +60,14 @@ const LayoutDocument* EventHandler::layout_root() const
|
||||||
{
|
{
|
||||||
if (!m_frame.document())
|
if (!m_frame.document())
|
||||||
return nullptr;
|
return nullptr;
|
||||||
return static_cast<LayoutDocument*>(m_frame.document()->layout_node());
|
return m_frame.document()->layout_node();
|
||||||
}
|
}
|
||||||
|
|
||||||
LayoutDocument* EventHandler::layout_root()
|
LayoutDocument* EventHandler::layout_root()
|
||||||
{
|
{
|
||||||
if (!m_frame.document())
|
if (!m_frame.document())
|
||||||
return nullptr;
|
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)
|
bool EventHandler::handle_mouseup(const Gfx::IntPoint& position, unsigned button, unsigned modifiers)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue