| 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 met: | 5 * modification, are permitted provided that the following conditions are met: |
| 6 * | 6 * |
| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 class CSSFontSelector; | 50 class CSSFontSelector; |
| 51 class Dictionary; | 51 class Dictionary; |
| 52 class Document; | 52 class Document; |
| 53 class ExceptionState; | 53 class ExceptionState; |
| 54 class Font; | 54 class Font; |
| 55 class FontFaceCache; | 55 class FontFaceCache; |
| 56 class FontResource; | 56 class FontResource; |
| 57 class FontsReadyPromiseResolver; | 57 class FontsReadyPromiseResolver; |
| 58 class ExecutionContext; | 58 class ExecutionContext; |
| 59 | 59 |
| 60 #if ENABLE(OILPAN) | |
| 61 class FontFaceSet final : public GarbageCollectedFinalized<FontFaceSet>, public
HeapSupplement<Document>, public ActiveDOMObject, public EventTargetWithInlineDa
ta { | |
| 62 USING_GARBAGE_COLLECTED_MIXIN(FontFaceSet); | |
| 63 typedef HeapSupplement<Document> SupplementType; | |
| 64 #else | |
| 65 class FontFaceSet final : public RefCountedSupplement<Document, FontFaceSet>, pu
blic ActiveDOMObject, public EventTargetWithInlineData { | 60 class FontFaceSet final : public RefCountedSupplement<Document, FontFaceSet>, pu
blic ActiveDOMObject, public EventTargetWithInlineData { |
| 66 DEFINE_EVENT_TARGET_REFCOUNTING(RefCounted<FontFaceSet>); | 61 DEFINE_EVENT_TARGET_REFCOUNTING(RefCounted<FontFaceSet>); |
| 67 typedef RefCountedSupplement<Document, FontFaceSet> SupplementType; | 62 typedef RefCountedSupplement<Document, FontFaceSet> SupplementType; |
| 68 #endif | |
| 69 DEFINE_WRAPPERTYPEINFO(); | 63 DEFINE_WRAPPERTYPEINFO(); |
| 70 public: | 64 public: |
| 71 virtual ~FontFaceSet(); | 65 virtual ~FontFaceSet(); |
| 72 | 66 |
| 73 bool check(const String& font, const String& text, ExceptionState&); | 67 bool check(const String& font, const String& text, ExceptionState&); |
| 74 ScriptPromise load(ScriptState*, const String& font, const String& text); | 68 ScriptPromise load(ScriptState*, const String& font, const String& text); |
| 75 ScriptPromise ready(ScriptState*); | 69 ScriptPromise ready(ScriptState*); |
| 76 | 70 |
| 77 void add(FontFace*, ExceptionState&); | 71 void add(FontFace*, ExceptionState&); |
| 78 void clear(); | 72 void clear(); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 ListHashSet<RefPtr<FontFace> > m_nonCSSConnectedFaces; | 142 ListHashSet<RefPtr<FontFace> > m_nonCSSConnectedFaces; |
| 149 | 143 |
| 150 AsyncMethodRunner<FontFaceSet> m_asyncRunner; | 144 AsyncMethodRunner<FontFaceSet> m_asyncRunner; |
| 151 | 145 |
| 152 FontLoadHistogram m_histogram; | 146 FontLoadHistogram m_histogram; |
| 153 }; | 147 }; |
| 154 | 148 |
| 155 } // namespace blink | 149 } // namespace blink |
| 156 | 150 |
| 157 #endif // FontFaceSet_h | 151 #endif // FontFaceSet_h |
| OLD | NEW |