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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp

Issue 2813863003: Rewrite references to "wtf/" to "platform/wtf/" in core/css and core/style. (Closed)
Patch Set: Rebase. Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 20 matching lines...) Expand all
31 #include "core/dom/Node.h" 31 #include "core/dom/Node.h"
32 #include "core/loader/resource/FontResource.h" 32 #include "core/loader/resource/FontResource.h"
33 #include "platform/CrossOriginAttributeValue.h" 33 #include "platform/CrossOriginAttributeValue.h"
34 #include "platform/RuntimeEnabledFeatures.h" 34 #include "platform/RuntimeEnabledFeatures.h"
35 #include "platform/fonts/FontCache.h" 35 #include "platform/fonts/FontCache.h"
36 #include "platform/fonts/FontCustomPlatformData.h" 36 #include "platform/fonts/FontCustomPlatformData.h"
37 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" 37 #include "platform/loader/fetch/FetchInitiatorTypeNames.h"
38 #include "platform/loader/fetch/FetchParameters.h" 38 #include "platform/loader/fetch/FetchParameters.h"
39 #include "platform/loader/fetch/ResourceFetcher.h" 39 #include "platform/loader/fetch/ResourceFetcher.h"
40 #include "platform/weborigin/SecurityPolicy.h" 40 #include "platform/weborigin/SecurityPolicy.h"
41 #include "wtf/text/StringBuilder.h" 41 #include "platform/wtf/text/StringBuilder.h"
42 42
43 namespace blink { 43 namespace blink {
44 44
45 bool CSSFontFaceSrcValue::IsSupportedFormat() const { 45 bool CSSFontFaceSrcValue::IsSupportedFormat() const {
46 // Normally we would just check the format, but in order to avoid conflicts 46 // Normally we would just check the format, but in order to avoid conflicts
47 // with the old WinIE style of font-face, we will also check to see if the URL 47 // with the old WinIE style of font-face, we will also check to see if the URL
48 // ends with .eot. If so, we'll go ahead and assume that we shouldn't load 48 // ends with .eot. If so, we'll go ahead and assume that we shouldn't load
49 // it. 49 // it.
50 if (format_.IsEmpty()) { 50 if (format_.IsEmpty()) {
51 return absolute_resource_.StartsWith("data:", kTextCaseASCIIInsensitive) || 51 return absolute_resource_.StartsWith("data:", kTextCaseASCIIInsensitive) ||
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 WebURLRequest::kRequestContextFont, FetchInitiatorTypeNames::css); 124 WebURLRequest::kRequestContextFont, FetchInitiatorTypeNames::css);
125 } 125 }
126 126
127 bool CSSFontFaceSrcValue::Equals(const CSSFontFaceSrcValue& other) const { 127 bool CSSFontFaceSrcValue::Equals(const CSSFontFaceSrcValue& other) const {
128 return is_local_ == other.is_local_ && format_ == other.format_ && 128 return is_local_ == other.is_local_ && format_ == other.format_ &&
129 specified_resource_ == other.specified_resource_ && 129 specified_resource_ == other.specified_resource_ &&
130 absolute_resource_ == other.absolute_resource_; 130 absolute_resource_ == other.absolute_resource_;
131 } 131 }
132 132
133 } // namespace blink 133 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.h ('k') | third_party/WebKit/Source/core/css/CSSFontFamilyValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698