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

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

Issue 2905233002: Remove the lifetime hack in ImageLoader where it keeps its assoc element alive (Closed)
Patch Set: Rebase Created 3 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
Index: third_party/WebKit/Source/core/html/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index 1165419271c1f0eada9ad19700a394a6cb7e6e9a..a5cf12ef141921ea9f73f9db52defb173e795a6d 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -137,6 +137,10 @@ DEFINE_TRACE(HTMLInputElement) {
TextControlElement::Trace(visitor);
}
+bool HTMLInputElement::HasPendingActivity() const {
+ return ImageLoader() && ImageLoader()->HasPendingActivity();
+}
+
HTMLImageLoader& HTMLInputElement::EnsureImageLoader() {
if (!image_loader_)
image_loader_ = HTMLImageLoader::Create(this);
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.h ('k') | third_party/WebKit/Source/core/html/HTMLInputElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698