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

Unified Diff: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.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
« no previous file with comments | « Source/core/layout/LayoutView.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
diff --git a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
index 422c49504f6943e63b12d75b62910100a9d5d901..6d56b078c9263b881ba7e4af5028bffadbf97538 100644
--- a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
+++ b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
@@ -2039,7 +2039,7 @@ void CompositedDeprecatedPaintLayerMapping::setContentsNeedDisplayInRect(const L
// FIXME: need to split out paint invalidations for the background.
// FIXME: need to distinguish invalidations for different layers (e.g. the main layer and scrolling layer). crbug.com/416535.
SetContentsNeedsDisplayInRectFunctor functor = {
- pixelSnappedIntRect(r.location() + m_owningLayer.subpixelAccumulation(), r.size()),
+ enclosingIntRect(LayoutRect(r.location() + m_owningLayer.subpixelAccumulation(), r.size())),
invalidationReason
};
ApplyToGraphicsLayers(this, functor, ApplyToContentLayers);
« no previous file with comments | « Source/core/layout/LayoutView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698