Home | History | Annotate | Download | only in rendering

Lines Matching full:range

712 float cummulatedWidthOfInlineBoxCharacterRange(SVGInlineBoxCharacterRange& range)
714 ASSERT(!range.isOpen());
715 ASSERT(range.isClosed());
716 ASSERT(range.box->isInlineTextBox());
718 InlineTextBox* textBox = static_cast<InlineTextBox*>(range.box);
722 return style->font().floatWidth(svgTextRunForInlineTextBox(text->characters() + textBox->start() + range.startOffset, range.endOffset - range.startOffset, style, textBox, 0));
725 float cummulatedHeightOfInlineBoxCharacterRange(SVGInlineBoxCharacterRange& range)
727 ASSERT(!range.isOpen());
728 ASSERT(range.isClosed());
729 ASSERT(range.box->isInlineTextBox());
731 InlineTextBox* textBox = static_cast<InlineTextBox*>(range.box);
735 return (range.endOffset - range.startOffset) * (font.ascent() + font.descent());
763 SVGInlineBoxCharacterRange& range = *it;
765 SVGInlineTextBox* box = static_cast<SVGInlineTextBox*>(range.box);
768 for (int i = range.startOffset; i < range.endOffset; ++i) {
775 Vector<SVGChar>::iterator endSearch = charIt + range.endOffset - i;
788 subRange.box = range.box;
797 // Calculate gap between the previous & current range
881 SVGInlineBoxCharacterRange& range = *boxIt;
883 InlineBox* curBox = range.box;
1483 // Start new character range for the first chunk
1495 SVGInlineBoxCharacterRange& range = info.chunk.boxes.last();
1496 if (range.isOpen()) {
1497 range.box = curr;
1498 range.startOffset = (i == 0 ? 0 : i - 1);
1501 fprintf(stderr, " | -> Range is open! box=%p, startOffset=%i\n", range.box, range.startOffset);
1521 // Close mid chunk & character range
1522 ASSERT(!range.isOpen());
1523 ASSERT(!range.isClosed());
1525 range.endOffset = i;
1529 fprintf(stderr, " | -> Close mid-text chunk, at endOffset: %i and starting new mid chunk!\n", range.endOffset);
1540 SVGInlineBoxCharacterRange& range = info.chunk.boxes.last();
1549 range.box = curr;
1550 range.startOffset = i;
1552 ASSERT(!range.isOpen());
1553 ASSERT(!range.isClosed());
1568 SVGInlineBoxCharacterRange& range = info.chunk.boxes.last();
1569 if (!range.isOpen() && !range.isClosed()) {
1571 fprintf(stderr, " -> Last range not closed - closing with endOffset: %i\n", length);
1574 // Current text chunk is not yet closed. Finish the current range, but don't start a new chunk.
1575 range.endOffset = length;
1592 // Just start a new character range
1596 fprintf(stderr, " -> Next character does NOT start a new chunk! Starting new character range...\n");
1660 SVGInlineBoxCharacterRange& range = *boxIt; i++;
1661 fprintf(stderr, " -> RANGE %i STARTOFFSET: %i, ENDOFFSET: %i, BOX: %p\n", i, range.startOffset, range.endOffset, range.box);
1747 SVGInlineBoxCharacterRange& range = *boxIt;
1749 ASSERT(range.box->isInlineTextBox());
1750 SVGInlineTextBox* rangeTextBox = static_cast<SVGInlineTextBox*>(range.box);
1753 chunkOffset += range.endOffset - range.startOffset;
1761 lastNotifiedBox = range.box;
1762 walker->start(range.box);
1765 if (prevBox && prevBox != range.box) {
1766 lastNotifiedBox = range.box;
1773 unsigned int length = range.endOffset - range.startOffset;
1781 (*walker)(rangeTextBox, range.startOffset, curChunk.ctm, itCharBegin, itCharEnd);
1783 if (walker->setupBackground(range.box))
1784 (*walker)(rangeTextBox, range.startOffset, curChunk.ctm, itCharBegin, itCharEnd);
1786 if (walker->setupFill(range.box))
1787 (*walker)(rangeTextBox, range.startOffset, curChunk.ctm, itCharBegin, itCharEnd);
1789 if (walker->setupFillSelection(range.box))
1790 (*walker)(rangeTextBox, range.startOffset, curChunk.ctm, itCharBegin, itCharEnd);
1792 if (walker->setupStroke(range.box))
1793 (*walker)(rangeTextBox, range.startOffset, curChunk.ctm, itCharBegin, itCharEnd);
1795 if (walker->setupStrokeSelection(range.box))
1796 (*walker)(rangeTextBox, range.startOffset, curChunk.ctm, itCharBegin, itCharEnd);
1798 if (walker->setupForeground(range.box))
1799 (*walker)(rangeTextBox, range.startOffset, curChunk.ctm, itCharBegin, itCharEnd);
1806 prevBox = range.box;