Index: Source/core/html/HTMLFrameSetElement.cpp |
diff --git a/Source/core/html/HTMLFrameSetElement.cpp b/Source/core/html/HTMLFrameSetElement.cpp |
index 9ec4d6ec5c587fb882b375a66ea1f9fd12c185d3..a65c4bb83a1261098d8a4a99075043fa4fd3102f 100644 |
--- a/Source/core/html/HTMLFrameSetElement.cpp |
+++ b/Source/core/html/HTMLFrameSetElement.cpp |
@@ -34,6 +34,8 @@ |
#include "core/dom/NodeRenderingContext.h" |
#include "core/html/HTMLCollection.h" |
#include "core/html/HTMLFrameElement.h" |
+#include "core/loader/FrameLoaderClient.h" |
+#include "core/page/Frame.h" |
#include "core/platform/Length.h" |
#include "core/rendering/RenderFrameSet.h" |
@@ -197,6 +199,15 @@ void HTMLFrameSetElement::defaultEventHandler(Event* evt) |
HTMLElement::defaultEventHandler(evt); |
} |
+Node::InsertionNotificationRequest HTMLFrameSetElement::insertedInto(ContainerNode* insertionPoint) |
+{ |
+ if (insertionPoint->inDocument() && document()->frame()) { |
+ // A document using <frameset> likely won't literally have a body, but as far as the client is concerned, the frameset is effectively the body. |
+ document()->frame()->loader()->client()->dispatchWillInsertBody(); |
+ } |
+ return HTMLElement::insertedInto(insertionPoint); |
+} |
+ |
void HTMLFrameSetElement::willRecalcStyle(StyleChange) |
{ |
if (needsStyleRecalc() && renderer()) { |