Changeset 63204 in webkit


Ignore:
Timestamp:
Jul 13, 2010 7:33:30 AM (14 years ago)
Author:
pfeldman@chromium.org
Message:

2010-07-13 Leon Clarke <leonclarke@google.com>

Reviewed by Pavel Feldman.

Don't access objects after deleting them, following
the addition of link prefetching. Also remove a forward declaration
of the now-nonexistent CachedLinkPrefetch class.
https://bugs.webkit.org/show_bug.cgi?id=3652

No new tests. Correcting aspects of the prefetch change that shouldn't
have affected functionality.

  • html/HTMLLinkElement.h:
  • loader/loader.cpp: (WebCore::Loader::Host::cancelPendingRequests):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r63203 r63204  
     12010-07-13  Leon Clarke  <leonclarke@google.com>
     2
     3        Reviewed by Pavel Feldman.
     4
     5        Don't access objects after deleting them, following
     6        the addition of link prefetching. Also remove a forward declaration
     7        of the now-nonexistent CachedLinkPrefetch class.
     8        https://bugs.webkit.org/show_bug.cgi?id=3652
     9
     10        No new tests. Correcting aspects of the prefetch change that shouldn't
     11        have affected functionality.
     12
     13        * html/HTMLLinkElement.h:
     14        * loader/loader.cpp:
     15        (WebCore::Loader::Host::cancelPendingRequests):
     16
    1172010-07-13  Andras Becsi  <abecsi@webkit.org>
    218
  • trunk/WebCore/html/HTMLLinkElement.h

    r63032 r63204  
    3232
    3333class CachedCSSStyleSheet;
    34 class CachedLinkPrefetch;
    3534class KURL;
    3635
  • trunk/WebCore/loader/loader.cpp

    r63032 r63204  
    591591        if (request->docLoader() == docLoader) {
    592592            cache()->remove(request->cachedResource());
     593            docLoader->decrementRequestCount(request->cachedResource());
    593594            delete request;
    594             docLoader->decrementRequestCount(request->cachedResource());
    595595        } else
    596596            remaining.append(request);
Note: See TracChangeset for help on using the changeset viewer.