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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.h

Issue 1308273010: Adapt and reland old position sticky implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Force main thread scrolling, set experimental status, and address review comments. Created 5 years 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/frame/FrameView.h
diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
index ebfc224ae38a9c19793658a19a97a4c50725b3b3..4d3b19a64cf49233fa05e83c61f2f04fd3f0491b 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -194,6 +194,11 @@ public:
const ViewportConstrainedObjectSet* viewportConstrainedObjects() const { return m_viewportConstrainedObjects.get(); }
bool hasViewportConstrainedObjects() const { return m_viewportConstrainedObjects && m_viewportConstrainedObjects->size() > 0; }
+ // Sticky objects.
+ void addStickyPositionObject() { ++m_stickyPositionObjectCount; }
+ void removeStickyPositionObject() { --m_stickyPositionObjectCount; }
+ bool hasStickyPositionObjects() const { return m_stickyPositionObjectCount; }
+
// Objects with background-attachment:fixed.
void addBackgroundAttachmentFixedObject(LayoutObject*);
void removeBackgroundAttachmentFixedObject(LayoutObject*);
@@ -813,6 +818,7 @@ private:
OwnPtrWillBeMember<ScrollableAreaSet> m_animatingScrollableAreas;
OwnPtr<ResizerAreaSet> m_resizerAreas;
OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects;
+ unsigned m_stickyPositionObjectCount;
ViewportConstrainedObjectSet m_backgroundAttachmentFixedObjects;
OwnPtrWillBeMember<FrameViewAutoSizeInfo> m_autoSizeInfo;

Powered by Google App Engine
This is Rietveld 408576698