Title: [219674] trunk/Source/WebCore
- Revision
- 219674
- Author
- zandober...@gmail.com
- Date
- 2017-07-19 22:43:11 -0700 (Wed, 19 Jul 2017)
Log Message
Unreviewed CoordGraphics build fix.
* page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp:
(WebCore::ScrollingCoordinatorCoordinatedGraphics::updateNodeViewportConstraints):
This should be defined for the ScrollingCoordinatorCoordinatedGraphics class.
Also fix the setFixedToViewport() call, fishing out the GraphicsLayer object from
the ScrollingStateNode's LayerRepresentation.
(WebCore::AsyncScrollingCoordinator::updateNodeViewportConstraints): Deleted.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (219673 => 219674)
--- trunk/Source/WebCore/ChangeLog 2017-07-20 05:23:48 UTC (rev 219673)
+++ trunk/Source/WebCore/ChangeLog 2017-07-20 05:43:11 UTC (rev 219674)
@@ -1,3 +1,14 @@
+2017-07-19 Zan Dobersek <zdober...@igalia.com>
+
+ Unreviewed CoordGraphics build fix.
+
+ * page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp:
+ (WebCore::ScrollingCoordinatorCoordinatedGraphics::updateNodeViewportConstraints):
+ This should be defined for the ScrollingCoordinatorCoordinatedGraphics class.
+ Also fix the setFixedToViewport() call, fishing out the GraphicsLayer object from
+ the ScrollingStateNode's LayerRepresentation.
+ (WebCore::AsyncScrollingCoordinator::updateNodeViewportConstraints): Deleted.
+
2017-07-19 Chris Dumez <cdu...@apple.com>
Drop SQLException type
Modified: trunk/Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp (219673 => 219674)
--- trunk/Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp 2017-07-20 05:23:48 UTC (rev 219673)
+++ trunk/Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp 2017-07-20 05:43:11 UTC (rev 219674)
@@ -24,11 +24,11 @@
*/
#include "config.h"
+#include "ScrollingCoordinatorCoordinatedGraphics.h"
#if USE(COORDINATED_GRAPHICS)
-#include "ScrollingCoordinatorCoordinatedGraphics.h"
-
+#include "AsyncScrollingCoordinator.h"
#include "CoordinatedGraphicsLayer.h"
#include "FrameView.h"
#include "HostWindow.h"
@@ -81,7 +81,7 @@
node->setLayer(graphicsLayer);
}
-void AsyncScrollingCoordinator::updateNodeViewportConstraints(ScrollingNodeID nodeID, const ViewportConstraints& constraints)
+void ScrollingCoordinatorCoordinatedGraphics::updateNodeViewportConstraints(ScrollingNodeID nodeID, const ViewportConstraints& constraints)
{
ScrollingStateNode* node = m_scrollingStateTree->stateNodeForID(nodeID);
if (!node)
@@ -89,7 +89,9 @@
switch (constraints.constraintType()) {
case ViewportConstraints::FixedPositionConstraint: {
- downcast<CoordinatedGraphicsLayer>(*graphicsLayer).setFixedToViewport(true);
+ auto& layer = node->layer();
+ if (layer.representsGraphicsLayer())
+ downcast<CoordinatedGraphicsLayer>(static_cast<GraphicsLayer*>(layer))->setFixedToViewport(true);
break;
}
case ViewportConstraints::StickyPositionConstraint:
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes