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

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 1970563002: Compute snap offsets according to CSS Scroll Snap Spec Level 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 9d02504f37de9338f5d27c8c6af0be186c6468a4..81aabbd53bf779e66b2034e9b779fe7cc103267d 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -157,6 +157,7 @@ class SegmentedString;
class SelectorQueryCache;
class SerializedScriptValue;
class Settings;
+class SnapCoordinator;
class StyleEngine;
class StyleResolver;
class StyleSheet;
@@ -1051,6 +1052,8 @@ public:
}
int nodeCount() const { return m_nodeCount; }
+ SnapCoordinator* snapCoordinator();
+
using WeakDocumentSet = HeapHashSet<WeakMember<Document>>;
static WeakDocumentSet& liveDocumentSet();
@@ -1389,6 +1392,8 @@ private:
int m_nodeCount;
bool m_mayContainV0Shadow = false;
+
+ Member<SnapCoordinator> m_snapCoordinator;
};
extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>;
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698