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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontFallbackIterator.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: Created 3 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: third_party/WebKit/Source/platform/fonts/FontFallbackIterator.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/FontFallbackIterator.cpp b/third_party/WebKit/Source/platform/fonts/FontFallbackIterator.cpp
index bd621c954b860d174ef977586c3623fc0bc68859..d082f33aa764c583cdaf11af16b16792407a60d0 100644
--- a/third_party/WebKit/Source/platform/fonts/FontFallbackIterator.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontFallbackIterator.cpp
@@ -78,7 +78,7 @@ PassRefPtr<FontDataForRangeSet> FontFallbackIterator::uniqueOrNext(
// We don't want to skip subsetted ranges because HarfBuzzShaper's behavior
// depends on the subsetting.
if (candidate->isEntireRange())
- m_uniqueFontDataForRangeSetsReturned.add(candidateId);
+ m_uniqueFontDataForRangeSetsReturned.insert(candidateId);
return candidate;
}
@@ -234,7 +234,7 @@ PassRefPtr<SimpleFontData> FontFallbackIterator::uniqueSystemFontForHintList(
if (!hint || m_previouslyAskedForHint.contains(hint))
return nullptr;
- m_previouslyAskedForHint.add(hint);
+ m_previouslyAskedForHint.insert(hint);
return fontCache->fallbackFontForCharacter(
m_fontDescription, hint,
m_fontFallbackList->primarySimpleFontData(m_fontDescription));

Powered by Google App Engine
This is Rietveld 408576698