| 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 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 return 0; | 866 return 0; |
| 867 } | 867 } |
| 868 | 868 |
| 869 return m_value.quad; | 869 return m_value.quad; |
| 870 } | 870 } |
| 871 | 871 |
| 872 PassRefPtrWillBeRawPtr<RGBColor> CSSPrimitiveValue::getRGBColorValue(ExceptionSt
ate& exceptionState) const | 872 PassRefPtrWillBeRawPtr<RGBColor> CSSPrimitiveValue::getRGBColorValue(ExceptionSt
ate& exceptionState) const |
| 873 { | 873 { |
| 874 if (m_primitiveUnitType != CSS_RGBCOLOR) { | 874 if (m_primitiveUnitType != CSS_RGBCOLOR) { |
| 875 exceptionState.throwDOMException(InvalidAccessError, "This object is not
an RGB color value."); | 875 exceptionState.throwDOMException(InvalidAccessError, "This object is not
an RGB color value."); |
| 876 return 0; | 876 return nullptr; |
| 877 } | 877 } |
| 878 | 878 |
| 879 // FIMXE: This should not return a new object for each invocation. | 879 // FIMXE: This should not return a new object for each invocation. |
| 880 return RGBColor::create(m_value.rgbcolor); | 880 return RGBColor::create(m_value.rgbcolor); |
| 881 } | 881 } |
| 882 | 882 |
| 883 Pair* CSSPrimitiveValue::getPairValue(ExceptionState& exceptionState) const | 883 Pair* CSSPrimitiveValue::getPairValue(ExceptionState& exceptionState) const |
| 884 { | 884 { |
| 885 if (m_primitiveUnitType != CSS_PAIR) { | 885 if (m_primitiveUnitType != CSS_PAIR) { |
| 886 exceptionState.throwDOMException(InvalidAccessError, "This object is not
a pair value."); | 886 exceptionState.throwDOMException(InvalidAccessError, "This object is not
a pair value."); |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1278 case CSS_SHAPE: | 1278 case CSS_SHAPE: |
| 1279 visitor->trace(m_value.shape); | 1279 visitor->trace(m_value.shape); |
| 1280 break; | 1280 break; |
| 1281 default: | 1281 default: |
| 1282 break; | 1282 break; |
| 1283 } | 1283 } |
| 1284 CSSValue::traceAfterDispatch(visitor); | 1284 CSSValue::traceAfterDispatch(visitor); |
| 1285 } | 1285 } |
| 1286 | 1286 |
| 1287 } // namespace WebCore | 1287 } // namespace WebCore |
| OLD | NEW |