Changeset 31307 in webkit


Ignore:
Timestamp:
Mar 25, 2008 8:41:56 PM (16 years ago)
Author:
Antti Koivisto
Message:

2008-03-25 Antti Koivisto <Antti Koivisto>

Reviewed by Oliver.

Fix http://bugs.webkit.org/show_bug.cgi?id=18082
REGRESSION (r31287): GMail does not work if user stylesheet is set


Oops, my cache refactoring patch was missing these rather essential lines for
user stylesheets. They would get reloaded repeatedly.

  • loader/Cache.cpp: (WebCore::Cache::requestUserCSSStyleSheet):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r31305 r31307  
     12008-03-25  Antti Koivisto  <antti@apple.com>
     2
     3        Reviewed by Oliver.
     4
     5        Fix http://bugs.webkit.org/show_bug.cgi?id=18082
     6        REGRESSION (r31287): GMail does not work if user stylesheet is set
     7       
     8        Oops, my cache refactoring patch was missing these rather essential lines for
     9        user stylesheets. They would get reloaded repeatedly.
     10
     11        * loader/Cache.cpp:
     12        (WebCore::Cache::requestUserCSSStyleSheet):
     13
    1142008-03-25  Matt Lilek  <webkit@mattlilek.com>
    215
  • trunk/WebCore/loader/Cache.cpp

    r31287 r31307  
    160160CachedCSSStyleSheet* Cache::requestUserCSSStyleSheet(DocLoader* docLoader, const String& url, const String& charset)
    161161{
     162    if (CachedResource* existing = m_resources.get(url))
     163        return existing->type() == CachedResource::CSSStyleSheet ? static_cast<CachedCSSStyleSheet*>(existing) : 0;
     164
    162165    CachedCSSStyleSheet* userSheet = new CachedCSSStyleSheet(url, charset);
    163166
Note: See TracChangeset for help on using the changeset viewer.