LibWeb: Move EditEventHandler's inclusion to EventHandler.cpp

We can get away with using the forward declaration of EditEventHandler
in the header file (and avoid ~1k rebuilt files when EditEventHandler is
modified).

There will be an upcoming DragAndDropEventHandler class, so this patch
just sets things up so that the edit and drag-and-drop event handlers
are stored the same way in EventHandler.
This commit is contained in:
Timothy Flynn 2024-08-17 12:58:58 -04:00 committed by Andreas Kling
commit b6c99c27af
Notes: github-actions[bot] 2024-08-19 11:31:10 +00:00
2 changed files with 1 additions and 3 deletions

View file

@ -18,6 +18,7 @@
#include <LibWeb/HTML/HTMLMediaElement.h>
#include <LibWeb/HTML/HTMLVideoElement.h>
#include <LibWeb/Layout/Viewport.h>
#include <LibWeb/Page/EditEventHandler.h>
#include <LibWeb/Page/EventHandler.h>
#include <LibWeb/Page/Page.h>
#include <LibWeb/Painting/PaintableBox.h>

View file

@ -13,7 +13,6 @@
#include <LibJS/Heap/Cell.h>
#include <LibJS/Heap/GCPtr.h>
#include <LibWeb/Forward.h>
#include <LibWeb/Page/EditEventHandler.h>
#include <LibWeb/PixelUnits.h>
#include <LibWeb/UIEvents/KeyCode.h>
@ -35,8 +34,6 @@ public:
void set_mouse_event_tracking_paintable(Painting::Paintable*);
void set_edit_event_handler(NonnullOwnPtr<EditEventHandler> value) { m_edit_event_handler = move(value); }
void handle_paste(String const& text);
void visit_edges(JS::Cell::Visitor& visitor) const;