LayoutTests:
[WebKit-https.git] / WebCore / dom / ContainerNode.cpp
index b002598217fac9ce0e47a531c8c2ddca1efef876..8c9c6c98074c09479380190b53e83f8cb1ec08af 100644 (file)
@@ -826,8 +826,11 @@ void ContainerNode::setActive(bool down, bool pause)
             double startTime = currentTime();
 #endif
 
+            // Ensure there are no pending changes
+            Document::updateDocumentsRendering();
             // Do an immediate repaint.
-            renderer()->repaint(true);
+            if (renderer())
+                renderer()->repaint(true);
             
             // FIXME: Find a substitute for usleep for Win32.
             // Better yet, come up with a way of doing this that doesn't use this sort of thing at all.