mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-23 09:48:56 +00:00
LibWeb: Move event handling & cursor from BrowsingContext to Navigable
This was a long standing FIXME since the introduction of navigables.
This commit is contained in:
parent
9cd4a65071
commit
0ebfc0a4c4
Notes:
sideshowbarker
2024-07-17 01:46:43 +09:00
Author: https://github.com/awesomekling
Commit: 0ebfc0a4c4
Pull-request: https://github.com/SerenityOS/serenity/pull/24123
26 changed files with 364 additions and 360 deletions
|
@ -7,14 +7,15 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Web {
|
||||
|
||||
class EditEventHandler {
|
||||
public:
|
||||
explicit EditEventHandler(HTML::BrowsingContext& browsing_context)
|
||||
: m_browsing_context(browsing_context)
|
||||
explicit EditEventHandler(HTML::Navigable& navigable)
|
||||
: m_navigable(navigable)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -26,7 +27,7 @@ public:
|
|||
virtual void handle_insert(JS::NonnullGCPtr<DOM::Position>, String);
|
||||
|
||||
private:
|
||||
JS::NonnullGCPtr<HTML::BrowsingContext> m_browsing_context;
|
||||
JS::NonnullGCPtr<HTML::Navigable> m_navigable;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue