[chromium] Layers with animating transforms should prepaint even if they are not...
[WebKit-https.git] / Source / WebCore / platform / graphics / chromium / ContentLayerChromium.cpp
index c0072157979d78b59ab37e0f22db2656229c0499..73a8a424615713e69d5a2c1e78cfe93cb688005b 100644 (file)
@@ -114,10 +114,7 @@ void ContentLayerChromium::idlePaintContentsIfDirty(const CCOcclusionTracker* oc
     if (!drawsContent())
         return;
 
-    const IntRect& layerRect = visibleLayerRect();
-    if (layerRect.isEmpty())
-        return;
-
+    const IntRect layerRect = visibleLayerRect();
     prepareToUpdateIdle(layerRect, occlusion);
     if (needsIdlePaint(layerRect))
         setNeedsCommit();