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

Unified Diff: third_party/WebKit/Source/core/dom/ProcessingInstruction.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/dom/ProcessingInstruction.cpp
diff --git a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
index 56eebfafa6362cc3964e3fecfba0dfb2732fafeb..a56b695443b20f87aeff67ebc5721fb75f51e740 100644
--- a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
+++ b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
@@ -120,12 +120,12 @@ bool ProcessingInstruction::checkStyleSheet(String& href, String& charset) {
if (!m_isCSS && !m_isXSL)
return false;
- href = attrs.get("href");
- charset = attrs.get("charset");
- String alternate = attrs.get("alternate");
+ href = attrs.at("href");
+ charset = attrs.at("charset");
+ String alternate = attrs.at("alternate");
m_alternate = alternate == "yes";
- m_title = attrs.get("title");
- m_media = attrs.get("media");
+ m_title = attrs.at("title");
+ m_media = attrs.at("media");
return !m_alternate || !m_title.isEmpty();
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/NthIndexCache.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698