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 7a098e407c3170d03fdbc948ebb001ca222ec3f6..316bc7e57e0bc78ca5db930d6ff87defa135419e 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp |
@@ -631,6 +631,9 @@ void PaintLayer::markAncestorChainForDescendantDependentFlagsUpdate() { |
if (layer->m_needsDescendantDependentFlagsUpdate) |
break; |
layer->m_needsDescendantDependentFlagsUpdate = true; |
+ |
+ if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) |
+ layer->layoutObject()->setNeedsPaintPropertyUpdate(); |
} |
} |
@@ -1012,11 +1015,6 @@ void PaintLayer::setNeedsCompositingInputsUpdate() { |
// dependent flags udpate. Reduce call sites after SPv2 launch allows |
/// removal of CompositingInputsUpdater. |
markAncestorChainForDescendantDependentFlagsUpdate(); |
- if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
- // This update is needed in order to re-compute sticky position constraints, |
- // not for any other reason. |
- layoutObject()->setNeedsPaintPropertyUpdate(); |
- } |
} |
void PaintLayer::setNeedsCompositingInputsUpdateInternal() { |