Changeset 38003 in webkit


Ignore:
Timestamp:
Oct 30, 2008 12:18:47 PM (15 years ago)
Author:
alp@webkit.org
Message:

2008-10-30 Alp Toker <alp@nuanti.com>

Reviewed by Dave Hyatt.

Fix GIF animations. WebCore will not update animated GIFs if
the WebView is marked offscreen so we need to call
frameView->setParentVisible() when necessary like the Mac and Win
ports do. Regression was introduced around r37155 during the
HostWindow refactor.

  • WebCoreSupport/FrameLoaderClientGtk.cpp: (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
Location:
trunk/WebKit/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/gtk/ChangeLog

    r38000 r38003  
     12008-10-30  Alp Toker  <alp@nuanti.com>
     2
     3        Reviewed by Dave Hyatt.
     4
     5        Fix GIF animations. WebCore will not update animated GIFs if
     6        the WebView is marked offscreen so we need to call
     7        frameView->setParentVisible() when necessary like the Mac and Win
     8        ports do. Regression was introduced around r37155 during the
     9        HostWindow refactor.
     10
     11        * WebCoreSupport/FrameLoaderClientGtk.cpp:
     12        (WebKit::FrameLoaderClient::transitionToCommittedForNewPage):
     13
    1142008-10-30  Alp Toker  <alp@nuanti.com>
    215
  • trunk/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp

    r37754 r38003  
    762762    WebKitWebView* containingWindow = getViewFromFrame(m_frame);
    763763    bool isMainFrame = frame == page->mainFrame();
     764
     765    if (isMainFrame && frame->view())
     766        frame->view()->setParentVisible(false);
     767
    764768    frame->setView(0);
    765769
     
    778782    frameView->deref();
    779783
     784    if (isMainFrame)
     785        frameView->setParentVisible(true);
     786
    780787    if (frame->ownerRenderer())
    781788        frame->ownerRenderer()->setWidget(frameView);
Note: See TracChangeset for help on using the changeset viewer.