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

Unified Diff: Source/WebCore/html/HTMLInputElement.cpp

Issue 12573007: Merge 145423 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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/WebCore/html/HTMLInputElement.h ('k') | Source/WebCore/html/ImageInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/html/HTMLInputElement.cpp
===================================================================
--- Source/WebCore/html/HTMLInputElement.cpp (revision 146140)
+++ Source/WebCore/html/HTMLInputElement.cpp (working copy)
@@ -47,6 +47,7 @@
#include "HTMLCollection.h"
#include "HTMLDataListElement.h"
#include "HTMLFormElement.h"
+#include "HTMLImageLoader.h"
#include "HTMLNames.h"
#include "HTMLOptionElement.h"
#include "HTMLParserIdioms.h"
@@ -147,6 +148,13 @@
return inputElement.release();
}
+HTMLImageLoader* HTMLInputElement::imageLoader()
+{
+ if (!m_imageLoader)
+ m_imageLoader = adoptPtr(new HTMLImageLoader(this));
+ return m_imageLoader.get();
+}
+
void HTMLInputElement::didAddUserAgentShadowRoot(ShadowRoot*)
{
m_inputType->createShadowSubtree();
@@ -1514,7 +1522,9 @@
void HTMLInputElement::didMoveToNewDocument(Document* oldDocument)
{
- m_inputType->willMoveToNewOwnerDocument();
+ if (hasImageLoader())
+ imageLoader()->elementDidMoveToNewDocument();
+
bool needsSuspensionCallback = this->needsSuspensionCallback();
if (oldDocument) {
// Always unregister for cache callbacks when leaving a document, even if we would otherwise like to be registered
« no previous file with comments | « Source/WebCore/html/HTMLInputElement.h ('k') | Source/WebCore/html/ImageInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698