1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:27:45 +00:00

LibWeb: Remove unused code

The code that used these helpers has been moved a while ago to PageHost.
This commit is contained in:
Sebastian Zaha 2023-07-21 16:46:43 +02:00 committed by Andreas Kling
parent 152ce88984
commit 065c8cefb8
2 changed files with 0 additions and 17 deletions

View file

@ -130,20 +130,6 @@ EventHandler::EventHandler(Badge<HTML::BrowsingContext>, HTML::BrowsingContext&
EventHandler::~EventHandler() = default; EventHandler::~EventHandler() = default;
Layout::Viewport const* EventHandler::layout_root() const
{
if (!m_browsing_context->active_document())
return nullptr;
return m_browsing_context->active_document()->layout_node();
}
Layout::Viewport* EventHandler::layout_root()
{
if (!m_browsing_context->active_document())
return nullptr;
return m_browsing_context->active_document()->layout_node();
}
Painting::PaintableBox* EventHandler::paint_root() Painting::PaintableBox* EventHandler::paint_root()
{ {
if (!m_browsing_context->active_document()) if (!m_browsing_context->active_document())

View file

@ -51,9 +51,6 @@ private:
}; };
Optional<Target> target_for_mouse_position(CSSPixelPoint position); Optional<Target> target_for_mouse_position(CSSPixelPoint position);
Layout::Viewport* layout_root();
Layout::Viewport const* layout_root() const;
Painting::PaintableBox* paint_root(); Painting::PaintableBox* paint_root();
Painting::PaintableBox const* paint_root() const; Painting::PaintableBox const* paint_root() const;