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

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

Issue 2401903002: Compute and include the offset of the sticky box to its enclosing composited layer. (Closed)
Patch Set: Merge with master and fix long line. Created 4 years, 2 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/web/tests/data/sticky-position.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h
diff --git a/third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h b/third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h
index 83d04c64abf48b420d6152198f029fc40983c4b4..296496d76f24a22d2545fa38c5d5c6555e31f2ef 100644
--- a/third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h
+++ b/third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h
@@ -26,6 +26,9 @@
#ifndef WebLayerStickyPositionConstraint_h
#define WebLayerStickyPositionConstraint_h
+#include "public/platform/WebPoint.h"
+#include "public/platform/WebRect.h"
+
namespace blink {
// TODO(flackr): Combine with WebLayerPositionConstraint.
@@ -47,6 +50,10 @@ struct WebLayerStickyPositionConstraint {
float topOffset;
float bottomOffset;
+ // This is the layout position of the sticky element before it has been
+ // shifted relative to the enclosing composited layer.
+ WebPoint parentRelativeStickyBoxOffset;
+
// The layout rectangle of the sticky element before it has been shifted
// to stick.
WebRect scrollContainerRelativeStickyBoxRect;
« no previous file with comments | « third_party/WebKit/Source/web/tests/data/sticky-position.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698