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

Issue 2919433006: Stop using TextIteratorBehavior in TextIteratorTextState (Closed)

Created:
3 years, 6 months ago by Xiaocheng
Modified:
3 years, 6 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop using TextIteratorBehavior in TextIteratorTextState This patch removes the dependency on TextIteratorBehavior from TextIteratorTextState. After this patch, TextIteratorTextState becomes a clean class doing exactly what it names suggests: storing the text state. More specifically, it manages only: - The current text - The DOM position of the current text BUG=721957 TEST=n/a; no behavioral change Review-Url: https://codereview.chromium.org/2919433006 Cr-Commit-Position: refs/heads/master@{#476958} Committed: https://chromium.googlesource.com/chromium/src/+/d4fd4e36421025fb37bc556408e6f30b8e94a55a

Patch Set 1 #

Patch Set 2 : Thu Jun 1 18:56:32 PDT 2017 #

Patch Set 3 : Rebased #

Total comments: 4

Patch Set 4 : Sun Jun 4 22:44:20 PDT 2017 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -20 lines) Patch
M third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/iterators/TextIteratorTextNodeHandler.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.h View 1 2 3 2 chunks +1 line, -6 lines 0 comments Download
M third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp View 1 2 3 2 chunks +0 lines, -10 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 20 (15 generated)
Xiaocheng
PTAL.
3 years, 6 months ago (2017-06-05 03:56:25 UTC) #9
yosin_UTC9
lgtm w/ nits Thanks for quick work! I love this patch. https://codereview.chromium.org/2919433006/diff/40001/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp File third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp (right): ...
3 years, 6 months ago (2017-06-05 04:01:42 UTC) #10
Xiaocheng
Thanks for reviewing! https://codereview.chromium.org/2919433006/diff/40001/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp File third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp (right): https://codereview.chromium.org/2919433006/diff/40001/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp#newcode34 third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp:34: TextIteratorTextState::TextIteratorTextState() {} On 2017/06/05 at 04:01:41, ...
3 years, 6 months ago (2017-06-05 05:46:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2919433006/60001
3 years, 6 months ago (2017-06-05 06:44:45 UTC) #17
commit-bot: I haz the power
3 years, 6 months ago (2017-06-05 07:59:15 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/d4fd4e36421025fb37bc556408e6...

Powered by Google App Engine
This is Rietveld 408576698