| Index: third_party/WebKit/Source/core/css/CSSFontFace.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/CSSFontFace.cpp b/third_party/WebKit/Source/core/css/CSSFontFace.cpp
|
| index 838fb9935e9f3699dc80e6d7c990dacf32c9ad8f..41e7f8d6f6ec7a0be82911bd0c0a9ed5f246f2b8 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSFontFace.cpp
|
| +++ b/third_party/WebKit/Source/core/css/CSSFontFace.cpp
|
| @@ -63,6 +63,9 @@ void CSSFontFace::fontLoaded(RemoteFontFaceSource* source)
|
| if (loadStatus() == FontFace::Loading) {
|
| if (source->isValid()) {
|
| setLoadStatus(FontFace::Loaded);
|
| + } else if (source->displayPeriod() == RemoteFontFaceSource::FailurePeriod) {
|
| + m_sources.clear();
|
| + setLoadStatus(FontFace::Error);
|
| } else {
|
| m_sources.removeFirst();
|
| load();
|
| @@ -70,15 +73,15 @@ void CSSFontFace::fontLoaded(RemoteFontFaceSource* source)
|
| }
|
|
|
| if (m_segmentedFontFace)
|
| - m_segmentedFontFace->fontLoaded(this);
|
| + m_segmentedFontFace->fontFaceInvalidated();
|
| }
|
|
|
| -void CSSFontFace::fontLoadWaitLimitExceeded(RemoteFontFaceSource* source)
|
| +void CSSFontFace::didBecomeVisibleFallback(RemoteFontFaceSource* source)
|
| {
|
| if (!isValid() || source != m_sources.first())
|
| return;
|
| if (m_segmentedFontFace)
|
| - m_segmentedFontFace->fontLoadWaitLimitExceeded(this);
|
| + m_segmentedFontFace->fontFaceInvalidated();
|
| }
|
|
|
| PassRefPtr<SimpleFontData> CSSFontFace::getFontData(const FontDescription& fontDescription)
|
|
|