diff options
Diffstat (limited to 'Source/WebCore/rendering/RenderLayerBacking.h')
-rw-r--r-- | Source/WebCore/rendering/RenderLayerBacking.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/WebCore/rendering/RenderLayerBacking.h b/Source/WebCore/rendering/RenderLayerBacking.h index 78232709f..c04146551 100644 --- a/Source/WebCore/rendering/RenderLayerBacking.h +++ b/Source/WebCore/rendering/RenderLayerBacking.h @@ -87,6 +87,9 @@ public: bool hasScrollingLayer() const { return m_scrollingLayer; } GraphicsLayer* scrollingLayer() const { return m_scrollingLayer.get(); } GraphicsLayer* scrollingContentsLayer() const { return m_scrollingContentsLayer.get(); } + + void attachToScrollingCoordinator(); + uint64_t scrollLayerID() const { return m_scrollLayerID; } bool hasMaskLayer() const { return m_maskLayer != 0; } @@ -133,11 +136,12 @@ public: void updateAfterWidgetResize(); void positionOverflowControlsLayers(const IntSize& offsetFromRoot); + bool usingTileCache() const { return m_usingTiledCacheLayer; } + // GraphicsLayerClient interface virtual bool shouldUseTileCache(const GraphicsLayer*) const; - virtual bool usingTileCache(const GraphicsLayer*) const { return m_usingTiledCacheLayer; } virtual void notifyAnimationStarted(const GraphicsLayer*, double startTime); - virtual void notifySyncRequired(const GraphicsLayer*); + virtual void notifyFlushRequired(const GraphicsLayer*); virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect& clip); @@ -180,7 +184,7 @@ private: PassOwnPtr<GraphicsLayer> createGraphicsLayer(const String&); - RenderBoxModelObject* renderer() const { return m_owningLayer->renderer(); } + RenderLayerModelObject* renderer() const { return m_owningLayer->renderer(); } RenderLayerCompositor* compositor() const { return m_owningLayer->compositor(); } void updateInternalHierarchy(); @@ -193,6 +197,8 @@ private: bool requiresScrollCornerLayer() const; bool updateScrollingLayers(bool scrollingLayers); + void detachFromScrollingCoordinator(); + GraphicsLayerPaintingPhase paintingPhaseForPrimaryLayer() const; IntSize contentOffsetInCompostingLayer() const; @@ -256,6 +262,8 @@ private: OwnPtr<GraphicsLayer> m_scrollingLayer; // only used if the layer is using composited scrolling. OwnPtr<GraphicsLayer> m_scrollingContentsLayer; // only used if the layer is using composited scrolling. + uint64_t m_scrollLayerID; + IntRect m_compositedBounds; bool m_artificiallyInflatedBounds; // bounds had to be made non-zero to make transform-origin work |