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

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

Issue 353403006: Consider subpixel accumulation when invalidating paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Also squashing path 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
Index: Source/core/rendering/RenderBox.cpp
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
index 43192a332a18e87b0040440bfeda83caafdf58cd..e1c3c758624a523323839df1d7737d7d57abd011 100644
--- a/Source/core/rendering/RenderBox.cpp
+++ b/Source/core/rendering/RenderBox.cpp
@@ -4092,7 +4092,7 @@ void RenderBox::incrementallyInvalidatePaint(const RenderLayerModelObject* paint
LayoutUnit right = std::min<LayoutUnit>(newBounds.maxX(), oldBounds.maxX());
if (rightRect.x() < right) {
rightRect.setWidth(std::min(rightRect.width(), right - rightRect.x()));
- invalidatePaintUsingContainer(paintInvalidationContainer, pixelSnappedIntRect(rightRect), InvalidationIncremental);
+ invalidatePaintUsingContainer(paintInvalidationContainer, rightRect, InvalidationIncremental);
}
}
@@ -4113,7 +4113,7 @@ void RenderBox::incrementallyInvalidatePaint(const RenderLayerModelObject* paint
LayoutUnit bottom = std::min(newBounds.maxY(), oldBounds.maxY());
if (bottomRect.y() < bottom) {
bottomRect.setHeight(std::min(bottomRect.height(), bottom - bottomRect.y()));
- invalidatePaintUsingContainer(paintInvalidationContainer, pixelSnappedIntRect(bottomRect), InvalidationIncremental);
+ invalidatePaintUsingContainer(paintInvalidationContainer, bottomRect, InvalidationIncremental);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698