| Index: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| index 01b52462b2cb4fdd8fa468a035ef476442b0cea4..5aa5e06ae8c16d92fa711a9fd1bfcd472bc455a9 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| @@ -205,12 +205,17 @@ public:
|
| PassOwnPtr<PreloadRequest> createPreloadRequest(const KURL& predictedBaseURL, const SegmentedString& source, const ClientHintsPreferences& clientHintsPreferences, const PictureData& pictureData, const ReferrerPolicy documentReferrerPolicy)
|
| {
|
| PreloadRequest::RequestType requestType = PreloadRequest::RequestTypePreload;
|
| - if (shouldPreconnect())
|
| + if (shouldPreconnect()) {
|
| requestType = PreloadRequest::RequestTypePreconnect;
|
| - else if (isLinkRelPreload())
|
| - requestType = PreloadRequest::RequestTypeLinkRelPreload;
|
| - else if (!shouldPreload() || !m_matchedMediaAttribute)
|
| - return nullptr;
|
| + } else {
|
| + if (isLinkRelPreload()) {
|
| + requestType = PreloadRequest::RequestTypeLinkRelPreload;
|
| + }
|
| + if (!shouldPreload() || !m_matchedMediaAttribute) {
|
| + return nullptr;
|
| + }
|
| + }
|
| +
|
|
|
| TextPosition position = TextPosition(source.currentLine(), source.currentColumn());
|
| FetchRequest::ResourceWidth resourceWidth;
|
|
|