| Index: third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp
|
| index e30b112a0200fc1eb6328806e5164ece24a8b69e..5863caad98d88f82e57f2085f61a1f5e2343c3d2 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp
|
| @@ -279,7 +279,7 @@ void CompositingRequirementsUpdater::updateRecursive(PaintLayer* ancestorLayer,
|
| for (size_t i = 0; i < unclippedDescendantsToRemove.size(); i++)
|
| unclippedDescendants.remove(unclippedDescendantsToRemove.at(unclippedDescendantsToRemove.size() - i - 1));
|
|
|
| - if (layer->clipParent()) {
|
| + if (reasonsToComposite & CompositingReasonOutOfFlowClipping) {
|
| // TODO(schenney): We only need to promote when the clipParent is not a descendant of the ancestor scroller,
|
| // which we do not check for here. Hence we might be promoting needlessly.
|
| unclippedDescendants.append(layer);
|
|
|