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

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

Issue 180273020: UMA histograms to measure whether / how long blank text is rendered for loading web fonts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: early return 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 | « no previous file | 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 206188854e91153a85ccb33d1c0d1a20c231583a..0a3d495e10cf556d80d6c69ba8335bedf5151700 100644
--- a/Source/core/css/CSSCustomFontData.h
+++ b/Source/core/css/CSSCustomFontData.h
@@ -35,6 +35,13 @@ public:
virtual ~CSSCustomFontData() { }
+ virtual bool shouldSkipDrawing() const OVERRIDE
+ {
+ if (m_fontFaceSource)
+ m_fontFaceSource->paintRequested();
+ return m_fallbackVisibility == InvisibleFallback && m_isUsed;
+ }
+
virtual void beginLoadIfNeeded() const OVERRIDE
{
if (!m_isUsed && m_isLoadingFallback && m_fontFaceSource) {
« no previous file with comments | « no previous file | Source/core/css/CSSFontFace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698