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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp

Issue 2727223002: Round the subpixel accumulation used for composited scrolling content (Closed)
Patch Set: Add test for scrolling contents drawn content. 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
« no previous file with comments | « third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-content-fractional-offset-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
index 1620e00c83d80b1e6f16f8e506d5ffd142c0683d..410ef645fcf0d1303027c2973f8cc6fa744d10f4 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
@@ -320,6 +320,10 @@ PaintResult PaintLayerPainter::paintLayerContents(
m_paintLayer.compositingState() == PaintsIntoOwnBacking
? m_paintLayer.subpixelAccumulation()
: paintingInfoArg.subPixelAccumulation;
+ // The composited scrolling contents layer position rounds the subpixel
+ // accumulation.
+ if (isPaintingScrollingContent)
chrishtr 2017/04/07 21:03:12 I think you can move the logic determining subpixe
flackr 2017/04/21 03:43:44 Done. The conditional on 320 was strange since it
+ subpixelAccumulation = LayoutSize(roundedIntSize(subpixelAccumulation));
ShouldRespectOverflowClipType respectOverflowClip =
shouldRespectOverflowClip(paintFlags, m_paintLayer.layoutObject());
« no previous file with comments | « third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-content-fractional-offset-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698