Chromium Code Reviews
DescriptionFix whitespace handling in parseSimpleTransformList
The loop would break if there was any trailing whitespace after the
args of the transform operation function, but this meant that if you
put a space between the functions like 'translateX(1px) translateY(1px)'
you'd fall out of the fast path when hitting the space between the
two functions. Any trailing space would similarly fall out of the fast
path and result in wasting all of the work building the transform list
only to discard it.
This patch instead skips whitespace between the functions and also adds
a bunch of tests for the fast paths.
BUG=606211
Committed: https://crrev.com/5f88403bf3e53a955cee48e172269d0ed94f2595
Cr-Commit-Position: refs/heads/master@{#395610}
Patch Set 1 #Patch Set 2 : only transform tests for now. #
Messages
Total messages: 19 (10 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||