Changeset 24500 in webkit
- Timestamp:
- Jul 20, 2007, 6:23:51 PM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r24499 r24500 1 2007-07-20 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Darin. 4 5 If the style sheet requested is a user style sheet, don't store it in the DocLoader's resource map; 6 user style sheets can outlive their doc loaders. 7 8 * loader/DocLoader.cpp: 9 (WebCore::DocLoader::requestCSSStyleSheet): 10 1 11 2007-07-20 Justin Garcia <justin.garcia@apple.com> 2 12 -
trunk/WebCore/loader/DocLoader.cpp
r23741 r24500 96 96 // if this resource is already in the cache. It's theoretically possible that what's in the cache already 97 97 // is a load that failed because of the canLoad check. Probably not an issue in practice. 98 return static_cast<CachedCSSStyleSheet*>(requestResource(CachedResource::CSSStyleSheet, url, &charset, isUserStyleSheet, !isUserStyleSheet)); 98 CachedCSSStyleSheet *sheet = static_cast<CachedCSSStyleSheet*>(requestResource(CachedResource::CSSStyleSheet, url, &charset, isUserStyleSheet, !isUserStyleSheet)); 99 100 // A user style sheet can outlive its DocLoader so don't store any pointers to it 101 if (sheet && isUserStyleSheet) { 102 sheet->setDocLoader(0); 103 m_docResources.remove(sheet->url()); 104 } 105 106 return sheet; 99 107 } 100 108
Note:
See TracChangeset
for help on using the changeset viewer.