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

Issue 1650543002: Introduce ForwardsTextBuffer and BackwardsTextBuffer (Closed)

Created:
4 years, 10 months ago by Xiaocheng
Modified:
4 years, 10 months ago
Reviewers:
tkent, yosin_UTC9
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce ForwardsTextBuffer and BackwardsTextBuffer The two new classes wrap |WTF::Vector| such that, |ForwardsTextBuffer| allows efficients appending, while |BackwardsTextBuffer| allows efficient prepending, respectively. This is part of a bigger CL [1], which is in turn part of another even bigger CL [2]. [1] https://codereview.chromium.org/1647483003 [2] https://codereview.chromium.org/1604783002 BUG=n/a TEST=webkit_unit_tests --gtest_filter=*TextBufferTest.* Committed: https://crrev.com/4fcb037b7549a5e1ae7a75885978696e2ead225d Cr-Commit-Position: refs/heads/master@{#372918}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Test cases simplified #

Patch Set 3 : Stop the win compiler's complaint #

Messages

Total messages: 18 (6 generated)
Xiaocheng
PTAL.
4 years, 10 months ago (2016-01-29 10:19:36 UTC) #2
yosin_UTC9
Class implementations are good. Please make tests simpler and intuitive. https://codereview.chromium.org/1650543002/diff/1/third_party/WebKit/Source/core/editing/iterators/ForwardsTextBufferTest.cpp File third_party/WebKit/Source/core/editing/iterators/ForwardsTextBufferTest.cpp (right): https://codereview.chromium.org/1650543002/diff/1/third_party/WebKit/Source/core/editing/iterators/ForwardsTextBufferTest.cpp#newcode16 ...
4 years, 10 months ago (2016-02-01 03:40:55 UTC) #3
Xiaocheng
Thanks for the review. https://codereview.chromium.org/1650543002/diff/1/third_party/WebKit/Source/core/editing/iterators/ForwardsTextBufferTest.cpp File third_party/WebKit/Source/core/editing/iterators/ForwardsTextBufferTest.cpp (right): https://codereview.chromium.org/1650543002/diff/1/third_party/WebKit/Source/core/editing/iterators/ForwardsTextBufferTest.cpp#newcode16 third_party/WebKit/Source/core/editing/iterators/ForwardsTextBufferTest.cpp:16: const unsigned numPush = 16; ...
4 years, 10 months ago (2016-02-01 04:36:24 UTC) #4
yosin_UTC9
On 2016/02/01 at 04:36:24, xiaochengh wrote: > Thanks for the review. > > https://codereview.chromium.org/1650543002/diff/1/third_party/WebKit/Source/core/editing/iterators/ForwardsTextBufferTest.cpp > ...
4 years, 10 months ago (2016-02-01 04:46:15 UTC) #5
Xiaocheng
The test cases are simplified. PTAL.
4 years, 10 months ago (2016-02-02 06:26:33 UTC) #6
yosin_UTC9
lgtm Thanks for simplification +tkent@ for core/core.gypi changes.
4 years, 10 months ago (2016-02-02 07:04:51 UTC) #7
tkent
lgtm
4 years, 10 months ago (2016-02-02 07:11:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1650543002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1650543002/20001
4 years, 10 months ago (2016-02-02 07:13:50 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/139439)
4 years, 10 months ago (2016-02-02 08:12:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1650543002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1650543002/40001
4 years, 10 months ago (2016-02-02 09:42:44 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-02 09:49:26 UTC) #16
commit-bot: I haz the power
4 years, 10 months ago (2016-02-02 09:57:01 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4fcb037b7549a5e1ae7a75885978696e2ead225d
Cr-Commit-Position: refs/heads/master@{#372918}

Powered by Google App Engine
This is Rietveld 408576698