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

Unified Diff: Source/core/dom/DocumentOrderedMap.cpp

Issue 467973003: Use an AtomicString as key in DocumentOrderedMap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/core/dom/DocumentOrderedMap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentOrderedMap.cpp
diff --git a/Source/core/dom/DocumentOrderedMap.cpp b/Source/core/dom/DocumentOrderedMap.cpp
index 604549b089a44301fd4ded709357be32c5879e29..556fe1a8ba1e747266cc71eed22e950a5e04e0de 100644
--- a/Source/core/dom/DocumentOrderedMap.cpp
+++ b/Source/core/dom/DocumentOrderedMap.cpp
@@ -71,7 +71,7 @@ void DocumentOrderedMap::add(const AtomicString& key, Element* element)
ASSERT(key);
ASSERT(element);
- Map::AddResult addResult = m_map.add(key.impl(), adoptPtrWillBeNoop(new MapEntry(element)));
+ Map::AddResult addResult = m_map.add(key, adoptPtrWillBeNoop(new MapEntry(element)));
if (addResult.isNewEntry)
return;
@@ -87,7 +87,7 @@ void DocumentOrderedMap::remove(const AtomicString& key, Element* element)
ASSERT(key);
ASSERT(element);
- Map::iterator it = m_map.find(key.impl());
+ Map::iterator it = m_map.find(key);
if (it == m_map.end())
return;
@@ -112,7 +112,7 @@ inline Element* DocumentOrderedMap::get(const AtomicString& key, const TreeScope
ASSERT(key);
ASSERT(scope);
- MapEntry* entry = m_map.get(key.impl());
+ MapEntry* entry = m_map.get(key);
if (!entry)
return 0;
@@ -142,7 +142,7 @@ const WillBeHeapVector<RawPtrWillBeMember<Element> >& DocumentOrderedMap::getAll
ASSERT(scope);
DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<WillBeHeapVector<RawPtrWillBeMember<Element> > >, emptyVector, (adoptPtrWillBeNoop(new WillBeHeapVector<RawPtrWillBeMember<Element> >())));
- Map::iterator it = m_map.find(key.impl());
+ Map::iterator it = m_map.find(key);
if (it == m_map.end())
return *emptyVector;
« no previous file with comments | « Source/core/dom/DocumentOrderedMap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698