Home | History | Annotate | Download | only in rendering

Lines Matching refs:computedValues

1861     LogicalExtentComputedValues computedValues;
1862 computeLogicalWidth(computedValues);
1864 setLogicalWidth(computedValues.m_extent);
1865 setLogicalLeft(computedValues.m_position);
1866 setMarginStart(computedValues.m_margins.m_start);
1867 setMarginEnd(computedValues.m_margins.m_end);
1899 void RenderBox::computeLogicalWidth(LogicalExtentComputedValues& computedValues) const
1901 computedValues.m_extent = logicalWidth();
1902 computedValues.m_position = logicalLeft();
1903 computedValues.m_margins.m_start = marginStart();
1904 computedValues.m_margins.m_end = marginEnd();
1909 computePositionedLogicalWidth(computedValues);
1922 computedValues.m_extent = overrideLogicalContentWidth() + borderAndPaddingLogicalWidth();
1941 computedValues.m_margins.m_start = minimumValueForLength(styleToUse->marginStart(), containerLogicalWidth);
1942 computedValues.m_margins.m_end = minimumValueForLength(styleToUse->marginEnd(), containerLogicalWidth);
1944 computedValues.m_extent = std::max<LayoutUnit>(floatValueForLength(logicalWidthLength, 0) + borderAndPaddingLogicalWidth(), minPreferredLogicalWidth());
1950 computedValues.m_extent = logicalWidthLength.value() + borderAndPaddingLogicalWidth();
1956 computedValues.m_extent = constrainLogicalWidthByMinMax(preferredWidth, containerWidthInInlineDirection, cb);
1960 computeMarginsForDirection(InlineDirection, cb, containerLogicalWidth, computedValues.m_extent, computedValues.m_margins.m_start,
1961 computedValues.m_margins.m_end, style()->marginStart(), style()->marginEnd());
1963 if (!hasPerpendicularContainingBlock && containerLogicalWidth && containerLogicalWidth != (computedValues.m_extent + computedValues.m_margins.m_start + computedValues.m_margins.m_end)
1965 LayoutUnit newMargin = containerLogicalWidth - computedValues.m_extent - cb->marginStartForChild(this);
1968 computedValues.m_margins.m_start = newMargin;
1970 computedValues.m_margins.m_end = newMargin;
1980 computedValues.m_margins.m_end += adjustedMargin;
1982 computedValues.m_margins.m_start += adjustedMargin;
2211 LogicalExtentComputedValues computedValues;
2212 computeLogicalHeight(logicalHeight(), logicalTop(), computedValues);
2214 setLogicalHeight(computedValues.m_extent);
2215 setLogicalTop(computedValues.m_position);
2216 setMarginBefore(computedValues.m_margins.m_before);
2217 setMarginAfter(computedValues.m_margins.m_after);
2220 void RenderBox::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const
2222 computedValues.m_extent = logicalHeight;
2223 computedValues.m_position = logicalTop;
2231 computePositionedLogicalHeight(computedValues);
2244 computeMarginsForDirection(flowDirection, cb, containingBlockLogicalWidthForContent(), computedValues.m_extent, computedValues.m_margins.m_before,
2245 computedValues.m_margins.m_after, style()->marginBefore(), style()->marginAfter());
2279 heightResult = computeLogicalHeightUsing(style()->logicalHeight(), computedValues.m_extent - borderAndPaddingLogicalHeight());
2281 heightResult = computedValues.m_extent;
2282 heightResult = constrainLogicalHeightByMinMax(heightResult, computedValues.m_extent - borderAndPaddingLogicalHeight());
2291 computedValues.m_extent = heightResult;
2292 computeMarginsForDirection(flowDirection, cb, containingBlockLogicalWidthForContent(), computedValues.m_extent, computedValues.m_margins.m_before,
2293 computedValues.m_margins.m_after, style()->marginBefore(), style()->marginAfter());
2307 computedValues.m_extent = std::max(computedValues.m_extent, visibleHeight - margins);
2310 computedValues.m_extent = std::max(computedValues.m_extent, visibleHeight - marginsBordersPadding);
2446 LogicalExtentComputedValues computedValues;
2447 cb->computeLogicalHeight(cb->logicalHeight(), 0, computedValues);
2448 availableHeight = computedValues.m_extent - cb->borderAndPaddingLogicalHeight() - cb->scrollbarLogicalHeight();
2585 LogicalExtentComputedValues computedValues;
2586 block->computeLogicalHeight(block->logicalHeight(), 0, computedValues);
2587 LayoutUnit newContentHeight = computedValues.m_extent - block->borderAndPaddingLogicalHeight() - block->scrollbarLogicalHeight();
2662 LogicalExtentComputedValues computedValues;
2663 block->computeLogicalHeight(block->logicalHeight(), 0, computedValues);
2664 LayoutUnit newContentHeight = computedValues.m_extent - block->borderAndPaddingLogicalHeight() - block->scrollbarLogicalHeight();
2820 void RenderBox::computePositionedLogicalWidth(LogicalExtentComputedValues& computedValues) const
2823 computePositionedLogicalWidthReplaced(computedValues);
2894 computedValues);
2905 if (computedValues.m_extent > maxValues.m_extent) {
2906 computedValues.m_extent = maxValues.m_extent;
2907 computedValues.m_position = maxValues.m_position;
2908 computedValues.m_margins.m_start = maxValues.m_margins.m_start;
2909 computedValues.m_margins.m_end = maxValues.m_margins.m_end;
2922 if (computedValues.m_extent < minValues.m_extent) {
2923 computedValues.m_extent = minValues.m_extent;
2924 computedValues.m_position = minValues.m_position;
2925 computedValues.m_margins.m_start = minValues.m_margins.m_start;
2926 computedValues.m_margins.m_end = minValues.m_margins.m_end;
2930 computedValues.m_extent += bordersPlusPadding;
2945 void RenderBox::shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logicalLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues& computedValues) const
2951 computedValues.m_extent = std::min(std::max(preferredMinWidth, availableWidth), preferredWidth);
2957 const Length& marginLogicalRight, LogicalExtentComputedValues& computedValues) const
2973 LayoutUnit& marginLogicalLeftValue = style()->isLeftToRightDirection() ? computedValues.m_margins.m_start : computedValues.m_margins.m_end;
2974 LayoutUnit& marginLogicalRightValue = style()->isLeftToRightDirection() ? computedValues.m_margins.m_end : computedValues.m_margins.m_start;
2992 computedValues.m_extent = adjustContentBoxLogicalWidthForBoxSizing(valueForLength(logicalWidth, containerLogicalWidth));
2994 const LayoutUnit availableSpace = containerLogicalWidth - (logicalLeftValue + computedValues.m_extent + valueForLength(logicalRight, containerLogicalWidth) + bordersPlusPadding);
3089 computedValues.m_extent = std::min(std::max(preferredMinWidth, availableWidth), preferredWidth);
3090 logicalLeftValue = availableSpace - (computedValues.m_extent + logicalRightValue);
3095 shrinkToFitWidth(availableSpace, logicalLeftValue, bordersPlusPadding, computedValues);
3098 computedValues.m_extent = adjustContentBoxLogicalWidthForBoxSizing(valueForLength(logicalWidth, containerLogicalWidth));
3099 logicalLeftValue = availableSpace - (computedValues.m_extent + valueForLength(logicalRight, containerLogicalWidth));
3104 shrinkToFitWidth(availableSpace, logicalLeftValue, bordersPlusPadding, computedValues);
3106 computedValues.m_extent = std::max<LayoutUnit>(0, availableSpace - (logicalLeftValue + valueForLength(logicalRight, containerLogicalWidth)));
3110 computedValues.m_extent = adjustContentBoxLogicalWidthForBoxSizing(valueForLength(logicalWidth, containerLogicalWidth));
3125 computedValues.m_position = logicalLeftValue + marginLogicalLeftValue + lastLine->borderLogicalLeft() + (lastLine->logicalLeft() - firstLine->logicalLeft());
3134 computedValues.m_position = logicalLeftValue + marginLogicalLeftValue;
3135 computeLogicalLeftPositionedOffset(computedValues.m_position, this, computedValues.m_extent, containerBlock, containerLogicalWidth);
3152 void RenderBox::computePositionedLogicalHeight(LogicalExtentComputedValues& computedValues) const
3155 computePositionedLogicalHeightReplaced(computedValues);
3200 LayoutUnit logicalHeight = computedValues.m_extent;
3203 computedValues);
3216 if (computedValues.m_extent > maxValues.m_extent) {
3217 computedValues.m_extent = maxValues.m_extent;
3218 computedValues.m_position = maxValues.m_position;
3219 computedValues.m_margins.m_before = maxValues.m_margins.m_before;
3220 computedValues.m_margins.m_after = maxValues.m_margins.m_after;
3232 if (computedValues.m_extent < minValues.m_extent) {
3233 computedValues.m_extent = minValues.m_extent;
3234 computedValues.m_position = minValues.m_position;
3235 computedValues.m_margins.m_before = minValues.m_margins.m_before;
3236 computedValues.m_margins.m_after = minValues.m_margins.m_after;
3241 computedValues.m_extent += bordersPlusPadding;
3269 const Length& marginAfter, LogicalExtentComputedValues& computedValues) const
3319 computedValues.m_margins.m_before = availableSpace / 2; // split the difference
3320 computedValues.m_margins.m_after = availableSpace - computedValues.m_margins.m_before; // account for odd valued differences
3323 computedValues.m_margins.m_after = valueForLength(marginAfter, containerRelativeLogicalWidth);
3324 computedValues.m_margins.m_before = availableSpace - computedValues.m_margins.m_after;
3327 computedValues.m_margins.m_before = valueForLength(marginBefore, containerRelativeLogicalWidth);
3328 computedValues.m_margins.m_after = availableSpace - computedValues.m_margins.m_before;
3331 computedValues.m_margins.m_before = valueForLength(marginBefore, containerRelativeLogicalWidth);
3332 computedValues.m_margins.m_after = valueForLength(marginAfter, containerRelativeLogicalWidth);
3361 computedValues.m_margins.m_before = minimumValueForLength(marginBefore, containerRelativeLogicalWidth);
3362 computedValues.m_margins.m_after = minimumValueForLength(marginAfter, containerRelativeLogicalWidth);
3364 const LayoutUnit availableSpace = containerLogicalHeight - (computedValues.m_margins.m_before + computedValues.m_margins.m_after + bordersPlusPadding);
3389 computedValues.m_extent = logicalHeightValue;
3392 computedValues.m_position = logicalTopValue + computedValues.m_margins.m_before;
3393 computeLogicalTopPositionedOffset(computedValues.m_position, this, logicalHeightValue, containerBlock, containerLogicalHeight);
3396 void RenderBox::computePositionedLogicalWidthReplaced(LogicalExtentComputedValues& computedValues) const
3421 LayoutUnit& marginLogicalLeftAlias = style()->isLeftToRightDirection() ? computedValues.m_margins.m_start : computedValues.m_margins.m_end;
3422 LayoutUnit& marginLogicalRightAlias = style()->isLeftToRightDirection() ? computedValues.m_margins.m_end : computedValues.m_margins.m_start;
3431 computedValues.m_extent = computeReplacedLogicalWidth() + borderAndPaddingLogicalWidth();
3433 const LayoutUnit availableSpace = containerLogicalWidth - computedValues.m_extent;
3528 int totalLogicalWidth = computedValues.m_extent + logicalLeftValue + logicalRightValue + marginLogicalLeftAlias + marginLogicalRightAlias;
3555 computedValues.m_position = logicalLeftValue + marginLogicalLeftAlias + lastLine->borderLogicalLeft() + (lastLine->logicalLeft() - firstLine->logicalLeft());
3561 computeLogicalLeftPositionedOffset(logicalLeftPos, this, computedValues.m_extent, containerBlock, containerLogicalWidth);
3562 computedValues.m_position = logicalLeftPos;
3565 void RenderBox::computePositionedLogicalHeightReplaced(LogicalExtentComputedValues& computedValues) const
3582 LayoutUnit& marginBeforeAlias = computedValues.m_margins.m_before;
3583 LayoutUnit& marginAfterAlias = computedValues.m_margins.m_after;
3595 computedValues.m_extent = computeReplacedLogicalHeight() + borderAndPaddingLogicalHeight();
3596 const LayoutUnit availableSpace = containerLogicalHeight - computedValues.m_extent;
3690 computeLogicalTopPositionedOffset(logicalTopPos, this, computedValues.m_extent, containerBlock, containerLogicalHeight);
3691 computedValues.m_position = logicalTopPos;