mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibWeb: Remove unnecessary const_cast
s from TextPaintable
This commit is contained in:
parent
cbe78454fc
commit
e7add9abc6
Notes:
github-actions[bot]
2025-01-31 12:38:14 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/e7add9abc69 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3416
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ TextPaintable::DispatchEventOfSameName TextPaintable::handle_mousedown(Badge<Eve
|
|||
if (!label)
|
||||
return DispatchEventOfSameName::No;
|
||||
const_cast<Layout::Label*>(label)->handle_mousedown_on_label({}, position, button);
|
||||
const_cast<HTML::Navigable&>(*navigable()).event_handler().set_mouse_event_tracking_paintable(this);
|
||||
navigable()->event_handler().set_mouse_event_tracking_paintable(this);
|
||||
return DispatchEventOfSameName::Yes;
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ TextPaintable::DispatchEventOfSameName TextPaintable::handle_mouseup(Badge<Event
|
|||
return DispatchEventOfSameName::No;
|
||||
|
||||
const_cast<Layout::Label*>(label)->handle_mouseup_on_label({}, position, button);
|
||||
const_cast<HTML::Navigable&>(*navigable()).event_handler().set_mouse_event_tracking_paintable(nullptr);
|
||||
navigable()->event_handler().set_mouse_event_tracking_paintable(nullptr);
|
||||
return DispatchEventOfSameName::Yes;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue