#include "wtf/ListHashSet.h"
#include "wtf/text/StringHash.h"
-namespace WebCore {
+namespace blink {
class FontFace;
class CSSFontSelector;
// a result of egregious spaghettification in FontFace/FontFaceSet.
void add(CSSFontSelector*, const StyleRuleFontFace*, PassRefPtrWillBeRawPtr<FontFace>);
void remove(const StyleRuleFontFace*);
- void clear();
+ void clearCSSConnected();
+ void clearAll();
void addFontFace(CSSFontSelector*, PassRefPtrWillBeRawPtr<FontFace>, bool cssConnected);
void removeFontFace(FontFace*, bool cssConnected);
// but this function uses FontDescription/family pair.
CSSSegmentedFontFace* get(const FontDescription&, const AtomicString& family);
- const ListHashSet<RefPtrWillBeMember<FontFace> >& cssConnectedFontFaces() const { return m_cssConnectedFontFaces; }
+ const WillBeHeapListHashSet<RefPtrWillBeMember<FontFace> >& cssConnectedFontFaces() const { return m_cssConnectedFontFaces; }
unsigned version() const { return m_version; }
void incrementVersion() { ++m_version; }
FamilyToTraitsMap m_fontFaces;
FamilyToTraitsMap m_fonts;
StyleRuleToFontFace m_styleRuleToFontFace;
- // FIXME: Oilpan: Replace by HeapLinkedHashSet or HeapListHashSet.
- ListHashSet<RefPtrWillBeMember<FontFace> > m_cssConnectedFontFaces;
+ WillBeHeapListHashSet<RefPtrWillBeMember<FontFace> > m_cssConnectedFontFaces;
// FIXME: See if this could be ditched
// Used to compare Font instances, and the usage seems suspect.