mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Avoid including Navigable.h in headers
This greatly reduces how much is recompiled when changing Navigable.h, from >1000 to 82.
This commit is contained in:
parent
7bccd65b4a
commit
eeb5446c1b
Notes:
github-actions[bot]
2025-10-20 09:18:20 +00:00
Author: https://github.com/Lubrsi
Commit: eeb5446c1b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6491
Reviewed-by: https://github.com/AtkinsSJ ✅
55 changed files with 170 additions and 64 deletions
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <LibWeb/Export.h>
|
||||
#include <LibWeb/HTML/HTMLElement.h>
|
||||
#include <LibWeb/HTML/Navigable.h>
|
||||
#include <LibWeb/HTML/InitialInsertion.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
|
@ -39,12 +39,7 @@ public:
|
|||
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#potentially-delays-the-load-event
|
||||
bool currently_delays_the_load_event() const;
|
||||
|
||||
bool content_navigable_has_session_history_entry_and_ready_for_navigation() const
|
||||
{
|
||||
if (!content_navigable())
|
||||
return false;
|
||||
return m_content_navigable->has_session_history_entry_and_ready_for_navigation();
|
||||
}
|
||||
bool content_navigable_has_session_history_entry_and_ready_for_navigation() const;
|
||||
|
||||
protected:
|
||||
NavigableContainer(DOM::Document&, DOM::QualifiedName);
|
||||
|
|
@ -64,12 +59,7 @@ protected:
|
|||
|
||||
void set_potentially_delays_the_load_event(bool value) { m_potentially_delays_the_load_event = value; }
|
||||
|
||||
void set_content_navigable_has_session_history_entry_and_ready_for_navigation()
|
||||
{
|
||||
if (!content_navigable())
|
||||
return;
|
||||
content_navigable()->set_has_session_history_entry_and_ready_for_navigation();
|
||||
}
|
||||
void set_content_navigable_has_session_history_entry_and_ready_for_navigation();
|
||||
|
||||
private:
|
||||
virtual bool is_navigable_container() const override { return true; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue