Chromium Code Reviews| Index: Source/core/html/HTMLFrameSetElement.cpp |
| diff --git a/Source/core/html/HTMLFrameSetElement.cpp b/Source/core/html/HTMLFrameSetElement.cpp |
| index 9ec4d6ec5c587fb882b375a66ea1f9fd12c185d3..6e74092bfc6d5678d46cd92c9c8945463e134006 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 (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(); |
|
abarth-chromium
2013/06/04 00:48:17
Ok, in the second iteration of this CL, we might w
|
| + } |
| + return HTMLElement::insertedInto(insertionPoint); |
| +} |
| + |
| void HTMLFrameSetElement::willRecalcStyle(StyleChange) |
| { |
| if (needsStyleRecalc() && renderer()) { |