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

Unified Diff: third_party/WebKit/Source/core/css/CSSFontFaceSource.cpp

Issue 1973153004: Fix FontCacheKey-keyed HashMap usage in core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +comment Created 4 years, 7 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
Index: third_party/WebKit/Source/core/css/CSSFontFaceSource.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSFontFaceSource.cpp b/third_party/WebKit/Source/core/css/CSSFontFaceSource.cpp
index b72eb5e9927253f5c2fd9ff22a4b0e0c08fcce9f..146df6132ab256c21042d278af5be04c3415df73 100644
--- a/third_party/WebKit/Source/core/css/CSSFontFaceSource.cpp
+++ b/third_party/WebKit/Source/core/css/CSSFontFaceSource.cpp
@@ -57,7 +57,7 @@ PassRefPtr<SimpleFontData> CSSFontFaceSource::getFontData(const FontDescription&
// TODO(drott): Check whether losing traits information here is problematic. crbug.com/516677
FontCacheKey key = fontDescription.cacheKey(FontFaceCreationParams());
- RefPtr<SimpleFontData>& fontData = m_fontDataTable.add(key.hash(), nullptr).storedValue->value;
+ RefPtr<SimpleFontData>& fontData = m_fontDataTable.add(key, nullptr).storedValue->value;
if (!fontData)
fontData = createFontData(fontDescription);
return fontData; // No release, because fontData is a reference to a RefPtr that is held in the m_fontDataTable.
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontFaceSource.h ('k') | third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698