Changeset 156816 in webkit for trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
- Timestamp:
- Oct 2, 2013, 7:26:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
r156738 r156816 317 317 EAlignItems previousAlignment = resolveAlignment(oldStyle, child->style()); 318 318 if (previousAlignment == AlignStretch && previousAlignment != resolveAlignment(style(), child->style())) 319 child->setChildNeedsLayout( true,MarkOnlyThis);319 child->setChildNeedsLayout(MarkOnlyThis); 320 320 } 321 321 } … … 386 386 repainter.repaintAfterLayout(); 387 387 388 setNeedsLayout(false);388 clearNeedsLayout(); 389 389 } 390 390 … … 752 752 if (hasOrthogonalFlow(child)) { 753 753 if (hasOverrideSize) 754 child->setChildNeedsLayout( true,MarkOnlyThis);754 child->setChildNeedsLayout(MarkOnlyThis); 755 755 child->layoutIfNeeded(); 756 756 } … … 1098 1098 childLayer->setStaticBlockPosition(staticBlockPosition); 1099 1099 if (child->style()->hasStaticBlockPosition(style()->isHorizontalWritingMode())) 1100 child->setChildNeedsLayout( true,MarkOnlyThis);1100 child->setChildNeedsLayout(MarkOnlyThis); 1101 1101 } 1102 1102 } … … 1172 1172 // FIXME: Can avoid laying out here in some cases. See https://webkit.org/b/87905. 1173 1173 if (needToStretchChild(child) || childPreferredSize != mainAxisExtentForChild(child)) 1174 child->setChildNeedsLayout( true,MarkOnlyThis);1174 child->setChildNeedsLayout(MarkOnlyThis); 1175 1175 else { 1176 1176 // To avoid double applying margin changes in updateAutoMarginsInCrossAxis, we reset the margins here. … … 1406 1406 child->setOverrideLogicalContentHeight(desiredLogicalHeight - child->borderAndPaddingLogicalHeight()); 1407 1407 child->setLogicalHeight(0); 1408 child->setChildNeedsLayout( true,MarkOnlyThis);1408 child->setChildNeedsLayout(MarkOnlyThis); 1409 1409 child->layout(); 1410 1410 } … … 1418 1418 if (childWidth != child->logicalWidth()) { 1419 1419 child->setOverrideLogicalContentWidth(childWidth - child->borderAndPaddingLogicalWidth()); 1420 child->setChildNeedsLayout( true,MarkOnlyThis);1420 child->setChildNeedsLayout(MarkOnlyThis); 1421 1421 child->layout(); 1422 1422 }
Note:
See TracChangeset
for help on using the changeset viewer.