Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1176)

Unified Diff: Source/core/html/parser/HTMLConstructionSite.cpp

Issue 16140024: Fix resource scheduling on documents with <frameset>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/parser/HTMLConstructionSite.h ('k') | Source/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLConstructionSite.cpp
diff --git a/Source/core/html/parser/HTMLConstructionSite.cpp b/Source/core/html/parser/HTMLConstructionSite.cpp
index 171d1d3e2f00e36c732e24041ad1b47d0794ea12..37f9edcbb5219b73275688ba79bfa03058391bb6 100644
--- a/Source/core/html/parser/HTMLConstructionSite.cpp
+++ b/Source/core/html/parser/HTMLConstructionSite.cpp
@@ -481,6 +481,16 @@ void HTMLConstructionSite::insertHTMLFormElement(AtomicHTMLToken* token, bool is
m_openElements.push(HTMLStackItem::create(m_form, token));
}
+void HTMLConstructionSite::insertHTMLFramesetElement(AtomicHTMLToken* token)
+{
+ ASSERT(element->hasTagName(framesetTag));
+ insertHTMLElement(token);
+ if (Frame* frame = m_document->frame()) {
+ // A document with frames won't literally have a body, but the frameset is effectively the body.
+ frame->loader()->client()->dispatchWillInsertBody();
abarth-chromium 2013/06/03 22:12:46 This is a bad dependency. We want it to be possib
+ }
+}
+
void HTMLConstructionSite::insertHTMLElement(AtomicHTMLToken* token)
{
RefPtr<Element> element = createHTMLElement(token);
« no previous file with comments | « Source/core/html/parser/HTMLConstructionSite.h ('k') | Source/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698