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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 1895443003: Mark foregroundLayer under scrollingContentsLayer GraphicsLayerPaintOverflowContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index f15c88fcc8d5d07d447502a497437bd4c6dc7f68..440b4dbae721090d718b15d81db53d1e832bb281 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -1137,10 +1137,14 @@ void CompositedLayerMapping::updatePaintingPhases()
{
m_graphicsLayer->setPaintingPhase(paintingPhaseForPrimaryLayer());
if (m_scrollingContentsLayer) {
- GraphicsLayerPaintingPhase paintPhase = GraphicsLayerPaintOverflowContents | GraphicsLayerPaintCompositedScroll;
- if (!m_foregroundLayer)
- paintPhase |= GraphicsLayerPaintForeground;
- m_scrollingContentsLayer->setPaintingPhase(paintPhase);
+ GraphicsLayerPaintingPhase scrollingContentsLayerPaintingPhase = GraphicsLayerPaintOverflowContents | GraphicsLayerPaintCompositedScroll;
+ if (m_foregroundLayer)
+ m_foregroundLayer->setPaintingPhase(m_foregroundLayer->paintingPhase() | GraphicsLayerPaintOverflowContents);
+ else
+ scrollingContentsLayerPaintingPhase |= GraphicsLayerPaintForeground;
+ m_scrollingContentsLayer->setPaintingPhase(scrollingContentsLayerPaintingPhase);
+ } else if (m_foregroundLayer) {
+ m_foregroundLayer->setPaintingPhase(m_foregroundLayer->paintingPhase() & ~GraphicsLayerPaintOverflowContents);
aelias_OOO_until_Jul13 2016/04/16 00:33:19 The bit-setting/clearing logic is a bit hard to re
Xianzhu 2016/04/16 22:07:36 Done with slight difference. Ptal.
aelias_OOO_until_Jul13 2016/04/18 17:09:41 Slight difference looks fine, but can you also del
Xianzhu 2016/04/18 18:06:47 Done.
}
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698