Changeset 65094 in webkit


Ignore:
Timestamp:
Aug 10, 2010 2:35:10 PM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-08-10 Kavita Kanetkar <kkanetkar@chromium.org>

Reviewed by Joseph Pecoraro.

Web Inspector: Support appcache status change for Chrome
https://bugs.webkit.org/show_bug.cgi?id=43531

  • src/ApplicationCacheHost.cpp: (WebCore::ApplicationCacheHost::notifyDOMApplicationCache):
Location:
trunk/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r65093 r65094  
     12010-08-10  Kavita Kanetkar  <kkanetkar@chromium.org>
     2
     3        Reviewed by Joseph Pecoraro.
     4
     5        Web Inspector: Support appcache status change for Chrome
     6        https://bugs.webkit.org/show_bug.cgi?id=43531
     7
     8        * src/ApplicationCacheHost.cpp:
     9        (WebCore::ApplicationCacheHost::notifyDOMApplicationCache):
     10
    1112010-08-10  Kenneth Russell  <kbr@google.com>
    212
  • trunk/WebKit/chromium/src/ApplicationCacheHost.cpp

    r64009 r65094  
    203203void ApplicationCacheHost::notifyDOMApplicationCache(EventID id, int total, int done)
    204204{
     205#if ENABLE(INSPECTOR)
     206    // If host's frame is main frame and inspector frontend is connected, update appcache status.
     207    if (id != PROGRESS_EVENT && m_documentLoader->frame()) {
     208        Page* page = m_documentLoader->frame()->page();
     209        if (page && page->inspectorController()->applicationCacheAgent() && page->mainFrame() == m_documentLoader->frame())
     210            page->inspectorController()->applicationCacheAgent()->updateApplicationCacheStatus(status());
     211    }
     212#endif
     213
    205214    if (m_defersEvents) {
    206215        // Event dispatching is deferred until document.onload has fired.
Note: See TracChangeset for help on using the changeset viewer.