Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1152)

Unified Diff: Source/core/loader/ImageLoader.cpp

Issue 1183233002: Split RW hint into Width and Viewport-Width (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed and added layout tests Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/loader/FrameFetchContextTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/ImageLoader.cpp
diff --git a/Source/core/loader/ImageLoader.cpp b/Source/core/loader/ImageLoader.cpp
index 099d88a537bba1c8a91f74c9a92b453f441556fc..7ff6fb65b67017bf2ba6a6ff867a64c5230caeac 100644
--- a/Source/core/loader/ImageLoader.cpp
+++ b/Source/core/loader/ImageLoader.cpp
@@ -219,7 +219,7 @@ static void configureRequest(FetchRequest& request, ImageLoader::BypassMainWorld
if (!crossOriginMode.isNull())
request.setCrossOriginAccessControl(element.document().securityOrigin(), crossOriginMode);
- if (clientHintsPreferences.shouldSendRW() && isHTMLImageElement(element)) {
+ if (clientHintsPreferences.shouldSendResourceWidth() && isHTMLImageElement(element)) {
FetchRequest::ResourceWidth resourceWidth;
resourceWidth.width = toHTMLImageElement(element).sourceSize(element);
resourceWidth.isSet = true;
« no previous file with comments | « Source/core/loader/FrameFetchContextTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698