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

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

Issue 18196004: Revert 153294 "Remove AtomicStringImpl." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 7 years, 6 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 | « trunk/Source/core/dom/DocumentOrderedMap.h ('k') | trunk/Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/Source/core/dom/DocumentOrderedMap.cpp
===================================================================
--- trunk/Source/core/dom/DocumentOrderedMap.cpp (revision 153372)
+++ trunk/Source/core/dom/DocumentOrderedMap.cpp (working copy)
@@ -44,22 +44,22 @@
using namespace HTMLNames;
-inline bool keyMatchesId(StringImpl* key, Element* element)
+inline bool keyMatchesId(AtomicStringImpl* key, Element* element)
{
return element->getIdAttribute().impl() == key;
}
-inline bool keyMatchesMapName(StringImpl* key, Element* element)
+inline bool keyMatchesMapName(AtomicStringImpl* key, Element* element)
{
return element->hasTagName(mapTag) && static_cast<HTMLMapElement*>(element)->getName().impl() == key;
}
-inline bool keyMatchesLowercasedMapName(StringImpl* key, Element* element)
+inline bool keyMatchesLowercasedMapName(AtomicStringImpl* key, Element* element)
{
return element->hasTagName(mapTag) && static_cast<HTMLMapElement*>(element)->getName().lower().impl() == key;
}
-inline bool keyMatchesLabelForAttribute(StringImpl* key, Element* element)
+inline bool keyMatchesLabelForAttribute(AtomicStringImpl* key, Element* element)
{
return element->hasTagName(labelTag) && element->getAttribute(forAttr).impl() == key;
}
@@ -70,7 +70,7 @@
m_duplicateCounts.clear();
}
-void DocumentOrderedMap::add(StringImpl* key, Element* element)
+void DocumentOrderedMap::add(AtomicStringImpl* key, Element* element)
{
ASSERT(key);
ASSERT(element);
@@ -100,7 +100,7 @@
m_duplicateCounts.add(key);
}
-void DocumentOrderedMap::remove(StringImpl* key, Element* element)
+void DocumentOrderedMap::remove(AtomicStringImpl* key, Element* element)
{
ASSERT(key);
ASSERT(element);
@@ -113,8 +113,8 @@
m_duplicateCounts.remove(key);
}
-template<bool keyMatches(StringImpl*, Element*)>
-inline Element* DocumentOrderedMap::get(StringImpl* key, const TreeScope* scope) const
+template<bool keyMatches(AtomicStringImpl*, Element*)>
+inline Element* DocumentOrderedMap::get(AtomicStringImpl* key, const TreeScope* scope) const
{
ASSERT(key);
ASSERT(scope);
@@ -140,22 +140,22 @@
return 0;
}
-Element* DocumentOrderedMap::getElementById(StringImpl* key, const TreeScope* scope) const
+Element* DocumentOrderedMap::getElementById(AtomicStringImpl* key, const TreeScope* scope) const
{
return get<keyMatchesId>(key, scope);
}
-Element* DocumentOrderedMap::getElementByMapName(StringImpl* key, const TreeScope* scope) const
+Element* DocumentOrderedMap::getElementByMapName(AtomicStringImpl* key, const TreeScope* scope) const
{
return get<keyMatchesMapName>(key, scope);
}
-Element* DocumentOrderedMap::getElementByLowercasedMapName(StringImpl* key, const TreeScope* scope) const
+Element* DocumentOrderedMap::getElementByLowercasedMapName(AtomicStringImpl* key, const TreeScope* scope) const
{
return get<keyMatchesLowercasedMapName>(key, scope);
}
-Element* DocumentOrderedMap::getElementByLabelForAttribute(StringImpl* key, const TreeScope* scope) const
+Element* DocumentOrderedMap::getElementByLabelForAttribute(AtomicStringImpl* key, const TreeScope* scope) const
{
return get<keyMatchesLabelForAttribute>(key, scope);
}
Property changes on: trunk/Source/core/dom/DocumentOrderedMap.cpp
___________________________________________________________________
Modified: svn:eol-style
- LF
+ native
« no previous file with comments | « trunk/Source/core/dom/DocumentOrderedMap.h ('k') | trunk/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698