Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
CachedResourceRequest should not need to store defer and preload options
https://bugs.webkit.org/show_bug.cgi?id=163004 Patch by Youenn Fablet <youenn@apple.com> on 2016-10-06 Reviewed by Alex Christensen. No change of behavior. Removing CachedResourceRequest defer and preload fields. These fields are computed inside CachedResourceLoader instead. Updated setting of priority from CachedResourceRequest to CachedResource. Priority is set for any new resource (this covers all cases where no cached resource can be reused from the memory cache). Priority is set for a cached resource if the request is not a preload request. * loader/LinkLoader.cpp: (WebCore::LinkLoader::preloadIfNeeded): * loader/cache/CachedResource.cpp: (WebCore::CachedResource::CachedResource): * loader/cache/CachedResourceLoader.cpp: (WebCore::CachedResourceLoader::requestImage): (WebCore::CachedResourceLoader::canRequest): (WebCore::CachedResourceLoader::requestResource): (WebCore::CachedResourceLoader::determineRevalidationPolicy): (WebCore::CachedResourceLoader::requestPreload): * loader/cache/CachedResourceLoader.h: * loader/cache/CachedResourceRequest.cpp: (WebCore::CachedResourceRequest::CachedResourceRequest): * loader/cache/CachedResourceRequest.h: (WebCore::CachedResourceRequest::priority): (WebCore::CachedResourceRequest::forPreload): Deleted. (WebCore::CachedResourceRequest::setForPreload): Deleted. (WebCore::CachedResourceRequest::defer): Deleted. (WebCore::CachedResourceRequest::setDefer): Deleted. Canonical link: https://commits.webkit.org/180950@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@206900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
63 additions
and 43 deletions.
- +36 −0 Source/WebCore/ChangeLog
- +0 −1 Source/WebCore/loader/LinkLoader.cpp
- +2 −0 Source/WebCore/loader/cache/CachedResource.cpp
- +18 −27 Source/WebCore/loader/cache/CachedResourceLoader.cpp
- +7 −3 Source/WebCore/loader/cache/CachedResourceLoader.h
- +0 −4 Source/WebCore/loader/cache/CachedResourceRequest.cpp
- +0 −8 Source/WebCore/loader/cache/CachedResourceRequest.h
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters