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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.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/html/parser/HTMLTreeBuilder.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp b/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp
index 77c75411940920e79105b0bd2e864c4741efc8d3..f42fb4e0df901385d1afbbe97bd27dbda784d5ae 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLTreeBuilder.cpp
@@ -462,7 +462,7 @@ static void adjustSVGTagNameCase(AtomicHTMLToken* token) {
mapLoweredLocalNameToName(caseMap, svgTags.get(), SVGNames::SVGTagsCount);
}
- const QualifiedName& casedName = caseMap->get(token->name());
+ const QualifiedName& casedName = caseMap->at(token->name());
if (casedName.localName().isNull())
return;
token->setName(casedName.localName());
@@ -478,7 +478,7 @@ static void adjustAttributes(AtomicHTMLToken* token) {
}
for (auto& tokenAttribute : token->attributes()) {
- const QualifiedName& casedName = caseMap->get(tokenAttribute.localName());
+ const QualifiedName& casedName = caseMap->at(tokenAttribute.localName());
if (!casedName.localName().isNull())
tokenAttribute.parserSetName(casedName);
}
@@ -526,7 +526,7 @@ static void adjustForeignAttributes(AtomicHTMLToken* token) {
for (unsigned i = 0; i < token->attributes().size(); ++i) {
Attribute& tokenAttribute = token->attributes().at(i);
- const QualifiedName& name = map->get(tokenAttribute.localName());
+ const QualifiedName& name = map->at(tokenAttribute.localName());
if (!name.localName().isNull())
tokenAttribute.parserSetName(name);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/imports/HTMLImport.cpp ('k') | third_party/WebKit/Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698