Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: Source/core/editing/iterators/FullyClippedStateStack.h

Issue 1306003002: Make classes and structures in core/editing fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698