Index: third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp b/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp |
index 6a88cbe223d3a28d1510ec6cb5bf1bc2700cdbaf..1f98f8e33b06edf59cff60bf23b53e6e58c5918c 100644 |
--- a/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp |
+++ b/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp |
@@ -88,6 +88,8 @@ FontResource* CSSFontFaceSrcValue::fetch(Document* document) const { |
if (!m_fetched) { |
FetchRequest request(ResourceRequest(m_absoluteResource), |
FetchInitiatorTypeNames::css); |
+ request.mutableResourceRequest().setIsCacheAwareLoadingEnabled( |
+ RuntimeEnabledFeatures::webFontsCacheAwareTimeoutAdaptionEnabled()); |
hiroshige
2016/10/05 08:27:10
Could you write like this?
ResourceRequest resour
Shao-Chuan Lee
2016/10/05 10:16:10
Done.
|
request.setContentSecurityCheck(m_shouldCheckContentSecurityPolicy); |
SecurityOrigin* securityOrigin = document->getSecurityOrigin(); |
setCrossOriginAccessControl(request, securityOrigin); |