mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibWeb: Remove some unnecessary casts
This commit is contained in:
parent
d5d732cc87
commit
821043d798
Notes:
sideshowbarker
2024-07-19 04:58:21 +09:00
Author: https://github.com/kevmeyer
Commit: 821043d798
Pull-request: https://github.com/SerenityOS/serenity/pull/2755
Reviewed-by: https://github.com/awesomekling
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