Home | History | Annotate | Download | only in rendering

Lines Matching refs:curr

58     for (InlineBox* curr = firstChild(); curr; curr = curr->nextOnLine()) {
59 if (curr->isInlineFlowBox())
60 totWidth += static_cast<InlineFlowBox*>(curr)->getFlowSpacingWidth();
186 RenderObject* curr = endObject;
187 RenderObject* parent = curr->parent();
189 if (parent->lastChild() != curr || parent == renderer())
192 curr = parent;
193 parent = curr->parent();
271 for (InlineBox* curr = firstChild(); curr; curr = curr->nextOnLine()) {
272 if (curr->renderer()->isText()) {
273 InlineTextBox* text = static_cast<InlineTextBox*>(curr);
304 if (curr->renderer()->isPositioned()) {
305 if (curr->renderer()->parent()->style()->direction() == LTR)
306 curr->setX(xPos);
311 curr->setX(root()->block()->width() - xPos);
314 if (curr->renderer()->isRenderInline()) {
315 InlineFlowBox* flow = static_cast<InlineFlowBox*>(curr);
323 } else if (!curr->renderer()->isListMarker() || toRenderListMarker(curr->renderer())->isInside()) {
324 xPos += curr->boxModelObject()->marginLeft();
325 curr->setX(xPos);
327 RenderBox* box = toRenderBox(curr->renderer());
329 int childRightOverflow = box->hasOverflowClip() ? curr->width() : box->rightLayoutOverflow();
337 xPos += curr->width() + curr->boxModelObject()->marginRight();
354 for (InlineBox* curr = firstChild(); curr; curr = curr->nextOnLine()) {
357 if (curr->renderer()->isPositioned())
359 if (curr->y() == PositionTop || curr->y() == PositionBottom) {
360 int lineHeight = curr->lineHeight(false);
361 if (curr->y() == PositionTop) {
374 if (curr->isInlineFlowBox())
375 static_cast<InlineFlowBox*>(curr)->adjustMaxAscentAndDescent(maxAscent, maxDescent, maxPositionTop, maxPositionBottom);
379 static int verticalPositionForBox(InlineBox* curr, bool firstLine)
381 if (curr->renderer()->isText())
382 return curr->parent()->y();
383 if (curr->renderer()->isBox())
384 return toRenderBox(curr->renderer())->verticalPosition(firstLine);
385 return toRenderInline(curr->renderer())->verticalPositionFromCache(firstLine);
405 for (InlineBox* curr = firstChild(); curr; curr = curr->nextOnLine()) {
406 if (curr->renderer()->isPositioned())
409 bool isInlineFlow = curr->isInlineFlowBox();
414 if (curr->isInlineTextBox())
415 static_cast<InlineTextBox*>(curr)->takeFallbackFonts(usedFonts);
418 usedFonts.append(curr->renderer()->style(m_firstLine)->font().primaryFont());
419 Length parentLineHeight = curr->renderer()->parent()->style()->lineHeight();
430 lineHeight = parentLineHeight.calcMinValue(curr->renderer()->style()->fontSize());
445 lineHeight = curr->lineHeight(false);
446 baseline = curr->baselinePosition(false);
449 curr->setY(verticalPositionForBox(curr, m_firstLine));
450 if (curr->y() == PositionTop) {
453 } else if (curr->y() == PositionBottom) {
456 } else if ((!isInlineFlow || static_cast<InlineFlowBox*>(curr)->hasTextChildren()) || curr->boxModelObject()->hasHorizontalBordersOrPadding() || strictMode) {
457 int ascent = baseline - curr->y();
465 if (curr->isInlineFlowBox())
466 static_cast<InlineFlowBox*>(curr)->computeLogicalBoxHeights(maxPositionTop, maxPositionBottom, maxAscent, maxDescent, strictMode);
475 for (InlineBox* curr = firstChild(); curr; curr = curr->nextOnLine()) {
476 if (curr->renderer()->isPositioned())
481 bool isInlineFlow = curr->isInlineFlowBox();
483 static_cast<InlineFlowBox*>(curr)->placeBoxesVertically(yPos, maxHeight, maxAscent, strictMode, selectionTop, selectionBottom);
486 if (curr->y() == PositionTop)
487 curr->setY(yPos);
488 else if (curr->y() == PositionBottom)
489 curr->setY(yPos + maxHeight - curr->lineHeight(false));
491 if ((isInlineFlow && !static_cast<InlineFlowBox*>(curr)->hasTextChildren()) && !curr->boxModelObject()->hasHorizontalBordersOrPadding() && !strictMode)
493 int posAdjust = maxAscent - curr->baselinePosition(false);
494 curr->setY(curr->y() + yPos + posAdjust);
497 int newY = curr->y();
498 if (curr->isText() || curr->isInlineFlowBox()) {
499 const Font& font = curr->renderer()->style(m_firstLine)->font();
500 newY += curr->baselinePosition(false) - font.ascent();
501 if (curr->isInlineFlowBox())
502 newY -= curr->boxModelObject()->borderTop() + curr->boxModelObject()->paddingTop();
503 } else if (!curr->renderer()->isBR()) {
504 RenderBox* box = toRenderBox(curr->renderer());
508 curr->setY(newY);
511 int boxHeight = curr->height();
552 for (InlineBox* curr = firstChild(); curr; curr = curr->nextOnLine()) {
553 if (curr->renderer()->isPositioned())
556 if (curr->renderer()->isText()) {
557 InlineTextBox* text = static_cast<InlineTextBox*>(curr);
574 topVisualOverflow = min(curr->y() + childOverflowTop, topVisualOverflow);
575 bottomVisualOverflow = max(curr->y() + text->height() + childOverflowBottom, bottomVisualOverflow);
576 } else if (curr->renderer()->isRenderInline()) {
577 InlineFlowBox* flow = static_cast<InlineFlowBox*>(curr);
583 } else if (!curr->boxModelObject()->hasSelfPaintingLayer()){
585 RenderBox* box = toRenderBox(curr->renderer());
586 int boxY = curr->y();
588 int childBottomOverflow = box->hasOverflowClip() ? curr->height() : box->bottomLayoutOverflow();
607 for (InlineBox* curr = lastChild(); curr; curr = curr->prevOnLine()) {
608 if ((curr->renderer()->isText() || !curr->boxModelObject()->hasSelfPaintingLayer()) && curr->nodeAtPoint(request, result, x, y, tx, ty)) {
682 for (InlineBox* curr = firstChild(); curr; curr = curr->nextOnLine()) {
683 if (curr->renderer()->isText() || !curr->boxModelObject()->hasSelfPaintingLayer())
684 curr->paint(childInfo, tx, ty);
717 for (InlineRunBox* curr = prevLineBox(); curr; curr = curr->prevLineBox())
718 xOffsetOnLine += curr->width();
721 for (InlineRunBox* curr = this; curr; curr = curr->nextLineBox())
722 totalWidth += curr->width();
802 for (InlineRunBox* curr = prevLineBox(); curr; curr = curr->prevLineBox())
803 xOffsetOnLine += curr->width();
806 for (InlineRunBox* curr = this; curr; curr = curr->nextLineBox())
807 totalWidth += curr->width();
873 for (InlineRunBox* curr = prevLineBox(); curr; curr = curr->prevLineBox())
874 xOffsetOnLine += curr->width();
877 for (InlineRunBox* curr = this; curr; curr = curr->nextLineBox())
878 totalWidth += curr->width();
891 for (RenderObject* curr = obj->firstChild(); curr; curr = curr->nextSibling()) {
892 if (curr->isRenderInline())
894 if (curr->isText() && !curr->isBR()) {
895 if (!curr->style()->collapseWhiteSpace())
897 Node* currElement = curr->node();