| Index: third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc b/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
|
| index 98f327e0dd94a1846adfbbd94818c96176f7856b..3b5b8ab88fffe12ce4c175dc0a5c4e89b527026f 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
|
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_absolute_utils.cc
|
| @@ -112,9 +112,9 @@ void ComputeAbsoluteHorizontal(
|
| }
|
| }
|
| } else if (!margin_left) {
|
| - margin_left = margin_space;
|
| + margin_left = margin_space - *margin_right;
|
| } else if (!margin_right) {
|
| - margin_right = margin_space;
|
| + margin_right = margin_space - *margin_left;
|
| } else {
|
| // Are values overconstrained?
|
| if (*margin_left + *margin_right != margin_space) {
|
| @@ -256,9 +256,9 @@ void ComputeAbsoluteVertical(
|
| margin_bottom = margin_space;
|
| }
|
| } else if (!margin_top) {
|
| - margin_top = margin_space;
|
| + margin_top = margin_space - *margin_bottom;
|
| } else if (!margin_bottom) {
|
| - margin_bottom = margin_space;
|
| + margin_bottom = margin_space - *margin_top;
|
| } else {
|
| // Are values overconstrained?
|
| if (*margin_top + *margin_bottom != margin_space) {
|
|
|