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

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

Issue 2564423003: [Blink>Paint] Document element cannot always omit isolation (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/LayoutTests/platform/win/css3/blending/mix-blend-mode-simple-expected.png ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
index 18d5d0ad0ed5dbf9f8bf0312067f0a7ce6c9e8ec..f17b74bd6caa929c5e1c6bad7cd8a125adc0a391 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
@@ -390,14 +390,9 @@ PaintResult PaintLayerPainter::paintLayerContents(
}
Optional<CompositingRecorder> compositingRecorder;
- // Blending operations must be performed only with the nearest ancestor
- // stacking context. Note that there is no need to composite if we're
- // painting the root.
// FIXME: this should be unified further into
// PaintLayer::paintsWithTransparency().
bool shouldCompositeForBlendMode =
- (!m_paintLayer.layoutObject()->isDocumentElement() ||
- m_paintLayer.layoutObject()->isSVGRoot()) &&
m_paintLayer.stackingNode()->isStackingContext() &&
m_paintLayer.hasNonIsolatedDescendantWithBlendMode();
if (shouldCompositeForBlendMode ||
« no previous file with comments | « third_party/WebKit/LayoutTests/platform/win/css3/blending/mix-blend-mode-simple-expected.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698