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() { CSSValue::traceAfterDispatch(visitor)
; } | 37 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { CSSValue::traceAfterDispatch(visitor)
; } |
41 | 38 |
42 private: | 39 private: |
43 friend class CSSValuePool; | 40 friend class CSSValuePool; |
44 | 41 |
45 explicit CSSInitialValue(bool implicit) | 42 explicit CSSInitialValue() |
46 : CSSValue(InitialClass) | 43 : CSSValue(InitialClass) |
47 , m_isImplicit(implicit) | |
48 { | 44 { |
49 } | 45 } |
50 | |
51 bool m_isImplicit; | |
52 }; | 46 }; |
53 | 47 |
54 DEFINE_CSS_VALUE_TYPE_CASTS(CSSInitialValue, isInitialValue()); | 48 DEFINE_CSS_VALUE_TYPE_CASTS(CSSInitialValue, isInitialValue()); |
55 | 49 |
56 } // namespace blink | 50 } // namespace blink |
57 | 51 |
58 #endif // CSSInitialValue_h | 52 #endif // CSSInitialValue_h |
OLD | NEW |