DescriptionDrop SVGTextChunk::m_boxes
Since text chunks are now processed as they are formed, the m_boxes in
SVGTextChunk is of little use, and just means an additional copy is
needed. Drop it and use the range passed into handleTextChunk directly
instead.
This requires moving SVGTextChunk::calculateLength to
SVGTextChunkBuilder.cpp, so do that and put it in a helper class.
Also changing from passing <vector,startIndex,endIndex> to just passing
two (vector) iterators describing the start and end in the vector.
In SVGTextChunkBuilder::handleTextChunk, drop a redundant test
(!boxCount), and move the code that recalculates the chunk extent after
applying spacing adjustments for 'textLength' up into the relevant
branch.
BUG=486669
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196229
Patch Set 1 #
Total comments: 8
Patch Set 2 : Pass reference. #
Messages
Total messages: 14 (4 generated)
|