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

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

Issue 2834603003: Split StyleSurroundData::padding into four individual Lengths. (Closed)
Patch Set: Split StyleSurroundData::padding into four individual Lengths. 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 181eb2a135b0593bfd69f06ab3e064c23cc2a75c..109f612f5bc12845416066515750cfcf795dd3bd 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;
}
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/core/style/StyleSurroundData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698