DescriptionTrack if textLength spacing is in effect while walking the line box tree
Instead of calling parentDefinesTextLength() in
layoutTextOnLineOrPath(), keep a flag updated as we traverse the line
box tree. This eliminates the walk up the ancestor-chain, but more
importantly it avoids checking this for each text box.
To make this easier, layoutCharactersInTextBoxes() is moved from
SVGRootInlineBox to SVGTextLayoutEngine. This allows simplifying
SVGTextLayoutEngine::beginTextPathLayout a bit to make it more
independent.
Gives roughly a 1% speedup on separate-x.svg from the bug, when run
through PerfTestRunner.measurePageLoadTime.
BUG=486669
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196158
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|