| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 String status() const; | 78 String status() const; |
| 79 | 79 |
| 80 void load(); | 80 void load(); |
| 81 ScriptPromise ready(ExecutionContext*); | 81 ScriptPromise ready(ExecutionContext*); |
| 82 | 82 |
| 83 LoadStatus loadStatus() const { return m_status; } | 83 LoadStatus loadStatus() const { return m_status; } |
| 84 void setLoadStatus(LoadStatus); | 84 void setLoadStatus(LoadStatus); |
| 85 unsigned traitsMask() const; | 85 unsigned traitsMask() const; |
| 86 PassRefPtr<CSSFontFace> createCSSFontFace(Document*); | 86 PassRefPtr<CSSFontFace> createCSSFontFace(Document*); |
| 87 CSSFontFace* cssFontFace() { return m_cssFontFace; } |
| 87 void cssFontFaceDestroyed() { m_cssFontFace = 0; } | 88 void cssFontFaceDestroyed() { m_cssFontFace = 0; } |
| 88 | 89 |
| 89 private: | 90 private: |
| 90 FontFace(PassRefPtr<CSSValue> source); | 91 FontFace(PassRefPtr<CSSValue> source); |
| 91 | 92 |
| 92 void setPropertyFromString(const String&, CSSPropertyID, ExceptionState&); | 93 void setPropertyFromString(const String&, CSSPropertyID, ExceptionState&); |
| 93 bool setPropertyFromStyle(const StylePropertySet*, CSSPropertyID); | 94 bool setPropertyFromStyle(const StylePropertySet*, CSSPropertyID); |
| 94 bool setPropertyValue(PassRefPtr<CSSValue>, CSSPropertyID); | 95 bool setPropertyValue(PassRefPtr<CSSValue>, CSSPropertyID); |
| 95 bool setFamilyValue(CSSValueList*); | 96 bool setFamilyValue(CSSValueList*); |
| 96 void resolveReadyPromises(); | 97 void resolveReadyPromises(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 107 | 108 |
| 108 Vector<OwnPtr<FontFaceReadyPromiseResolver> > m_readyResolvers; | 109 Vector<OwnPtr<FontFaceReadyPromiseResolver> > m_readyResolvers; |
| 109 CSSFontFace* m_cssFontFace; | 110 CSSFontFace* m_cssFontFace; |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 typedef Vector<RefPtr<FontFace> > FontFaceArray; | 113 typedef Vector<RefPtr<FontFace> > FontFaceArray; |
| 113 | 114 |
| 114 } // namespace WebCore | 115 } // namespace WebCore |
| 115 | 116 |
| 116 #endif // FontFace_h | 117 #endif // FontFace_h |
| OLD | NEW |