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

Unified Diff: Source/core/frame/FrameView.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 | « no previous file | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index dcfd8cc80098481ba442eb978c4564b6f1906784..501a5acc9a41f9405aaf9999a4976ebf47de5cc1 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -1286,7 +1286,7 @@ bool FrameView::scrollContentsFastPath(const IntSize& scrollDelta, const IntRect
return false;
}
- IntRect updateRect = pixelSnappedIntRect(layer->repainter().repaintRectIncludingNonCompositingDescendants());
+ IntRect updateRect = pixelSnappedIntRect(layer->paintInvalidator().repaintRectIncludingNonCompositingDescendants());
const RenderLayerModelObject* repaintContainer = layer->renderer()->containerForPaintInvalidation();
if (repaintContainer && !repaintContainer->isRenderView()) {
@@ -1316,7 +1316,7 @@ bool FrameView::scrollContentsFastPath(const IntSize& scrollDelta, const IntRect
scrolledRect.move(-scrollDelta);
updateRect.unite(scrolledRect);
// FIXME: We should be able to issue these invalidations separately and before we actually scroll.
- renderView()->layer()->repainter().setBackingNeedsRepaintInRect(rootViewToContents(updateRect));
+ renderView()->layer()->paintInvalidator().setBackingNeedsRepaintInRect(rootViewToContents(updateRect));
}
return true;
@@ -1327,7 +1327,7 @@ void FrameView::scrollContentsSlowPath(const IntRect& updateRect)
if (contentsInCompositedLayer()) {
IntRect updateRect = visibleContentRect();
ASSERT(renderView());
- renderView()->layer()->repainter().setBackingNeedsRepaintInRect(updateRect);
+ renderView()->layer()->paintInvalidator().setBackingNeedsRepaintInRect(updateRect);
}
if (RenderPart* frameRenderer = m_frame->ownerRenderer()) {
if (isEnclosedInCompositingLayer()) {
@@ -1570,7 +1570,7 @@ void FrameView::updateFixedElementPaintInvalidationRectsAfterScroll()
if (layer->compositingState() == PaintsIntoOwnBacking)
continue;
- layer->repainter().computeRepaintRectsIncludingNonCompositingDescendants();
+ layer->paintInvalidator().computePaintInvalidationRectsIncludingNonCompositingDescendants();
}
}
@@ -2974,7 +2974,7 @@ void FrameView::setTracksPaintInvalidations(bool trackPaintInvalidations)
if (!frame->isLocalFrame())
continue;
if (RenderView* renderView = toLocalFrame(frame)->contentRenderer())
- renderView->compositor()->setTracksRepaints(trackPaintInvalidations);
+ renderView->compositor()->setTracksPaintInvalidations(trackPaintInvalidations);
}
TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"),
@@ -2988,7 +2988,7 @@ void FrameView::resetTrackedPaintInvalidations()
{
m_trackedPaintInvalidationRects.clear();
if (RenderView* renderView = this->renderView())
- renderView->compositor()->resetTrackedRepaintRects();
+ renderView->compositor()->resetTrackedPaintInvalidationRects();
}
String FrameView::trackedPaintInvalidationRectsAsText() const
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698