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

Unified Diff: Source/platform/fonts/Font.cpp

Issue 1038193002: Clear baseLayoutStyle when the font selector version has increased. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed review issues Created 5 years, 9 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 | « Source/platform/fonts/Font.h ('k') | Source/platform/fonts/FontFallbackList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/Font.cpp
diff --git a/Source/platform/fonts/Font.cpp b/Source/platform/fonts/Font.cpp
index 606fc1ce7b184dd85a3767832c99f3ab3c069fae..5962cdc9376fd9a45d78eaf44fb09479c91db4f3 100644
--- a/Source/platform/fonts/Font.cpp
+++ b/Source/platform/fonts/Font.cpp
@@ -942,4 +942,14 @@ int Font::offsetForPositionForSimpleText(const TextRun& run, float x, bool inclu
return offset;
}
+bool Font::loadingCustomFonts() const
+{
+ return m_fontFallbackList && m_fontFallbackList->loadingCustomFonts();
+}
+
+bool Font::isFallbackValid() const
+{
+ return !m_fontFallbackList || m_fontFallbackList->isValid();
+}
+
} // namespace blink
« no previous file with comments | « Source/platform/fonts/Font.h ('k') | Source/platform/fonts/FontFallbackList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698