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

Issue 2160943002: Use CSSTokenizerInputStream::peekWithoutReplacement instead of peek(). (Closed)

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

Description

Use CSSTokenizerInputStream::peekWithoutReplacement instead of peek(). nextInputChar() is the only caller of peek() that wants NUL replacement, lets have all other callers use peekWithoutReplacement and skip a branch instead. This leaves only nextInputChar() calling peek(0) which lets us merge peek into nextInputChar and since the lookaheadOffset is always 0 we can also simplify the code. BUG=605792 Committed: https://crrev.com/a11575f6ecbe2f649a64f6727382f80a9c4c9880 Cr-Commit-Position: refs/heads/master@{#406465}

Patch Set 1 #

Patch Set 2 : checks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -37 lines) Patch
M third_party/WebKit/Source/core/css/parser/CSSTokenizer.cpp View 11 chunks +30 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.h View 1 1 chunk +15 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.cpp View 2 chunks +0 lines, -9 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
esprehn
4 years, 5 months ago (2016-07-19 07:12:14 UTC) #11
esprehn
ping :)
4 years, 5 months ago (2016-07-20 00:40:41 UTC) #14
Timothy Loh
On 2016/07/20 00:40:41, esprehn wrote: > ping :) lgtm
4 years, 5 months ago (2016-07-20 02:05:28 UTC) #15
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/2160943002/20001
4 years, 5 months ago (2016-07-20 02:15:35 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-20 02:20:33 UTC) #18
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 02:22:54 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a11575f6ecbe2f649a64f6727382f80a9c4c9880
Cr-Commit-Position: refs/heads/master@{#406465}

Powered by Google App Engine
This is Rietveld 408576698