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

Unified Diff: Source/core/rendering/RenderLayerRepainter.cpp

Issue 468343002: Rename repaint to paintInvalidation in core/rendering/compositing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix invalidator spelling Created 6 years, 4 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
« no previous file with comments | « Source/core/rendering/RenderLayerRepainter.h ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayerRepainter.cpp
diff --git a/Source/core/rendering/RenderLayerRepainter.cpp b/Source/core/rendering/RenderLayerRepainter.cpp
index 008e7367e7ed85627436bf5eec12c13a3a1af540..7ffb9bfbf6b5bdac0c9f1e3ef4e547aedd8142a2 100644
--- a/Source/core/rendering/RenderLayerRepainter.cpp
+++ b/Source/core/rendering/RenderLayerRepainter.cpp
@@ -56,7 +56,7 @@ RenderLayerRepainter::RenderLayerRepainter(RenderLayerModelObject& renderer)
{
}
-void RenderLayerRepainter::computeRepaintRectsIncludingNonCompositingDescendants()
+void RenderLayerRepainter::computePaintInvalidationRectsIncludingNonCompositingDescendants()
{
// FIXME: boundsRectForPaintInvalidation() has to walk up the parent chain
// for every layer to compute the rects. We should make this more efficient.
@@ -68,12 +68,12 @@ void RenderLayerRepainter::computeRepaintRectsIncludingNonCompositingDescendants
for (RenderLayer* layer = m_renderer.layer()->firstChild(); layer; layer = layer->nextSibling()) {
if (layer->compositingState() != PaintsIntoOwnBacking && layer->compositingState() != PaintsIntoGroupedBacking)
- layer->repainter().computeRepaintRectsIncludingNonCompositingDescendants();
+ layer->paintInvalidator().computePaintInvalidationRectsIncludingNonCompositingDescendants();
}
}
// Since we're only painting non-composited layers, we know that they all share the same repaintContainer.
-void RenderLayerRepainter::repaintIncludingNonCompositingDescendants()
+void RenderLayerRepainter::paintInvalidationIncludingNonCompositingDescendants()
{
repaintIncludingNonCompositingDescendantsInternal(m_renderer.containerForPaintInvalidation());
}
@@ -87,7 +87,7 @@ void RenderLayerRepainter::repaintIncludingNonCompositingDescendantsInternal(con
for (RenderLayer* curr = m_renderer.layer()->firstChild(); curr; curr = curr->nextSibling()) {
if (curr->compositingState() != PaintsIntoOwnBacking && curr->compositingState() != PaintsIntoGroupedBacking)
- curr->repainter().repaintIncludingNonCompositingDescendantsInternal(repaintContainer);
+ curr->paintInvalidator().repaintIncludingNonCompositingDescendantsInternal(repaintContainer);
}
}
@@ -100,7 +100,7 @@ LayoutRect RenderLayerRepainter::repaintRectIncludingNonCompositingDescendants()
if (child->compositingState() == PaintsIntoOwnBacking || child->compositingState() == PaintsIntoGroupedBacking)
continue;
- repaintRect.unite(child->repainter().repaintRectIncludingNonCompositingDescendants());
+ repaintRect.unite(child->paintInvalidator().repaintRectIncludingNonCompositingDescendants());
}
return repaintRect;
}
@@ -139,12 +139,12 @@ void RenderLayerRepainter::setFilterBackendNeedsRepaintingInRect(const LayoutRec
return;
if (parentLayer->hasCompositedLayerMapping()) {
- parentLayer->repainter().setBackingNeedsRepaintInRect(parentLayerRect);
+ parentLayer->paintInvalidator().setBackingNeedsRepaintInRect(parentLayerRect);
return;
}
if (parentLayer->paintsWithFilters()) {
- parentLayer->repainter().setFilterBackendNeedsRepaintingInRect(parentLayerRect);
+ parentLayer->paintInvalidator().setFilterBackendNeedsRepaintingInRect(parentLayerRect);
return;
}
« no previous file with comments | « Source/core/rendering/RenderLayerRepainter.h ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698