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

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

Issue 2767213003: First Implementation of Snapped Points
Patch Set: Rebase and format 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..29be342b632ecf3ef69e9fd01eec126f7136a332 100644
--- a/third_party/WebKit/Source/core/style/StyleScrollSnapData.cpp
+++ b/third_party/WebKit/Source/core/style/StyleScrollSnapData.cpp
@@ -33,17 +33,30 @@ StyleScrollSnapData::StyleScrollSnapData()
: x_points_(ComputedStyle::InitialScrollSnapPointsX()),
y_points_(ComputedStyle::InitialScrollSnapPointsY()),
destination_(ComputedStyle::InitialScrollSnapDestination()),
- coordinates_(ComputedStyle::InitialScrollSnapCoordinate()) {}
+ coordinates_(ComputedStyle::InitialScrollSnapCoordinate()),
+ type_(ComputedStyle::InitialScrollSnapType()),
+ align_(ComputedStyle::InitialScrollSnapAlign()),
+ padding_(),
+ margin_(),
+ stop_(ComputedStyle::InitialScrollSnapStop()) {}
StyleScrollSnapData::StyleScrollSnapData(const StyleScrollSnapData& other)
: x_points_(other.x_points_),
y_points_(other.y_points_),
destination_(other.destination_),
- coordinates_(other.coordinates_) {}
+ coordinates_(other.coordinates_),
+ type_(other.type_),
+ align_(other.align_),
+ padding_(other.padding_),
+ margin_(other.margin_),
+ stop_(other.stop_) {}
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_;
+ a.destination_ == b.destination_ && a.coordinates_ == b.coordinates_ &&
+ a.type_ == b.type_ && a.align_ == b.align_ &&
+ a.padding_ == b.padding_ && a.margin_ == b.margin_ &&
+ a.stop_ == b.stop_;
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleScrollSnapData.h ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698