diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp b/Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp index 0b40fc808a..7842d9ffcc 100644 --- a/Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp +++ b/Userland/Libraries/LibWeb/HTML/BrowsingContextContainer.cpp @@ -103,4 +103,13 @@ const DOM::Document* BrowsingContextContainer::get_svg_document() const return nullptr; } +HTML::Window* BrowsingContextContainer::content_window() const +{ + // FIXME: This should return the WindowProxy + auto* document = content_document(); + if (!document) + return nullptr; + return const_cast<HTML::Window*>(&document->window()); +} + } |