| Index: third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc b/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc
|
| index 10b9102d797bb0a73e69da7ab4577a0cb45d9393..f01a9e9353c377e4ddb5b572c52ba2769d9ac944 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc
|
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc
|
| @@ -50,7 +50,7 @@ LayoutUnit resolveBlockLength(const NGConstraintSpace& constraintSpace,
|
|
|
| // Make sure that indefinite percentages resolve to NGSizeIndefinite, not to
|
| // a random negative number.
|
| - if (length.hasPercent() &&
|
| + if (length.isPercentOrCalc() &&
|
| constraintSpace.ContainerSize().block_size == NGSizeIndefinite)
|
| return contentSize;
|
|
|
|
|