Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
| index 2d2167ead07fe3179ddd06a2d1ff2c1169700c52..703c09dd1b3d1a86de11a49d82b1266ca8a88c90 100644 |
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
| @@ -3046,10 +3046,18 @@ void CompositedLayerMapping::DoPaintTask( |
| if (paint_info.paint_layer->GetCompositingState() != |
| kPaintsIntoGroupedBacking) { |
| + LayoutSize sub_pixel_accumulation = |
| + paint_info.paint_layer->SubpixelAccumulation(); |
| + if (paint_layer_flags & kPaintLayerPaintingCompositingScrollingPhase) { |
| + // The composited scrolling contents layer position rounds the subpixel |
| + // accumulation. |
| + sub_pixel_accumulation = |
|
chrishtr
2017/05/05 01:14:09
This will round off the subpixel accumulation for
flackr
2017/05/05 17:02:19
The composited scrolling content geometry size doe
|
| + LayoutSize(RoundedIntSize(sub_pixel_accumulation)); |
| + } |
| // FIXME: GraphicsLayers need a way to split for multicol. |
| PaintLayerPaintingInfo painting_info( |
| paint_info.paint_layer, LayoutRect(dirty_rect), kGlobalPaintNormalPhase, |
| - paint_info.paint_layer->SubpixelAccumulation()); |
| + sub_pixel_accumulation); |
| PaintLayerPainter(*paint_info.paint_layer) |
| .PaintLayerContents(context, painting_info, paint_layer_flags); |