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

Issue 2915043004: Put TextIteratorTextNodeHandler and TextIteratorTextState on heap (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

Put TextIteratorTextNodeHandler and TextIteratorTextState on heap This patch puts TextIteratorTextNodeHandle and TextIteratorTextState on heap, so that we can use forward declaration, and also opens up possibility for switching them to a Layout NG version. Note: we can't only put TextIteratorTextNodeHandler on heap because it holds a reference to TextIteratorTextState, but an on-heap object cannot hold reference to a stack-allocated object. BUG=721957 TEST=n/a; no behavioral change Review-Url: https://codereview.chromium.org/2915043004 Cr-Commit-Position: refs/heads/master@{#476605} Committed: https://chromium.googlesource.com/chromium/src/+/c7fee9a6165a732a2cb346c9db63ab65adab5398

Patch Set 1 #

Total comments: 6

Patch Set 2 : const Member<> #

Messages

Total messages: 15 (10 generated)
Xiaocheng
PTAL.
3 years, 6 months ago (2017-06-01 20:56:21 UTC) #7
yosin_UTC9
lgtm w/ nits https://codereview.chromium.org/2915043004/diff/1/third_party/WebKit/Source/core/editing/iterators/TextIterator.h File third_party/WebKit/Source/core/editing/iterators/TextIterator.h (right): https://codereview.chromium.org/2915043004/diff/1/third_party/WebKit/Source/core/editing/iterators/TextIterator.h#newcode232 third_party/WebKit/Source/core/editing/iterators/TextIterator.h:232: Member<TextIteratorTextState> text_state_; nit: s/Member/const Member/ https://codereview.chromium.org/2915043004/diff/1/third_party/WebKit/Source/core/editing/iterators/TextIterator.h#newcode235 ...
3 years, 6 months ago (2017-06-02 04:33:03 UTC) #8
Xiaocheng
Thanks for reviewing! https://codereview.chromium.org/2915043004/diff/1/third_party/WebKit/Source/core/editing/iterators/TextIterator.h File third_party/WebKit/Source/core/editing/iterators/TextIterator.h (right): https://codereview.chromium.org/2915043004/diff/1/third_party/WebKit/Source/core/editing/iterators/TextIterator.h#newcode232 third_party/WebKit/Source/core/editing/iterators/TextIterator.h:232: Member<TextIteratorTextState> text_state_; On 2017/06/02 at 04:33:03, ...
3 years, 6 months ago (2017-06-02 05:15:50 UTC) #10
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/2915043004/20001
3 years, 6 months ago (2017-06-02 05:16:09 UTC) #12
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 08:48:29 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/c7fee9a6165a732a2cb346c9db63...

Powered by Google App Engine
This is Rietveld 408576698