mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Remove obsolete PlatformObject::global_object() API
This commit is contained in:
parent
02a56f6480
commit
ade4fc1779
Notes:
github-actions[bot]
2024-09-07 09:39:57 +00:00
Author: https://github.com/ADKaster
Commit: ade4fc1779
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1293
Reviewed-by: https://github.com/awesomekling
2 changed files with 0 additions and 9 deletions
|
@ -30,12 +30,6 @@ JS::Realm& PlatformObject::realm() const
|
||||||
return shape().realm();
|
return shape().realm();
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: remove this
|
|
||||||
HTML::Window& PlatformObject::global_object() const
|
|
||||||
{
|
|
||||||
return verify_cast<HTML::Window>(realm().global_object());
|
|
||||||
}
|
|
||||||
|
|
||||||
// https://webidl.spec.whatwg.org/#dfn-named-property-visibility
|
// https://webidl.spec.whatwg.org/#dfn-named-property-visibility
|
||||||
JS::ThrowCompletionOr<bool> PlatformObject::is_named_property_exposed_on_object(JS::PropertyKey const& property_key) const
|
JS::ThrowCompletionOr<bool> PlatformObject::is_named_property_exposed_on_object(JS::PropertyKey const& property_key) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,9 +30,6 @@ public:
|
||||||
|
|
||||||
JS::Realm& realm() const;
|
JS::Realm& realm() const;
|
||||||
|
|
||||||
// FIXME: This should return a type that works in both window and worker contexts.
|
|
||||||
HTML::Window& global_object() const;
|
|
||||||
|
|
||||||
// https://webidl.spec.whatwg.org/#implements
|
// https://webidl.spec.whatwg.org/#implements
|
||||||
// This is implemented by overrides that get generated by the WEB_PLATFORM_OBJECT macro.
|
// This is implemented by overrides that get generated by the WEB_PLATFORM_OBJECT macro.
|
||||||
[[nodiscard]] virtual bool implements_interface(String const&) const { return false; }
|
[[nodiscard]] virtual bool implements_interface(String const&) const { return false; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue