DescriptionRefactor SVGTextLayoutEngine::currentLogicalCharacterMetrics
The two methods currentLogicalCharacterAttributes and
currentLogicalCharacterMetrics on SVGTextLayoutEngine are very
interdependent, since after calling the former, the latter will be
called.
So fold most of the former into the latter, keeping the bits of the
former that advances to the next layout attribute entry, while
renaming it to nextLogicalAttributes.
The methods are also changed from returning a bool and using out-
variables to return the active SVGTextLayoutAttributes structure
instead.
BUG=607906
Committed: https://crrev.com/cdd3f0264799c6af210ce9e7596b803df92d3cea
Cr-Commit-Position: refs/heads/master@{#390736}
Patch Set 1 #Patch Set 2 : Fix flow and add some comments. #
Total comments: 6
Patch Set 3 : Add ASSERTs #
Messages
Total messages: 15 (6 generated)
|