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

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 remove subpixel adjustment for transformed fragments. Created 3 years, 7 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 a52e2cc7ea15226ea8a85463da32562f207436bc..8351c1acfaf7e98c824fa9bcdb00dd19ff49c304 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -211,6 +211,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