Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp |
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp |
| index 16f625873668c322d216058212ebb91e6e3d0ab5..67cc67149558c7ce349d0749f3d422bbb651603e 100644 |
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp |
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp |
| @@ -838,6 +838,11 @@ void PaintLayer::UpdateLayerPosition() { |
| if (GetLayoutObject().IsInFlowPositioned()) { |
| LayoutSize new_offset = GetLayoutObject().OffsetForInFlowPosition(); |
| + if (!HasCompositedLayerMapping() && |
|
chrishtr
2017/04/28 20:11:43
This is not in general the right place to be doing
yigu
2017/04/28 20:38:56
Suppose we have a region A that needs repaint on s
|
| + OffsetForInFlowPosition() != new_offset) { |
| + GetLayoutObject().SetShouldDoFullPaintInvalidation( |
| + kPaintInvalidationLocationChange); |
| + } |
| if (rare_data_ || !new_offset.IsZero()) |
| EnsureRareData().offset_for_in_flow_position = new_offset; |
| local_point.Move(new_offset); |