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

Side by Side Diff: sky/engine/core/css/FontFaceSet.cpp

Issue 706123005: Remove nop ScriptWrappable::init calls (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/css/FontFace.cpp ('k') | sky/engine/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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « sky/engine/core/css/FontFace.cpp ('k') | sky/engine/core/css/FontFaceSetLoadEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698