Chromium Code Reviews| 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 9e5ad1f8ea1fde2f0d9565e18a5b1cf465dc9365..6e821c5d8db2c03005780a23626a9f171ea7b3fd 100644 |
| --- a/third_party/WebKit/Source/platform/fonts/FontDataRange.h |
| +++ b/third_party/WebKit/Source/platform/fonts/FontDataRange.h |
| @@ -62,6 +62,7 @@ struct FontDataRange { |
| 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; } |
| + bool isNull() const { return !fontData(); } |
|
eae
2016/02/17 18:55:17
hasData or isEmpty would be better names. isNull w
|
| PassRefPtr<SimpleFontData> fontData() const { return m_fontData; } |
| private: |