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

Issue 587173005: Add WTF::String::emptyString16Bit (Closed)

Created:
6 years, 3 months ago by Mathias Hällman
Modified:
6 years, 3 months ago
CC:
blink-reviews, aandrey+blink_chromium.org, mkwst+moarreviews_chromium.org, blink-reviews-wtf_chromium.org, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Add WTF::String::emptyString16Bit. This makes sure WTF::String::make16BitFrom8BitSource returns a 16-bit string, which some callers count on even if the source string happens to be empty. BUG=412032 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182606

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -2 lines) Patch
M Source/wtf/text/StringImpl.h View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M Source/wtf/text/StringStatics.cpp View 1 2 3 1 chunk +10 lines, -1 line 0 comments Download
M Source/wtf/text/WTFString.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/wtf/text/WTFString.cpp View 1 2 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 17 (5 generated)
Mathias Hällman
On 2014/09/22 09:57:18, Mathias Hällman wrote: > mailto:mathiash@opera.com changed reviewers: > + mailto:abarth@chromium.org This issue ...
6 years, 3 months ago (2014-09-22 10:01:10 UTC) #2
Mathias Hällman
6 years, 3 months ago (2014-09-22 10:01:20 UTC) #3
Mikhail
https://codereview.chromium.org/587173005/diff/1/Source/wtf/text/WTFString.cpp File Source/wtf/text/WTFString.cpp (right): https://codereview.chromium.org/587173005/diff/1/Source/wtf/text/WTFString.cpp#newcode1227 Source/wtf/text/WTFString.cpp:1227: return is8Bit ? empty8BitString : empty16BitString; I'm afraid this ...
6 years, 3 months ago (2014-09-22 10:26:18 UTC) #5
Mathias Hällman
On 2014/09/22 10:26:18, Mikhail wrote: > https://codereview.chromium.org/587173005/diff/1/Source/wtf/text/WTFString.cpp > File Source/wtf/text/WTFString.cpp (right): > > https://codereview.chromium.org/587173005/diff/1/Source/wtf/text/WTFString.cpp#newcode1227 > ...
6 years, 3 months ago (2014-09-23 06:25:08 UTC) #6
Mikhail
https://codereview.chromium.org/587173005/diff/20001/Source/wtf/text/StringImpl.h File Source/wtf/text/StringImpl.h (right): https://codereview.chromium.org/587173005/diff/20001/Source/wtf/text/StringImpl.h#newcode134 Source/wtf/text/StringImpl.h:134: , m_is8Bit(tag == ConstructEmpty8BitString) think this is not enough, ...
6 years, 3 months ago (2014-09-23 09:48:10 UTC) #7
Mathias Hällman
On 2014/09/23 09:48:10, Mikhail wrote: > https://codereview.chromium.org/587173005/diff/20001/Source/wtf/text/StringImpl.h > File Source/wtf/text/StringImpl.h (right): > > https://codereview.chromium.org/587173005/diff/20001/Source/wtf/text/StringImpl.h#newcode134 > ...
6 years, 3 months ago (2014-09-23 11:43:36 UTC) #8
aandrey
https://codereview.chromium.org/587173005/diff/40001/Source/wtf/text/StringStatics.cpp File Source/wtf/text/StringStatics.cpp (right): https://codereview.chromium.org/587173005/diff/40001/Source/wtf/text/StringStatics.cpp#newcode40 Source/wtf/text/StringStatics.cpp:40: WTF_ANNOTATE_BENIGN_RACE(&emptyString, "Benign race on StringImpl::emptyString reference counter"); StringImpl::empty https://codereview.chromium.org/587173005/diff/40001/Source/wtf/text/StringStatics.cpp#newcode47 ...
6 years, 3 months ago (2014-09-23 11:50:54 UTC) #10
Mathias Hällman
On 2014/09/23 11:50:54, aandrey wrote: > https://codereview.chromium.org/587173005/diff/40001/Source/wtf/text/StringStatics.cpp > File Source/wtf/text/StringStatics.cpp (right): > > https://codereview.chromium.org/587173005/diff/40001/Source/wtf/text/StringStatics.cpp#newcode40 > ...
6 years, 3 months ago (2014-09-23 12:20:51 UTC) #12
Mathias Hällman
Giving this one a little bump. Is everybody happy with Patch Set 4?
6 years, 3 months ago (2014-09-24 12:00:11 UTC) #13
Mikhail
On 2014/09/24 12:00:11, Mathias Hällman wrote: > Giving this one a little bump. Is everybody ...
6 years, 3 months ago (2014-09-24 13:47:48 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/587173005/60001
6 years, 3 months ago (2014-09-24 14:01:16 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-24 15:09:09 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 182606

Powered by Google App Engine
This is Rietveld 408576698