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

Unified Diff: Source/core/html/HTMLFrameSetElement.cpp

Issue 16140024: Fix resource scheduling on documents with <frameset>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Check inDocument Created 7 years, 6 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/HTMLFrameSetElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()) {
« no previous file with comments | « Source/core/html/HTMLFrameSetElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698