Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: Source/core/css/FontFaceSet.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/FontFace.cpp ('k') | Source/core/css/FontFaceSetLoadEvent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/css/FontFace.cpp ('k') | Source/core/css/FontFaceSetLoadEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698