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); |