| Index: third_party/WebKit/Source/core/style/ScrollSnapPoints.h
|
| diff --git a/third_party/WebKit/Source/core/style/ScrollSnapPoints.h b/third_party/WebKit/Source/core/style/ScrollSnapPoints.h
|
| index 473265b60494c6c62c302e845b74e13659b946e0..34537c1bb134d9f507c1a2fa354ed00e84cb8047 100644
|
| --- a/third_party/WebKit/Source/core/style/ScrollSnapPoints.h
|
| +++ b/third_party/WebKit/Source/core/style/ScrollSnapPoints.h
|
| @@ -30,6 +30,84 @@ struct ScrollSnapPoints {
|
| bool uses_elements;
|
| };
|
|
|
| +struct ScrollSnapType {
|
| + DISALLOW_NEW();
|
| +
|
| + ScrollSnapType()
|
| + : axis(kSnapAxisNone), strictness(kSnapStrictnessProximity) {}
|
| +
|
| + bool operator==(const ScrollSnapType& other) const {
|
| + return axis == other.axis && strictness == other.strictness;
|
| + }
|
| +
|
| + bool operator!=(const ScrollSnapType& other) const {
|
| + return !(*this == other);
|
| + }
|
| +
|
| + SnapAxis axis;
|
| + SnapStrictness strictness;
|
| +};
|
| +
|
| +struct ScrollSnapAlign {
|
| + DISALLOW_NEW();
|
| +
|
| + ScrollSnapAlign()
|
| + : alignmentX(kSnapAlignmentNone), alignmentY(kSnapAlignmentNone) {}
|
| +
|
| + bool operator==(const ScrollSnapAlign& other) const {
|
| + return alignmentX == other.alignmentX && alignmentY == other.alignmentY;
|
| + }
|
| +
|
| + bool operator!=(const ScrollSnapAlign& other) const {
|
| + return !(*this == other);
|
| + }
|
| +
|
| + SnapAlignment alignmentX;
|
| + SnapAlignment alignmentY;
|
| +};
|
| +
|
| +struct ScrollSnapPadding {
|
| + DISALLOW_NEW();
|
| +
|
| + ScrollSnapPadding()
|
| + : top(kFixed), right(kFixed), bottom(kFixed), left(kFixed) {}
|
| +
|
| + bool operator==(const ScrollSnapPadding& other) const {
|
| + return top == other.top && right == other.right && bottom == other.bottom &&
|
| + left == other.left;
|
| + }
|
| +
|
| + bool operator!=(const ScrollSnapPadding& other) const {
|
| + return !(*this == other);
|
| + }
|
| +
|
| + Length top;
|
| + Length right;
|
| + Length bottom;
|
| + Length left;
|
| +};
|
| +
|
| +struct ScrollSnapMargin {
|
| + DISALLOW_NEW();
|
| +
|
| + ScrollSnapMargin()
|
| + : top(kFixed), right(kFixed), bottom(kFixed), left(kFixed) {}
|
| +
|
| + bool operator==(const ScrollSnapMargin& other) const {
|
| + return top == other.top && right == other.right && bottom == other.bottom &&
|
| + left == other.left;
|
| + }
|
| +
|
| + bool operator!=(const ScrollSnapMargin& other) const {
|
| + return !(*this == other);
|
| + }
|
| +
|
| + Length top;
|
| + Length right;
|
| + Length bottom;
|
| + Length left;
|
| +};
|
| +
|
| } // namespace blink
|
|
|
| #endif // ScrollSnapPoints_h
|
|
|