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 10ae30fe8df0ea58d7adbbbd99078c68bca03848..8dd5fe333d02b7ba2e784221735cba4a403453bb 100644 |
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
@@ -589,8 +589,7 @@ bool ComputedStyle::ScrollAnchorDisablingPropertyChanged( |
} |
if (surround_.Get() != other.surround_.Get()) { |
- if (!MarginEqual(other) || !OffsetEqual(other) || |
- Padding() != other.Padding()) |
+ if (!MarginEqual(other) || !OffsetEqual(other) || !PaddingEqual(other)) |
return true; |
} |
@@ -618,7 +617,7 @@ bool ComputedStyle::DiffNeedsFullLayoutAndPaintInvalidation( |
BorderRightWidth() != other.BorderRightWidth()) |
return true; |
- if (Padding() != other.Padding()) |
+ if (!PaddingEqual(other)) |
return true; |
} |