Changeset 136660 in webkit
- Timestamp:
- Dec 5, 2012 2:24:55 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r136659 r136660 1 2012-12-05 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Flex item auto margins in the cross direction should safe center 4 https://bugs.webkit.org/show_bug.cgi?id=103919 5 6 Reviewed by Ojan Vafai. 7 8 * css3/flexbox/flex-flow-auto-margins-no-available-space-expected.txt: Added. 9 * css3/flexbox/flex-flow-auto-margins-no-available-space.html: Added. 10 1 11 2012-12-05 Mike West <mkwst@chromium.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r136657 r136660 1 2012-12-05 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 Flex item auto margins in the cross direction should safe center 4 https://bugs.webkit.org/show_bug.cgi?id=103919 5 6 Reviewed by Ojan Vafai. 7 8 Do not apply auto margins for cross axis if there's no alignment 9 space available. 10 11 Test: css3/flexbox/flex-flow-auto-margins-no-available-space.html 12 13 * rendering/RenderFlexibleBox.cpp: 14 (WebCore::RenderFlexibleBox::alignChildren): Make sure we pass a 15 positive value for availableAlignmentSpace to 16 updateAutoMarginsInCrossAxis(). 17 1 18 2012-12-05 Mike West <mkwst@chromium.org> 2 19 -
trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
r136656 r136660 781 781 void RenderFlexibleBox::updateAutoMarginsInMainAxis(RenderBox* child, LayoutUnit autoMarginOffset) 782 782 { 783 ASSERT(autoMarginOffset >= 0); 784 783 785 if (isHorizontalFlow()) { 784 786 if (child->style()->marginLeft().isAuto()) … … 811 813 { 812 814 ASSERT(!child->isOutOfFlowPositioned()); 815 ASSERT(availableAlignmentSpace >= 0); 813 816 814 817 bool isHorizontal = isHorizontalFlow(); … … 1296 1299 } 1297 1300 1298 if (updateAutoMarginsInCrossAxis(child, availableAlignmentSpaceForChild(lineCrossAxisExtent, child)))1301 if (updateAutoMarginsInCrossAxis(child, std::max(LayoutUnit(0), availableAlignmentSpaceForChild(lineCrossAxisExtent, child)))) 1299 1302 continue; 1300 1303
Note: See TracChangeset
for help on using the changeset viewer.