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

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: 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
Index: Source/core/css/CSSCustomFontData.h
diff --git a/Source/core/css/CSSCustomFontData.h b/Source/core/css/CSSCustomFontData.h
index 9436927cabb8d73513b0dd9ea6472054ea29b7c0..7ad32996d5d7bec155686ddfd6374b93f5df68e4 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, bool skipDrawing = false)
dglazkov 2014/02/20 17:45:41 We really should avoid adding bools as params. A l
Kunihiko Sakamoto 2014/02/21 03:38:24 Done.
{
- return adoptRef(new CSSCustomFontData(isLoadingFallback));
+ return adoptRef(new CSSCustomFontData(isLoadingFallback, skipDrawing));
}
virtual ~CSSCustomFontData() { }
@@ -47,8 +47,8 @@ public:
virtual void clearCSSFontFaceSource() OVERRIDE { m_fontFaceSource = 0; }
private:
- CSSCustomFontData(bool isLoadingFallback)
- : CustomFontData(isLoadingFallback)
+ CSSCustomFontData(bool isLoadingFallback, bool skipDrawing)
+ : CustomFontData(isLoadingFallback, skipDrawing)
, m_fontFaceSource(0)
{
}

Powered by Google App Engine
This is Rietveld 408576698