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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2727223002: Round the subpixel accumulation used for composited scrolling content (Closed)
Patch Set: Merge and fix Created 3 years, 8 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: third_party/WebKit/Source/core/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index b64d75d627f1238ca45956bd77918f23f4ac64a6..2acabdf5586de1ebb7d89a84e0a033ee52b3394f 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -208,6 +208,8 @@ class DraggedNodeImageBuilder {
.AbsoluteToLocalQuad(FloatQuad(absolute_bounding_box),
kUseTransforms)
.BoundingBox();
+ DCHECK(layer->GetCompositingState() != kPaintsIntoOwnBacking ||
+ layer->SubpixelAccumulation().IsZero());
PaintLayerPaintingInfo painting_info(layer, LayoutRect(bounding_box),
kGlobalPaintFlattenCompositingLayers,
LayoutSize());

Powered by Google App Engine
This is Rietveld 408576698