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

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

Issue 26890003: Remove ThreadLocalEventNames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build Created 7 years, 2 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/CSSFontFaceLoadEvent.cpp ('k') | Source/core/dom/DOMNamedFlowCollection.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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 { 161 {
162 } 162 }
163 163
164 Document* FontFaceSet::document() const 164 Document* FontFaceSet::document() const
165 { 165 {
166 return toDocument(executionContext()); 166 return toDocument(executionContext());
167 } 167 }
168 168
169 const AtomicString& FontFaceSet::interfaceName() const 169 const AtomicString& FontFaceSet::interfaceName() const
170 { 170 {
171 return eventNames().interfaceForFontFaceSet; 171 return EventTargetNames::FontFaceSet;
172 } 172 }
173 173
174 ExecutionContext* FontFaceSet::executionContext() const 174 ExecutionContext* FontFaceSet::executionContext() const
175 { 175 {
176 return ActiveDOMObject::executionContext(); 176 return ActiveDOMObject::executionContext();
177 } 177 }
178 178
179 AtomicString FontFaceSet::status() const 179 AtomicString FontFaceSet::status() const
180 { 180 {
181 DEFINE_STATIC_LOCAL(AtomicString, loading, ("loading", AtomicString::Constru ctFromLiteral)); 181 DEFINE_STATIC_LOCAL(AtomicString, loading, ("loading", AtomicString::Constru ctFromLiteral));
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 435
436 void FontFaceSet::FontLoadHistogram::record() 436 void FontFaceSet::FontLoadHistogram::record()
437 { 437 {
438 if (m_recorded) 438 if (m_recorded)
439 return; 439 return;
440 m_recorded = true; 440 m_recorded = true;
441 HistogramSupport::histogramCustomCounts("WebFont.WebFontsInPage", m_count, 1 , 100, 50); 441 HistogramSupport::histogramCustomCounts("WebFont.WebFontsInPage", m_count, 1 , 100, 50);
442 } 442 }
443 443
444 } // namespace WebCore 444 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSFontFaceLoadEvent.cpp ('k') | Source/core/dom/DOMNamedFlowCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698