diff --git a/devtools/shared/css/generated/properties-db.js b/devtools/shared/css/generated/properties-db.js index 920413c053ce..7ecdf0e99393 100644 --- a/devtools/shared/css/generated/properties-db.js +++ b/devtools/shared/css/generated/properties-db.js @@ -3084,10 +3084,6 @@ exports.CSS_PROPERTIES = { "animation-play-state", "animation-fill-mode", "animation-delay", - "scroll-snap-points-x", - "scroll-snap-points-y", - "scroll-snap-destination", - "scroll-snap-coordinate", "transform", "rotate", "scale", @@ -10719,10 +10715,6 @@ exports.PREFERENCES = [ "scale", "layout.css.individual-transform.enabled" ], - [ - "scroll-snap-coordinate", - "layout.css.scroll-snap.enabled" - ], [ "scrollbar-color", "layout.css.scrollbar-color.enabled" @@ -10731,18 +10723,6 @@ exports.PREFERENCES = [ "translate", "layout.css.individual-transform.enabled" ], - [ - "scroll-snap-points-x", - "layout.css.scroll-snap.enabled" - ], - [ - "scroll-snap-points-y", - "layout.css.scroll-snap.enabled" - ], - [ - "scroll-snap-destination", - "layout.css.scroll-snap.enabled" - ], [ "-moz-binding", "layout.css.moz-binding.content.enabled" diff --git a/layout/base/ScrollStyles.cpp b/layout/base/ScrollStyles.cpp index 25455d471feb..1ede4a844a81 100644 --- a/layout/base/ScrollStyles.cpp +++ b/layout/base/ScrollStyles.cpp @@ -53,11 +53,7 @@ ScrollStyles::ScrollStyles(WritingMode aWritingMode, StyleOverflow aH, mVertical(aV), mScrollBehavior(aDisplay->mScrollBehavior), mOverscrollBehaviorX(aDisplay->mOverscrollBehaviorX), - mOverscrollBehaviorY(aDisplay->mOverscrollBehaviorY), - mScrollSnapPointsX(aDisplay->mScrollSnapPointsX), - mScrollSnapPointsY(aDisplay->mScrollSnapPointsY), - mScrollSnapDestinationX(aDisplay->mScrollSnapDestination.horizontal), - mScrollSnapDestinationY(aDisplay->mScrollSnapDestination.vertical) { + mOverscrollBehaviorY(aDisplay->mOverscrollBehaviorY) { InitializeScrollSnapType(aWritingMode, aDisplay); } @@ -67,11 +63,7 @@ ScrollStyles::ScrollStyles(WritingMode aWritingMode, mVertical(aDisplay->mOverflowY), mScrollBehavior(aDisplay->mScrollBehavior), mOverscrollBehaviorX(aDisplay->mOverscrollBehaviorX), - mOverscrollBehaviorY(aDisplay->mOverscrollBehaviorY), - mScrollSnapPointsX(aDisplay->mScrollSnapPointsX), - mScrollSnapPointsY(aDisplay->mScrollSnapPointsY), - mScrollSnapDestinationX(aDisplay->mScrollSnapDestination.horizontal), - mScrollSnapDestinationY(aDisplay->mScrollSnapDestination.vertical) { + mOverscrollBehaviorY(aDisplay->mOverscrollBehaviorY) { InitializeScrollSnapType(aWritingMode, aDisplay); } diff --git a/layout/base/ScrollStyles.h b/layout/base/ScrollStyles.h index 38858758fa8e..5072116910d7 100644 --- a/layout/base/ScrollStyles.h +++ b/layout/base/ScrollStyles.h @@ -28,10 +28,6 @@ struct ScrollStyles { StyleOverscrollBehavior mOverscrollBehaviorY; StyleScrollSnapStrictness mScrollSnapTypeX; StyleScrollSnapStrictness mScrollSnapTypeY; - nsStyleCoord mScrollSnapPointsX; - nsStyleCoord mScrollSnapPointsY; - LengthPercentage mScrollSnapDestinationX; - LengthPercentage mScrollSnapDestinationY; ScrollStyles(StyleOverflow aH, StyleOverflow aV) : mHorizontal(aH), @@ -40,11 +36,7 @@ struct ScrollStyles { mOverscrollBehaviorX(StyleOverscrollBehavior::Auto), mOverscrollBehaviorY(StyleOverscrollBehavior::Auto), mScrollSnapTypeX(StyleScrollSnapStrictness::None), - mScrollSnapTypeY(StyleScrollSnapStrictness::None), - mScrollSnapPointsX(nsStyleCoord(eStyleUnit_None)), - mScrollSnapPointsY(nsStyleCoord(eStyleUnit_None)), - mScrollSnapDestinationX(LengthPercentage::Zero()), - mScrollSnapDestinationY(LengthPercentage::Zero()) {} + mScrollSnapTypeY(StyleScrollSnapStrictness::None) {} ScrollStyles(WritingMode aWritingMode, const nsStyleDisplay* aDisplay); ScrollStyles(WritingMode aWritingMode, StyleOverflow aH, StyleOverflow aV, @@ -58,11 +50,7 @@ struct ScrollStyles { aStyles.mOverscrollBehaviorX == mOverscrollBehaviorX && aStyles.mOverscrollBehaviorY == mOverscrollBehaviorY && aStyles.mScrollSnapTypeX == mScrollSnapTypeX && - aStyles.mScrollSnapTypeY == mScrollSnapTypeY && - aStyles.mScrollSnapPointsX == mScrollSnapPointsX && - aStyles.mScrollSnapPointsY == mScrollSnapPointsY && - aStyles.mScrollSnapDestinationX == mScrollSnapDestinationX && - aStyles.mScrollSnapDestinationY == mScrollSnapDestinationY; + aStyles.mScrollSnapTypeY == mScrollSnapTypeY; } bool operator!=(const ScrollStyles& aStyles) const { return !(*this == aStyles); diff --git a/layout/base/crashtests/1453342.html b/layout/base/crashtests/1453342.html index 51b9b690765f..96d3e0611836 100644 --- a/layout/base/crashtests/1453342.html +++ b/layout/base/crashtests/1453342.html @@ -1,7 +1,6 @@