OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/css/RemoteFontFaceSource.h" | 5 #include "core/css/RemoteFontFaceSource.h" |
6 | 6 |
7 #include "core/css/CSSCustomFontData.h" | 7 #include "core/css/CSSCustomFontData.h" |
8 #include "core/css/CSSFontFace.h" | 8 #include "core/css/CSSFontFace.h" |
9 #include "core/css/CSSFontSelector.h" | 9 #include "core/css/CSSFontSelector.h" |
10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 if (m_face) | 180 if (m_face) |
181 m_face->didBeginLoad(); | 181 m_face->didBeginLoad(); |
182 } | 182 } |
183 | 183 |
184 DEFINE_TRACE(RemoteFontFaceSource) | 184 DEFINE_TRACE(RemoteFontFaceSource) |
185 { | 185 { |
186 visitor->trace(m_font); | 186 visitor->trace(m_font); |
187 visitor->trace(m_fontSelector); | 187 visitor->trace(m_fontSelector); |
188 CSSFontFaceSource::trace(visitor); | 188 CSSFontFaceSource::trace(visitor); |
| 189 FontResourceClient::trace(visitor); |
189 } | 190 } |
190 | 191 |
191 void RemoteFontFaceSource::FontLoadHistograms::loadStarted() | 192 void RemoteFontFaceSource::FontLoadHistograms::loadStarted() |
192 { | 193 { |
193 if (!m_loadStartTime) | 194 if (!m_loadStartTime) |
194 m_loadStartTime = currentTimeMS(); | 195 m_loadStartTime = currentTimeMS(); |
195 } | 196 } |
196 | 197 |
197 void RemoteFontFaceSource::FontLoadHistograms::fallbackFontPainted(DisplayPeriod
period) | 198 void RemoteFontFaceSource::FontLoadHistograms::fallbackFontPainted(DisplayPeriod
period) |
198 { | 199 { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 interventionResult |= 1 << 0; | 285 interventionResult |= 1 << 0; |
285 if (triggered) | 286 if (triggered) |
286 interventionResult |= 1 << 1; | 287 interventionResult |= 1 << 1; |
287 const int boundary = 1 << 2; | 288 const int boundary = 1 << 2; |
288 | 289 |
289 DEFINE_STATIC_LOCAL(EnumerationHistogram, interventionHistogram, ("WebFont.I
nterventionResult", boundary)); | 290 DEFINE_STATIC_LOCAL(EnumerationHistogram, interventionHistogram, ("WebFont.I
nterventionResult", boundary)); |
290 interventionHistogram.count(interventionResult); | 291 interventionHistogram.count(interventionResult); |
291 } | 292 } |
292 | 293 |
293 } // namespace blink | 294 } // namespace blink |
OLD | NEW |