| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 class Document; | 51 class Document; |
| 52 class ExceptionState; | 52 class ExceptionState; |
| 53 class FontFaceDescriptors; | 53 class FontFaceDescriptors; |
| 54 class StringOrArrayBufferOrArrayBufferView; | 54 class StringOrArrayBufferOrArrayBufferView; |
| 55 class StylePropertySet; | 55 class StylePropertySet; |
| 56 class StyleRuleFontFace; | 56 class StyleRuleFontFace; |
| 57 | 57 |
| 58 class FontFace : public GarbageCollectedFinalized<FontFace>, public ScriptWrappa
ble, public ActiveScriptWrappable, public ActiveDOMObject { | 58 class FontFace : public GarbageCollectedFinalized<FontFace>, public ScriptWrappa
ble, public ActiveScriptWrappable, public ActiveDOMObject { |
| 59 DEFINE_WRAPPERTYPEINFO(); | 59 DEFINE_WRAPPERTYPEINFO(); |
| 60 USING_GARBAGE_COLLECTED_MIXIN(FontFace); | 60 USING_GARBAGE_COLLECTED_MIXIN(FontFace); |
| 61 WTF_MAKE_NONCOPYABLE(FontFace); |
| 61 public: | 62 public: |
| 62 enum LoadStatusType { Unloaded, Loading, Loaded, Error }; | 63 enum LoadStatusType { Unloaded, Loading, Loaded, Error }; |
| 63 | 64 |
| 64 static FontFace* create(ExecutionContext*, const AtomicString& family, Strin
gOrArrayBufferOrArrayBufferView&, const FontFaceDescriptors&); | 65 static FontFace* create(ExecutionContext*, const AtomicString& family, Strin
gOrArrayBufferOrArrayBufferView&, const FontFaceDescriptors&); |
| 65 static FontFace* create(Document*, const StyleRuleFontFace*); | 66 static FontFace* create(Document*, const StyleRuleFontFace*); |
| 66 | 67 |
| 67 ~FontFace(); | 68 ~FontFace(); |
| 68 | 69 |
| 69 const AtomicString& family() const { return m_family; } | 70 const AtomicString& family() const { return m_family; } |
| 70 String style() const; | 71 String style() const; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 Member<LoadedProperty> m_loadedProperty; | 146 Member<LoadedProperty> m_loadedProperty; |
| 146 Member<CSSFontFace> m_cssFontFace; | 147 Member<CSSFontFace> m_cssFontFace; |
| 147 HeapVector<Member<LoadFontCallback>> m_callbacks; | 148 HeapVector<Member<LoadFontCallback>> m_callbacks; |
| 148 }; | 149 }; |
| 149 | 150 |
| 150 using FontFaceArray = HeapVector<Member<FontFace>>; | 151 using FontFaceArray = HeapVector<Member<FontFace>>; |
| 151 | 152 |
| 152 } // namespace blink | 153 } // namespace blink |
| 153 | 154 |
| 154 #endif // FontFace_h | 155 #endif // FontFace_h |
| OLD | NEW |