| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 } | 127 } |
| 128 | 128 |
| 129 RefPtr<ScriptPromiseResolver> m_resolver; | 129 RefPtr<ScriptPromiseResolver> m_resolver; |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 FontFaceSet::FontFaceSet(Document& document) | 132 FontFaceSet::FontFaceSet(Document& document) |
| 133 : ActiveDOMObject(&document) | 133 : ActiveDOMObject(&document) |
| 134 , m_shouldFireLoadingEvent(false) | 134 , m_shouldFireLoadingEvent(false) |
| 135 , m_asyncRunner(this, &FontFaceSet::handlePendingEventsAndPromises) | 135 , m_asyncRunner(this, &FontFaceSet::handlePendingEventsAndPromises) |
| 136 { | 136 { |
| 137 ScriptWrappable::init(this); | |
| 138 suspendIfNeeded(); | 137 suspendIfNeeded(); |
| 139 } | 138 } |
| 140 | 139 |
| 141 FontFaceSet::~FontFaceSet() | 140 FontFaceSet::~FontFaceSet() |
| 142 { | 141 { |
| 143 } | 142 } |
| 144 | 143 |
| 145 Document* FontFaceSet::document() const | 144 Document* FontFaceSet::document() const |
| 146 { | 145 { |
| 147 return toDocument(executionContext()); | 146 return toDocument(executionContext()); |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 return fonts.release(); | 573 return fonts.release(); |
| 575 } | 574 } |
| 576 | 575 |
| 577 void FontFaceSet::didLayout(Document& document) | 576 void FontFaceSet::didLayout(Document& document) |
| 578 { | 577 { |
| 579 if (FontFaceSet* fonts = static_cast<FontFaceSet*>(SupplementType::from(docu
ment, supplementName()))) | 578 if (FontFaceSet* fonts = static_cast<FontFaceSet*>(SupplementType::from(docu
ment, supplementName()))) |
| 580 fonts->didLayout(); | 579 fonts->didLayout(); |
| 581 } | 580 } |
| 582 | 581 |
| 583 } // namespace blink | 582 } // namespace blink |
| OLD | NEW |