DescriptionDon't use consume() in CSSTokenizer when ignoring the return value.
consume() (the no argument version) does a bunch of work handling out of bounds
access, NUL replacement characters, and returning the char. Many of the callers
just want to increment the offset. We could do that by replacing the call sites
with consume(1) which is the "fast" version that doesn't have a return value,
but it'd make the code more clear to just inline advance() in the right spots.
BUG=605792
Committed: https://crrev.com/c0d8da0516d76101a420989d2fc9ce9444c21c32
Cr-Commit-Position: refs/heads/master@{#402328}
Patch Set 1 #
Total comments: 1
Messages
Total messages: 14 (7 generated)
|