Lines Matching refs:inlineBox
995 void Position::getInlineBoxAndOffset(EAffinity affinity, InlineBox*& inlineBox, int& caretOffset) const
997 getInlineBoxAndOffset(affinity, primaryDirection(), inlineBox, caretOffset);
1057 void Position::getInlineBoxAndOffset(EAffinity affinity, TextDirection primaryDirection, InlineBox*& inlineBox, int& caretOffset) const
1063 inlineBox = 0;
1075 equivalent.getInlineBoxAndOffset(UPSTREAM, primaryDirection, inlineBox, caretOffset);
1079 inlineBox = toRenderBox(renderer)->inlineBoxWrapper();
1080 if (!inlineBox || (caretOffset > inlineBox->caretMinOffset() && caretOffset < inlineBox->caretMaxOffset()))
1097 inlineBox = box;
1112 inlineBox = box ? box : candidate;
1115 if (!inlineBox)
1118 unsigned char level = inlineBox->bidiLevel();
1120 if (inlineBox->direction() == primaryDirection) {
1121 if (caretOffset == inlineBox->caretRightmostOffset()) {
1122 InlineBox* nextBox = inlineBox->nextLeafChild();
1127 InlineBox* prevBox = inlineBox;
1136 while (InlineBox* nextBox = inlineBox->nextLeafChild()) {
1139 inlineBox = nextBox;
1141 caretOffset = inlineBox->caretRightmostOffset();
1143 InlineBox* prevBox = inlineBox->prevLeafChild();
1148 InlineBox* nextBox = inlineBox;
1156 while (InlineBox* prevBox = inlineBox->prevLeafChild()) {
1159 inlineBox = prevBox;
1161 caretOffset = inlineBox->caretLeftmostOffset();
1166 if (caretOffset == inlineBox->caretLeftmostOffset()) {
1167 InlineBox* prevBox = inlineBox->prevLeafChild();
1170 while (InlineBox* nextBox = inlineBox->nextLeafChild()) {
1173 inlineBox = nextBox;
1175 caretOffset = inlineBox->caretRightmostOffset();
1178 while (InlineBox* tertiaryBox = inlineBox->prevLeafChild()) {
1181 inlineBox = tertiaryBox;
1183 caretOffset = inlineBox->caretLeftmostOffset();
1186 InlineBox* nextBox = inlineBox->nextLeafChild();
1189 while (InlineBox* prevBox = inlineBox->prevLeafChild()) {
1192 inlineBox = prevBox;
1194 caretOffset = inlineBox->caretLeftmostOffset();
1197 while (InlineBox* tertiaryBox = inlineBox->nextLeafChild()) {
1200 inlineBox = tertiaryBox;
1202 caretOffset = inlineBox->caretRightmostOffset();