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 8440e967d80a6c07f217756695667f63a1db1455..169e2f80e80b1f1d02506f2bdf87d17482d5a1a6 100644 |
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
@@ -579,10 +579,8 @@ bool ComputedStyle::ScrollAnchorDisablingPropertyChanged( |
return true; |
} |
- if (surround_data_.Get() != other.surround_data_.Get()) { |
- if (!MarginEqual(other) || !OffsetEqual(other) || !PaddingEqual(other)) |
- return true; |
- } |
+ if (ComputedStyleBase::ScrollAnchorDisablingPropertyChanged(other, diff)) |
+ return true; |
if (diff.TransformChanged()) |
return true; |
@@ -607,11 +605,11 @@ bool ComputedStyle::DiffNeedsFullLayoutAndPaintInvalidation( |
BorderBottomWidth() != other.BorderBottomWidth() || |
BorderRightWidth() != other.BorderRightWidth()) |
return true; |
- |
- if (!PaddingEqual(other)) |
- return true; |
} |
+ if (ComputedStyleBase::DiffNeedsFullLayoutAndPaintInvalidation(other)) |
+ return true; |
+ |
if (rare_non_inherited_data_.Get() != other.rare_non_inherited_data_.Get()) { |
if (rare_non_inherited_data_->appearance_ != |
other.rare_non_inherited_data_->appearance_ || |