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

Unified Diff: Source/platform/fonts/FontFallbackList.h

Issue 1038193002: Clear baseLayoutStyle when the font selector version has increased. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« Source/platform/fonts/Font.h ('K') | « Source/platform/fonts/Font.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.h
diff --git a/Source/platform/fonts/FontFallbackList.h b/Source/platform/fonts/FontFallbackList.h
index fa7b9ac567604421a47a2f4cead3a8953b6ec541..118b33e4f29df49d09542d264aa077f1ce8ac7d1 100644
--- a/Source/platform/fonts/FontFallbackList.h
+++ b/Source/platform/fonts/FontFallbackList.h
@@ -64,6 +64,7 @@ public:
static PassRefPtr<FontFallbackList> create() { return adoptRef(new FontFallbackList()); }
~FontFallbackList() { releaseFontData(); }
+ bool isValid() const { return m_fontSelector ? m_fontSelector->version() == m_fontSelectorVersion : m_fontSelectorVersion == 0; }
esprehn 2015/03/26 23:28:15 Can we move this out of line instead?
rune 2015/03/27 07:14:22 Done.
void invalidate(PassRefPtrWillBeRawPtr<FontSelector>);
bool isFixedPitch(const FontDescription& fontDescription) const
« Source/platform/fonts/Font.h ('K') | « Source/platform/fonts/Font.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698