| 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..55db78b3ef8f6ae5e92bcb01a80ba8d4750af71d 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) {
|
|
|