Index: third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp |
index 35c241c8ef912f2ddebc27f7d7a197bc78d7803a..de14f7a56637d737bf52b3e482ddc5cb745a6008 100644 |
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp |
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValue.cpp |
@@ -300,17 +300,11 @@ void CSSPrimitiveValue::init(PassRefPtrWillBeRawPtr<CSSCalcValue> c) |
CSSPrimitiveValue::~CSSPrimitiveValue() |
{ |
- cleanup(); |
-} |
- |
-void CSSPrimitiveValue::cleanup() |
-{ |
+#if !ENABLE(OILPAN) |
switch (type()) { |
case UnitType::Calc: |
// We must not call deref() when oilpan is enabled because m_value.calc is traced. |
-#if !ENABLE(OILPAN) |
m_value.calc->deref(); |
-#endif |
break; |
case UnitType::CalcPercentageWithNumber: |
case UnitType::CalcPercentageWithLength: |
@@ -355,6 +349,7 @@ void CSSPrimitiveValue::cleanup() |
cssTextCache().remove(this); |
m_hasCachedCSSText = false; |
} |
+#endif |
} |
double CSSPrimitiveValue::computeSeconds() const |