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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 case CalcTime: | 252 case CalcTime: |
253 return CSS_MS; | 253 return CSS_MS; |
254 case CalcOther: | 254 case CalcOther: |
255 return CSS_UNKNOWN; | 255 return CSS_UNKNOWN; |
256 } | 256 } |
257 return CSS_UNKNOWN; | 257 return CSS_UNKNOWN; |
258 } | 258 } |
259 | 259 |
260 static const AtomicString& propertyName(CSSPropertyID propertyID) | 260 static const AtomicString& propertyName(CSSPropertyID propertyID) |
261 { | 261 { |
| 262 ASSERT_ARG(propertyID, propertyID >= 0); |
| 263 ASSERT_ARG(propertyID, (propertyID >= firstCSSProperty && propertyID < first
CSSProperty + numCSSProperties)); |
| 264 |
| 265 if (propertyID < 0) |
| 266 return nullAtom; |
| 267 |
262 return getPropertyNameAtomicString(propertyID); | 268 return getPropertyNameAtomicString(propertyID); |
263 } | 269 } |
264 | 270 |
265 static const AtomicString& valueName(CSSValueID valueID) | 271 static const AtomicString& valueName(CSSValueID valueID) |
266 { | 272 { |
267 ASSERT_ARG(valueID, valueID >= 0); | 273 ASSERT_ARG(valueID, valueID >= 0); |
268 ASSERT_ARG(valueID, valueID < numCSSValueKeywords); | 274 ASSERT_ARG(valueID, valueID < numCSSValueKeywords); |
269 | 275 |
270 if (valueID < 0) | 276 if (valueID < 0) |
271 return nullAtom; | 277 return nullAtom; |
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 visitor->trace(m_value.shape); | 1224 visitor->trace(m_value.shape); |
1219 break; | 1225 break; |
1220 default: | 1226 default: |
1221 break; | 1227 break; |
1222 } | 1228 } |
1223 #endif | 1229 #endif |
1224 CSSValue::traceAfterDispatch(visitor); | 1230 CSSValue::traceAfterDispatch(visitor); |
1225 } | 1231 } |
1226 | 1232 |
1227 } // namespace blink | 1233 } // namespace blink |
OLD | NEW |