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

Side by Side Diff: Source/core/css/CSSPrimitiveValue.cpp

Issue 148523016: Move most of the [Pass]RefPtr's of CSSPrimitiveValue to our transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 return pairValue->hasVariableReference(); 1141 return pairValue->hasVariableReference();
1142 if (Quad* quadValue = getQuadValue()) 1142 if (Quad* quadValue = getQuadValue())
1143 return quadValue->hasVariableReference(); 1143 return quadValue->hasVariableReference();
1144 if (Rect* rectValue = getRectValue()) 1144 if (Rect* rectValue = getRectValue())
1145 return rectValue->hasVariableReference(); 1145 return rectValue->hasVariableReference();
1146 if (CSSBasicShape* shapeValue = getShapeValue()) 1146 if (CSSBasicShape* shapeValue = getShapeValue())
1147 return shapeValue->hasVariableReference(); 1147 return shapeValue->hasVariableReference();
1148 return isVariableReference(); 1148 return isVariableReference();
1149 } 1149 }
1150 1150
1151 PassRefPtr<CSSPrimitiveValue> CSSPrimitiveValue::cloneForCSSOM() const 1151 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> CSSPrimitiveValue::cloneForCSSOM() con st
1152 { 1152 {
1153 RefPtr<CSSPrimitiveValue> result; 1153 RefPtrWillBeRawPtr<CSSPrimitiveValue> result;
1154 1154
1155 switch (m_primitiveUnitType) { 1155 switch (m_primitiveUnitType) {
1156 case CSS_STRING: 1156 case CSS_STRING:
1157 case CSS_URI: 1157 case CSS_URI:
1158 case CSS_ATTR: 1158 case CSS_ATTR:
1159 case CSS_COUNTER_NAME: 1159 case CSS_COUNTER_NAME:
1160 result = CSSPrimitiveValue::create(m_value.string, static_cast<UnitTypes >(m_primitiveUnitType)); 1160 result = CSSPrimitiveValue::create(m_value.string, static_cast<UnitTypes >(m_primitiveUnitType));
1161 break; 1161 break;
1162 case CSS_COUNTER: 1162 case CSS_COUNTER:
1163 result = CSSPrimitiveValue::create(m_value.counter->cloneForCSSOM()); 1163 result = CSSPrimitiveValue::create(m_value.counter->cloneForCSSOM());
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 case CSS_CALC: 1310 case CSS_CALC:
1311 visitor->trace(m_value.calc); 1311 visitor->trace(m_value.calc);
1312 break; 1312 break;
1313 default: 1313 default:
1314 break; 1314 break;
1315 } 1315 }
1316 CSSValue::traceAfterDispatch(visitor); 1316 CSSValue::traceAfterDispatch(visitor);
1317 } 1317 }
1318 1318
1319 } // namespace WebCore 1319 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698