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
Review-Url: https://codereview.chromium.org/2160943002
Cr-Commit-Position: refs/heads/master@{#406465}
3 files changed