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

Unified Diff: third_party/WebKit/Source/core/editing/serializers/MarkupFormatter.cpp

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase 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/editing/serializers/MarkupFormatter.cpp
diff --git a/third_party/WebKit/Source/core/editing/serializers/MarkupFormatter.cpp b/third_party/WebKit/Source/core/editing/serializers/MarkupFormatter.cpp
index 1e1ef1618dd0581e59849433d068d453917cac55..b75932dce31894a9494252abb1ee4b76826a0c0a 100644
--- a/third_party/WebKit/Source/core/editing/serializers/MarkupFormatter.cpp
+++ b/third_party/WebKit/Source/core/editing/serializers/MarkupFormatter.cpp
@@ -246,7 +246,7 @@ void MarkupFormatter::appendNamespace(StringBuilder& result,
return;
const AtomicString& lookupKey = (!prefix) ? emptyAtom : prefix;
- AtomicString foundURI = namespaces.get(lookupKey);
+ AtomicString foundURI = namespaces.at(lookupKey);
if (foundURI != namespaceURI) {
namespaces.set(lookupKey, namespaceURI);
result.append(' ');
@@ -402,7 +402,7 @@ void MarkupFormatter::appendAttribute(StringBuilder& result,
for (unsigned i = attribute.namespaceURI().impl()->existingHash();;
++i) {
AtomicString newPrefix(String(prefixPrefix + String::number(i)));
- AtomicString foundURI = namespaces->get(newPrefix);
+ AtomicString foundURI = namespaces->at(newPrefix);
if (foundURI == attribute.namespaceURI() || foundURI == nullAtom) {
// We already generated a prefix for this namespace.
prefixedName.setPrefix(newPrefix);

Powered by Google App Engine
This is Rietveld 408576698