| Index: third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp b/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| index 6c708a0e36b89e1aaa46fc1b9f7cd74b91dc39dc..30083fe450ccfbbde78c61341aea6eb856c11d7c 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp
|
| @@ -254,8 +254,8 @@ void LayoutReplaced::computePositionedLogicalWidth(LogicalExtentComputedValues&
|
| * ('rtl'), set 'margin-left' ('margin-right') to zero and solve for
|
| * 'margin-right' ('margin-left').
|
| \*-----------------------------------------------------------------------*/
|
| - LayoutUnit logicalLeftValue = 0;
|
| - LayoutUnit logicalRightValue = 0;
|
| + LayoutUnit logicalLeftValue;
|
| + LayoutUnit logicalRightValue;
|
|
|
| if (marginLogicalLeft.isAuto() && marginLogicalRight.isAuto()) {
|
| // 'left' and 'right' cannot be 'auto' due to step 3
|
| @@ -415,8 +415,8 @@ void LayoutReplaced::computePositionedLogicalHeight(LogicalExtentComputedValues&
|
| * 'auto', solve the equation under the extra constraint that the two
|
| * margins must get equal values.
|
| \*-----------------------------------------------------------------------*/
|
| - LayoutUnit logicalTopValue = 0;
|
| - LayoutUnit logicalBottomValue = 0;
|
| + LayoutUnit logicalTopValue;
|
| + LayoutUnit logicalBottomValue;
|
|
|
| if (marginBefore.isAuto() && marginAfter.isAuto()) {
|
| // 'top' and 'bottom' cannot be 'auto' due to step 2 and 3 combined.
|
|
|