mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-25 09:30:01 +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
|
|
@ -156,7 +156,7 @@ WebIDL::ExceptionOr<GC::Ptr<WindowProxy>> Window::window_open_steps(StringView u
|
|||
return nullptr;
|
||||
|
||||
// 17. If noopener is true or windowType is "new with no opener", then return null.
|
||||
if (no_opener == TokenizedFeature::NoOpener::Yes || window_type == Navigable::WindowType::NewWithNoOpener)
|
||||
if (no_opener == TokenizedFeature::NoOpener::Yes || window_type == WindowType::NewWithNoOpener)
|
||||
return nullptr;
|
||||
|
||||
// 18. Return targetNavigable's active WindowProxy.
|
||||
|
|
@ -254,7 +254,7 @@ WebIDL::ExceptionOr<Window::OpenedWindow> Window::window_open_steps_internal(Str
|
|||
return OpenedWindow {};
|
||||
|
||||
// 15. If windowType is either "new and unrestricted" or "new with no opener", then:
|
||||
if (window_type == Navigable::WindowType::NewAndUnrestricted || window_type == Navigable::WindowType::NewWithNoOpener) {
|
||||
if (window_type == WindowType::NewAndUnrestricted || window_type == WindowType::NewWithNoOpener) {
|
||||
// 1. Set targetNavigable's active browsing context's is popup to the result of checking if a popup window is requested, given tokenizedFeatures.
|
||||
target_navigable->active_browsing_context()->set_is_popup(check_if_a_popup_window_is_requested(tokenized_features));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue