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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 static void DestroyCounterNode(LayoutObject&, const AtomicString& identifier); | 61 static void DestroyCounterNode(LayoutObject&, const AtomicString& identifier); |
62 static void LayoutObjectSubtreeAttached(LayoutObject*); | 62 static void LayoutObjectSubtreeAttached(LayoutObject*); |
63 static void LayoutObjectSubtreeWillBeDetached(LayoutObject*); | 63 static void LayoutObjectSubtreeWillBeDetached(LayoutObject*); |
64 static void LayoutObjectStyleChanged(LayoutObject&, | 64 static void LayoutObjectStyleChanged(LayoutObject&, |
65 const ComputedStyle* old_style, | 65 const ComputedStyle* old_style, |
66 const ComputedStyle& new_style); | 66 const ComputedStyle& new_style); |
67 | 67 |
68 void UpdateCounter(); | 68 void UpdateCounter(); |
69 | 69 |
70 const char* GetName() const override { return "LayoutCounter"; } | 70 const char* GetName() const override { return "LayoutCounter"; } |
| 71 bool CanBeSelectionLeaf() const final { return false; } |
71 | 72 |
72 protected: | 73 protected: |
73 void WillBeDestroyed() override; | 74 void WillBeDestroyed() override; |
74 | 75 |
75 private: | 76 private: |
76 bool IsOfType(LayoutObjectType type) const override { | 77 bool IsOfType(LayoutObjectType type) const override { |
77 return type == kLayoutObjectCounter || LayoutText::IsOfType(type); | 78 return type == kLayoutObjectCounter || LayoutText::IsOfType(type); |
78 } | 79 } |
79 PassRefPtr<StringImpl> OriginalText() const override; | 80 PassRefPtr<StringImpl> OriginalText() const override; |
80 | 81 |
(...skipping 12 matching lines...) Expand all Loading... |
93 | 94 |
94 } // namespace blink | 95 } // namespace blink |
95 | 96 |
96 #ifndef NDEBUG | 97 #ifndef NDEBUG |
97 // Outside the WebCore namespace for ease of invocation from gdb. | 98 // Outside the WebCore namespace for ease of invocation from gdb. |
98 void showCounterLayoutTree(const blink::LayoutObject*, | 99 void showCounterLayoutTree(const blink::LayoutObject*, |
99 const char* counterName = nullptr); | 100 const char* counterName = nullptr); |
100 #endif | 101 #endif |
101 | 102 |
102 #endif // LayoutCounter_h | 103 #endif // LayoutCounter_h |
OLD | NEW |