| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 const String& format() const { return m_format; } | 53 const String& format() const { return m_format; } |
| 54 bool isLocal() const { return m_isLocal; } | 54 bool isLocal() const { return m_isLocal; } |
| 55 | 55 |
| 56 void setFormat(const String& format) { m_format = format; } | 56 void setFormat(const String& format) { m_format = format; } |
| 57 void setReferrer(const Referrer& referrer) { m_referrer = referrer; } | 57 void setReferrer(const Referrer& referrer) { m_referrer = referrer; } |
| 58 | 58 |
| 59 bool isSupportedFormat() const; | 59 bool isSupportedFormat() const; |
| 60 | 60 |
| 61 String customCSSText() const; | 61 String customCSSText() const; |
| 62 | 62 |
| 63 bool hasFailedOrCanceledSubresources() const; | |
| 64 | |
| 65 FontResource* fetch(Document*); | 63 FontResource* fetch(Document*); |
| 66 | 64 |
| 67 bool equals(const CSSFontFaceSrcValue&) const; | 65 bool equals(const CSSFontFaceSrcValue&) const; |
| 68 | 66 |
| 69 private: | 67 private: |
| 70 CSSFontFaceSrcValue(const String& resource, bool local) | 68 CSSFontFaceSrcValue(const String& resource, bool local) |
| 71 : CSSValue(FontFaceSrcClass) | 69 : CSSValue(FontFaceSrcClass) |
| 72 , m_resource(resource) | 70 , m_resource(resource) |
| 73 , m_isLocal(local) | 71 , m_isLocal(local) |
| 74 { | 72 { |
| 75 } | 73 } |
| 76 | 74 |
| 77 void restoreCachedResourceIfNeeded(Document*); | 75 void restoreCachedResourceIfNeeded(Document*); |
| 78 | 76 |
| 79 String m_resource; | 77 String m_resource; |
| 80 String m_format; | 78 String m_format; |
| 81 Referrer m_referrer; | 79 Referrer m_referrer; |
| 82 bool m_isLocal; | 80 bool m_isLocal; |
| 83 | 81 |
| 84 ResourcePtr<FontResource> m_fetched; | 82 ResourcePtr<FontResource> m_fetched; |
| 85 }; | 83 }; |
| 86 | 84 |
| 87 DEFINE_CSS_VALUE_TYPE_CASTS(CSSFontFaceSrcValue, isFontFaceSrcValue()); | 85 DEFINE_CSS_VALUE_TYPE_CASTS(CSSFontFaceSrcValue, isFontFaceSrcValue()); |
| 88 | 86 |
| 89 } | 87 } |
| 90 | 88 |
| 91 #endif // SKY_ENGINE_CORE_CSS_CSSFONTFACESRCVALUE_H_ | 89 #endif // SKY_ENGINE_CORE_CSS_CSSFONTFACESRCVALUE_H_ |
| OLD | NEW |