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

Unified Diff: Source/core/css/CSSSegmentedFontFace.cpp

Issue 152883002: (Concept patch) Simplify WTF::HashTable::add() return value for size and performance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: Source/core/css/CSSSegmentedFontFace.cpp
diff --git a/Source/core/css/CSSSegmentedFontFace.cpp b/Source/core/css/CSSSegmentedFontFace.cpp
index 9a028571449e660f460d2610d32e289e70193dc9..44b1fc0e31ad0f8563413a6bfb993416f20e89c1 100644
--- a/Source/core/css/CSSSegmentedFontFace.cpp
+++ b/Source/core/css/CSSSegmentedFontFace.cpp
@@ -92,9 +92,9 @@ void CSSSegmentedFontFace::addFontFace(PassRefPtr<FontFace> prpFontFace, bool cs
if (cssConnected) {
m_fontFaces.insertBefore(m_firstNonCssConnectedFace, fontFace);
} else {
- FontFaceList::AddResult result = m_fontFaces.add(fontFace);
+ m_fontFaces.add(fontFace);
if (m_firstNonCssConnectedFace == m_fontFaces.end())
- m_firstNonCssConnectedFace = result.iterator;
+ m_firstNonCssConnectedFace = m_fontFaces.find(fontFace);
Inactive 2014/02/04 14:21:33 So for the cases where the caller of add() expects
adamk 2014/02/04 16:29:34 This is my objection, too. Many uses of add() are
}
}

Powered by Google App Engine
This is Rietveld 408576698