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

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 frame presence 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 | « LayoutTests/http/tests/misc/resources/slow-frame-with-image.php ('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..ecf8fe79bfb2ee5d1c31331bfaf8fde10c948ba0 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"
@@ -55,6 +57,8 @@ HTMLFrameSetElement::HTMLFrameSetElement(const QualifiedName& tagName, Document*
ASSERT(hasTagName(framesetTag));
ScriptWrappable::init(this);
setHasCustomStyleCallbacks();
+ if (document->frame())
+ document->frame()->loader()->client()->dispatchWillInsertBody();
abarth-chromium 2013/06/03 23:29:50 You want to hook HTMLFrameSetElement::insertedInto
}
PassRefPtr<HTMLFrameSetElement> HTMLFrameSetElement::create(const QualifiedName& tagName, Document* document)
« no previous file with comments | « LayoutTests/http/tests/misc/resources/slow-frame-with-image.php ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698