OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |