DescriptionSimplify logical iteration in SVGTextLayoutEngine
By replacing m_logicalCharacterOffset == logicalTextNode->textLength()
by the corresponding metrics list equivalent, it becomes obvious that
we're just checking the same thing twice in succession. Remove the first
check and block of code.
Also reverse the test in the loop and refactor to avoid the 'continue'
when skipping whitespace.
The second part of the disjunction (w/ logicalMetrics.isEmpty()) does
not do anything useful, so is removed. This makes the condition match
what SVGTextLayoutAttributesBuilder does (which is the intention.)
BUG=607906
Committed: https://crrev.com/2f349013b11f8906316b41de2867f253a81ad147
Cr-Commit-Position: refs/heads/master@{#391281}
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|