Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp

Issue 2585423002: [css-flexbox] Pass correct available width to constrainLogicalWidthByMinMax (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/css3/flexbox/percentage-max-width-cross-axis.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
index 0a17cb941f084358815e3a8f712bf5c04a26330a..c76579423256b3fc814fa998b3ee881723fb40eb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp
@@ -2132,8 +2132,8 @@ void LayoutFlexibleBox::applyStretchAlignmentToChild(
LayoutUnit childWidth =
(lineCrossAxisExtent - crossAxisMarginExtentForChild(child))
.clampNegativeToZero();
- childWidth =
- child.constrainLogicalWidthByMinMax(childWidth, childWidth, this);
+ childWidth = child.constrainLogicalWidthByMinMax(
+ childWidth, crossAxisContentExtent(), this);
if (childWidth != child.logicalWidth()) {
child.setOverrideLogicalContentWidth(
« no previous file with comments | « third_party/WebKit/LayoutTests/css3/flexbox/percentage-max-width-cross-axis.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698