| 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 f18089c598d326dec3cf680e72c2319d6e743e83..15dd76725dab94f698797f6213b5b643f9a3bc3a 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
|
| @@ -400,6 +400,10 @@ void ApplyAutoMargins(const NGConstraintSpace& constraint_space,
|
| const LayoutUnit& inline_size,
|
| NGBoxStrut* margins) {
|
| DCHECK(margins) << "Margins cannot be NULL here";
|
| +
|
| + if (style.isFloating())
|
| + return;
|
| +
|
| const LayoutUnit used_space = inline_size + margins->InlineSum();
|
| const LayoutUnit available_space =
|
| constraint_space.AvailableSize().inline_size - used_space;
|
|
|