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

Unified Diff: Source/core/css/CSSImageGeneratorValue.cpp

Issue 1261253004: Oilpan: have CSSImageGeneratorValue use SelfKeepAlive<>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 4 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
« no previous file with comments | « Source/core/css/CSSImageGeneratorValue.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSImageGeneratorValue.cpp
diff --git a/Source/core/css/CSSImageGeneratorValue.cpp b/Source/core/css/CSSImageGeneratorValue.cpp
index 67a8ef400fbf233467e0b59debaadffe2fb00bfa..c8deda1faed2cadad8adcc538d8827c612dcb18c 100644
--- a/Source/core/css/CSSImageGeneratorValue.cpp
+++ b/Source/core/css/CSSImageGeneratorValue.cpp
@@ -50,7 +50,7 @@ void CSSImageGeneratorValue::addClient(LayoutObject* layoutObject, const IntSize
#else
if (m_clients.isEmpty()) {
ASSERT(!m_keepAlive);
- m_keepAlive = adoptPtr(new Persistent<CSSImageGeneratorValue>(this));
+ m_keepAlive = this;
}
#endif
@@ -89,7 +89,7 @@ void CSSImageGeneratorValue::removeClient(LayoutObject* layoutObject)
#else
if (m_clients.isEmpty()) {
ASSERT(m_keepAlive);
- m_keepAlive = nullptr;
+ m_keepAlive.clear();
}
#endif
}
« no previous file with comments | « Source/core/css/CSSImageGeneratorValue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698