Chromium Code Reviews
DescriptionUse 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. #
Messages
Total messages: 20 (14 generated)
|
|||||||||||||||||||||||||||||||||||||