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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 } | 134 } |
135 | 135 |
136 RefPtr<ScriptPromiseResolver> m_resolver; | 136 RefPtr<ScriptPromiseResolver> m_resolver; |
137 }; | 137 }; |
138 | 138 |
139 FontFaceSet::FontFaceSet(Document& document) | 139 FontFaceSet::FontFaceSet(Document& document) |
140 : ActiveDOMObject(&document) | 140 : ActiveDOMObject(&document) |
141 , m_shouldFireLoadingEvent(false) | 141 , m_shouldFireLoadingEvent(false) |
142 , m_asyncRunner(this, &FontFaceSet::handlePendingEventsAndPromises) | 142 , m_asyncRunner(this, &FontFaceSet::handlePendingEventsAndPromises) |
143 { | 143 { |
144 ScriptWrappable::init(this); | |
145 suspendIfNeeded(); | 144 suspendIfNeeded(); |
146 } | 145 } |
147 | 146 |
148 FontFaceSet::~FontFaceSet() | 147 FontFaceSet::~FontFaceSet() |
149 { | 148 { |
150 } | 149 } |
151 | 150 |
152 Document* FontFaceSet::document() const | 151 Document* FontFaceSet::document() const |
153 { | 152 { |
154 return toDocument(executionContext()); | 153 return toDocument(executionContext()); |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 visitor->trace(m_loadingFonts); | 586 visitor->trace(m_loadingFonts); |
588 visitor->trace(m_loadedFonts); | 587 visitor->trace(m_loadedFonts); |
589 visitor->trace(m_failedFonts); | 588 visitor->trace(m_failedFonts); |
590 visitor->trace(m_nonCSSConnectedFaces); | 589 visitor->trace(m_nonCSSConnectedFaces); |
591 DocumentSupplement::trace(visitor); | 590 DocumentSupplement::trace(visitor); |
592 EventTargetWithInlineData::trace(visitor); | 591 EventTargetWithInlineData::trace(visitor); |
593 } | 592 } |
594 #endif | 593 #endif |
595 | 594 |
596 } // namespace blink | 595 } // namespace blink |
OLD | NEW |