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

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: Fix comment. 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..c2c6094bdd9023585cae35b1292f5d1492863654 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 computeRectForRepaint(const RenderLayerModelObject* repaintContainer, LayoutRect&) const;
leviw_travelin_and_unemployed 2014/05/29 18:27:08 These 2 functions are really confusing... Can we c
chrishtr 2014/05/29 18:34:11 The function is agnostic to the rect's purpose. It
+
+ // 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