mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Update top_level_browsing_context() to use navigables
This commit is contained in:
parent
fda420875d
commit
6942bdcfce
Notes:
sideshowbarker
2024-07-17 08:34:29 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 6942bdcfce
Pull-request: https://github.com/SerenityOS/serenity/pull/18219
9 changed files with 43 additions and 30 deletions
|
@ -142,15 +142,7 @@ public:
|
|||
void scroll_to(CSSPixelPoint);
|
||||
void scroll_to_anchor(DeprecatedString const&);
|
||||
|
||||
BrowsingContext& top_level_browsing_context()
|
||||
{
|
||||
BrowsingContext* context = this;
|
||||
while (context->parent())
|
||||
context = context->parent();
|
||||
return *context;
|
||||
}
|
||||
|
||||
BrowsingContext const& top_level_browsing_context() const { return const_cast<BrowsingContext*>(this)->top_level_browsing_context(); }
|
||||
JS::GCPtr<BrowsingContext> top_level_browsing_context() const;
|
||||
|
||||
enum class WindowType {
|
||||
ExistingOrNone,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue