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

Issue 2140353002: Move StringView constructors into WTFString.h/AtomicString.h (Closed)

Created:
4 years, 5 months ago by esprehn
Modified:
4 years, 5 months ago
Reviewers:
haraken, Yuta Kitamura
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-wtf_chromium.org, chromium-reviews, dglazkov+blink, Mikhail, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move StringView constructors into WTFString.h/AtomicString.h This will allow String and AtomicString to depend on StringView for methods and arguments, for example making operator== take a StringView to simplify the overload set. I also removed the: StringView(const void* bytes, unsigned length, bool is8Bit) constructor since it could be called by mistake when doing: StringView("foo", 1, 2) trying to do (offset, length) when you're supposed to do StringView("foo" + 1, 2) instead. This had confused me on a couple occasions where I was passing a length and setting is8Bit instead. This constructor is only needed by CSSParserToken so lets just inline it there. BUG=615174 Committed: https://crrev.com/ad01087faacdf31909e80c93bcf11783f99a06a4 Cr-Commit-Position: refs/heads/master@{#404943}

Patch Set 1 #

Patch Set 2 : Remove unused constructor. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -40 lines) Patch
M third_party/WebKit/Source/core/css/parser/CSSParserToken.h View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/text/AtomicString.h View 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringView.h View 1 3 chunks +18 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringView.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringViewTest.cpp View 1 chunk +0 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.h View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
esprehn
4 years, 5 months ago (2016-07-12 22:47:14 UTC) #5
haraken
LGTM
4 years, 5 months ago (2016-07-13 00:07:23 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/2140353002/20001
4 years, 5 months ago (2016-07-13 00:10:10 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_rel_ng on ...
4 years, 5 months ago (2016-07-13 02:16:38 UTC) #16
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/2140353002/20001
4 years, 5 months ago (2016-07-13 02:22:15 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-13 03:08:26 UTC) #19
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 03:08:32 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 03:11:01 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ad01087faacdf31909e80c93bcf11783f99a06a4
Cr-Commit-Position: refs/heads/master@{#404943}

Powered by Google App Engine
This is Rietveld 408576698