| 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 c63e2836d88a011ebc80138829290b3e99c4f7dd..7461144226e51a0b5767db08b4281f30ed2e2815 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| @@ -1142,6 +1142,12 @@ void CompositedLayerMapping::updatePaintingPhases()
|
| paintPhase |= GraphicsLayerPaintForeground;
|
| m_scrollingContentsLayer->setPaintingPhase(paintPhase);
|
| }
|
| + if (m_foregroundLayer) {
|
| + GraphicsLayerPaintingPhase paintPhase = GraphicsLayerPaintForeground;
|
| + if (m_scrollingContentsLayer)
|
| + paintPhase |= GraphicsLayerPaintOverflowContents;
|
| + m_foregroundLayer->setPaintingPhase(paintPhase);
|
| + }
|
| }
|
|
|
| void CompositedLayerMapping::updateContentsRect()
|
| @@ -1523,7 +1529,6 @@ bool CompositedLayerMapping::updateForegroundLayer(bool needsForegroundLayer)
|
| if (needsForegroundLayer) {
|
| if (!m_foregroundLayer) {
|
| m_foregroundLayer = createGraphicsLayer(CompositingReasonLayerForForeground);
|
| - m_foregroundLayer->setPaintingPhase(GraphicsLayerPaintForeground);
|
| layerChanged = true;
|
| }
|
| } else if (m_foregroundLayer) {
|
|
|