Changeset 157674 in webkit for trunk/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp
- Timestamp:
- Oct 19, 2013, 12:55:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp
r157408 r157674 955 955 child->clearOverrideSize(); 956 956 if (relayoutChildren || (child->isReplaced() && (child->style()->width().isPercent() || child->style()->height().isPercent())) 957 || (child->style()->height().isAuto() && child->isRenderBlock ())) {957 || (child->style()->height().isAuto() && child->isRenderBlockFlow())) { 958 958 child->setChildNeedsLayout(MarkOnlyThis); 959 959 960 960 // Dirty all the positioned objects. 961 if (child->isRenderBlock ()) {962 toRenderBlock (child)->markPositionedObjectsForLayout();963 toRenderBlock (child)->clearTruncation();961 if (child->isRenderBlockFlow()) { 962 toRenderBlockFlow(child)->markPositionedObjectsForLayout(); 963 toRenderBlockFlow(child)->clearTruncation(); 964 964 } 965 965 } 966 966 child->layoutIfNeeded(); 967 if (child->style()->height().isAuto() && child->isRenderBlock ())968 maxLineCount = max(maxLineCount, toRenderBlock (child)->lineCount());967 if (child->style()->height().isAuto() && child->isRenderBlockFlow()) 968 maxLineCount = max(maxLineCount, toRenderBlockFlow(child)->lineCount()); 969 969 } 970 970 … … 977 977 978 978 for (RenderBox* child = iterator.first(); child; child = iterator.next()) { 979 if (childDoesNotAffectWidthOrFlexing(child) || !child->style()->height().isAuto() || !child->isRenderBlock ())979 if (childDoesNotAffectWidthOrFlexing(child) || !child->style()->height().isAuto() || !child->isRenderBlockFlow()) 980 980 continue; 981 981 982 RenderBlock * blockChild = toRenderBlock(child);982 RenderBlockFlow* blockChild = toRenderBlockFlow(child); 983 983 int lineCount = blockChild->lineCount(); 984 984 if (lineCount <= numVisibleLines) … … 1023 1023 1024 1024 // See if this width can be accommodated on the last visible line 1025 RenderBlock & destBlock = toRenderBlock(lastVisibleLine->renderer());1026 RenderBlock & srcBlock = toRenderBlock(lastLine->renderer());1025 RenderBlockFlow& destBlock = lastVisibleLine->blockFlow(); 1026 RenderBlockFlow& srcBlock = lastLine->blockFlow(); 1027 1027 1028 1028 // FIXME: Directions of src/destBlock could be different from our direction and from one another. … … 1058 1058 child->setChildNeedsLayout(); 1059 1059 1060 if (child->isRenderBlock ()) {1061 toRenderBlock (child)->markPositionedObjectsForLayout();1062 toRenderBlock (child)->clearTruncation();1060 if (child->isRenderBlockFlow()) { 1061 toRenderBlockFlow(child)->markPositionedObjectsForLayout(); 1062 toRenderBlockFlow(child)->clearTruncation(); 1063 1063 } 1064 1064 }
Note:
See TracChangeset
for help on using the changeset viewer.