| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 bool equals(const Counter& other) const | 47 bool equals(const Counter& other) const |
| 48 { | 48 { |
| 49 return identifier() == other.identifier() | 49 return identifier() == other.identifier() |
| 50 && listStyle() == other.listStyle() | 50 && listStyle() == other.listStyle() |
| 51 && separator() == other.separator(); | 51 && separator() == other.separator(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 PassRefPtrWillBeRawPtr<Counter> cloneForCSSOM() const | 54 PassRefPtrWillBeRawPtr<Counter> cloneForCSSOM() const |
| 55 { | 55 { |
| 56 return create(m_identifier ? m_identifier->cloneForCSSOM() : 0 | 56 return create(m_identifier ? m_identifier->cloneForCSSOM() : nullptr |
| 57 , m_listStyle ? m_listStyle->cloneForCSSOM() : 0 | 57 , m_listStyle ? m_listStyle->cloneForCSSOM() : nullptr |
| 58 , m_separator ? m_separator->cloneForCSSOM() : 0); | 58 , m_separator ? m_separator->cloneForCSSOM() : nullptr); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void trace(Visitor*); | 61 void trace(Visitor*); |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 Counter(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> identifier, PassRefPtrWill
BeRawPtr<CSSPrimitiveValue> listStyle, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>
separator) | 64 Counter(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> identifier, PassRefPtrWill
BeRawPtr<CSSPrimitiveValue> listStyle, PassRefPtrWillBeRawPtr<CSSPrimitiveValue>
separator) |
| 65 : m_identifier(identifier) | 65 : m_identifier(identifier) |
| 66 , m_listStyle(listStyle) | 66 , m_listStyle(listStyle) |
| 67 , m_separator(separator) | 67 , m_separator(separator) |
| 68 { | 68 { |
| 69 } | 69 } |
| 70 | 70 |
| 71 RefPtrWillBeMember<CSSPrimitiveValue> m_identifier; // string | 71 RefPtrWillBeMember<CSSPrimitiveValue> m_identifier; // string |
| 72 RefPtrWillBeMember<CSSPrimitiveValue> m_listStyle; // ident | 72 RefPtrWillBeMember<CSSPrimitiveValue> m_listStyle; // ident |
| 73 RefPtrWillBeMember<CSSPrimitiveValue> m_separator; // string | 73 RefPtrWillBeMember<CSSPrimitiveValue> m_separator; // string |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace WebCore | 76 } // namespace WebCore |
| 77 | 77 |
| 78 #endif // Counter_h | 78 #endif // Counter_h |
| OLD | NEW |