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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 return EventTargetNames::FontFaceSet; | 152 return EventTargetNames::FontFaceSet; |
153 } | 153 } |
154 | 154 |
155 ExecutionContext* FontFaceSet::getExecutionContext() const | 155 ExecutionContext* FontFaceSet::getExecutionContext() const |
156 { | 156 { |
157 return ActiveDOMObject::getExecutionContext(); | 157 return ActiveDOMObject::getExecutionContext(); |
158 } | 158 } |
159 | 159 |
160 AtomicString FontFaceSet::status() const | 160 AtomicString FontFaceSet::status() const |
161 { | 161 { |
162 DEFINE_STATIC_LOCAL(AtomicString, loading, ("loading", AtomicString::Constru
ctFromLiteral)); | 162 DEFINE_STATIC_LOCAL(AtomicString, loading, ("loading")); |
163 DEFINE_STATIC_LOCAL(AtomicString, loaded, ("loaded", AtomicString::Construct
FromLiteral)); | 163 DEFINE_STATIC_LOCAL(AtomicString, loaded, ("loaded")); |
164 return m_isLoading ? loading : loaded; | 164 return m_isLoading ? loading : loaded; |
165 } | 165 } |
166 | 166 |
167 void FontFaceSet::handlePendingEventsAndPromisesSoon() | 167 void FontFaceSet::handlePendingEventsAndPromisesSoon() |
168 { | 168 { |
169 // m_asyncRunner will be automatically stopped on destruction. | 169 // m_asyncRunner will be automatically stopped on destruction. |
170 m_asyncRunner->runAsync(); | 170 m_asyncRunner->runAsync(); |
171 } | 171 } |
172 | 172 |
173 void FontFaceSet::didLayout() | 173 void FontFaceSet::didLayout() |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 visitor->trace(m_failedFonts); | 545 visitor->trace(m_failedFonts); |
546 visitor->trace(m_nonCSSConnectedFaces); | 546 visitor->trace(m_nonCSSConnectedFaces); |
547 visitor->trace(m_asyncRunner); | 547 visitor->trace(m_asyncRunner); |
548 HeapSupplement<Document>::trace(visitor); | 548 HeapSupplement<Document>::trace(visitor); |
549 #endif | 549 #endif |
550 EventTargetWithInlineData::trace(visitor); | 550 EventTargetWithInlineData::trace(visitor); |
551 ActiveDOMObject::trace(visitor); | 551 ActiveDOMObject::trace(visitor); |
552 } | 552 } |
553 | 553 |
554 } // namespace blink | 554 } // namespace blink |
OLD | NEW |