| 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 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 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 13 matching lines...) Expand all Loading... |
| 24 #include "core/dom/ExceptionCode.h" | 24 #include "core/dom/ExceptionCode.h" |
| 25 #include "weborigin/KURL.h" | 25 #include "weborigin/KURL.h" |
| 26 #include "wtf/ListHashSet.h" | 26 #include "wtf/ListHashSet.h" |
| 27 #include "wtf/RefCounted.h" | 27 #include "wtf/RefCounted.h" |
| 28 #include "wtf/RefPtr.h" | 28 #include "wtf/RefPtr.h" |
| 29 | 29 |
| 30 namespace WebCore { | 30 namespace WebCore { |
| 31 | 31 |
| 32 class StyleSheetContents; | 32 class StyleSheetContents; |
| 33 | 33 |
| 34 enum CssTextFormattingFlags { QuoteCSSStringIfNeeded, AlwaysQuoteCSSString }; |
| 35 |
| 34 // FIXME: The current CSSValue and subclasses should be turned into internal typ
es (StyleValue). | 36 // FIXME: The current CSSValue and subclasses should be turned into internal typ
es (StyleValue). |
| 35 // The few subtypes that are actually exposed in CSSOM can be seen in the cloneF
orCSSOM() function. | 37 // The few subtypes that are actually exposed in CSSOM can be seen in the cloneF
orCSSOM() function. |
| 36 // They should be handled by separate wrapper classes. | 38 // They should be handled by separate wrapper classes. |
| 37 | 39 |
| 38 // Please don't expose more CSSValue types to the web. | 40 // Please don't expose more CSSValue types to the web. |
| 39 class CSSValue : public RefCounted<CSSValue> { | 41 class CSSValue : public RefCounted<CSSValue> { |
| 40 public: | 42 public: |
| 41 enum Type { | 43 enum Type { |
| 42 CSS_INHERIT = 0, | 44 CSS_INHERIT = 0, |
| 43 CSS_PRIMITIVE_VALUE = 1, | 45 CSS_PRIMITIVE_VALUE = 1, |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 232 |
| 231 template<typename CSSValueType> | 233 template<typename CSSValueType> |
| 232 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C
SSValueType>& second) | 234 inline bool compareCSSValuePtr(const RefPtr<CSSValueType>& first, const RefPtr<C
SSValueType>& second) |
| 233 { | 235 { |
| 234 return first ? second && first->equals(*second) : !second; | 236 return first ? second && first->equals(*second) : !second; |
| 235 } | 237 } |
| 236 | 238 |
| 237 } // namespace WebCore | 239 } // namespace WebCore |
| 238 | 240 |
| 239 #endif // CSSValue_h | 241 #endif // CSSValue_h |
| OLD | NEW |