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

Unified Diff: Source/core/rendering/RenderLayer.h

Issue 301843002: Store repaint rects in the coordinate space of their backing GraphicsLayer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more fix. Created 6 years, 7 months 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: Source/core/rendering/RenderLayer.h
diff --git a/Source/core/rendering/RenderLayer.h b/Source/core/rendering/RenderLayer.h
index a2c44542a986d305b3d9e0d8cf6f3634ab3d419e..6eef86a36bd38bbcd13a9c700d40f9a08784613e 100644
--- a/Source/core/rendering/RenderLayer.h
+++ b/Source/core/rendering/RenderLayer.h
@@ -351,6 +351,12 @@ public:
RenderLayer* scrollParent() const;
RenderLayer* clipParent() const;
+ // Adjusts the given rect to the coordinate space of the repaint container's GraphicsLayer backing.
+ void adjustRectToRepaintBackingCoords(const RenderLayerModelObject* repaintContainer, LayoutRect&) const;
+
+ // Computes the bounding repaint rect for this layer, in the coordinate space of the repaint container's GraphicsLayer backing.
+ LayoutRect computeRepaintRect(const RenderLayerModelObject* repaintContainer) const;
+
bool needsCompositingLayersRebuiltForClip(const RenderStyle* oldStyle, const RenderStyle* newStyle) const;
bool needsCompositingLayersRebuiltForOverflow(const RenderStyle* oldStyle, const RenderStyle* newStyle) const;
bool needsCompositingLayersRebuiltForFilters(const RenderStyle* oldStyle, const RenderStyle* newStyle) const;

Powered by Google App Engine
This is Rietveld 408576698