• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/WebCore-7600.1.25/platform/graphics/

Lines Matching +defs:key +defs:description

185     // Our FontData don't have to be checked, since checking the font description will be fine.
207 // This part of the key is shared with the lower level FontCache (caching FontData objects).
218 FontGlyphsCacheEntry(FontGlyphsCacheKey&& k, PassRef<FontGlyphs> g) : key(WTF::move(k)), glyphs(WTF::move(g)) { }
219 FontGlyphsCacheKey key;
257 static unsigned makeFontSelectorFlags(const FontDescription& description)
259 return static_cast<unsigned>(description.script()) << 1 | static_cast<unsigned>(description.smallCaps());
262 static void makeFontGlyphsCacheKey(FontGlyphsCacheKey& key, const FontDescription& description, FontSelector* fontSelector)
264 key.fontDescriptionCacheKey = FontDescriptionFontDataCacheKey(description);
265 for (unsigned i = 0; i < description.familyCount(); ++i)
266 key.families.append(description.familyAt(i));
267 key.fontSelectorId = fontSelector ? fontSelector->uniqueId() : 0;
268 key.fontSelectorVersion = fontSelector ? fontSelector->version() : 0;
269 key.fontSelectorFlags = fontSelector && fontSelector->resolvesFamilyFor(description) ? makeFontSelectorFlags(description) : 0;
272 static unsigned computeFontGlyphsCacheHash(const FontGlyphsCacheKey& key)
275 hashCodes.reserveInitialCapacity(4 + key.families.size());
277 hashCodes.uncheckedAppend(key.fontDescriptionCacheKey.computeHash());
278 hashCodes.uncheckedAppend(key.fontSelectorId);
279 hashCodes.uncheckedAppend(key.fontSelectorVersion);
280 hashCodes.uncheckedAppend(key.fontSelectorFlags);
281 for (unsigned i = 0; i < key.families.size(); ++i)
282 hashCodes.uncheckedAppend(key.families[i].impl() ? CaseFoldingHash::hash(key.families[i]) : 0);
293 toRemove.append(it->key);
301 FontGlyphsCacheKey key;
302 makeFontGlyphsCacheKey(key, fontDescription, fontSelector.get());
304 unsigned hash = computeFontGlyphsCacheHash(key);
306 if (!addResult.isNewEntry && addResult.iterator->value->key == key)
310 newEntry = adoptPtr(new FontGlyphsCacheEntry(WTF::move(key), FontGlyphs::create(fontSelector)));