Changeset 158163 in webkit for trunk/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp
- Timestamp:
- Oct 28, 2013, 7:58:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp
r158097 r158163 44 44 , m_largestOrdinal(1) 45 45 { 46 if (m_box->style() ->boxOrient() == HORIZONTAL && !m_box->style()->isLeftToRightDirection())47 m_forward = m_box->style() ->boxDirection() != BNORMAL;46 if (m_box->style().boxOrient() == HORIZONTAL && !m_box->style().isLeftToRightDirection()) 47 m_forward = m_box->style().boxDirection() != BNORMAL; 48 48 else 49 m_forward = m_box->style() ->boxDirection() == BNORMAL;49 m_forward = m_box->style().boxDirection() == BNORMAL; 50 50 if (!m_forward) { 51 51 // No choice, since we're going backwards, we have to find out the highest ordinal up front. 52 52 RenderBox* child = m_box->firstChildBox(); 53 53 while (child) { 54 if (child->style() ->boxOrdinalGroup() > m_largestOrdinal)55 m_largestOrdinal = child->style() ->boxOrdinalGroup();54 if (child->style().boxOrdinalGroup() > m_largestOrdinal) 55 m_largestOrdinal = child->style().boxOrdinalGroup(); 56 56 child = child->nextSiblingBox(); 57 57 } … … 98 98 99 99 if (m_currentChild && notFirstOrdinalValue()) 100 m_ordinalValues.add(m_currentChild->style() ->boxOrdinalGroup());100 m_ordinalValues.add(m_currentChild->style().boxOrdinalGroup()); 101 101 } while (!m_currentChild || (!m_currentChild->isAnonymous() 102 && m_currentChild->style() ->boxOrdinalGroup() != m_currentOrdinal));102 && m_currentChild->style().boxOrdinalGroup() != m_currentOrdinal)); 103 103 return m_currentChild; 104 104 } … … 108 108 { 109 109 unsigned int firstOrdinalValue = m_forward ? 1 : m_largestOrdinal; 110 return m_currentOrdinal == firstOrdinalValue && m_currentChild->style() ->boxOrdinalGroup() != firstOrdinalValue;110 return m_currentOrdinal == firstOrdinalValue && m_currentChild->style().boxOrdinalGroup() != firstOrdinalValue; 111 111 } 112 112 … … 139 139 // Auto and percentage margins simply become 0 when computing min/max width. 140 140 // Fixed margins can be added in as is. 141 Length marginLeft = child->style() ->marginLeft();142 Length marginRight = child->style() ->marginRight();141 Length marginLeft = child->style().marginLeft(); 142 Length marginRight = child->style().marginRight(); 143 143 LayoutUnit margin = 0; 144 144 if (marginLeft.isFixed()) … … 152 152 { 153 153 // Positioned children and collapsed children don't affect the min/max width. 154 return child->isOutOfFlowPositioned() || child->style() ->visibility() == COLLAPSE;154 return child->isOutOfFlowPositioned() || child->style().visibility() == COLLAPSE; 155 155 } 156 156 … … 171 171 void RenderDeprecatedFlexibleBox::styleWillChange(StyleDifference diff, const RenderStyle& newStyle) 172 172 { 173 RenderStyle* oldStyle = hasInitializedStyle() ? style() : nullptr;173 RenderStyle* oldStyle = hasInitializedStyle() ? &style() : nullptr; 174 174 if (oldStyle && !oldStyle->lineClamp().isNone() && newStyle.lineClamp().isNone()) 175 175 clearLineClamp(); … … 215 215 216 216 m_minPreferredLogicalWidth = m_maxPreferredLogicalWidth = 0; 217 if (style() ->width().isFixed() && style()->width().value() > 0)218 m_minPreferredLogicalWidth = m_maxPreferredLogicalWidth = adjustContentBoxLogicalWidthForBoxSizing(style() ->width().value());217 if (style().width().isFixed() && style().width().value() > 0) 218 m_minPreferredLogicalWidth = m_maxPreferredLogicalWidth = adjustContentBoxLogicalWidthForBoxSizing(style().width().value()); 219 219 else 220 220 computeIntrinsicLogicalWidths(m_minPreferredLogicalWidth, m_maxPreferredLogicalWidth); 221 221 222 if (style() ->minWidth().isFixed() && style()->minWidth().value() > 0) {223 m_maxPreferredLogicalWidth = max(m_maxPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(style() ->minWidth().value()));224 m_minPreferredLogicalWidth = max(m_minPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(style() ->minWidth().value()));225 } 226 227 if (style() ->maxWidth().isFixed()) {228 m_maxPreferredLogicalWidth = min(m_maxPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(style() ->maxWidth().value()));229 m_minPreferredLogicalWidth = min(m_minPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(style() ->maxWidth().value()));222 if (style().minWidth().isFixed() && style().minWidth().value() > 0) { 223 m_maxPreferredLogicalWidth = max(m_maxPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(style().minWidth().value())); 224 m_minPreferredLogicalWidth = max(m_minPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(style().minWidth().value())); 225 } 226 227 if (style().maxWidth().isFixed()) { 228 m_maxPreferredLogicalWidth = min(m_maxPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(style().maxWidth().value())); 229 m_minPreferredLogicalWidth = min(m_minPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(style().maxWidth().value())); 230 230 } 231 231 … … 286 286 287 287 LayoutRepainter repainter(*this, checkForRepaintDuringLayout()); 288 LayoutStateMaintainer statePusher(&view(), this, locationOffset(), hasTransform() || hasReflection() || style() ->isFlippedBlocksWritingMode());288 LayoutStateMaintainer statePusher(&view(), this, locationOffset(), hasTransform() || hasReflection() || style().isFlippedBlocksWritingMode()); 289 289 290 290 prepareShapesAndPaginationBeforeBlockLayout(relayoutChildren); … … 296 296 297 297 if (previousSize != size() 298 || (parent()->isDeprecatedFlexibleBox() && parent()->style() ->boxOrient() == HORIZONTAL299 && parent()->style() ->boxAlign() == BSTRETCH))298 || (parent()->isDeprecatedFlexibleBox() && parent()->style().boxOrient() == HORIZONTAL 299 && parent()->style().boxAlign() == BSTRETCH)) 300 300 relayoutChildren = true; 301 301 … … 355 355 for (RenderBox* child = iterator.first(); child; child = iterator.next()) { 356 356 // Check to see if this child flexes. 357 if (!childDoesNotAffectWidthOrFlexing(child) && child->style() ->boxFlex() > 0.0f) {357 if (!childDoesNotAffectWidthOrFlexing(child) && child->style().boxFlex() > 0.0f) { 358 358 // We always have to lay out flexible objects again, since the flex distribution 359 359 // may have changed, and we need to reallocate space. … … 362 362 child->setChildNeedsLayout(MarkOnlyThis); 363 363 haveFlex = true; 364 unsigned int flexGroup = child->style()->boxFlexGroup();364 unsigned flexGroup = child->style().boxFlexGroup(); 365 365 if (lowestFlexGroup == 0) 366 366 lowestFlexGroup = flexGroup; … … 441 441 442 442 // Update our height and overflow height. 443 if (style() ->boxAlign() == BBASELINE) {443 if (style().boxAlign() == BBASELINE) { 444 444 LayoutUnit ascent = child->firstLineBaseline(); 445 445 if (ascent == -1) … … 463 463 464 464 if (!iterator.first() && hasLineIfEmpty()) 465 setHeight(height() + lineHeight(true, style() ->isHorizontalWritingMode() ? HorizontalLine : VerticalLine, PositionOfInteriorLineBoxes));465 setHeight(height() + lineHeight(true, style().isHorizontalWritingMode() ? HorizontalLine : VerticalLine, PositionOfInteriorLineBoxes)); 466 466 467 467 setHeight(height() + toAdd); … … 476 476 // Now that our height is actually known, we can place our boxes. 477 477 childIndex = 0; 478 m_stretchingChildren = (style() ->boxAlign() == BSTRETCH);478 m_stretchingChildren = (style().boxAlign() == BSTRETCH); 479 479 for (RenderBox* child = iterator.first(); child; child = iterator.next()) { 480 480 if (child->isOutOfFlowPositioned()) { … … 484 484 if (childLayer->staticBlockPosition() != yPos) { 485 485 childLayer->setStaticBlockPosition(yPos); 486 if (child->style() ->hasStaticBlockPosition(style()->isHorizontalWritingMode()))486 if (child->style().hasStaticBlockPosition(style().isHorizontalWritingMode())) 487 487 child->setChildNeedsLayout(MarkOnlyThis); 488 488 } … … 492 492 LayoutSize& childLayoutDelta = childLayoutDeltas[childIndex++]; 493 493 494 if (child->style() ->visibility() == COLLAPSE) {494 if (child->style().visibility() == COLLAPSE) { 495 495 // visibility: collapsed children do not participate in our positioning. 496 496 // But we need to lay them out. … … 515 515 xPos += child->marginLeft(); 516 516 LayoutUnit childY = yPos; 517 switch (style() ->boxAlign()) {517 switch (style().boxAlign()) { 518 518 case BCENTER: 519 519 childY += child->marginTop() + max<LayoutUnit>(0, (contentHeight() - (child->height() + child->marginHeight())) / 2); … … 569 569 for (RenderBox* child = iterator.first(); child; child = iterator.next()) { 570 570 if (allowedChildFlex(child, expanding, i)) 571 totalFlex += child->style() ->boxFlex();571 totalFlex += child->style().boxFlex(); 572 572 } 573 573 LayoutUnit spaceAvailableThisPass = groupRemainingSpace; … … 575 575 LayoutUnit allowedFlex = allowedChildFlex(child, expanding, i); 576 576 if (allowedFlex) { 577 LayoutUnit projectedFlex = (allowedFlex == LayoutUnit::max()) ? allowedFlex : LayoutUnit(allowedFlex * (totalFlex / child->style() ->boxFlex()));577 LayoutUnit projectedFlex = (allowedFlex == LayoutUnit::max()) ? allowedFlex : LayoutUnit(allowedFlex * (totalFlex / child->style().boxFlex())); 578 578 spaceAvailableThisPass = expanding ? min(spaceAvailableThisPass, projectedFlex) : max(spaceAvailableThisPass, projectedFlex); 579 579 } … … 589 589 // Now distribute the space to objects. 590 590 for (RenderBox* child = iterator.first(); child && spaceAvailableThisPass && totalFlex; child = iterator.next()) { 591 if (child->style() ->visibility() == COLLAPSE)591 if (child->style().visibility() == COLLAPSE) 592 592 continue; 593 593 594 594 if (allowedChildFlex(child, expanding, i)) { 595 LayoutUnit spaceAdd = LayoutUnit(spaceAvailableThisPass * (child->style() ->boxFlex() / totalFlex));595 LayoutUnit spaceAdd = LayoutUnit(spaceAvailableThisPass * (child->style().boxFlex() / totalFlex)); 596 596 if (spaceAdd) { 597 597 child->setOverrideLogicalContentWidth(contentWidthForChild(child) + spaceAdd); … … 604 604 groupRemainingSpace -= spaceAdd; 605 605 606 totalFlex -= child->style() ->boxFlex();606 totalFlex -= child->style().boxFlex(); 607 607 } 608 608 } … … 631 631 RenderBlock::finishDelayUpdateScrollInfo(); 632 632 633 if (remainingSpace > 0 && ((style() ->isLeftToRightDirection() && style()->boxPack() != Start)634 || (!style() ->isLeftToRightDirection() && style()->boxPack() != End))) {633 if (remainingSpace > 0 && ((style().isLeftToRightDirection() && style().boxPack() != Start) 634 || (!style().isLeftToRightDirection() && style().boxPack() != End))) { 635 635 // Children must be repositioned. 636 636 LayoutUnit offset = 0; 637 if (style() ->boxPack() == Justify) {637 if (style().boxPack() == Justify) { 638 638 // Determine the total number of children. 639 639 int totalChildren = 0; … … 666 666 } 667 667 } else { 668 if (style() ->boxPack() == Center)668 if (style().boxPack() == Center) 669 669 offset += remainingSpace / 2; 670 670 else // END for LTR, START for RTL … … 702 702 // We confine the line clamp ugliness to vertical flexible boxes (thus keeping it out of 703 703 // mainstream block layout); this is not really part of the XUL box model. 704 bool haveLineClamp = !style() ->lineClamp().isNone();704 bool haveLineClamp = !style().lineClamp().isNone(); 705 705 if (haveLineClamp) 706 706 applyLineClamp(iterator, relayoutChildren); … … 731 731 if (childLayer->staticBlockPosition() != height()) { 732 732 childLayer->setStaticBlockPosition(height()); 733 if (child->style() ->hasStaticBlockPosition(style()->isHorizontalWritingMode()))733 if (child->style().hasStaticBlockPosition(style().isHorizontalWritingMode())) 734 734 child->setChildNeedsLayout(MarkOnlyThis); 735 735 } … … 739 739 LayoutSize& childLayoutDelta = childLayoutDeltas[childIndex++]; 740 740 741 if (child->style() ->visibility() == COLLAPSE) {741 if (child->style().visibility() == COLLAPSE) { 742 742 // visibility: collapsed children do not participate in our positioning. 743 743 // But we need to lay them down. … … 760 760 // We can place the child now, using our value of box-align. 761 761 LayoutUnit childX = borderLeft() + paddingLeft(); 762 switch (style() ->boxAlign()) {762 switch (style().boxAlign()) { 763 763 case BCENTER: 764 764 case BBASELINE: // Baseline just maps to center for vertical boxes … … 766 766 break; 767 767 case BEND: 768 if (!style() ->isLeftToRightDirection())768 if (!style().isLeftToRightDirection()) 769 769 childX += child->marginLeft(); 770 770 else … … 772 772 break; 773 773 default: // BSTART/BSTRETCH 774 if (style() ->isLeftToRightDirection())774 if (style().isLeftToRightDirection()) 775 775 childX += child->marginLeft(); 776 776 else … … 788 788 789 789 if (!iterator.first() && hasLineIfEmpty()) 790 setHeight(height() + lineHeight(true, style() ->isHorizontalWritingMode() ? HorizontalLine : VerticalLine, PositionOfInteriorLineBoxes));790 setHeight(height() + lineHeight(true, style().isHorizontalWritingMode() ? HorizontalLine : VerticalLine, PositionOfInteriorLineBoxes)); 791 791 792 792 setHeight(height() + toAdd); … … 830 830 for (RenderBox* child = iterator.first(); child; child = iterator.next()) { 831 831 if (allowedChildFlex(child, expanding, i)) 832 totalFlex += child->style() ->boxFlex();832 totalFlex += child->style().boxFlex(); 833 833 } 834 834 LayoutUnit spaceAvailableThisPass = groupRemainingSpace; … … 836 836 LayoutUnit allowedFlex = allowedChildFlex(child, expanding, i); 837 837 if (allowedFlex) { 838 LayoutUnit projectedFlex = (allowedFlex == LayoutUnit::max()) ? allowedFlex : static_cast<LayoutUnit>(allowedFlex * (totalFlex / child->style() ->boxFlex()));838 LayoutUnit projectedFlex = (allowedFlex == LayoutUnit::max()) ? allowedFlex : static_cast<LayoutUnit>(allowedFlex * (totalFlex / child->style().boxFlex())); 839 839 spaceAvailableThisPass = expanding ? min(spaceAvailableThisPass, projectedFlex) : max(spaceAvailableThisPass, projectedFlex); 840 840 } … … 851 851 for (RenderBox* child = iterator.first(); child && spaceAvailableThisPass && totalFlex; child = iterator.next()) { 852 852 if (allowedChildFlex(child, expanding, i)) { 853 LayoutUnit spaceAdd = static_cast<LayoutUnit>(spaceAvailableThisPass * (child->style() ->boxFlex() / totalFlex));853 LayoutUnit spaceAdd = static_cast<LayoutUnit>(spaceAvailableThisPass * (child->style().boxFlex() / totalFlex)); 854 854 if (spaceAdd) { 855 855 child->setOverrideLogicalContentHeight(contentHeightForChild(child) + spaceAdd); … … 862 862 groupRemainingSpace -= spaceAdd; 863 863 864 totalFlex -= child->style() ->boxFlex();864 totalFlex -= child->style().boxFlex(); 865 865 } 866 866 } … … 889 889 RenderBlock::finishDelayUpdateScrollInfo(); 890 890 891 if (style() ->boxPack() != Start && remainingSpace > 0) {891 if (style().boxPack() != Start && remainingSpace > 0) { 892 892 // Children must be repositioned. 893 893 LayoutUnit offset = 0; 894 if (style() ->boxPack() == Justify) {894 if (style().boxPack() == Justify) { 895 895 // Determine the total number of children. 896 896 int totalChildren = 0; … … 923 923 } 924 924 } else { 925 if (style() ->boxPack() == Center)925 if (style().boxPack() == Center) 926 926 offset += remainingSpace / 2; 927 927 else // END … … 949 949 950 950 child->clearOverrideSize(); 951 if (relayoutChildren || (child->isReplaced() && (child->style() ->width().isPercent() || child->style()->height().isPercent()))952 || (child->style() ->height().isAuto() && child->isRenderBlockFlow())) {951 if (relayoutChildren || (child->isReplaced() && (child->style().width().isPercent() || child->style().height().isPercent())) 952 || (child->style().height().isAuto() && child->isRenderBlockFlow())) { 953 953 child->setChildNeedsLayout(MarkOnlyThis); 954 954 … … 960 960 } 961 961 child->layoutIfNeeded(); 962 if (child->style() ->height().isAuto() && child->isRenderBlockFlow())962 if (child->style().height().isAuto() && child->isRenderBlockFlow()) 963 963 maxLineCount = max(maxLineCount, toRenderBlockFlow(child)->lineCount()); 964 964 } … … 966 966 // Get the number of lines and then alter all block flow children with auto height to use the 967 967 // specified height. We always try to leave room for at least one line. 968 LineClampValue lineClamp = style() ->lineClamp();968 LineClampValue lineClamp = style().lineClamp(); 969 969 int numVisibleLines = lineClamp.isPercentage() ? max(1, (maxLineCount + 1) * lineClamp.value() / 100) : lineClamp.value(); 970 970 if (numVisibleLines >= maxLineCount) … … 972 972 973 973 for (RenderBox* child = iterator.first(); child; child = iterator.next()) { 974 if (childDoesNotAffectWidthOrFlexing(child) || !child->style() ->height().isAuto() || !child->isRenderBlockFlow())974 if (childDoesNotAffectWidthOrFlexing(child) || !child->style().height().isAuto() || !child->isRenderBlockFlow()) 975 975 continue; 976 976 … … 989 989 990 990 // FIXME: For now don't support RTL. 991 if (style() ->direction() != LTR)991 if (style().direction() != LTR) 992 992 continue; 993 993 … … 1004 1004 DEFINE_STATIC_LOCAL(AtomicString, ellipsisAndSpaceStr, (ellipsisAndSpace, 2)); 1005 1005 DEFINE_STATIC_LOCAL(AtomicString, ellipsisStr, (&horizontalEllipsis, 1)); 1006 const RenderStyle& lineStyle = numVisibleLines == 1 ? *firstLineStyle() : *style();1006 const RenderStyle& lineStyle = numVisibleLines == 1 ? firstLineStyle() : style(); 1007 1007 const Font& font = lineStyle.font(); 1008 1008 … … 1010 1010 LayoutUnit totalWidth; 1011 1011 InlineBox* anchorBox = lastLine->lastChild(); 1012 if (anchorBox && anchorBox->renderer().style() ->isLink())1013 totalWidth = anchorBox->logicalWidth() + font.width(constructTextRun(this, font, ellipsisAndSpace, 2, *style()));1012 if (anchorBox && anchorBox->renderer().style().isLink()) 1013 totalWidth = anchorBox->logicalWidth() + font.width(constructTextRun(this, font, ellipsisAndSpace, 2, style())); 1014 1014 else { 1015 1015 anchorBox = 0; 1016 totalWidth = font.width(constructTextRun(this, font, &horizontalEllipsis, 1, *style()));1016 totalWidth = font.width(constructTextRun(this, font, &horizontalEllipsis, 1, style())); 1017 1017 } 1018 1018 … … 1022 1022 1023 1023 // FIXME: Directions of src/destBlock could be different from our direction and from one another. 1024 if (!srcBlock.style() ->isLeftToRightDirection())1024 if (!srcBlock.style().isLeftToRightDirection()) 1025 1025 continue; 1026 1026 1027 bool leftToRight = destBlock.style() ->isLeftToRightDirection();1027 bool leftToRight = destBlock.style().isLeftToRightDirection(); 1028 1028 if (!leftToRight) 1029 1029 continue; … … 1049 1049 1050 1050 child->clearOverrideSize(); 1051 if ((child->isReplaced() && (child->style() ->width().isPercent() || child->style()->height().isPercent()))1052 || (child->style() ->height().isAuto() && child->isRenderBlock())) {1051 if ((child->isReplaced() && (child->style().width().isPercent() || child->style().height().isPercent())) 1052 || (child->style().height().isAuto() && child->isRenderBlock())) { 1053 1053 child->setChildNeedsLayout(); 1054 1054 … … 1071 1071 LayoutUnit RenderDeprecatedFlexibleBox::allowedChildFlex(RenderBox* child, bool expanding, unsigned int group) 1072 1072 { 1073 if (childDoesNotAffectWidthOrFlexing(child) || child->style() ->boxFlex() == 0.0f || child->style()->boxFlexGroup() != group)1073 if (childDoesNotAffectWidthOrFlexing(child) || child->style().boxFlex() == 0.0f || child->style().boxFlexGroup() != group) 1074 1074 return 0; 1075 1075 … … 1079 1079 LayoutUnit maxWidth = LayoutUnit::max(); 1080 1080 LayoutUnit width = contentWidthForChild(child); 1081 if (!child->style() ->maxWidth().isUndefined() && child->style()->maxWidth().isFixed())1082 maxWidth = child->style() ->maxWidth().value();1083 else if (child->style() ->maxWidth().type() == Intrinsic)1081 if (!child->style().maxWidth().isUndefined() && child->style().maxWidth().isFixed()) 1082 maxWidth = child->style().maxWidth().value(); 1083 else if (child->style().maxWidth().type() == Intrinsic) 1084 1084 maxWidth = child->maxPreferredLogicalWidth(); 1085 else if (child->style() ->maxWidth().type() == MinIntrinsic)1085 else if (child->style().maxWidth().type() == MinIntrinsic) 1086 1086 maxWidth = child->minPreferredLogicalWidth(); 1087 1087 if (maxWidth == LayoutUnit::max()) … … 1092 1092 LayoutUnit maxHeight = LayoutUnit::max(); 1093 1093 LayoutUnit height = contentHeightForChild(child); 1094 if (!child->style() ->maxHeight().isUndefined() && child->style()->maxHeight().isFixed())1095 maxHeight = child->style() ->maxHeight().value();1094 if (!child->style().maxHeight().isUndefined() && child->style().maxHeight().isFixed()) 1095 maxHeight = child->style().maxHeight().value(); 1096 1096 if (maxHeight == LayoutUnit::max()) 1097 1097 return maxHeight; … … 1104 1104 LayoutUnit minWidth = child->minPreferredLogicalWidth(); 1105 1105 LayoutUnit width = contentWidthForChild(child); 1106 if (child->style() ->minWidth().isFixed())1107 minWidth = child->style() ->minWidth().value();1108 else if (child->style() ->minWidth().type() == Intrinsic)1106 if (child->style().minWidth().isFixed()) 1107 minWidth = child->style().minWidth().value(); 1108 else if (child->style().minWidth().type() == Intrinsic) 1109 1109 minWidth = child->maxPreferredLogicalWidth(); 1110 else if (child->style() ->minWidth().type() == MinIntrinsic)1110 else if (child->style().minWidth().type() == MinIntrinsic) 1111 1111 minWidth = child->minPreferredLogicalWidth(); 1112 else if (child->style() ->minWidth().type() == Auto)1112 else if (child->style().minWidth().type() == Auto) 1113 1113 minWidth = 0; 1114 1114 … … 1116 1116 return allowedShrinkage; 1117 1117 } else { 1118 Length minHeight = child->style() ->minHeight();1118 Length minHeight = child->style().minHeight(); 1119 1119 if (minHeight.isFixed() || minHeight.isAuto()) { 1120 LayoutUnit minHeight = child->style() ->minHeight().value();1120 LayoutUnit minHeight = child->style().minHeight().value(); 1121 1121 LayoutUnit height = contentHeightForChild(child); 1122 1122 LayoutUnit allowedShrinkage = min<LayoutUnit>(0, minHeight - height);
Note:
See TracChangeset
for help on using the changeset viewer.