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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h

Issue 2915043004: Put TextIteratorTextNodeHandler and TextIteratorTextState on heap (Closed)
Patch Set: const Member<> Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h
index aeff02db3375801cdcfe6545256cc71dd813ca73..f81bb8fed902e50b89d21c3fbbd61b9589dc192d 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h
@@ -38,9 +38,8 @@ namespace blink {
class LayoutText;
class TextIteratorBehavior;
-class CORE_EXPORT TextIteratorTextState {
- STACK_ALLOCATED();
-
+class CORE_EXPORT TextIteratorTextState
+ : public GarbageCollectedFinalized<TextIteratorTextState> {
public:
explicit TextIteratorTextState(const TextIteratorBehavior&);
~TextIteratorTextState() {}
@@ -79,6 +78,8 @@ class CORE_EXPORT TextIteratorTextState {
unsigned position,
unsigned length_to_append) const;
+ DECLARE_TRACE();
+
private:
int text_length_ = 0;
String text_;

Powered by Google App Engine
This is Rietveld 408576698