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

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

Issue 2641173008: [SPv2] Add CSS mask support (Closed)
Patch Set: rebase Created 3 years, 10 months 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 d58952d21a11b1e1b7d5bc192d879e3dff885ef9..beb5ed0b414ec45f52556a88643f2be2dc7d8991 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -2667,7 +2667,10 @@ void PaintLayer::setGroupedMapping(CompositedLayerMapping* groupedMapping,
groupedMapping->setNeedsGraphicsLayerUpdate(GraphicsLayerUpdateSubtree);
}
-bool PaintLayer::hasCompositedMask() const {
+bool PaintLayer::maskBlendingAppliedByCompositor() const {
+ DCHECK(m_layoutObject->hasMask());
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return true;
return m_rareData && m_rareData->compositedLayerMapping &&
m_rareData->compositedLayerMapping->hasMaskLayer();
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698