| 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 * | 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 11 matching lines...) Expand all Loading... |
| 22 #define CSSInitialValue_h | 22 #define CSSInitialValue_h |
| 23 | 23 |
| 24 #include "core/css/CSSValue.h" | 24 #include "core/css/CSSValue.h" |
| 25 #include "wtf/PassRefPtr.h" | 25 #include "wtf/PassRefPtr.h" |
| 26 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 | 28 |
| 29 class CSSInitialValue : public CSSValue { | 29 class CSSInitialValue : public CSSValue { |
| 30 public: | 30 public: |
| 31 static CSSInitialValue* create(); | 31 static CSSInitialValue* create(); |
| 32 static CSSInitialValue* createLegacyImplicit(); // crbug.com/471917 | |
| 33 | 32 |
| 34 String customCSSText() const; | 33 String customCSSText() const; |
| 35 | 34 |
| 36 bool isImplicit() const { return m_isImplicit; } | |
| 37 | |
| 38 bool equals(const CSSInitialValue&) const { return true; } | 35 bool equals(const CSSInitialValue&) const { return true; } |
| 39 | 36 |
| 40 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { | 37 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { |
| 41 CSSValue::traceAfterDispatch(visitor); | 38 CSSValue::traceAfterDispatch(visitor); |
| 42 } | 39 } |
| 43 | 40 |
| 44 private: | 41 private: |
| 45 friend class CSSValuePool; | 42 friend class CSSValuePool; |
| 46 | 43 |
| 47 explicit CSSInitialValue(bool implicit) | 44 CSSInitialValue() : CSSValue(InitialClass) {} |
| 48 : CSSValue(InitialClass), m_isImplicit(implicit) {} | |
| 49 | |
| 50 bool m_isImplicit; | |
| 51 }; | 45 }; |
| 52 | 46 |
| 53 DEFINE_CSS_VALUE_TYPE_CASTS(CSSInitialValue, isInitialValue()); | 47 DEFINE_CSS_VALUE_TYPE_CASTS(CSSInitialValue, isInitialValue()); |
| 54 | 48 |
| 55 } // namespace blink | 49 } // namespace blink |
| 56 | 50 |
| 57 #endif // CSSInitialValue_h | 51 #endif // CSSInitialValue_h |
| OLD | NEW |