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

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

Issue 248473005: Make CSSFontFace::willUseFontData() load fonts with unicode-range (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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/CSSFontFace.h
diff --git a/Source/core/css/CSSFontFace.h b/Source/core/css/CSSFontFace.h
index 716c5a78b54e78f8d4e15d16ebe61639d71ccd07..21afc97374373fad1d06edeedb96ced677d7cb23 100644
--- a/Source/core/css/CSSFontFace.h
+++ b/Source/core/css/CSSFontFace.h
@@ -97,6 +97,7 @@ public:
class UnicodeRangeSet {
public:
explicit UnicodeRangeSet(const Vector<UnicodeRange>&);
+ bool contains(UChar32) const;
bool intersectsWith(const String&) const;
bool isEntireRange() const { return m_ranges.isEmpty(); }
size_t size() const { return m_ranges.size(); }
@@ -106,7 +107,7 @@ public:
};
FontFace::LoadStatus loadStatus() const { return m_fontFace->loadStatus(); }
- void willUseFontData(const FontDescription&);
+ bool willUseFontData(const FontDescription&, const String& text);
dglazkov 2014/04/29 16:37:00 Might need to rename this into something that make
Kunihiko Sakamoto 2014/04/30 03:31:21 Renamed to maybeScheduleFontLoad.
void load(const FontDescription&, CSSFontSelector* = 0);
bool hadBlankText() { return isValid() && m_sources.first()->hadBlankText(); }

Powered by Google App Engine
This is Rietveld 408576698