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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.h

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/page/scrolling/SnapCoordinator.h
diff --git a/third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.h b/third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.h
index c9f55585154c3f4bc568bd9f3ac6b1f7e5cca3df..7f1b645a44516c5c78ac063e5c6d1c73abf27f7b 100644
--- a/third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.h
+++ b/third_party/WebKit/Source/core/page/scrolling/SnapCoordinator.h
@@ -12,9 +12,9 @@
namespace blink {
-class ContainerNode;
class LayoutBox;
-struct LengthPoint;
+struct ScrollSnapType;
+struct ScrollSnapAlign;
// Snap Coordinator keeps track of snap containers and all of their associated
// snap areas. It also contains the logic to generate the list of valid snap
@@ -39,8 +39,7 @@ class CORE_EXPORT SnapCoordinator final
DEFINE_INLINE_TRACE() {}
void SnapContainerDidChange(LayoutBox&, ScrollSnapType);
- void SnapAreaDidChange(LayoutBox&,
- const Vector<LengthPoint>& snap_coordinates);
+ void SnapAreaDidChange(LayoutBox&, ScrollSnapAlign);
#ifndef NDEBUG
void ShowSnapAreaMap();
@@ -51,8 +50,6 @@ class CORE_EXPORT SnapCoordinator final
friend class SnapCoordinatorTest;
explicit SnapCoordinator();
- Vector<double> SnapOffsets(const ContainerNode&, ScrollbarOrientation);
-
HashSet<const LayoutBox*> snap_containers_;
};

Powered by Google App Engine
This is Rietveld 408576698