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

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

Issue 332543002: Rename Repaint to Paint Invalidation Part 4 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/RenderLayerScrollableArea.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 c253f56056c41002eaa95ba524a1755605fb048b..108488b711cda6327539b245882e30ff0b424ad0 100644
--- a/Source/core/rendering/RenderLayerRepainter.cpp
+++ b/Source/core/rendering/RenderLayerRepainter.cpp
@@ -73,7 +73,7 @@ void RenderLayerRepainter::repaintAfterLayout(bool shouldCheckForRepaint)
// LayoutState outside the layout() phase and use it here.
ASSERT(!view->layoutStateEnabled());
- const RenderLayerModelObject* repaintContainer = m_renderer.containerForRepaint();
+ const RenderLayerModelObject* repaintContainer = m_renderer.containerForPaintInvalidation();
LayoutRect oldRepaintRect = m_repaintRect;
LayoutPoint oldOffset = m_offset;
computeRepaintRects();
@@ -107,8 +107,8 @@ void RenderLayerRepainter::clearRepaintRects()
void RenderLayerRepainter::computeRepaintRects()
{
- const RenderLayerModelObject* repaintContainer = m_renderer.containerForRepaint();
- LayoutRect repaintRect = m_renderer.boundsRectForRepaint(repaintContainer);
+ const RenderLayerModelObject* repaintContainer = m_renderer.containerForPaintInvalidation();
+ LayoutRect repaintRect = m_renderer.boundsRectForPaintInvalidation(repaintContainer);
if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled()) {
// FIXME: We want RenderLayerRepainter to go away when
// repaint-after-layout is on by default so we need to figure out how to
@@ -116,7 +116,7 @@ void RenderLayerRepainter::computeRepaintRects()
m_renderer.setPreviousPaintInvalidationRect(repaintRect);
} else {
m_repaintRect = repaintRect;
- m_offset = m_renderer.positionFromRepaintContainer(repaintContainer);
+ m_offset = m_renderer.positionFromPaintInvalidationContainer(repaintContainer);
}
}
@@ -149,12 +149,12 @@ inline bool RenderLayerRepainter::shouldRepaintLayer() const
// Since we're only painting non-composited layers, we know that they all share the same repaintContainer.
void RenderLayerRepainter::repaintIncludingNonCompositingDescendants()
{
- repaintIncludingNonCompositingDescendantsInternal(m_renderer.containerForRepaint());
+ repaintIncludingNonCompositingDescendantsInternal(m_renderer.containerForPaintInvalidation());
}
void RenderLayerRepainter::repaintIncludingNonCompositingDescendantsInternal(const RenderLayerModelObject* repaintContainer)
{
- m_renderer.invalidatePaintUsingContainer(repaintContainer, pixelSnappedIntRect(m_renderer.boundsRectForRepaint(repaintContainer)), InvalidationLayer);
+ m_renderer.invalidatePaintUsingContainer(repaintContainer, pixelSnappedIntRect(m_renderer.boundsRectForPaintInvalidation(repaintContainer)), InvalidationLayer);
// FIXME: Repaints can be issued during style recalc at present, via RenderLayerModelObject::styleWillChange. This happens in scenarios when
// repaint is needed but not layout.
« no previous file with comments | « Source/core/rendering/RenderLayerRepainter.h ('k') | Source/core/rendering/RenderLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698