Lines Matching refs:bidiRuns
277 static bool reachedEndOfTextRenderer(const BidiRunList<BidiRun>& bidiRuns)
279 BidiRun* run = bidiRuns.logicallyLastRun();
298 RootInlineBox* RenderBlock::constructLine(BidiRunList<BidiRun>& bidiRuns, bool firstLine, bool lastLine)
300 ASSERT(bidiRuns.firstRun());
304 for (BidiRun* r = bidiRuns.firstRun(); r; r = r->next()) {
306 bool isOnlyRun = (bidiRuns.runCount() == 1);
307 if (bidiRuns.runCount() == 2 && !r->m_object->isListMarker())
308 isOnlyRun = (!style()->isLeftToRightDirection() ? bidiRuns.lastRun() : bidiRuns.firstRun())->m_object->isListMarker();
357 bool isLogicallyLastRunWrapped = bidiRuns.logicallyLastRun()->m_object && bidiRuns.logicallyLastRun()->m_object->isText() ? !reachedEndOfTextRenderer(bidiRuns) : true;
358 lastLineBox()->determineSpacingForFlowBoxes(lastLine, isLogicallyLastRunWrapped, bidiRuns.logicallyLastRun()->m_object);
672 inline BidiRun* RenderBlock::handleTrailingSpaces(BidiRunList<BidiRun>& bidiRuns, BidiContext* currentContext)
674 if (!bidiRuns.runCount()
675 || !bidiRuns.logicallyLastRun()->m_object->style()->breakOnlyAfterWhiteSpace()
676 || !bidiRuns.logicallyLastRun()->m_object->style()->autoWrap())
679 BidiRun* trailingSpaceRun = bidiRuns.logicallyLastRun();
697 bool shouldReorder = trailingSpaceRun != (direction == LTR ? bidiRuns.lastRun() : bidiRuns.firstRun());
706 bidiRuns.addRun(newTrailingRun);
708 bidiRuns.prependRun(newTrailingRun);
716 bidiRuns.moveRunToEnd(trailingSpaceRun);
719 bidiRuns.moveRunToBeginning(trailingSpaceRun);
1018 BidiRunList<BidiRun>& bidiRuns = resolver.runs();
1022 BidiRun* trailingSpaceRun = !previousLineBrokeCleanly ? handleTrailingSpaces(bidiRuns, resolver.context()) : 0;
1030 if (bidiRuns.runCount()) {
1032 bidiRuns
1033 lineBox = constructLine(bidiRuns, firstLine, !end.m_obj);
1047 computeInlineDirectionPositionsForLine(lineBox, firstLine, bidiRuns.firstRun(), trailingSpaceRun, end.atEnd(), textBoxDataMap, verticalPositionCache);
1050 computeBlockDirectionPositionsForLine(lineBox, bidiRuns.firstRun(), textBoxDataMap, verticalPositionCache);
1075 bidiRuns.deleteRuns();