X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Frendering%2Fcompositing%2FCompositedLayerMapping.h;h=07c53c1b360f7446fbb1b099e4c23d571ab3d6fc;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=d6e83e1a8787f68a9acf7de2e037526efc24b6ca;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/rendering/compositing/CompositedLayerMapping.h b/src/third_party/WebKit/Source/core/rendering/compositing/CompositedLayerMapping.h index d6e83e1..07c53c1 100644 --- a/src/third_party/WebKit/Source/core/rendering/compositing/CompositedLayerMapping.h +++ b/src/third_party/WebKit/Source/core/rendering/compositing/CompositedLayerMapping.h @@ -90,7 +90,6 @@ public: bool hasAncestorClippingLayer() const { return m_ancestorClippingLayer; } GraphicsLayer* ancestorClippingLayer() const { return m_ancestorClippingLayer.get(); } - bool hasContentsLayer() const { return m_foregroundLayer; } GraphicsLayer* foregroundLayer() const { return m_foregroundLayer.get(); } GraphicsLayer* backgroundLayer() const { return m_backgroundLayer.get(); } @@ -133,14 +132,13 @@ public: void setSquashingContentsNeedDisplay(); void setContentsNeedDisplay(); // r is in the coordinate space of the layer's render object - void setContentsNeedDisplayInRect(const LayoutRect&); + void setContentsNeedDisplayInRect(const LayoutRect&, WebInvalidationDebugAnnotations); // Notification from the renderer that its content changed. void contentChanged(ContentChangeType); LayoutRect compositedBounds() const { return m_compositedBounds; } IntRect pixelSnappedCompositedBounds() const; - void updateCompositedBounds(); void positionOverflowControlsLayers(const IntSize& offsetFromRoot); bool hasUnpositionedOverflowControlsLayers() const; @@ -214,7 +212,7 @@ private: // Helper methods to updateGraphicsLayerGeometry: void computeGraphicsLayerParentLocation(const RenderLayer* compositingContainer, const IntRect& ancestorCompositingBounds, IntPoint& graphicsLayerParentLocation); void updateSquashingLayerGeometry(const LayoutPoint& offsetFromCompositedAncestor, const IntPoint& graphicsLayerParentLocation, const RenderLayer& referenceLayer, Vector& layers, GraphicsLayer*, LayoutPoint* offsetFromTransformedAncestor, Vector& layersNeedingPaintInvalidation); - void updateMainGraphicsLayerGeometry(const IntRect& relativeCompositingBounds, const IntRect& localCompositingBounds, IntPoint& graphicsLayerParentLocation); + void updateMainGraphicsLayerGeometry(const IntRect& relativeCompositingBounds, const IntRect& localCompositingBounds, const IntPoint& graphicsLayerParentLocation); void updateAncestorClippingLayerGeometry(const RenderLayer* compositingContainer, const IntPoint& snappedOffsetFromCompositedAncestor, IntPoint& graphicsLayerParentLocation); void updateOverflowControlsHostLayerGeometry(const RenderLayer* compositingStackingContext); void updateChildContainmentLayerGeometry(const IntRect& clippingBox, const IntRect& localCompositingBounds); @@ -254,6 +252,7 @@ private: bool updateSquashingLayers(bool needsSquashingLayers); void updateDrawsContent(); void updateChildrenTransform(); + void updateCompositedBounds(); void registerScrollingLayers(); // Also sets subpixelAccumulation on the layer. @@ -273,8 +272,6 @@ private: // Return the opacity value that this layer should use for compositing. float compositingOpacity(float rendererOpacity) const; - bool isMainFrameRenderViewLayer() const; - bool paintsChildren() const; // Returns true if this layer has content that needs to be rendered by painting into the backing store. @@ -286,6 +283,7 @@ private: Color rendererBackgroundColor() const; void updateBackgroundColor(); void updateContentsRect(); + void updateContentsOffsetInCompositingLayer(const IntPoint& snappedOffsetFromCompositedAncestor, const IntPoint& graphicsLayerParentLocation); void updateAfterWidgetResize(); void updateCompositingReasons(); @@ -418,6 +416,9 @@ private: LayoutRect m_compositedBounds; + LayoutSize m_contentOffsetInCompositingLayer; + unsigned m_contentOffsetInCompositingLayerDirty : 1; + unsigned m_pendingUpdateScope : 2; unsigned m_isMainFrameRenderViewLayer : 1; unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1;