| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 case CalcTime: | 185 case CalcTime: |
| 186 return UnitType::Milliseconds; | 186 return UnitType::Milliseconds; |
| 187 case CalcOther: | 187 case CalcOther: |
| 188 return UnitType::Unknown; | 188 return UnitType::Unknown; |
| 189 } | 189 } |
| 190 return UnitType::Unknown; | 190 return UnitType::Unknown; |
| 191 } | 191 } |
| 192 | 192 |
| 193 static const AtomicString& valueName(CSSValueID valueID) | 193 static const AtomicString& valueName(CSSValueID valueID) |
| 194 { | 194 { |
| 195 ASSERT_ARG(valueID, valueID >= 0); | 195 DCHECK_GE(valueID, 0); |
| 196 ASSERT_ARG(valueID, valueID < numCSSValueKeywords); | 196 DCHECK_LT(valueID, numCSSValueKeywords); |
| 197 | 197 |
| 198 if (valueID < 0) | 198 if (valueID < 0) |
| 199 return nullAtom; | 199 return nullAtom; |
| 200 | 200 |
| 201 static AtomicString* keywordStrings = new AtomicString[numCSSValueKeywords];
// Leaked intentionally. | 201 static AtomicString* keywordStrings = new AtomicString[numCSSValueKeywords];
// Leaked intentionally. |
| 202 AtomicString& keywordString = keywordStrings[valueID]; | 202 AtomicString& keywordString = keywordStrings[valueID]; |
| 203 if (keywordString.isNull()) | 203 if (keywordString.isNull()) |
| 204 keywordString = getValueName(valueID); | 204 keywordString = getValueName(valueID); |
| 205 return keywordString; | 205 return keywordString; |
| 206 } | 206 } |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 visitor->trace(m_value.calc); | 836 visitor->trace(m_value.calc); |
| 837 break; | 837 break; |
| 838 default: | 838 default: |
| 839 break; | 839 break; |
| 840 } | 840 } |
| 841 #endif | 841 #endif |
| 842 CSSValue::traceAfterDispatch(visitor); | 842 CSSValue::traceAfterDispatch(visitor); |
| 843 } | 843 } |
| 844 | 844 |
| 845 } // namespace blink | 845 } // namespace blink |
| OLD | NEW |