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

Unified Diff: Source/core/layout/LayoutBoxModelObject.cpp

Issue 1308033003: Use enclosingIntRect instead of pixelSnappedIntRect to expand invalidation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: another virtual/spv2/ test appears Created 5 years, 3 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/layout/LayoutBoxModelObject.cpp
diff --git a/Source/core/layout/LayoutBoxModelObject.cpp b/Source/core/layout/LayoutBoxModelObject.cpp
index f70f32eb25d83059b7dc2d9c3f698b87b23f3ec3..1d7a2fb5b029473ab51240726de94e6fc2b0a991 100644
--- a/Source/core/layout/LayoutBoxModelObject.cpp
+++ b/Source/core/layout/LayoutBoxModelObject.cpp
@@ -359,7 +359,7 @@ void LayoutBoxModelObject::setBackingNeedsPaintInvalidationInRect(const LayoutRe
LayoutRect paintInvalidationRect = r;
if (GraphicsLayer* squashingLayer = layer()->groupedMapping()->squashingLayer()) {
// Note: the subpixel accumulation of layer() does not need to be added here. It is already taken into account.
- squashingLayer->setNeedsDisplayInRect(pixelSnappedIntRect(paintInvalidationRect), invalidationReason);
+ squashingLayer->setNeedsDisplayInRect(enclosingIntRect(paintInvalidationRect), invalidationReason);
}
} else {
layer()->compositedDeprecatedPaintLayerMapping()->setContentsNeedDisplayInRect(r, invalidationReason);
« no previous file with comments | « LayoutTests/fast/repaint/subpixel-shadow-included-in-invalidation-expected.txt ('k') | Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698