| Index: Source/core/css/CSSFontFaceSource.cpp
|
| diff --git a/Source/core/css/CSSFontFaceSource.cpp b/Source/core/css/CSSFontFaceSource.cpp
|
| index 2a06229d3eb1a459c40a66f73557e1febf6854b0..ee9c288c8c45a47f95e8e13fdbcd57cc051a3bed 100644
|
| --- a/Source/core/css/CSSFontFaceSource.cpp
|
| +++ b/Source/core/css/CSSFontFaceSource.cpp
|
| @@ -291,7 +291,7 @@ void CSSFontFaceSource::FontLoadHistograms::loadStarted()
|
| void CSSFontFaceSource::FontLoadHistograms::recordLocalFont(bool loadSuccess)
|
| {
|
| if (!m_loadStartTime) {
|
| - WebKit::Platform::current()->histogramEnumeration("WebFont.LocalFontUsed", loadSuccess ? 1 : 0, 2);
|
| + blink::Platform::current()->histogramEnumeration("WebFont.LocalFontUsed", loadSuccess ? 1 : 0, 2);
|
| m_loadStartTime = -1; // Do not count this font again.
|
| }
|
| }
|
| @@ -300,14 +300,14 @@ void CSSFontFaceSource::FontLoadHistograms::recordRemoteFont(const FontResource*
|
| {
|
| if (m_loadStartTime > 0 && font && !font->isLoading()) {
|
| int duration = static_cast<int>(currentTimeMS() - m_loadStartTime);
|
| - WebKit::Platform::current()->histogramCustomCounts(histogramName(font), duration, 0, 10000, 50);
|
| + blink::Platform::current()->histogramCustomCounts(histogramName(font), duration, 0, 10000, 50);
|
| m_loadStartTime = -1;
|
|
|
| enum { Miss, Hit, DataUrl, CacheHitEnumMax };
|
| int histogramValue = font->url().protocolIsData() ? DataUrl
|
| : font->response().wasCached() ? Hit
|
| : Miss;
|
| - WebKit::Platform::current()->histogramEnumeration("WebFont.CacheHit", histogramValue, CacheHitEnumMax);
|
| + blink::Platform::current()->histogramEnumeration("WebFont.CacheHit", histogramValue, CacheHitEnumMax);
|
| }
|
| }
|
|
|
|
|