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

Issue 2903693005: Introduce a wrapper class to handle text node in TextIterator (Closed)

Created:
3 years, 7 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

Introduce a wrapper class to handle text node in TextIterator This patch adds (in-place) a wrapper class for the text node handling code in TextIterator. With this patch, TextIterator doesn't need to know the details of the text layout, so it can switch to Layout NG easier. A follow-up patch will remove the wrapper class to dedicated files. BUG=721957 TEST=n/a; no behavioral changes Review-Url: https://codereview.chromium.org/2903693005 Cr-Commit-Position: refs/heads/master@{#475411} Committed: https://chromium.googlesource.com/chromium/src/+/8d639e9e2ac1811b38e6bacc13e73049b27750f4

Patch Set 1 #

Total comments: 11

Patch Set 2 : Thu May 25 16:38:58 PDT 2017 #

Patch Set 3 : Thu May 25 17:26:18 PDT 2017 #

Patch Set 4 : Thu May 25 17:35:21 PDT 2017 #

Patch Set 5 : Thu May 25 17:36:28 PDT 2017 #

Total comments: 6

Patch Set 6 : Fri May 26 14:55:33 PDT 2017 #

Total comments: 4

Patch Set 7 : Sun May 28 22:55:59 PDT 2017 #

Total comments: 4

Patch Set 8 : Mon May 29 01:57:14 PDT 2017 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -80 lines) Patch
M third_party/WebKit/Source/core/editing/iterators/TextIterator.h View 1 2 3 4 5 6 7 5 chunks +101 lines, -42 lines 0 comments Download
M third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp View 1 2 3 4 5 6 7 16 chunks +57 lines, -38 lines 2 comments Download

Messages

Total messages: 43 (27 generated)
Xiaocheng
PTAL.
3 years, 7 months ago (2017-05-25 06:14:47 UTC) #5
yosin_UTC9
https://codereview.chromium.org/2903693005/diff/1/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp File third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp (right): https://codereview.chromium.org/2903693005/diff/1/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp#newcode158 third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp:158: : start_offset_(0), Initialization of member variables should be done ...
3 years, 7 months ago (2017-05-25 06:44:09 UTC) #6
Xiaocheng
Thanks for reviewing. Do you have an idea of any better class name? I'm not ...
3 years, 7 months ago (2017-05-25 23:47:58 UTC) #11
Xiaocheng
I've renamed it into TextIteratorTextNodeHandler, which aligns with TextIteratorTextState. Other than its verbosity, the name ...
3 years, 7 months ago (2017-05-26 00:38:15 UTC) #12
yosin_UTC9
https://codereview.chromium.org/2903693005/diff/80001/third_party/WebKit/Source/core/editing/iterators/TextIterator.h File third_party/WebKit/Source/core/editing/iterators/TextIterator.h (right): https://codereview.chromium.org/2903693005/diff/80001/third_party/WebKit/Source/core/editing/iterators/TextIterator.h#newcode60 third_party/WebKit/Source/core/editing/iterators/TextIterator.h:60: TextIteratorTextState&); nit: s/TextIteratorState&/TextIterator*/ https://codereview.chromium.org/2903693005/diff/80001/third_party/WebKit/Source/core/editing/iterators/TextIterator.h#newcode140 third_party/WebKit/Source/core/editing/iterators/TextIterator.h:140: }; nit: We should ...
3 years, 7 months ago (2017-05-26 01:47:25 UTC) #13
Xiaocheng
https://codereview.chromium.org/2903693005/diff/80001/third_party/WebKit/Source/core/editing/iterators/TextIterator.h File third_party/WebKit/Source/core/editing/iterators/TextIterator.h (right): https://codereview.chromium.org/2903693005/diff/80001/third_party/WebKit/Source/core/editing/iterators/TextIterator.h#newcode60 third_party/WebKit/Source/core/editing/iterators/TextIterator.h:60: TextIteratorTextState&); On 2017/05/26 at 01:47:25, yosin_UTC9 wrote: > nit: ...
3 years, 7 months ago (2017-05-26 21:56:39 UTC) #15
yosin_UTC9
https://codereview.chromium.org/2903693005/diff/100001/third_party/WebKit/Source/core/editing/iterators/TextIterator.h File third_party/WebKit/Source/core/editing/iterators/TextIterator.h (right): https://codereview.chromium.org/2903693005/diff/100001/third_party/WebKit/Source/core/editing/iterators/TextIterator.h#newcode55 third_party/WebKit/Source/core/editing/iterators/TextIterator.h:55: class TextIteratorTextNodeHandler { nit: s/{/final {/ https://codereview.chromium.org/2903693005/diff/100001/third_party/WebKit/Source/core/editing/iterators/TextIterator.h#newcode139 third_party/WebKit/Source/core/editing/iterators/TextIterator.h:139: TextIteratorTextState* ...
3 years, 6 months ago (2017-05-29 04:46:06 UTC) #23
Xiaocheng
https://codereview.chromium.org/2903693005/diff/100001/third_party/WebKit/Source/core/editing/iterators/TextIterator.h File third_party/WebKit/Source/core/editing/iterators/TextIterator.h (right): https://codereview.chromium.org/2903693005/diff/100001/third_party/WebKit/Source/core/editing/iterators/TextIterator.h#newcode55 third_party/WebKit/Source/core/editing/iterators/TextIterator.h:55: class TextIteratorTextNodeHandler { On 2017/05/29 at 04:46:05, yosin_UTC9 wrote: ...
3 years, 6 months ago (2017-05-29 06:00:43 UTC) #26
yosin_UTC9
https://codereview.chromium.org/2903693005/diff/120001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp File third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp (right): https://codereview.chromium.org/2903693005/diff/120001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp#newcode196 third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp:196: void TextIteratorTextNodeHandler::SetBoundaries(Node* start_container, This function name can be misleading, ...
3 years, 6 months ago (2017-05-29 06:42:31 UTC) #27
Xiaocheng
https://codereview.chromium.org/2903693005/diff/120001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp File third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp (right): https://codereview.chromium.org/2903693005/diff/120001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp#newcode196 third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp:196: void TextIteratorTextNodeHandler::SetBoundaries(Node* start_container, On 2017/05/29 at 06:42:31, yosin_UTC9 wrote: ...
3 years, 6 months ago (2017-05-29 07:01:38 UTC) #28
yosin_UTC9
https://codereview.chromium.org/2903693005/diff/120001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp File third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp (right): https://codereview.chromium.org/2903693005/diff/120001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp#newcode196 third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp:196: void TextIteratorTextNodeHandler::SetBoundaries(Node* start_container, On 2017/05/29 at 07:01:37, Xiaocheng wrote: ...
3 years, 6 months ago (2017-05-29 07:43:56 UTC) #29
Xiaocheng
Updated. PTAL. https://codereview.chromium.org/2903693005/diff/120001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp File third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp (right): https://codereview.chromium.org/2903693005/diff/120001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp#newcode196 third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp:196: void TextIteratorTextNodeHandler::SetBoundaries(Node* start_container, On 2017/05/29 at 07:43:56, ...
3 years, 6 months ago (2017-05-29 08:59:29 UTC) #34
yosin_UTC9
lgtm w/ nit https://codereview.chromium.org/2903693005/diff/140001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp File third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp (right): https://codereview.chromium.org/2903693005/diff/140001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp#newcode201 third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp:201: DCHECK(!start_container_); nit: Please add DCHECK(start_container) and ...
3 years, 6 months ago (2017-05-29 09:12:59 UTC) #35
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/2903693005/140001
3 years, 6 months ago (2017-05-30 02:59:34 UTC) #39
Xiaocheng
https://codereview.chromium.org/2903693005/diff/140001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp File third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp (right): https://codereview.chromium.org/2903693005/diff/140001/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp#newcode201 third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp:201: DCHECK(!start_container_); On 2017/05/29 at 09:12:59, yosin_UTC9 wrote: > nit: ...
3 years, 6 months ago (2017-05-30 03:01:49 UTC) #40
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 03:03:42 UTC) #43
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/8d639e9e2ac1811b38e6bacc13e7...

Powered by Google App Engine
This is Rietveld 408576698