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

Unified Diff: third_party/WebKit/Source/core/css/CSSSegmentedFontFace.h

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/CSSSegmentedFontFace.h
diff --git a/third_party/WebKit/Source/core/css/CSSSegmentedFontFace.h b/third_party/WebKit/Source/core/css/CSSSegmentedFontFace.h
index fe6293332b63c4d4410141a482de95954fd16b24..5d0ae5cce2b859ee68476472e53af0e23a214ab2 100644
--- a/third_party/WebKit/Source/core/css/CSSSegmentedFontFace.h
+++ b/third_party/WebKit/Source/core/css/CSSSegmentedFontFace.h
@@ -26,6 +26,7 @@
#ifndef CSSSegmentedFontFace_h
#define CSSSegmentedFontFace_h
+#include "platform/fonts/FontCacheKey.h"
#include "platform/fonts/FontTraits.h"
#include "platform/fonts/SegmentedFontData.h"
#include "platform/heap/Handle.h"
@@ -82,7 +83,7 @@ private:
Member<CSSFontSelector> m_fontSelector;
FontTraits m_traits;
- HashMap<unsigned, RefPtr<SegmentedFontData>> m_fontDataTable;
+ HashMap<FontCacheKey, RefPtr<SegmentedFontData>, FontCacheKeyHash, FontCacheKeyTraits> m_fontDataTable;
// All non-CSS-connected FontFaces are stored after the CSS-connected ones.
FontFaceList m_fontFaces;
FontFaceList::iterator m_firstNonCssConnectedFace;

Powered by Google App Engine
This is Rietveld 408576698