Home
last modified time | relevance | path

Searched refs:logicalWidth (Results 1 – 25 of 42) sorted by relevance

12

/external/webkit/Source/WebCore/rendering/
DAutoTableLayout.cpp91 … if (cellLogicalWidth.value() > 0 && columnLayout.logicalWidth.type() != Percent) { in recalcColumn()
92 … int logicalWidth = cell->computeBorderBoxLogicalWidth(cellLogicalWidth.value()); in recalcColumn() local
93 if (columnLayout.logicalWidth.isFixed()) { in recalcColumn()
95 if ((logicalWidth > columnLayout.logicalWidth.value()) || in recalcColumn()
96 … ((columnLayout.logicalWidth.value() == logicalWidth) && (maxContributor == cell))) { in recalcColumn()
97 columnLayout.logicalWidth.setValue(logicalWidth); in recalcColumn()
101 columnLayout.logicalWidth.setValue(Fixed, logicalWidth); in recalcColumn()
108 …idth.isPositive() && (!columnLayout.logicalWidth.isPercent() || cellLogicalWidth.value() > columnL… in recalcColumn()
109 columnLayout.logicalWidth = cellLogicalWidth; in recalcColumn()
114 …|| (cellLogicalWidth.isRelative() && cellLogicalWidth.value() > columnLayout.logicalWidth.value())) in recalcColumn()
[all …]
DRenderImage.cpp451 switch (style()->logicalWidth().type()) { in isLogicalWidthSpecified()
489 int logicalWidth; in computeReplacedLogicalWidth() local
491 logicalWidth = computeReplacedLogicalWidthUsing(style()->logicalWidth()); in computeReplacedLogicalWidth()
494 logicalWidth = style()->isHorizontalWritingMode() ? size.width() : size.height(); in computeReplacedLogicalWidth()
496logicalWidth = 0; // If the image is relatively-sized, set the width to 0 until there is a set con… in computeReplacedLogicalWidth()
498 logicalWidth = calcAspectRatioLogicalWidth(); in computeReplacedLogicalWidth()
501 …idth = !includeMaxWidth || style()->logicalMaxWidth().isUndefined() ? logicalWidth : computeReplac… in computeReplacedLogicalWidth()
504 logicalWidth = max(minLogicalWidth, min(logicalWidth, maxLogicalWidth)); in computeReplacedLogicalWidth()
508 if (cw && logicalWidth > cw) in computeReplacedLogicalWidth()
509 logicalWidth = cw; in computeReplacedLogicalWidth()
[all …]
DRenderRubyText.cpp64 …neDirectionLineBounds(int expansionOpportunityCount, float& logicalLeft, float& logicalWidth) const in adjustInlineDirectionLineBounds()
68 …RenderBlock::adjustInlineDirectionLineBounds(expansionOpportunityCount, logicalLeft, logicalWidth); in adjustInlineDirectionLineBounds()
71 if (maxPreferredLogicalWidth >= logicalWidth) in adjustInlineDirectionLineBounds()
76 float inset = (logicalWidth - maxPreferredLogicalWidth) / (expansionOpportunityCount + 1); in adjustInlineDirectionLineBounds()
81 logicalWidth -= inset; in adjustInlineDirectionLineBounds()
DRenderReplaced.cpp201 int logicalWidth; in computeReplacedLogicalWidth() local
203 logicalWidth = computeReplacedLogicalWidthUsing(style()->logicalWidth()); in computeReplacedLogicalWidth()
205 logicalWidth = calcAspectRatioLogicalWidth(); in computeReplacedLogicalWidth()
207 logicalWidth = intrinsicLogicalWidth(); in computeReplacedLogicalWidth()
210 …idth = !includeMaxWidth || style()->logicalMaxWidth().isUndefined() ? logicalWidth : computeReplac… in computeReplacedLogicalWidth()
212 return max(minLogicalWidth, min(logicalWidth, maxLogicalWidth)); in computeReplacedLogicalWidth()
297 if (lineDirectionPosition <= box->logicalLeft() + (box->logicalWidth() / 2)) in positionForPoint()
DFixedTableLayout.cpp95 grpWidth = col->style()->logicalWidth(); in calcWidthArray()
97 Length w = col->style()->logicalWidth(); in calcWidthArray()
205 …int tableLogicalWidth = m_table->style()->logicalWidth().isFixed() ? m_table->style()->logicalWidt… in computePreferredLogicalWidths()
225 …if (m_table->document()->inQuirksMode() && m_table->style()->logicalWidth().isPercent() && maxWidt… in computePreferredLogicalWidths()
231 …int tableLogicalWidth = m_table->logicalWidth() - m_table->bordersPaddingAndSpacingInRowDirection(… in layout()
DInlineBox.h72 …InlineBox(RenderObject* obj, float x, float y, float logicalWidth, bool firstLine, bool constructe… in InlineBox() argument
80 , m_logicalWidth(logicalWidth) in InlineBox()
232 float width() const { return isHorizontal() ? logicalWidth() : logicalHeight(); } in width()
233 float height() const { return isHorizontal() ? logicalHeight() : logicalWidth(); } in height()
237 float logicalRight() const { return logicalLeft() + logicalWidth(); } in logicalRight()
261 float logicalWidth() const { return m_logicalWidth; } in logicalWidth() function
DRenderRubyBase.cpp202 …neDirectionLineBounds(int expansionOpportunityCount, float& logicalLeft, float& logicalWidth) const in adjustInlineDirectionLineBounds()
205 if (maxPreferredLogicalWidth >= logicalWidth) in adjustInlineDirectionLineBounds()
209 float inset = (logicalWidth - maxPreferredLogicalWidth) / (expansionOpportunityCount + 1); in adjustInlineDirectionLineBounds()
212 logicalWidth -= inset; in adjustInlineDirectionLineBounds()
DRenderBox.cpp1066 … FloatRect rootRect(tx + r->x(), ty + r->selectionTop(), r->logicalWidth(), r->selectionHeight()); in paintCustomHighlight()
1575 …ength = (treatAsReplaced) ? Length(computeReplacedLogicalWidth(), Fixed) : style()->logicalWidth(); in computeLogicalWidth()
1619 if (logicalWidth() > maxLogicalWidth) { in computeLogicalWidth()
1627 if (logicalWidth() < minLogicalWidth) { in computeLogicalWidth()
1635 setLogicalWidth(max(logicalWidth(), minPreferredLogicalWidth())); in computeLogicalWidth()
1636 logicalWidthLength = Length(logicalWidth(), Fixed); in computeLogicalWidth()
1644 computeInlineDirectionMargins(cb, containerLogicalWidth, logicalWidth()); in computeLogicalWidth()
1662 …ContainingBlock && containerLogicalWidth && containerLogicalWidth != (logicalWidth() + marginStart… in computeLogicalWidth()
1664 …cb->setMarginEndForChild(this, containerLogicalWidth - logicalWidth() - cb->marginStartForChild(th… in computeLogicalWidth()
1669 int logicalWidthResult = logicalWidth(); in computeLogicalWidthUsing()
[all …]
DRenderFieldset.cpp79 logicalLeft = (logicalWidth() - logicalWidthForChild(legend)) / 2; in layoutSpecialExcludedChild()
82 … logicalLeft = logicalWidth() - borderEnd() - paddingEnd() - logicalWidthForChild(legend); in layoutSpecialExcludedChild()
96 int centeredWidth = logicalWidth() - logicalWidthForChild(legend); in layoutSpecialExcludedChild()
101 …logicalLeft = logicalWidth() - borderStart() - paddingStart() - marginStartForChild(legend) - logi… in layoutSpecialExcludedChild()
DRenderRubyRun.cpp287 int logicalWidth = this->logicalWidth(); in getOverhang() local
295 …logicalRightOverhang = min<int>(logicalRightOverhang, logicalWidth - rootInlineBox->logicalRight()… in getOverhang()
DRenderListItem.cpp304 …if (markerLogicalLeft + m_marker->logicalWidth() > newLogicalVisualOverflowRect.maxX() && !hitSelf… in positionListMarker()
305 …newLogicalVisualOverflowRect.setWidth(markerLogicalLeft + m_marker->logicalWidth() - newLogicalVis… in positionListMarker()
309 … if (markerLogicalLeft + m_marker->logicalWidth() > newLogicalLayoutOverflowRect.maxX()) { in positionListMarker()
310 …newLogicalLayoutOverflowRect.setWidth(markerLogicalLeft + m_marker->logicalWidth() - newLogicalLay… in positionListMarker()
DRenderInline.cpp525 … childLine->logicalWidth() + childLine->marginLogicalLeft() + childLine->marginLogicalRight(), in culledInlineAbsoluteRects()
531 … childLine->logicalWidth() + childLine->marginLogicalLeft() + childLine->marginLogicalRight()); in culledInlineAbsoluteRects()
543 …et.width() + childText->x(), offset.height() + logicalTop, childText->logicalWidth(), logicalHeigh… in culledInlineAbsoluteRects()
545 ….width() + logicalTop, offset.height() + childText->y(), logicalHeight, childText->logicalWidth()); in culledInlineAbsoluteRects()
609 … childLine->logicalWidth() + childLine->marginLogicalLeft() + childLine->marginLogicalRight(), in culledInlineAbsoluteQuads()
615 … childLine->logicalWidth() + childLine->marginLogicalLeft() + childLine->marginLogicalRight()); in culledInlineAbsoluteQuads()
627 … result = FloatRect(childText->x(), logicalTop, childText->logicalWidth(), logicalHeight); in culledInlineAbsoluteQuads()
629 … result = FloatRect(logicalTop, childText->y(), logicalHeight, childText->logicalWidth()); in culledInlineAbsoluteQuads()
814 … childLine->logicalWidth() + childLine->marginLogicalLeft() + childLine->marginLogicalRight(), in culledInlineBoundingBox()
820 … childLine->logicalWidth() + childLine->marginLogicalLeft() + childLine->marginLogicalRight())); in culledInlineBoundingBox()
[all …]
DRenderRubyText.h51 …eDirectionLineBounds(int expansionOpportunityCount, float& logicalLeft, float& logicalWidth) const;
DRenderTable.cpp93 if (style()->tableLayout() == TFIXED && !style()->logicalWidth().isAuto()) in styleDidChange()
233 LengthType logicalWidthType = style()->logicalWidth().type(); in computeLogicalWidth()
234 if (logicalWidthType > Relative && style()->logicalWidth().isPositive()) { in computeLogicalWidth()
236 setLogicalWidth(style()->logicalWidth().calcMinValue(containerWidthInInlineDirection)); in computeLogicalWidth()
237 setLogicalWidth(max(minPreferredLogicalWidth(), logicalWidth())); in computeLogicalWidth()
253 setLogicalWidth(max(logicalWidth(), minPreferredLogicalWidth())); in computeLogicalWidth()
264 computeInlineDirectionMargins(cb, availableLogicalWidth, logicalWidth()); in computeLogicalWidth()
304 int oldLogicalWidth = logicalWidth(); in layout()
336 if (m_caption && logicalWidth() != oldLogicalWidth) in layout()
DInlineFlowBox.cpp365 logicalLeft += text->logicalWidth(); in placeBoxesInInlineDirection()
376 curr->setLogicalLeft(root()->block()->logicalWidth() - logicalLeft); in placeBoxesInInlineDirection()
398 logicalLeft += curr->logicalWidth(); in placeBoxesInInlineDirection()
1044 logicalOffsetOnLine += curr->logicalWidth(); in paintFillLayer()
1047 totalLogicalWidth += curr->logicalWidth(); in paintFillLayer()
1050 logicalOffsetOnLine += curr->logicalWidth(); in paintFillLayer()
1053 totalLogicalWidth += curr->logicalWidth(); in paintFillLayer()
1142 logicalOffsetOnLine += curr->logicalWidth(); in paintBoxDecorations()
1145 totalLogicalWidth += curr->logicalWidth(); in paintBoxDecorations()
1222 logicalOffsetOnLine += curr->logicalWidth(); in paintMask()
[all …]
DAutoTableLayout.h60 Length logicalWidth; member
DRenderRubyBase.h53 …eDirectionLineBounds(int expansionOpportunityCount, float& logicalLeft, float& logicalWidth) const;
DRootInlineBox.cpp94 if (logicalWidth() - delta < ellipsisWidth) in lineCanAccommodateEllipsis()
107 … ellipsisWidth - (markupBox ? markupBox->logicalWidth() : 0), logicalHeight(), in placeEllipsis()
116 if (ltr && (x() + logicalWidth() + ellipsisWidth) <= blockRightEdge) { in placeEllipsis()
117 ellipsisBox->m_x = x() + logicalWidth(); in placeEllipsis()
155 FloatRect rootRect(0, selectionTop(), logicalWidth(), selectionHeight()); in addHighlightOverflow()
173 FloatRect rootRect(tx + x(), ty + selectionTop(), logicalWidth(), selectionHeight()); in paintCustomHighlight()
DRenderListMarker.cpp1363 int logicalWidth = 0; in computePreferredLogicalWidths() local
1371 logicalWidth = font.width(m_text); // no suffix for these types in computePreferredLogicalWidths()
1377 logicalWidth = (fontMetrics.ascent() * 2 / 3 + 1) / 2 + 2; in computePreferredLogicalWidths()
1456 logicalWidth = 0; in computePreferredLogicalWidths()
1461 logicalWidth = itemWidth + suffixSpaceWidth; in computePreferredLogicalWidths()
1466 m_minPreferredLogicalWidth = logicalWidth; in computePreferredLogicalWidths()
1467 m_maxPreferredLogicalWidth = logicalWidth; in computePreferredLogicalWidths()
DInlineTextBox.cpp198 int logicalWidth = r.width(); in selectionRect() local
200 logicalWidth = 0; in selectionRect()
202 logicalWidth = m_logicalWidth - r.x(); in selectionRect()
205 int width = isHorizontal() ? logicalWidth : selHeight; in selectionRect()
206 int height = isHorizontal() ? selHeight : logicalWidth; in selectionRect()
522 FloatRect boxRect(boxOrigin, IntSize(logicalWidth(), logicalHeight())); in paint()
869 FloatRect rootRect(tx + r->x(), ty + selectionTop(), r->logicalWidth(), selectionHeight()); in paintCustomHighlight()
870 FloatRect textRect(tx + x(), rootRect.y(), logicalWidth(), rootRect.height()); in paintCustomHighlight()
1238 if (lineOffset - logicalLeft() > logicalWidth()) in offsetForPosition()
DRenderBox.h58 int logicalRight() const { return logicalLeft() + logicalWidth(); } in logicalRight()
61 int logicalWidth() const { return style()->isHorizontalWritingMode() ? width() : height(); } in logicalWidth() function
442 …void computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBoxModelObject* container…
DRenderBlockLineLayout.cpp382 …aceRun->m_box->setLogicalWidth(max<float>(0, trailingSpaceRun->m_box->logicalWidth() - totalLogica… in updateLogicalWidthForLeftAlignedBlock()
399 totalLogicalWidth -= trailingSpaceRun->m_box->logicalWidth(); in updateLogicalWidthForRightAlignedBlock()
408 …aceRun->m_box->setLogicalWidth(max<float>(0, trailingSpaceRun->m_box->logicalWidth() - totalLogica… in updateLogicalWidthForRightAlignedBlock()
409 totalLogicalWidth -= trailingSpaceRun->m_box->logicalWidth(); in updateLogicalWidthForRightAlignedBlock()
418 totalLogicalWidth -= trailingSpaceRun->m_box->logicalWidth(); in updateLogicalWidthForCenterAlignedBlock()
419 …trailingSpaceWidth = min(trailingSpaceRun->m_box->logicalWidth(), (availableLogicalWidth - totalLo… in updateLogicalWidthForCenterAlignedBlock()
522 totalLogicalWidth += r->m_box->logicalWidth(); in computeInlineDirectionPositionsForLine()
544 totalLogicalWidth -= trailingSpaceRun->m_box->logicalWidth(); in computeInlineDirectionPositionsForLine()
554 …aceRun->m_box->setLogicalWidth(max<float>(0, trailingSpaceRun->m_box->logicalWidth() - totalLogica… in computeInlineDirectionPositionsForLine()
1845 …sToBreak = !document()->inQuirksMode() || !isTableCell() || !style()->logicalWidth().isIntrinsicOr… in findNextLineBreak()
[all …]
DRenderBlock.h468 void setLogicalWidthForFloat(FloatingObject* child, int logicalWidth) in setLogicalWidthForFloat() argument
471 child->setWidth(logicalWidth); in setLogicalWidthForFloat()
473 child->setHeight(logicalWidth); in setLogicalWidthForFloat()
/external/webkit/Source/WebCore/rendering/svg/
DRenderSVGInline.cpp93 …(textBoundingBox.x() + box->x(), textBoundingBox.y() + box->y(), box->logicalWidth(), box->logical… in absoluteQuads()
DSVGRenderTreeAsText.cpp440 int logicalWidth = ceilf(box->x() + box->logicalWidth()) - box->x(); in writeRenderSVGTextBox() local
441 …ts << " at (" << text.x() << "," << text.y() << ") size " << logicalWidth << "x" << box->logicalHe… in writeRenderSVGTextBox()

12