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

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

Issue 1303173007: Oilpan: Unship Oilpan from CSSValues Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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') | Source/core/css/CSSImageSetValue.h » ('j') | 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 c8deda1faed2cadad8adcc538d8827c612dcb18c..c73673c47dde2f70af2be52141d470aec82e2930 100644
--- a/Source/core/css/CSSImageGeneratorValue.cpp
+++ b/Source/core/css/CSSImageGeneratorValue.cpp
@@ -45,14 +45,7 @@ CSSImageGeneratorValue::~CSSImageGeneratorValue()
void CSSImageGeneratorValue::addClient(LayoutObject* layoutObject, const IntSize& size)
{
ASSERT(layoutObject);
-#if !ENABLE(OILPAN)
ref();
-#else
- if (m_clients.isEmpty()) {
- ASSERT(!m_keepAlive);
- m_keepAlive = this;
- }
-#endif
if (!size.isEmpty())
m_sizes.add(size);
@@ -84,14 +77,7 @@ void CSSImageGeneratorValue::removeClient(LayoutObject* layoutObject)
if (!--sizeCount.count)
m_clients.remove(layoutObject);
-#if !ENABLE(OILPAN)
deref();
-#else
- if (m_clients.isEmpty()) {
- ASSERT(m_keepAlive);
- m_keepAlive.clear();
- }
-#endif
}
Image* CSSImageGeneratorValue::getImage(LayoutObject* layoutObject, const IntSize& size)
@@ -101,7 +87,7 @@ Image* CSSImageGeneratorValue::getImage(LayoutObject* layoutObject, const IntSiz
SizeAndCount& sizeCount = it->value;
IntSize oldSize = sizeCount.size;
if (oldSize != size) {
- RefPtrWillBeRawPtr<CSSImageGeneratorValue> protect(this);
+ RefPtr<CSSImageGeneratorValue> protect(this);
removeClient(layoutObject);
addClient(layoutObject, size);
}
« no previous file with comments | « Source/core/css/CSSImageGeneratorValue.h ('k') | Source/core/css/CSSImageSetValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698