OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 2 * Copyright (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
3 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2007, 2008, 2009 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 protected: | 71 protected: |
72 void willBeDestroyed() override; | 72 void willBeDestroyed() override; |
73 | 73 |
74 private: | 74 private: |
75 bool isOfType(LayoutObjectType type) const override { | 75 bool isOfType(LayoutObjectType type) const override { |
76 return type == LayoutObjectCounter || LayoutText::isOfType(type); | 76 return type == LayoutObjectCounter || LayoutText::isOfType(type); |
77 } | 77 } |
78 PassRefPtr<StringImpl> originalText() const override; | 78 PassRefPtr<StringImpl> originalText() const override; |
79 | 79 |
80 // Removes the reference to the CounterNode associated with this layoutObject. | 80 // Removes the reference to the CounterNode associated with this layoutObject. |
81 // This is used to cause a counter display update when the CounterNode tree ch
anges. | 81 // This is used to cause a counter display update when the CounterNode tree |
| 82 // changes. |
82 void invalidate(); | 83 void invalidate(); |
83 | 84 |
84 CounterContent m_counter; | 85 CounterContent m_counter; |
85 CounterNode* m_counterNode; | 86 CounterNode* m_counterNode; |
86 LayoutCounter* m_nextForSameCounter; | 87 LayoutCounter* m_nextForSameCounter; |
87 friend class CounterNode; | 88 friend class CounterNode; |
88 }; | 89 }; |
89 | 90 |
90 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutCounter, isCounter()); | 91 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutCounter, isCounter()); |
91 | 92 |
92 } // namespace blink | 93 } // namespace blink |
93 | 94 |
94 #ifndef NDEBUG | 95 #ifndef NDEBUG |
95 // Outside the WebCore namespace for ease of invocation from gdb. | 96 // Outside the WebCore namespace for ease of invocation from gdb. |
96 void showCounterLayoutTree(const blink::LayoutObject*, | 97 void showCounterLayoutTree(const blink::LayoutObject*, |
97 const char* counterName = nullptr); | 98 const char* counterName = nullptr); |
98 #endif | 99 #endif |
99 | 100 |
100 #endif // LayoutCounter_h | 101 #endif // LayoutCounter_h |
OLD | NEW |