mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 14:35:07 +00:00
LibWeb: Add per-Frame EventHandler, handle mouse events recursively
We now handle mouse events by recursing into subframes. This makes links, tooltips, etc, work inside <iframe> content.
This commit is contained in:
parent
896db187e5
commit
d1852b4547
7 changed files with 355 additions and 144 deletions
|
@ -35,6 +35,7 @@ namespace Web {
|
|||
Frame::Frame(Element& host_element, Frame& main_frame)
|
||||
: m_main_frame(main_frame)
|
||||
, m_loader(*this)
|
||||
, m_event_handler({}, *this)
|
||||
, m_host_element(host_element.make_weak_ptr())
|
||||
{
|
||||
}
|
||||
|
@ -42,6 +43,7 @@ Frame::Frame(Element& host_element, Frame& main_frame)
|
|||
Frame::Frame(PageView& page_view)
|
||||
: m_main_frame(*this)
|
||||
, m_loader(*this)
|
||||
, m_event_handler({}, *this)
|
||||
, m_page_view(page_view.make_weak_ptr())
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue