Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
| index dcf30ed39c937159c2dcbdb4bf999cbe9cc18526..f28e398770de00e5a40ef5dab21f26244e4c333d 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp |
| @@ -407,7 +407,10 @@ void LayoutBoxModelObject::invalidateDisplayItemClientOnBacking(const DisplayIte |
| if (GraphicsLayer* squashingLayer = layer()->groupedMapping()->squashingLayer()) |
| squashingLayer->invalidateDisplayItemClient(displayItemClient, invalidationReason, enclosingIntRect(previousPaintInvalidationRect), enclosingIntRect(newPaintInvalidationRect)); |
| } else if (CompositedLayerMapping* compositedLayerMapping = layer()->compositedLayerMapping()) { |
| - compositedLayerMapping->invalidateDisplayItemClient(displayItemClient, invalidationReason, previousPaintInvalidationRect, newPaintInvalidationRect); |
| + if (this->displayItemClient() != displayItemClient.displayItemClient() && isBox() && toLayoutBox(this)->usesCompositedScrolling()) |
| + compositedLayerMapping->invalidateDisplayItemClientOnScrollingContentsLayer(displayItemClient, invalidationReason, previousPaintInvalidationRect, newPaintInvalidationRect); |
|
chrishtr
2015/10/16 00:55:38
This conditional doesn't need to be protected by S
Xianzhu
2015/10/16 17:38:05
A scrolling content is on the scrolling contents l
|
| + else |
| + compositedLayerMapping->invalidateDisplayItemClient(displayItemClient, invalidationReason, previousPaintInvalidationRect, newPaintInvalidationRect); |
| } |
| } |