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

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

Issue 715633005: Rename HTMLInputElement::imageLoader() to ensureImageLoader() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing part Created 6 years, 1 month 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/HTMLInputElement.h ('k') | Source/core/html/forms/ImageInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « Source/core/html/HTMLInputElement.h ('k') | Source/core/html/forms/ImageInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698