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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 years, 10 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/layout/LayoutBlockFlowLine.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
index 8fb9566e8c73af9b0f06cb233fe95bf76097d27d..f1601189b6dacb75bbfd2c045c40c8385ac9c019 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp
@@ -629,9 +629,9 @@ static inline void setLogicalWidthForTextRun(
ASSERT(run->m_box->isText());
GlyphOverflowAndFallbackFontsMap::ValueType* it =
textBoxDataMap
- .add(toInlineTextBox(run->m_box),
- std::make_pair(Vector<const SimpleFontData*>(),
- GlyphOverflow()))
+ .insert(toInlineTextBox(run->m_box),
+ std::make_pair(Vector<const SimpleFontData*>(),
+ GlyphOverflow()))
.storedValue;
ASSERT(it->value.first.isEmpty());
copyToVector(fallbackFonts, it->value.first);
@@ -641,9 +641,9 @@ static inline void setLogicalWidthForTextRun(
ASSERT(run->m_box->isText());
GlyphOverflowAndFallbackFontsMap::ValueType* it =
textBoxDataMap
- .add(toInlineTextBox(run->m_box),
- std::make_pair(Vector<const SimpleFontData*>(),
- GlyphOverflow()))
+ .insert(toInlineTextBox(run->m_box),
+ std::make_pair(Vector<const SimpleFontData*>(),
+ GlyphOverflow()))
.storedValue;
it->value.second = glyphOverflow;
run->m_box->clearKnownToHaveNoOverflow();
« no previous file with comments | « third_party/WebKit/Source/core/layout/FloatingObjects.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698