OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef FullyClippedStateStack_h | 5 #ifndef FullyClippedStateStack_h |
6 #define FullyClippedStateStack_h | 6 #define FullyClippedStateStack_h |
7 | 7 |
8 #include "core/editing/EditingStrategy.h" | 8 #include "core/editing/EditingStrategy.h" |
9 #include "core/editing/iterators/BitStack.h" | 9 #include "core/editing/iterators/BitStack.h" |
| 10 #include "wtf/Allocator.h" |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 | 13 |
13 template<typename Strategy> | 14 template<typename Strategy> |
14 class FullyClippedStateStackAlgorithm : public BitStack { | 15 class FullyClippedStateStackAlgorithm final : public BitStack { |
| 16 STACK_ALLOCATED(); |
15 public: | 17 public: |
16 FullyClippedStateStackAlgorithm(); | 18 FullyClippedStateStackAlgorithm(); |
17 ~FullyClippedStateStackAlgorithm(); | 19 ~FullyClippedStateStackAlgorithm(); |
18 | 20 |
19 void pushFullyClippedState(Node*); | 21 void pushFullyClippedState(Node*); |
20 void setUpFullyClippedStack(Node*); | 22 void setUpFullyClippedStack(Node*); |
21 }; | 23 }; |
22 | 24 |
23 extern template class FullyClippedStateStackAlgorithm<EditingStrategy>; | 25 extern template class FullyClippedStateStackAlgorithm<EditingStrategy>; |
24 extern template class FullyClippedStateStackAlgorithm<EditingInComposedTreeStrat
egy>; | 26 extern template class FullyClippedStateStackAlgorithm<EditingInComposedTreeStrat
egy>; |
25 | 27 |
26 using FullyClippedStateStack = FullyClippedStateStackAlgorithm<EditingStrategy>; | 28 using FullyClippedStateStack = FullyClippedStateStackAlgorithm<EditingStrategy>; |
27 | 29 |
28 } // namespace blink | 30 } // namespace blink |
29 | 31 |
30 #endif // FullyClippedStateStack_h | 32 #endif // FullyClippedStateStack_h |
OLD | NEW |