|
@@ -36,6 +36,7 @@
|
|
#include <LibWeb/DOM/Window.h>
|
|
#include <LibWeb/DOM/Window.h>
|
|
#include <LibWeb/Dump.h>
|
|
#include <LibWeb/Dump.h>
|
|
#include <LibWeb/HTML/AttributeNames.h>
|
|
#include <LibWeb/HTML/AttributeNames.h>
|
|
|
|
+#include <LibWeb/HTML/BrowsingContext.h>
|
|
#include <LibWeb/HTML/EventLoop/EventLoop.h>
|
|
#include <LibWeb/HTML/EventLoop/EventLoop.h>
|
|
#include <LibWeb/HTML/EventNames.h>
|
|
#include <LibWeb/HTML/EventNames.h>
|
|
#include <LibWeb/HTML/HTMLAnchorElement.h>
|
|
#include <LibWeb/HTML/HTMLAnchorElement.h>
|
|
@@ -56,7 +57,6 @@
|
|
#include <LibWeb/Layout/TreeBuilder.h>
|
|
#include <LibWeb/Layout/TreeBuilder.h>
|
|
#include <LibWeb/Namespace.h>
|
|
#include <LibWeb/Namespace.h>
|
|
#include <LibWeb/Origin.h>
|
|
#include <LibWeb/Origin.h>
|
|
-#include <LibWeb/Page/BrowsingContext.h>
|
|
|
|
#include <LibWeb/Page/Page.h>
|
|
#include <LibWeb/Page/Page.h>
|
|
#include <LibWeb/SVG/TagNames.h>
|
|
#include <LibWeb/SVG/TagNames.h>
|
|
#include <LibWeb/UIEvents/EventNames.h>
|
|
#include <LibWeb/UIEvents/EventNames.h>
|
|
@@ -300,13 +300,13 @@ void Document::set_title(const String& title)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-void Document::attach_to_browsing_context(Badge<BrowsingContext>, BrowsingContext& browsing_context)
|
|
|
|
|
|
+void Document::attach_to_browsing_context(Badge<HTML::BrowsingContext>, HTML::BrowsingContext& browsing_context)
|
|
{
|
|
{
|
|
m_browsing_context = browsing_context;
|
|
m_browsing_context = browsing_context;
|
|
update_layout();
|
|
update_layout();
|
|
}
|
|
}
|
|
|
|
|
|
-void Document::detach_from_browsing_context(Badge<BrowsingContext>, BrowsingContext& browsing_context)
|
|
|
|
|
|
+void Document::detach_from_browsing_context(Badge<HTML::BrowsingContext>, HTML::BrowsingContext& browsing_context)
|
|
{
|
|
{
|
|
VERIFY(&browsing_context == m_browsing_context);
|
|
VERIFY(&browsing_context == m_browsing_context);
|
|
tear_down_layout_tree();
|
|
tear_down_layout_tree();
|