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

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

Issue 478733002: Rename repaint to paintInvalidation for remaining methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/RenderRegion.h ('k') | Source/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderRegion.cpp
diff --git a/Source/core/rendering/RenderRegion.cpp b/Source/core/rendering/RenderRegion.cpp
index 194b9bd924a3b07bcd967e1a77893c77f6a4c50f..a65dfc61a419932b8fdcd0e9e4689aff761a877b 100644
--- a/Source/core/rendering/RenderRegion.cpp
+++ b/Source/core/rendering/RenderRegion.cpp
@@ -119,17 +119,17 @@ void RenderRegion::layoutBlock(bool relayoutChildren)
// RenderFlowThread itself).
}
-void RenderRegion::repaintFlowThreadContentRectangle(const LayoutRect& repaintRect, const LayoutRect& flowThreadPortionRect, const LayoutRect& flowThreadPortionOverflowRect, const LayoutPoint& regionLocation) const
+void RenderRegion::paintInvalidaitonOfFlowThreadContentRectangle(const LayoutRect& paintInvalidationRect, const LayoutRect& flowThreadPortionRect, const LayoutRect& flowThreadPortionOverflowRect, const LayoutPoint& regionLocation) const
{
ASSERT(isValid());
- // We only have to issue a repaint in this region if the region rect intersects the repaint rect.
+ // We only have to issue a paint invalidation in this region if the region rect intersects the paint invalidation rect.
LayoutRect flippedFlowThreadPortionRect(flowThreadPortionRect);
LayoutRect flippedFlowThreadPortionOverflowRect(flowThreadPortionOverflowRect);
flowThread()->flipForWritingMode(flippedFlowThreadPortionRect); // Put the region rects into physical coordinates.
flowThread()->flipForWritingMode(flippedFlowThreadPortionOverflowRect);
- LayoutRect clippedRect(repaintRect);
+ LayoutRect clippedRect(paintInvalidationRect);
clippedRect.intersect(flippedFlowThreadPortionOverflowRect);
if (clippedRect.isEmpty())
return;
@@ -137,10 +137,9 @@ void RenderRegion::repaintFlowThreadContentRectangle(const LayoutRect& repaintRe
// Put the region rect into the region's physical coordinate space.
clippedRect.setLocation(regionLocation + (clippedRect.location() - flippedFlowThreadPortionRect.location()));
- // Now switch to the region's writing mode coordinate space and let it repaint itself.
+ // Now switch to the region's writing mode coordinate space and let it issue paint invalidations itself.
flipForWritingMode(clippedRect);
- // Issue the repaint.
invalidatePaintRectangle(clippedRect);
}
« no previous file with comments | « Source/core/rendering/RenderRegion.h ('k') | Source/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698