Index: Source/core/fetch/FetchRequest.cpp |
diff --git a/Source/core/fetch/FetchRequest.cpp b/Source/core/fetch/FetchRequest.cpp |
index 8c0e84c609aa78841449303dbe607692ecfc30e2..417fccd1947460ac53cd26c77eeab828c7ce68d8 100644 |
--- a/Source/core/fetch/FetchRequest.cpp |
+++ b/Source/core/fetch/FetchRequest.cpp |
@@ -90,4 +90,12 @@ void FetchRequest::setCrossOriginAccessControl(SecurityOrigin* origin, const Ato |
setCrossOriginAccessControl(origin, equalIgnoringCase(crossOriginMode, "use-credentials") ? AllowStoredCredentials : DoNotAllowStoredCredentials); |
} |
+void FetchRequest::setResourceWidth(ResourceWidth resourceWidth) |
+{ |
+ if (resourceWidth.isSet) { |
+ m_resourceWidth.width = resourceWidth.width; |
+ m_resourceWidth.isSet = true; |
+ } |
+} |
+ |
} // namespace blink |