Lines Matching defs:chunk
97 // Build chunk style flags.
138 SVGTextChunk chunk(chunkStyle, desiredTextLength);
140 Vector<SVGInlineTextBox*>& boxes = chunk.boxes();
144 m_textChunks.append(chunk);
147 void SVGTextChunkBuilder::processTextChunk(const SVGTextChunk& chunk)
149 bool processTextLength = chunk.hasDesiredTextLength();
150 bool processTextAnchor = chunk.hasTextAnchor();
154 const Vector<SVGInlineTextBox*>& boxes = chunk.boxes();
159 // Calculate absolute length of whole text chunk (starting from text box 'start', spanning 'length' text boxes).
162 chunk.calculateLength(chunkLength, chunkCharacters);
164 bool isVerticalText = chunk.isVerticalText();
166 if (chunk.hasLengthAdjustSpacing()) {
167 float textLengthShift = (chunk.desiredTextLength() - chunkLength) / chunkCharacters;
176 ASSERT(chunk.hasLengthAdjustSpacingAndGlyphs());
177 float textLengthScale = chunk.desiredTextLength() / chunkLength;
200 // If we previously applied a lengthAdjust="spacing" correction, we have to recalculate the chunk length, to be able to apply the text-anchor shift.
201 if (processTextLength && chunk.hasLengthAdjustSpacing()) {
204 chunk.calculateLength(chunkLength, chunkCharacters);
207 float textAnchorShift = chunk.calculateTextAnchorShift(chunkLength);