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

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

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
« no previous file with comments | « third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp
index d4f9296d8bad7fcb4d1b69be320a362d9346ac36..e6cc3b103b01324e621b9241d2307396364f661e 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp
@@ -36,6 +36,11 @@ TextIteratorTextState::TextIteratorTextState(
const TextIteratorBehavior& behavior)
: behavior_(behavior) {}
+DEFINE_TRACE(TextIteratorTextState) {
+ visitor->Trace(position_node_);
+ visitor->Trace(position_offset_base_node_);
+}
+
UChar TextIteratorTextState::CharacterAt(unsigned index) const {
SECURITY_DCHECK(index < static_cast<unsigned>(length()));
if (!(index < static_cast<unsigned>(length())))
« no previous file with comments | « third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698