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 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1134 } | 1134 } |
1135 | 1135 |
1136 ASSERT(!cssTextCache().contains(this)); | 1136 ASSERT(!cssTextCache().contains(this)); |
1137 cssTextCache().set(this, text); | 1137 cssTextCache().set(this, text); |
1138 m_hasCachedCSSText = true; | 1138 m_hasCachedCSSText = true; |
1139 return text; | 1139 return text; |
1140 } | 1140 } |
1141 | 1141 |
1142 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> CSSPrimitiveValue::cloneForCSSOM() con
st | 1142 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> CSSPrimitiveValue::cloneForCSSOM() con
st |
1143 { | 1143 { |
1144 RefPtrWillBeRawPtr<CSSPrimitiveValue> result; | 1144 RefPtrWillBeRawPtr<CSSPrimitiveValue> result = nullptr; |
1145 | 1145 |
1146 switch (m_primitiveUnitType) { | 1146 switch (m_primitiveUnitType) { |
1147 case CSS_STRING: | 1147 case CSS_STRING: |
1148 case CSS_URI: | 1148 case CSS_URI: |
1149 case CSS_ATTR: | 1149 case CSS_ATTR: |
1150 case CSS_COUNTER_NAME: | 1150 case CSS_COUNTER_NAME: |
1151 result = CSSPrimitiveValue::create(m_value.string, static_cast<UnitTypes
>(m_primitiveUnitType)); | 1151 result = CSSPrimitiveValue::create(m_value.string, static_cast<UnitTypes
>(m_primitiveUnitType)); |
1152 break; | 1152 break; |
1153 case CSS_COUNTER: | 1153 case CSS_COUNTER: |
1154 result = CSSPrimitiveValue::create(m_value.counter->cloneForCSSOM()); | 1154 result = CSSPrimitiveValue::create(m_value.counter->cloneForCSSOM()); |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1315 case CSS_SHAPE: | 1315 case CSS_SHAPE: |
1316 visitor->trace(m_value.shape); | 1316 visitor->trace(m_value.shape); |
1317 break; | 1317 break; |
1318 default: | 1318 default: |
1319 break; | 1319 break; |
1320 } | 1320 } |
1321 CSSValue::traceAfterDispatch(visitor); | 1321 CSSValue::traceAfterDispatch(visitor); |
1322 } | 1322 } |
1323 | 1323 |
1324 } // namespace WebCore | 1324 } // namespace WebCore |
OLD | NEW |