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

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

Issue 2905233002: Remove the lifetime hack in ImageLoader where it keeps its assoc element alive (Closed)
Patch Set: Leak Expectation 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/HTMLPlugInElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
index b92ac1bcfeb61c2c162d02c210672c1e7cc8a79a..b0e6761547ba337aeb9d59880d988480b75e836b 100644
--- a/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp
@@ -96,6 +96,10 @@ DEFINE_TRACE(HTMLPlugInElement) {
HTMLFrameOwnerElement::Trace(visitor);
}
+bool HTMLPlugInElement::HasPendingActivity() const {
+ return image_loader_ && image_loader_->HasPendingActivity();
+}
+
void HTMLPlugInElement::SetPersistedPlugin(PluginView* plugin) {
if (persisted_plugin_ == plugin)
return;

Powered by Google App Engine
This is Rietveld 408576698