| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |