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

Unified Diff: third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp

Issue 2508033004: Reduce unnecessary usage of TextCaseSensitivity::TextCaseInsensitive. (Closed)
Patch Set: Created 4 years, 1 month 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
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 fc718b047cd0fb1940873a8470ab2a897d08a96a..5a543dbf74b650040c1837d0526b36791ec2ce17 100644
--- a/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp
@@ -48,9 +48,10 @@ bool CSSFontFaceSrcValue::isSupportedFormat() const {
// with the old WinIE style of font-face, we will also check to see if the URL
// ends with .eot. If so, we'll go ahead and assume that we shouldn't load
// it.
- if (m_format.isEmpty())
- return m_absoluteResource.startsWith("data:", TextCaseInsensitive) ||
- !m_absoluteResource.endsWith(".eot", TextCaseInsensitive);
+ if (m_format.isEmpty()) {
+ return m_absoluteResource.startsWith("data:", TextCaseASCIIInsensitive) ||
+ !m_absoluteResource.endsWith(".eot", TextCaseASCIIInsensitive);
+ }
return FontCustomPlatformData::supportsFormat(m_format);
}
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptRegexp.cpp ('k') | third_party/WebKit/Source/core/dom/DOMImplementation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698