Reviewed by Darin Adler.
[WebKit.git] / Source / WebKit2 / UIProcess / API / mac / PageClientImpl.mm
index f2046d04e84ded284df19ed538fb424ed282730d..96f609a20c1e51d5b5161540f00652af9d1972ca 100644 (file)
@@ -373,8 +373,6 @@ void PageClientImpl::setAutodisplay(bool newState)
 {
     if (!newState && [[m_wkView window] isAutodisplay])
         [m_wkView displayIfNeeded];
 {
     if (!newState && [[m_wkView window] isAutodisplay])
         [m_wkView displayIfNeeded];
-    else
-        [m_wkView setNeedsDisplay:NO];
     
     [[m_wkView window] setAutodisplay:newState];
 }
     
     [[m_wkView window] setAutodisplay:newState];
 }