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

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

Issue 362963003: Encapsulate FontFallbackList's page access logic. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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.cpp ('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 252b8df26249898e5204cab9ac4a8b7ea5435de4..aef41b4237c1ada5a4db2b47509ed915f991c064 100644
--- a/Source/platform/fonts/FontFallbackList.h
+++ b/Source/platform/fonts/FontFallbackList.h
@@ -105,6 +105,19 @@ private:
void releaseFontData();
+ GlyphPageTreeNode* getPageNode(unsigned pageNumber) const
+ {
+ return pageNumber ? m_pages.get(pageNumber) : m_pageZero;
+ }
+
+ void setPageNode(unsigned pageNumber, GlyphPageTreeNode* node)
+ {
+ if (pageNumber)
+ m_pages.set(pageNumber, node);
+ else
+ m_pageZero = node;
+ }
+
mutable Vector<RefPtr<FontData>, 1> m_fontList;
mutable GlyphPages m_pages;
jbroman 2014/07/02 12:46:44 nit: Any reason for these two members to be mutabl
f(malita) 2014/07/02 13:07:30 I totally meant to do this and then forgot :) Done
mutable GlyphPageTreeNode* m_pageZero;
« no previous file with comments | « Source/platform/fonts/Font.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698