Changeset 236133 in webkit
- Timestamp:
- Sep 18, 2018, 8:39:47 AM (8 years ago)
- Location:
- releases/WebKitGTK/webkit-2.22
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/flexbox/crash-when-min-max-content-is-not-computed-expected.txt (added)
-
LayoutTests/fast/flexbox/crash-when-min-max-content-is-not-computed.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderFlexibleBox.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.22/LayoutTests/ChangeLog
r236130 r236133 1 2018-09-02 Zalan Bujtas <zalan@apple.com> 2 3 REGRESSION (r191336): RenderFlexibleBox::adjustChildSizeForMinAndMax crashes in std::optional<>::value() 4 https://bugs.webkit.org/show_bug.cgi?id=189232 5 <rdar://problem/43886373> 6 7 Reviewed by Brent Fulgham. 8 9 * fast/flexbox/crash-when-min-max-content-is-not-computed-expected.txt: Added. 10 * fast/flexbox/crash-when-min-max-content-is-not-computed.html: Added. 11 1 12 2018-08-31 John Wilander <wilander@apple.com> 2 13 -
releases/WebKitGTK/webkit-2.22/Source/WebCore/ChangeLog
r236131 r236133 1 2018-09-02 Zalan Bujtas <zalan@apple.com> 2 3 REGRESSION (r191336): RenderFlexibleBox::adjustChildSizeForMinAndMax crashes in std::optional<>::value() 4 https://bugs.webkit.org/show_bug.cgi?id=189232 5 <rdar://problem/43886373> 6 7 Reviewed by Brent Fulgham. 8 9 It's not guaranteed that RenderFlexibleBox::computeMainAxisExtentForChild() always returns with a valid value. 10 11 Test: fast/flexbox/crash-when-min-max-content-is-not-computed.html 12 13 * rendering/RenderFlexibleBox.cpp: 14 (WebCore::RenderFlexibleBox::adjustChildSizeForMinAndMax): 15 1 16 2018-08-31 Jer Noble <jer.noble@apple.com> 2 17 -
releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/RenderFlexibleBox.cpp
r232018 r236133 1088 1088 // produces reasonable results. Tracking bug: https://crbug.com/581553 1089 1089 // css-flexbox section 4.5 1090 LayoutUnit contentSize = computeMainAxisExtentForChild(child, MinSize, Length(MinContent)).value(); 1090 // FIXME: If the min value is expected to be valid here, we need to come up with a non optional version of computeMainAxisExtentForChild and 1091 // ensure it's valid through the virtual calls of computeIntrinsicLogicalContentHeightUsing. 1092 LayoutUnit contentSize = computeMainAxisExtentForChild(child, MinSize, Length(MinContent)).value_or(0); 1091 1093 ASSERT(contentSize >= 0); 1092 1094 if (child.hasAspectRatio() && child.intrinsicSize().height() > 0) … … 1096 1098 Length mainSize = isHorizontalFlow() ? child.style().width() : child.style().height(); 1097 1099 if (mainAxisLengthIsDefinite(child, mainSize)) { 1098 LayoutUnit resolvedMainSize = computeMainAxisExtentForChild(child, MainOrPreferredSize, mainSize).value ();1100 LayoutUnit resolvedMainSize = computeMainAxisExtentForChild(child, MainOrPreferredSize, mainSize).value_or(0); 1099 1101 ASSERT(resolvedMainSize >= 0); 1100 1102 LayoutUnit specifiedSize = std::min(resolvedMainSize, maxExtent.value_or(resolvedMainSize));
Note:
See TracChangeset
for help on using the changeset viewer.