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

Unified Diff: Source/core/css/CSSSegmentedFontFaceCache.h

Issue 137253005: [Font Load Events] Partial implementation of SetClass operations for FontFaceSet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix callback arguments Created 6 years, 11 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/core/css/CSSFontSelector.cpp ('k') | Source/core/css/CSSSegmentedFontFaceCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSSegmentedFontFaceCache.h
diff --git a/Source/core/css/CSSSegmentedFontFaceCache.h b/Source/core/css/CSSSegmentedFontFaceCache.h
index c18220906eb1504d2dc597a50edfab215203376e..982cd7f4cc9ef6f8bb887688d927acfb8e0639d8 100644
--- a/Source/core/css/CSSSegmentedFontFaceCache.h
+++ b/Source/core/css/CSSSegmentedFontFaceCache.h
@@ -29,6 +29,7 @@
#include "wtf/Forward.h"
#include "wtf/HashMap.h"
+#include "wtf/ListHashSet.h"
#include "wtf/text/StringHash.h"
namespace WebCore {
@@ -47,10 +48,13 @@ public:
// a result of egregious spaghettification in CSSFontFace/FontFaceSet.
void add(CSSFontSelector*, const StyleRuleFontFace*, PassRefPtr<CSSFontFace>);
void remove(const StyleRuleFontFace*);
+
// FIXME: It's sort of weird that add/remove uses StyleRuleFontFace* as key,
// but this function uses FontDescription/family pair.
CSSSegmentedFontFace* get(const FontDescription&, const AtomicString& family);
+ const ListHashSet<RefPtr<CSSFontFace> >& cssFontFaceList() const { return m_fontFaceList; }
+
unsigned version() const { return m_version; }
private:
@@ -60,6 +64,7 @@ private:
FamilyToTraitsMap m_fontFaces;
FamilyToTraitsMap m_fonts;
StyleRuleToFontFace m_styleRuleToFontFace;
+ ListHashSet<RefPtr<CSSFontFace> > m_fontFaceList;
// FIXME: See if this could be ditched
// Used to compare Font instances, and the usage seems suspect.
« no previous file with comments | « Source/core/css/CSSFontSelector.cpp ('k') | Source/core/css/CSSSegmentedFontFaceCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698