| Index: Source/core/rendering/RenderLayerBacking.cpp
|
| diff --git a/Source/core/rendering/RenderLayerBacking.cpp b/Source/core/rendering/RenderLayerBacking.cpp
|
| index d796473f74fd7b4b1ea2ae693afb8aeb68080b10..0e4af315ca5d1c4a035be0053b76c0cdb4ffcb82 100644
|
| --- a/Source/core/rendering/RenderLayerBacking.cpp
|
| +++ b/Source/core/rendering/RenderLayerBacking.cpp
|
| @@ -195,8 +195,12 @@ void RenderLayerBacking::createPrimaryGraphicsLayer()
|
|
|
| m_graphicsLayer = createGraphicsLayer(layerName, m_owningLayer->compositingReasons());
|
|
|
| - if (m_isMainFrameRenderViewLayer)
|
| - m_graphicsLayer->setContentsOpaque(true);
|
| + if (m_isMainFrameRenderViewLayer) {
|
| + m_graphicsLayer->setContentsOpaque(toRenderView(renderer())->frameView()->hasOpaqueBackground());
|
| +#if !OS(ANDROID)
|
| + m_graphicsLayer->contentLayer()->setDrawCheckerboardForMissingTiles(true);
|
| +#endif
|
| + }
|
|
|
| updateOpacity(renderer()->style());
|
| updateTransform(renderer()->style());
|
| @@ -379,7 +383,7 @@ void RenderLayerBacking::updateAfterLayout(UpdateAfterLayoutFlags flags)
|
| }
|
| }
|
|
|
| - if (flags & NeedsFullRepaint && !paintsIntoWindow() && !paintsIntoCompositedAncestor())
|
| + if (flags & NeedsFullRepaint && !paintsIntoCompositedAncestor())
|
| setContentsNeedDisplay();
|
| }
|
|
|
| @@ -1330,7 +1334,7 @@ bool RenderLayerBacking::hasVisibleNonCompositingDescendantLayers() const
|
|
|
| bool RenderLayerBacking::containsPaintedContent() const
|
| {
|
| - if (isSimpleContainerCompositingLayer() || paintsIntoWindow() || paintsIntoCompositedAncestor() || m_artificiallyInflatedBounds || m_owningLayer->isReflection())
|
| + if (isSimpleContainerCompositingLayer() || paintsIntoCompositedAncestor() || m_artificiallyInflatedBounds || m_owningLayer->isReflection())
|
| return false;
|
|
|
| if (isDirectlyCompositedImage())
|
| @@ -1513,15 +1517,6 @@ GraphicsLayer* RenderLayerBacking::childForSuperlayers() const
|
| return m_graphicsLayer.get();
|
| }
|
|
|
| -bool RenderLayerBacking::paintsIntoWindow() const
|
| -{
|
| - if (m_owningLayer->isRootLayer()) {
|
| - return compositor()->rootLayerAttachment() != RenderLayerCompositor::RootLayerAttachedViaEnclosingFrame;
|
| - }
|
| -
|
| - return false;
|
| -}
|
| -
|
| void RenderLayerBacking::setRequiresOwnBackingStore(bool requiresOwnBacking)
|
| {
|
| if (requiresOwnBacking == m_requiresOwnBackingStore)
|
| @@ -1602,7 +1597,7 @@ void RenderLayerBacking::paintIntoLayer(const GraphicsLayer* graphicsLayer, Grap
|
| const IntRect& paintDirtyRect, // In the coords of rootLayer.
|
| PaintBehavior paintBehavior, GraphicsLayerPaintingPhase paintingPhase)
|
| {
|
| - if (paintsIntoWindow() || paintsIntoCompositedAncestor()) {
|
| + if (paintsIntoCompositedAncestor()) {
|
| ASSERT_NOT_REACHED();
|
| return;
|
| }
|
|
|