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

Issue 1308573006: [reland] SegmentedString::push() should always push a char in front (Closed)

Created:
5 years, 3 months ago by kouhei (in TOK)
Modified:
5 years, 3 months ago
Reviewers:
tkent, tasak, yosin_UTC9, tzik
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

[reland] SegmentedString::push() should always push a char in front Reland: Fixed "notEnoughCharacters" not initialized. Before this CL, SegmentedString::push() had an exotic behavior, where two consecutive push would swap its order. This CL changes the push() implementation so that it would always push the new char in front of the SegmentedString. This CL also updates the HTMLEntityParser code which relied on the behavior. BUG=None TEST={SegmentedStringTest,HTMLEntityParserTest}.* Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201294 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201369

Patch Set 1 #

Patch Set 2 : Adding CORE_EXPORT per tasak@ suggestion #

Total comments: 1

Patch Set 3 : fix test / accept yosin@ suggestion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -16 lines) Patch
M Source/core/core.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/parser/HTMLEntityParser.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/html/parser/HTMLEntityParser.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
A Source/core/html/parser/HTMLEntityParserTest.cpp View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M Source/platform/text/SegmentedString.h View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M Source/platform/text/SegmentedStringTest.cpp View 1 chunk +6 lines, -8 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
kouhei (in TOK)
5 years, 3 months ago (2015-08-27 03:50:43 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308573006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308573006/1
5 years, 3 months ago (2015-08-27 03:51:04 UTC) #4
tkent
lgtm
5 years, 3 months ago (2015-08-27 04:18:13 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/113895)
5 years, 3 months ago (2015-08-27 04:31:07 UTC) #7
kouhei (in TOK)
5 years, 3 months ago (2015-08-27 04:39:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308573006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308573006/20001
5 years, 3 months ago (2015-08-27 04:40:17 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=201294
5 years, 3 months ago (2015-08-27 07:27:10 UTC) #13
yosin_UTC9
https://codereview.chromium.org/1308573006/diff/20001/Source/core/html/parser/HTMLEntityParserTest.cpp File Source/core/html/parser/HTMLEntityParserTest.cpp (right): https://codereview.chromium.org/1308573006/diff/20001/Source/core/html/parser/HTMLEntityParserTest.cpp#newcode24 Source/core/html/parser/HTMLEntityParserTest.cpp:24: EXPECT_STREQ(original.ascii().data(), src.toString().ascii().data()); nit: EXPECT_EQ() can accept String. So, you ...
5 years, 3 months ago (2015-08-27 12:50:14 UTC) #15
Peter Beverloo
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1311043004/ by peter@chromium.org. ...
5 years, 3 months ago (2015-08-27 15:33:19 UTC) #16
kouhei (in TOK)
On 2015/08/27 15:33:19, Peter Beverloo wrote: > A revert of this CL (patchset #2 id:20001) ...
5 years, 3 months ago (2015-08-28 02:29:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308573006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308573006/40001
5 years, 3 months ago (2015-08-28 02:30:31 UTC) #20
commit-bot: I haz the power
5 years, 3 months ago (2015-08-28 04:50:12 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201369

Powered by Google App Engine
This is Rietveld 408576698