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

Unified Diff: Source/core/css/CSSCustomFontData.h

Issue 171823002: Make text visible when font loading takes longer than 3 seconds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/http/tests/webfont/slow-loading-expected.html ('k') | Source/core/css/CSSFontFace.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSCustomFontData.h
diff --git a/Source/core/css/CSSCustomFontData.h b/Source/core/css/CSSCustomFontData.h
index 9436927cabb8d73513b0dd9ea6472054ea29b7c0..206188854e91153a85ccb33d1c0d1a20c231583a 100644
--- a/Source/core/css/CSSCustomFontData.h
+++ b/Source/core/css/CSSCustomFontData.h
@@ -28,9 +28,9 @@ namespace WebCore {
class CSSCustomFontData FINAL : public CustomFontData {
public:
- static PassRefPtr<CSSCustomFontData> create(bool isLoadingFallback = false)
+ static PassRefPtr<CSSCustomFontData> create(bool isLoadingFallback = false, FallbackVisibility visibility = VisibleFallback)
{
- return adoptRef(new CSSCustomFontData(isLoadingFallback));
+ return adoptRef(new CSSCustomFontData(isLoadingFallback, visibility));
}
virtual ~CSSCustomFontData() { }
@@ -47,8 +47,8 @@ public:
virtual void clearCSSFontFaceSource() OVERRIDE { m_fontFaceSource = 0; }
private:
- CSSCustomFontData(bool isLoadingFallback)
- : CustomFontData(isLoadingFallback)
+ CSSCustomFontData(bool isLoadingFallback, FallbackVisibility visibility)
+ : CustomFontData(isLoadingFallback, visibility)
, m_fontFaceSource(0)
{
}
« no previous file with comments | « LayoutTests/http/tests/webfont/slow-loading-expected.html ('k') | Source/core/css/CSSFontFace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698