| Index: Source/core/html/HTMLInputElement.cpp
|
| diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
|
| index 1d97194ccb36804bb4c08e50ad3ffafbc6f647d7..bf3eee5c0dd5cd2a23070ae0b8bd867293923e21 100644
|
| --- a/Source/core/html/HTMLInputElement.cpp
|
| +++ b/Source/core/html/HTMLInputElement.cpp
|
| @@ -149,11 +149,11 @@ void HTMLInputElement::trace(Visitor* visitor)
|
| HTMLTextFormControlElement::trace(visitor);
|
| }
|
|
|
| -HTMLImageLoader* HTMLInputElement::imageLoader()
|
| +HTMLImageLoader& HTMLInputElement::ensureImageLoader()
|
| {
|
| if (!m_imageLoader)
|
| m_imageLoader = HTMLImageLoader::create(this);
|
| - return m_imageLoader.get();
|
| + return *m_imageLoader;
|
| }
|
|
|
| void HTMLInputElement::didAddUserAgentShadowRoot(ShadowRoot&)
|
| @@ -1482,7 +1482,7 @@ void HTMLInputElement::removedFrom(ContainerNode* insertionPoint)
|
|
|
| void HTMLInputElement::didMoveToNewDocument(Document& oldDocument)
|
| {
|
| - if (hasImageLoader())
|
| + if (imageLoader())
|
| imageLoader()->elementDidMoveToNewDocument();
|
|
|
| // FIXME: Remove type check.
|
|
|