DescriptionSimplify the computation of the value list position
The value list position is updated by one for each character, and not at
all when spaces are skipped (collapsed).
Currently this is achieved by using currentPosition (the offset in the
text node, in code units) as the base and then subtract the number of
skipped spaces and the number of surrogates. I.e +0 for skipped spaces
and +1 for surrogates (which occupy two code units) and other
characters.
We can simplify this to a simple increment for every "full" trip of the
iteration, and do away with the dependent counters.
BUG=594058
Patch Set 1 #
Depends on Patchset: |