Unreviewed, rolling out r250415.
[WebKit-https.git] / Source / WebCore / page / scrolling / ScrollingStateFrameHostingNode.h
index 1afe3e6..416cd43 100644 (file)
@@ -25,9 +25,9 @@
 
 #pragma once
 
 
 #pragma once
 
-#if ENABLE(ASYNC_SCROLLING) || USE(COORDINATED_GRAPHICS)
+#if ENABLE(ASYNC_SCROLLING)
 
 
-#include "ScrollingStateFrameHostingNode.h"
+#include "ScrollingStateNode.h"
 
 namespace WebCore {
 
 
 namespace WebCore {
 
@@ -40,15 +40,26 @@ public:
 
     virtual ~ScrollingStateFrameHostingNode();
 
 
     virtual ~ScrollingStateFrameHostingNode();
 
+    enum ChangedProperty {
+        ParentRelativeScrollableRect = NumStateNodeBits
+    };
+
+    const LayoutRect& parentRelativeScrollableRect() const { return m_parentRelativeScrollableRect; }
+    WEBCORE_EXPORT void setParentRelativeScrollableRect(const LayoutRect&);
+
     void dumpProperties(WTF::TextStream&, ScrollingStateTreeAsTextBehavior) const override;
 
 private:
     ScrollingStateFrameHostingNode(ScrollingStateTree&, ScrollingNodeID);
     ScrollingStateFrameHostingNode(const ScrollingStateFrameHostingNode&, ScrollingStateTree&);
     void dumpProperties(WTF::TextStream&, ScrollingStateTreeAsTextBehavior) const override;
 
 private:
     ScrollingStateFrameHostingNode(ScrollingStateTree&, ScrollingNodeID);
     ScrollingStateFrameHostingNode(const ScrollingStateFrameHostingNode&, ScrollingStateTree&);
+
+    void setPropertyChangedBitsAfterReattach() override;
+
+    LayoutRect m_parentRelativeScrollableRect;
 };
 
 } // namespace WebCore
 
 SPECIALIZE_TYPE_TRAITS_SCROLLING_STATE_NODE(ScrollingStateFrameHostingNode, isFrameHostingNode())
 
 };
 
 } // namespace WebCore
 
 SPECIALIZE_TYPE_TRAITS_SCROLLING_STATE_NODE(ScrollingStateFrameHostingNode, isFrameHostingNode())
 
-#endif // ENABLE(ASYNC_SCROLLING) || USE(COORDINATED_GRAPHICS)
+#endif // ENABLE(ASYNC_SCROLLING)