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

Unified Diff: third_party/WebKit/public/platform/WebLayer.h

Issue 2911463002: Unify the calculation of main thread offset of sticky element (Closed)
Patch Set: Address comments 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/public/platform/WebLayer.h
diff --git a/third_party/WebKit/public/platform/WebLayer.h b/third_party/WebKit/public/platform/WebLayer.h
index dc6efa8392b12f1f48e546b9196107ae7ff2c404..4aea0977fffebb3b3cdef505678427c6ff0c069e 100644
--- a/third_party/WebKit/public/platform/WebLayer.h
+++ b/third_party/WebKit/public/platform/WebLayer.h
@@ -202,6 +202,11 @@ class WebLayer {
const WebLayerStickyPositionConstraint&) = 0;
virtual WebLayerStickyPositionConstraint StickyPositionConstraint() const = 0;
+ // Sets the main thread offset applied to the sticky element. This will be
chrishtr 2017/06/07 19:28:38 The "main thread offset" is the of the sticky elem
yigu 2017/06/07 21:09:14 Done.
+ // used to calculate the actual sticky position offset from cc side.
+ virtual void SetStickyMainThreadOffset(const WebSize&) = 0;
+ virtual WebSize StickyMainThreadOffset() const = 0;
+
// The scroll client is notified when the scroll position of the WebLayer
// changes. Only a single scroll client can be set for a WebLayer at a time.
// The WebLayer does not take ownership of the scroll client, and it is the

Powered by Google App Engine
This is Rietveld 408576698