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 17 matching lines...) Expand all Loading... |
28 namespace blink { | 28 namespace blink { |
29 | 29 |
30 class CSSCounterValue : public CSSValue { | 30 class CSSCounterValue : public CSSValue { |
31 public: | 31 public: |
32 static PassRefPtrWillBeRawPtr<CSSCounterValue> create(PassRefPtrWillBeRawPtr
<CSSPrimitiveValue> identifier, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> listSt
yle, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> separator) | 32 static PassRefPtrWillBeRawPtr<CSSCounterValue> create(PassRefPtrWillBeRawPtr
<CSSPrimitiveValue> identifier, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> listSt
yle, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> separator) |
33 { | 33 { |
34 return adoptRefWillBeNoop(new CSSCounterValue(identifier, listStyle, sep
arator)); | 34 return adoptRefWillBeNoop(new CSSCounterValue(identifier, listStyle, sep
arator)); |
35 } | 35 } |
36 | 36 |
37 String identifier() const { return m_identifier->getStringValue(); } | 37 String identifier() const { return m_identifier->getStringValue(); } |
38 String listStyle() const { return m_listStyle->cssText(); } | 38 CSSValueID listStyle() const { return m_listStyle->getValueID(); } |
39 String separator() const { return m_separator->getStringValue(); } | 39 String separator() const { return m_separator->getStringValue(); } |
40 | 40 |
41 CSSValueID listStyleIdent() const { return m_listStyle->getValueID(); } | |
42 | |
43 bool equals(const CSSCounterValue& other) const | 41 bool equals(const CSSCounterValue& other) const |
44 { | 42 { |
45 return identifier() == other.identifier() | 43 return identifier() == other.identifier() |
46 && listStyle() == other.listStyle() | 44 && listStyle() == other.listStyle() |
47 && separator() == other.separator(); | 45 && separator() == other.separator(); |
48 } | 46 } |
49 | 47 |
50 String customCSSText() const; | 48 String customCSSText() const; |
51 | 49 |
52 DECLARE_TRACE_AFTER_DISPATCH(); | 50 DECLARE_TRACE_AFTER_DISPATCH(); |
(...skipping 13 matching lines...) Expand all Loading... |
66 RefPtrWillBeMember<CSSPrimitiveValue> m_identifier; // string | 64 RefPtrWillBeMember<CSSPrimitiveValue> m_identifier; // string |
67 RefPtrWillBeMember<CSSPrimitiveValue> m_listStyle; // ident | 65 RefPtrWillBeMember<CSSPrimitiveValue> m_listStyle; // ident |
68 RefPtrWillBeMember<CSSPrimitiveValue> m_separator; // string | 66 RefPtrWillBeMember<CSSPrimitiveValue> m_separator; // string |
69 }; | 67 }; |
70 | 68 |
71 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCounterValue, isCounterValue()); | 69 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCounterValue, isCounterValue()); |
72 | 70 |
73 } // namespace blink | 71 } // namespace blink |
74 | 72 |
75 #endif // CSSCounterValue_h | 73 #endif // CSSCounterValue_h |
OLD | NEW |