Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 2564193002: [SPv2] Add CSS mix-blend-mode support (Closed)
Patch Set: fix msvc warning Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 63f32afe660e09352012e34d3fdaf73880a581f8..de0ed6011d1012d7f5f62c2db0e88ad7d791019e 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -699,6 +699,8 @@ void PaintLayer::updateScrollingStateAfterCompositingChange() {
void PaintLayer::updateDescendantDependentFlags() {
if (m_needsDescendantDependentFlagsUpdate) {
+ bool oldHasNonIsolatedDescendantWithBlendMode =
+ m_hasNonIsolatedDescendantWithBlendMode;
m_hasVisibleDescendant = false;
m_hasNonIsolatedDescendantWithBlendMode = false;
m_hasDescendantWithClipPath = false;
@@ -727,6 +729,10 @@ void PaintLayer::updateDescendantDependentFlags() {
.rootScrollerPaintLayer());
}
+ if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled() &&
+ oldHasNonIsolatedDescendantWithBlendMode !=
+ static_cast<bool>(m_hasNonIsolatedDescendantWithBlendMode))
+ layoutObject()->setNeedsPaintPropertyUpdate();
m_needsDescendantDependentFlagsUpdate = false;
}

Powered by Google App Engine
This is Rietveld 408576698