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

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

Issue 2932593004: Update the snap points css properties (Closed)
Patch Set: Fix nits Created 3 years, 6 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/StyleScrollSnapData.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleScrollSnapData.cpp b/third_party/WebKit/Source/core/style/StyleScrollSnapData.cpp
index b33d1b2ccc05b9e18d4159783c8a63ecc10aa993..e6841a219a4485c0f63c637e8c3f8f579d233292 100644
--- a/third_party/WebKit/Source/core/style/StyleScrollSnapData.cpp
+++ b/third_party/WebKit/Source/core/style/StyleScrollSnapData.cpp
@@ -30,20 +30,20 @@
namespace blink {
StyleScrollSnapData::StyleScrollSnapData()
- : x_points_(ComputedStyle::InitialScrollSnapPointsX()),
- y_points_(ComputedStyle::InitialScrollSnapPointsY()),
- destination_(ComputedStyle::InitialScrollSnapDestination()),
- coordinates_(ComputedStyle::InitialScrollSnapCoordinate()) {}
+ : type_(ComputedStyle::InitialScrollSnapType()),
+ align_(ComputedStyle::InitialScrollSnapAlign()),
+ padding_(ComputedStyle::InitialScrollPadding()),
+ margin_(ComputedStyle::InitialScrollSnapMargin()) {}
StyleScrollSnapData::StyleScrollSnapData(const StyleScrollSnapData& other)
- : x_points_(other.x_points_),
- y_points_(other.y_points_),
- destination_(other.destination_),
- coordinates_(other.coordinates_) {}
+ : type_(other.type_),
+ align_(other.align_),
+ padding_(other.padding_),
+ margin_(other.margin_) {}
bool operator==(const StyleScrollSnapData& a, const StyleScrollSnapData& b) {
- return a.x_points_ == b.x_points_ && a.y_points_ == b.y_points_ &&
- a.destination_ == b.destination_ && a.coordinates_ == b.coordinates_;
+ return a.type_ == b.type_ && a.align_ == b.align_ &&
+ a.padding_ == b.padding_ && a.margin_ == b.margin_;
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698