| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 bool isSupportedFormat() const; | 59 bool isSupportedFormat() const; |
| 60 | 60 |
| 61 String customCSSText() const; | 61 String customCSSText() const; |
| 62 | 62 |
| 63 bool hasFailedOrCanceledSubresources() const; | 63 bool hasFailedOrCanceledSubresources() const; |
| 64 | 64 |
| 65 FontResource* fetch(Document*); | 65 FontResource* fetch(Document*); |
| 66 | 66 |
| 67 bool equals(const CSSFontFaceSrcValue&) const; | 67 bool equals(const CSSFontFaceSrcValue&) const; |
| 68 | 68 |
| 69 void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(vis
itor); } | |
| 70 | |
| 71 private: | 69 private: |
| 72 CSSFontFaceSrcValue(const String& resource, bool local) | 70 CSSFontFaceSrcValue(const String& resource, bool local) |
| 73 : CSSValue(FontFaceSrcClass) | 71 : CSSValue(FontFaceSrcClass) |
| 74 , m_resource(resource) | 72 , m_resource(resource) |
| 75 , m_isLocal(local) | 73 , m_isLocal(local) |
| 76 { | 74 { |
| 77 } | 75 } |
| 78 | 76 |
| 79 void restoreCachedResourceIfNeeded(Document*); | 77 void restoreCachedResourceIfNeeded(Document*); |
| 80 | 78 |
| 81 String m_resource; | 79 String m_resource; |
| 82 String m_format; | 80 String m_format; |
| 83 Referrer m_referrer; | 81 Referrer m_referrer; |
| 84 bool m_isLocal; | 82 bool m_isLocal; |
| 85 | 83 |
| 86 ResourcePtr<FontResource> m_fetched; | 84 ResourcePtr<FontResource> m_fetched; |
| 87 }; | 85 }; |
| 88 | 86 |
| 89 DEFINE_CSS_VALUE_TYPE_CASTS(CSSFontFaceSrcValue, isFontFaceSrcValue()); | 87 DEFINE_CSS_VALUE_TYPE_CASTS(CSSFontFaceSrcValue, isFontFaceSrcValue()); |
| 90 | 88 |
| 91 } | 89 } |
| 92 | 90 |
| 93 #endif | 91 #endif |
| OLD | NEW |