| 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
|
|
|