| Index: sky/engine/core/rendering/RenderLayer.cpp
|
| diff --git a/sky/engine/core/rendering/RenderLayer.cpp b/sky/engine/core/rendering/RenderLayer.cpp
|
| index 2ffe2e31e1722ba118d989c45f9808d335989809..af6bbfe252725f518b7f7b9639ccc307d6637c7e 100644
|
| --- a/sky/engine/core/rendering/RenderLayer.cpp
|
| +++ b/sky/engine/core/rendering/RenderLayer.cpp
|
| @@ -909,26 +909,12 @@ void RenderLayer::restoreClip(GraphicsContext* context, const LayoutRect& paintD
|
| context->restore();
|
| }
|
|
|
| -static inline bool shouldSuppressPaintingLayer(RenderLayer* layer)
|
| -{
|
| - // Avoid painting descendants of the root layer when stylesheets haven't loaded. This eliminates FOUC.
|
| - // It's ok not to draw, because later on, when all the stylesheets do load, updateStyleSelector on the Document
|
| - // will do a full paintInvalidationForWholeRenderer().
|
| - if (layer->renderer()->document().didLayoutWithPendingStylesheets() && !layer->isRootLayer() && !layer->renderer()->isDocumentElement())
|
| - return true;
|
| -
|
| - return false;
|
| -}
|
| -
|
| void RenderLayer::paintLayer(GraphicsContext* context, const LayerPaintingInfo& paintingInfo, PaintLayerFlags paintFlags)
|
| {
|
| // Non self-painting leaf layers don't need to be painted as their renderer() should properly paint itself.
|
| if (!isSelfPaintingLayer() && !hasSelfPaintingLayerDescendant())
|
| return;
|
|
|
| - if (shouldSuppressPaintingLayer(this))
|
| - return;
|
| -
|
| // If this layer is totally invisible then there is nothing to paint.
|
| if (!renderer()->opacity())
|
| return;
|
|
|