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

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

Issue 63713002: Initiate webfont download right after style recalc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix zoom-zoom-coords.xhtml Created 7 years, 1 month 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.cpp » ('j') | Source/core/css/CSSFontFaceSource.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSFontFace.h
diff --git a/Source/core/css/CSSFontFace.h b/Source/core/css/CSSFontFace.h
index b492d1a628a379b6c180cac86fbf98aae75bc3e3..a4e2fdeaab2e4af1902e6c8ceb40fe568fc05e8a 100644
--- a/Source/core/css/CSSFontFace.h
+++ b/Source/core/css/CSSFontFace.h
@@ -84,10 +84,11 @@ public:
public:
void add(UChar32 from, UChar32 to) { m_ranges.append(UnicodeRange(from, to)); }
bool intersectsWith(const String&) const;
+ bool isEntireRange() const { return m_ranges.isEmpty(); }
size_t size() const { return m_ranges.size(); }
const UnicodeRange& rangeAt(size_t i) const { return m_ranges[i]; }
private:
- Vector<UnicodeRange> m_ranges;
+ Vector<UnicodeRange> m_ranges; // If empty, represents the whole code space.
};
FontFace::LoadStatus loadStatus() const { return m_fontFace ? m_fontFace->loadStatus() : FontFace::Loaded; }
« no previous file with comments | « no previous file | Source/core/css/CSSFontFace.cpp » ('j') | Source/core/css/CSSFontFaceSource.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698