| Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| index fe8d94ce59333cdc8753f0a7d7c37ea7ee7a9507..8890660b43a1904a8ed4c781b4212d4350f85497 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| @@ -527,7 +527,7 @@ StyleDifference ComputedStyle::VisualInvalidationDiff(
|
| if (!diff.NeedsFullLayout() && DiffNeedsFullLayout(other))
|
| diff.SetNeedsFullLayout();
|
|
|
| - if (!diff.NeedsFullLayout() && Margin() != other.Margin()) {
|
| + if (!diff.NeedsFullLayout() && !MarginEqual(other)) {
|
| // Relative-positioned elements collapse their margins so need a full
|
| // layout.
|
| if (HasOutOfFlowPosition())
|
| @@ -589,7 +589,7 @@ bool ComputedStyle::ScrollAnchorDisablingPropertyChanged(
|
| }
|
|
|
| if (surround_.Get() != other.surround_.Get()) {
|
| - if (Margin() != other.Margin() || !OffsetEqual(other) ||
|
| + if (!MarginEqual(other) || !OffsetEqual(other) ||
|
| Padding() != other.Padding())
|
| return true;
|
| }
|
|
|