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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontDataRange.h

Issue 1397423004: Improve shaping segmentation for grapheme cluster based font fallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge TestExpectations with the HarfBuzz rebaselines Created 5 years, 2 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: third_party/WebKit/Source/platform/fonts/FontDataRange.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontDataRange.h b/third_party/WebKit/Source/platform/fonts/FontDataRange.h
index 3872a3a18f72ea05bcaf0ae8061f6fefee388f9c..7eabe48d6cd889e584b9ad514c9ea7a923643598 100644
--- a/third_party/WebKit/Source/platform/fonts/FontDataRange.h
+++ b/third_party/WebKit/Source/platform/fonts/FontDataRange.h
@@ -59,6 +59,7 @@ struct FontDataRange {
UChar32 from() const { return m_from; }
UChar32 to() const { return m_to; }
+ bool contains(UChar32 testChar) { return testChar >= m_from && testChar <= m_to; }
bool isEntireRange() const { return !m_from && m_to >= kMaxCodepoint; }
PassRefPtr<SimpleFontData> fontData() const { return m_fontData; }
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/platform/fonts/FontFallbackIterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698