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

Unified Diff: Source/platform/fonts/FontFallbackList.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/FontFallbackList.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/FontFallbackList.cpp
diff --git a/Source/platform/fonts/FontFallbackList.cpp b/Source/platform/fonts/FontFallbackList.cpp
index e905ceeaed213016905e13c27bd9611b756a9b86..d4661e4fcea40c12e5ef35f53f946cbff64183e1 100644
--- a/Source/platform/fonts/FontFallbackList.cpp
+++ b/Source/platform/fonts/FontFallbackList.cpp
@@ -244,4 +244,12 @@ const FontData* FontFallbackList::fontDataAt(const FontDescription& fontDescript
return result.get();
}
+bool FontFallbackList::isValid() const
+{
+ if (!m_fontSelector)
+ return m_fontSelectorVersion == 0;
+
+ return m_fontSelector->version() == m_fontSelectorVersion;
+}
+
} // namespace blink
« no previous file with comments | « Source/platform/fonts/FontFallbackList.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698