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

Issue 2025503002: Revert of Expand WTF::StringView's API to be more like StringPiece. (Closed)

Created:
4 years, 6 months ago by sof
Modified:
4 years, 6 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-wtf_chromium.org, chromium-reviews, dglazkov+blink, dshwang, eae+blinkwatch, jchaffraix+rendering, kinuko+watch, leviw+renderwatch, Mikhail, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Expand WTF::StringView's API to be more like StringPiece. (patchset #12 id:220001 of https://codereview.chromium.org/2007103003/ ) Reason for revert: Many a heap-buffer-overflow ASan failures, https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20ASAN/builds/24329 Original issue's description: > Expand WTF::StringView's API to be more like StringPiece. > > StringView no longer owns the string passed into it, and can now wrap > a raw ptr to some characters. > > This allows us to leverage the inline strlen optimization where the > compiler will embed the length of literal strings into the binary. It > also allows the deletion many overloaded methods that used to take > an LChar*, UChar* or String and can now just take a StringView instead. > > For example the two constructors in TextRun are now a single one that > takes a StringView. This needed to be done in this patch to avoid > ambiguous constructors. > > Future patches will replace CSSParserString with StringView, and also > vastly simplify the huge number of overloads on various methods. We'll > also expand the API surface of StringView to include the many useful > operations that StringPiece has. > > BUG=615174 > > Committed: https://crrev.com/330deea56e27bc760fa52101040a51428bb7f582 > Cr-Commit-Position: refs/heads/master@{#396493} TBR=haraken@chromium.org,jyasskin@chromium.org,yutak@chromium.org,esprehn@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=615174 Committed: https://crrev.com/c70d00665c49b700f2e4f5795044cce1812e6ef9 Cr-Commit-Position: refs/heads/master@{#396641}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -593 lines) Patch
M third_party/WebKit/Source/core/css/parser/CSSParserString.h View 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLSrcsetParser.h View 3 chunks +5 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutListMarker.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp View 2 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp View 2 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/testing/MockHyphenation.cpp View 1 chunk +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/testing/UnionTypesTest.cpp View 1 chunk +5 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/animation/TimingFunction.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebString.cpp View 2 chunks +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp View 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/text/TextRun.h View 2 chunks +27 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/text/mac/HyphenationMac.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/Forward.h View 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringBuilder.h View 4 chunks +27 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringView.h View 1 chunk +70 lines, -151 lines 0 comments Download
D third_party/WebKit/Source/wtf/text/StringView.cpp View 1 chunk +0 lines, -55 lines 0 comments Download
D third_party/WebKit/Source/wtf/text/StringViewTest.cpp View 1 chunk +0 lines, -326 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.h View 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/wtf.gypi View 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebString.h View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
sof
Created Revert of Expand WTF::StringView's API to be more like StringPiece.
4 years, 6 months ago (2016-05-28 11:38:06 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2025503002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2025503002/1
4 years, 6 months ago (2016-05-28 11:38:13 UTC) #3
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/platform/mhtml/MHTMLArchive.cpp: While running git apply --index -3 -p1; error: patch ...
4 years, 6 months ago (2016-05-28 11:38:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2025503002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2025503002/1
4 years, 6 months ago (2016-05-28 11:52:01 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-05-28 11:52:48 UTC) #9
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/c70d00665c49b700f2e4f5795044cce1812e6ef9 Cr-Commit-Position: refs/heads/master@{#396641}
4 years, 6 months ago (2016-05-28 11:54:08 UTC) #11
haraken
4 years, 6 months ago (2016-05-28 16:01:56 UTC) #12
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698