mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 17:29:01 +00:00
LibWeb: Remove uses of obsolete PlatformObject::global_object()
This API is a relic from the time when it was important for objects to have easy access to the Window, and to know it was the global object. We now have more spec-related concepts like relevant_global_object and current_global_object to pull the Window out of thin air.
This commit is contained in:
parent
4df280689b
commit
02a56f6480
Notes:
github-actions[bot]
2024-09-07 09:40:02 +00:00
Author: https://github.com/ADKaster
Commit: 02a56f6480
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1293
Reviewed-by: https://github.com/awesomekling
10 changed files with 36 additions and 28 deletions
|
@ -46,6 +46,9 @@ private:
|
|||
virtual void initialize(JS::Realm&) override;
|
||||
|
||||
void click(double x, double y, UIEvents::MouseButton);
|
||||
|
||||
HTML::Window& internals_window() const;
|
||||
Page& internals_page() const;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue