Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2834603003: Split StyleSurroundData::padding into four individual Lengths. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698