Index: Source/core/fetch/CSSStyleSheetResource.cpp |
diff --git a/Source/core/fetch/CSSStyleSheetResource.cpp b/Source/core/fetch/CSSStyleSheetResource.cpp |
index cf859616970619ff8b6839b328942860166cb73c..dd6fad0c90d5343954903308bee9c00621c6eb8e 100644 |
--- a/Source/core/fetch/CSSStyleSheetResource.cpp |
+++ b/Source/core/fetch/CSSStyleSheetResource.cpp |
@@ -123,7 +123,7 @@ bool CSSStyleSheetResource::canUseSheet(bool enforceMIMEType, bool* hasValidMIME |
// |
// This code defaults to allowing the stylesheet for non-HTTP protocols so |
// folks can use standards mode for local HTML documents. |
- AtomicString mimeType = extractMIMETypeFromMediaType(response().httpHeaderField("Content-Type")); |
+ const AtomicString& mimeType = extractMIMETypeFromMediaType(response().httpHeaderField("Content-Type")); |
bool typeOK = mimeType.isEmpty() || equalIgnoringCase(mimeType, "text/css") || equalIgnoringCase(mimeType, "application/x-unknown-content-type"); |
if (hasValidMIMEType) |
*hasValidMIMEType = typeOK; |