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

Unified Diff: Source/core/style/FillLayer.cpp

Issue 1145993002: Refactor root element background painting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 7 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
« Source/core/paint/BoxPainter.cpp ('K') | « Source/core/paint/ViewPainter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/FillLayer.cpp
diff --git a/Source/core/style/FillLayer.cpp b/Source/core/style/FillLayer.cpp
index 2d1945394befb07e33de9ecff0dc82e8bc091eec..2709ff3e21247d5b2b7c80dc90426c0aa7296b18 100644
--- a/Source/core/style/FillLayer.cpp
+++ b/Source/core/style/FillLayer.cpp
@@ -361,12 +361,15 @@ bool FillLayer::hasOpaqueImage(const LayoutObject* layoutObject) const
if (!m_image)
return false;
- if (m_composite == CompositeClear || m_composite == CompositeCopy)
+ if (m_composite == CompositeClear)
return true;
if (m_blendMode != WebBlendModeNormal)
return false;
+ if (m_composite == CompositeCopy)
+ return true;
+
if (m_composite == CompositeSourceOver)
return m_image->knownToBeOpaque(layoutObject);
« Source/core/paint/BoxPainter.cpp ('K') | « Source/core/paint/ViewPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698