• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/WebCore-7537.78.1/dom/

Lines Matching defs:box

481     for (InlineTextBox *box = textRenderer->firstTextBox(); box; box = box->nextTextBox()) {
482 int start = box->start();
483 int end = box->start() + box->len();
490 result += box->len();
673 for (InlineTextBox* box = textRenderer->firstTextBox(); box; box = box->nextTextBox()) {
674 if (textOffset <= box->start() + box->len()) {
675 if (textOffset > box->start())
680 if (box == lastTextBox || textOffset != box->start() + box->len() + 1)
683 // The text continues on the next line only if the last text box is not on this line and
687 InlineBox* otherBox = box;
696 otherBox = box;
720 // FIXME: This function should never be called when the line box tree is dirty. See https://bugs.webkit.org/show_bug.cgi?id=97264
797 for (InlineTextBox* box = textRenderer->firstTextBox(); box; box = box->nextTextBox()) {
798 if (textOffset <= box->end()) {
799 if (textOffset >= box->start())
804 if (box == lastTextBox || textOffset != box->start() + box->len())
807 // The text continues on the next line only if the last text box is not on this line and
811 InlineBox* otherBox = box;
820 otherBox = box;
952 for (InlineTextBox *box = textRenderer->firstTextBox(); box; box = box->nextTextBox()) {
953 if (m_offset < static_cast<int>(box->start()) && !textRenderer->containsReversedText()) {
959 if (box->containsCaretOffset(m_offset))
977 for (InlineTextBox* box = textRenderer->firstTextBox(); box; box = box->nextTextBox()) {
978 if (m_offset < static_cast<int>(box->start()) && !textRenderer->containsReversedText()) {
984 if (m_offset >= static_cast<int>(box->start()) && m_offset < static_cast<int>(box->start() + box->len()))
1149 for (InlineTextBox* box = toRenderText(next)->firstTextBox(); box; box = box->nextTextBox()) {
1150 int caretMinOffset = box->caretMinOffset();
1152 match = box;
1212 InlineTextBox* box;
1215 for (box = textRenderer->firstTextBox(); box; box = box->nextTextBox()) {
1216 int caretMinOffset = box->caretMinOffset();
1217 int caretMaxOffset = box->caretMaxOffset();
1219 if (caretOffset < caretMinOffset || caretOffset > caretMaxOffset || (caretOffset == caretMaxOffset && box->isLineBreak()))
1223 inlineBox = box;
1229 || (caretOffset == caretMaxOffset && box->nextLeafChild() && box->nextLeafChild()->isLineBreak()))
1232 candidate = box;
1235 box = searchAheadForBetterMatch(textRenderer);
1236 if (box)
1237 caretOffset = box->caretMinOffset();
1239 inlineBox = box ? box : candidate;