Changeset 229585 in webkit
- Timestamp:
- Mar 13, 2018 1:39:17 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r229582 r229585 1 2018-03-13 Youenn Fablet <youenn@apple.com> 2 3 Changing link element rel attribute from preload to stylesheet should succeed loading the stylesheet 4 https://bugs.webkit.org/show_bug.cgi?id=183601 5 <rdar://problem/38309441> 6 7 Reviewed by Antti Koivisto. 8 9 * http/wpt/preload/change-link-rel-attribute-expected.txt: Added. 10 * http/wpt/preload/change-link-rel-attribute.html: Added. 11 * http/wpt/preload/resources/style.css: Added. 12 (body): 13 1 14 2018-03-13 Frederic Wang <fwang@igalia.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r229569 r229585 1 2018-03-13 Youenn Fablet <youenn@apple.com> 2 3 Changing link element rel attribute from preload to stylesheet should succeed loading the stylesheet 4 https://bugs.webkit.org/show_bug.cgi?id=183601 5 <rdar://problem/38309441> 6 7 Reviewed by Antti Koivisto. 8 9 Test: http/wpt/preload/change-link-rel-attribute.html 10 11 * loader/LinkPreloadResourceClients.h: 12 (WebCore::LinkPreloadResourceClient::clearResource): Remove the call to CachedResource::cancelLoad. 13 This call is expected to be called by ResourceLoader when cancelling the load from below CachedResource. 14 * loader/cache/CachedResource.cpp: 15 (WebCore::CachedResource::allClientsRemoved): In case of preload, 16 cancel the load if not finished when there is no more client attached to it. 17 * loader/cache/CachedResource.h: 18 1 19 2018-03-12 John Wilander <wilander@apple.com> 2 20 -
trunk/Source/WebCore/loader/LinkPreloadResourceClients.h
r228528 r229585 63 63 void clearResource(CachedResourceClient& client) 64 64 { 65 if ( m_resource) {66 m_resource->cancelLoad();67 m_resource->removeClient(client); 68 }65 if (!m_resource) 66 return; 67 68 m_resource->removeClient(client); 69 69 m_resource = nullptr; 70 70 } -
trunk/Source/WebCore/loader/cache/CachedResource.cpp
r229563 r229585 580 580 } 581 581 582 void CachedResource::allClientsRemoved() 583 { 584 if (isLinkPreload() && m_loader) 585 m_loader->cancelIfNotFinishing(); 586 } 587 582 588 void CachedResource::destroyDecodedDataIfNeeded() 583 589 { -
trunk/Source/WebCore/loader/cache/CachedResource.h
r229563 r229585 142 142 virtual void didAddClient(CachedResourceClient&); 143 143 virtual void didRemoveClient(CachedResourceClient&) { } 144 virtual void allClientsRemoved() { }144 virtual void allClientsRemoved(); 145 145 void destroyDecodedDataIfNeeded(); 146 146
Note: See TracChangeset
for help on using the changeset viewer.