Changeset 191336 in webkit
- Timestamp:
- Oct 20, 2015, 2:57:23 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/flexbox/crash-resolved-main-size-zero-expected.txt (added)
-
LayoutTests/fast/flexbox/crash-resolved-main-size-zero.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderFlexibleBox.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r191331 r191336 1 2015-10-13 Sergio Villar Senin <svillar@igalia.com> 2 3 ASSERTION FAILED: computeMainAxisExtentForChild(child, MainOrPreferredSize, mainSize) in WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax 4 https://bugs.webkit.org/show_bug.cgi?id=149459 5 6 Reviewed by Darin Adler. 7 8 * fast/flexbox/crash-resolved-main-size-zero-expected.txt: Added. 9 * fast/flexbox/crash-resolved-main-size-zero.html: Added. 10 1 11 2015-10-19 Myles C. Maxfield <mmaxfield@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r191335 r191336 1 2015-10-13 Sergio Villar Senin <svillar@igalia.com> 2 3 ASSERTION FAILED: computeMainAxisExtentForChild(child, MainOrPreferredSize, mainSize) in WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax 4 https://bugs.webkit.org/show_bug.cgi?id=149459 5 6 Reviewed by Darin Adler. 7 8 This was regressed after 189567 where min-height|width:auto 9 support was added to flex items. The merge from Blink changes 10 was not correctly done for assertions. In particular we were 11 asserting if the resolved main size was not strictly greater 12 than 0, but 0 is actually a valid value. 13 14 Test: fast/flexbox/crash-resolved-main-size-zero.html 15 16 * rendering/RenderFlexibleBox.cpp: 17 (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): 18 1 19 2015-10-20 Xabier Rodriguez Calvar <calvaris@igalia.com> 2 20 -
trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
r190834 r191336 870 870 // items. For any other item the value should be 0, this also includes RenderFlexibleBox's derived clases 871 871 // (RenderButton, RenderFullScreen...) because that's just an implementation detail. 872 LayoutUnit contentSize = computeMainAxisExtentForChild(child, MinSize, Length(MinContent)).value Or(0);873 ASSERT(co mputeMainAxisExtentForChild(child, MinSize, Length(MinContent)));872 LayoutUnit contentSize = computeMainAxisExtentForChild(child, MinSize, Length(MinContent)).value(); 873 ASSERT(contentSize >= 0); 874 874 contentSize = std::min(contentSize, maxExtent.valueOr(contentSize)); 875 875 876 876 Length mainSize = isHorizontalFlow() ? child.style().width() : child.style().height(); 877 877 if (!mainAxisLengthIsIndefinite(mainSize)) { 878 LayoutUnit resolvedMainSize = computeMainAxisExtentForChild(child, MainOrPreferredSize, mainSize).value Or(0);879 ASSERT( computeMainAxisExtentForChild(child, MainOrPreferredSize, mainSize));878 LayoutUnit resolvedMainSize = computeMainAxisExtentForChild(child, MainOrPreferredSize, mainSize).value(); 879 ASSERT(resolvedMainSize >= 0); 880 880 LayoutUnit specifiedSize = std::min(resolvedMainSize, maxExtent.valueOr(resolvedMainSize)); 881 881
Note:
See TracChangeset
for help on using the changeset viewer.