| OLD | NEW |
| 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "core/css/CSSFontFaceSrcValue.h" | 26 #include "core/css/CSSFontFaceSrcValue.h" |
| 27 | 27 |
| 28 #include "core/css/CSSMarkup.h" | 28 #include "core/css/CSSMarkup.h" |
| 29 #include "core/css/StyleSheetContents.h" | 29 #include "core/css/StyleSheetContents.h" |
| 30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
| 31 #include "core/dom/Node.h" | 31 #include "core/dom/Node.h" |
| 32 #include "core/fetch/FetchInitiatorTypeNames.h" | |
| 33 #include "core/fetch/FetchRequest.h" | |
| 34 #include "core/fetch/ResourceFetcher.h" | |
| 35 #include "core/loader/resource/FontResource.h" | 32 #include "core/loader/resource/FontResource.h" |
| 36 #include "platform/CrossOriginAttributeValue.h" | 33 #include "platform/CrossOriginAttributeValue.h" |
| 37 #include "platform/RuntimeEnabledFeatures.h" | 34 #include "platform/RuntimeEnabledFeatures.h" |
| 38 #include "platform/fonts/FontCache.h" | 35 #include "platform/fonts/FontCache.h" |
| 39 #include "platform/fonts/FontCustomPlatformData.h" | 36 #include "platform/fonts/FontCustomPlatformData.h" |
| 37 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" |
| 38 #include "platform/loader/fetch/FetchRequest.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 "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. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 WebURLRequest::RequestContextFont, FetchInitiatorTypeNames::css); | 124 WebURLRequest::RequestContextFont, FetchInitiatorTypeNames::css); |
| 125 } | 125 } |
| 126 | 126 |
| 127 bool CSSFontFaceSrcValue::equals(const CSSFontFaceSrcValue& other) const { | 127 bool CSSFontFaceSrcValue::equals(const CSSFontFaceSrcValue& other) const { |
| 128 return m_isLocal == other.m_isLocal && m_format == other.m_format && | 128 return m_isLocal == other.m_isLocal && m_format == other.m_format && |
| 129 m_specifiedResource == other.m_specifiedResource && | 129 m_specifiedResource == other.m_specifiedResource && |
| 130 m_absoluteResource == other.m_absoluteResource; | 130 m_absoluteResource == other.m_absoluteResource; |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace blink | 133 } // namespace blink |
| OLD | NEW |