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, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 Counter* counter; | 378 Counter* counter; |
379 Rect* rect; | 379 Rect* rect; |
380 Quad* quad; | 380 Quad* quad; |
381 unsigned rgbcolor; | 381 unsigned rgbcolor; |
382 Pair* pair; | 382 Pair* pair; |
383 CSSBasicShape* shape; | 383 CSSBasicShape* shape; |
384 CSSCalcValue* calc; | 384 CSSCalcValue* calc; |
385 } m_value; | 385 } m_value; |
386 }; | 386 }; |
387 | 387 |
388 inline CSSPrimitiveValue* toCSSPrimitiveValue(CSSValue* value) | 388 DEFINE_CSS_VALUE_TYPE_CASTS(PrimitiveValue); |
389 { | |
390 ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isPrimitiveValue()); | |
391 return static_cast<CSSPrimitiveValue*>(value); | |
392 } | |
393 | |
394 inline const CSSPrimitiveValue* toCSSPrimitiveValue(const CSSValue* value) | |
395 { | |
396 ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isPrimitiveValue()); | |
397 return static_cast<const CSSPrimitiveValue*>(value); | |
398 } | |
399 | |
400 // Catch unneeded cast. | |
401 void toCSSPrimitiveValue(const CSSPrimitiveValue*); | |
402 | 389 |
403 } // namespace WebCore | 390 } // namespace WebCore |
404 | 391 |
405 #endif // CSSPrimitiveValue_h | 392 #endif // CSSPrimitiveValue_h |
OLD | NEW |