| Index: Source/core/dom/DocumentOrderedMap.cpp
|
| diff --git a/Source/core/dom/DocumentOrderedMap.cpp b/Source/core/dom/DocumentOrderedMap.cpp
|
| index 5c41c8dd812a31318f0d87d356cf4b866564678b..55d355548ae0befb1df25f703168a34c9b242a4d 100644
|
| --- a/Source/core/dom/DocumentOrderedMap.cpp
|
| +++ b/Source/core/dom/DocumentOrderedMap.cpp
|
| @@ -44,22 +44,22 @@ namespace WebCore {
|
|
|
| using namespace HTMLNames;
|
|
|
| -inline bool keyMatchesId(AtomicStringImpl* key, Element* element)
|
| +inline bool keyMatchesId(StringImpl* key, Element* element)
|
| {
|
| return element->getIdAttribute().impl() == key;
|
| }
|
|
|
| -inline bool keyMatchesMapName(AtomicStringImpl* key, Element* element)
|
| +inline bool keyMatchesMapName(StringImpl* key, Element* element)
|
| {
|
| return element->hasTagName(mapTag) && static_cast<HTMLMapElement*>(element)->getName().impl() == key;
|
| }
|
|
|
| -inline bool keyMatchesLowercasedMapName(AtomicStringImpl* key, Element* element)
|
| +inline bool keyMatchesLowercasedMapName(StringImpl* key, Element* element)
|
| {
|
| return element->hasTagName(mapTag) && static_cast<HTMLMapElement*>(element)->getName().lower().impl() == key;
|
| }
|
|
|
| -inline bool keyMatchesLabelForAttribute(AtomicStringImpl* key, Element* element)
|
| +inline bool keyMatchesLabelForAttribute(StringImpl* key, Element* element)
|
| {
|
| return element->hasTagName(labelTag) && element->getAttribute(forAttr).impl() == key;
|
| }
|
| @@ -70,7 +70,7 @@ void DocumentOrderedMap::clear()
|
| m_duplicateCounts.clear();
|
| }
|
|
|
| -void DocumentOrderedMap::add(AtomicStringImpl* key, Element* element)
|
| +void DocumentOrderedMap::add(StringImpl* key, Element* element)
|
| {
|
| ASSERT(key);
|
| ASSERT(element);
|
| @@ -100,7 +100,7 @@ void DocumentOrderedMap::add(AtomicStringImpl* key, Element* element)
|
| m_duplicateCounts.add(key);
|
| }
|
|
|
| -void DocumentOrderedMap::remove(AtomicStringImpl* key, Element* element)
|
| +void DocumentOrderedMap::remove(StringImpl* key, Element* element)
|
| {
|
| ASSERT(key);
|
| ASSERT(element);
|
| @@ -113,8 +113,8 @@ void DocumentOrderedMap::remove(AtomicStringImpl* key, Element* element)
|
| m_duplicateCounts.remove(key);
|
| }
|
|
|
| -template<bool keyMatches(AtomicStringImpl*, Element*)>
|
| -inline Element* DocumentOrderedMap::get(AtomicStringImpl* key, const TreeScope* scope) const
|
| +template<bool keyMatches(StringImpl*, Element*)>
|
| +inline Element* DocumentOrderedMap::get(StringImpl* key, const TreeScope* scope) const
|
| {
|
| ASSERT(key);
|
| ASSERT(scope);
|
| @@ -140,22 +140,22 @@ inline Element* DocumentOrderedMap::get(AtomicStringImpl* key, const TreeScope*
|
| return 0;
|
| }
|
|
|
| -Element* DocumentOrderedMap::getElementById(AtomicStringImpl* key, const TreeScope* scope) const
|
| +Element* DocumentOrderedMap::getElementById(StringImpl* key, const TreeScope* scope) const
|
| {
|
| return get<keyMatchesId>(key, scope);
|
| }
|
|
|
| -Element* DocumentOrderedMap::getElementByMapName(AtomicStringImpl* key, const TreeScope* scope) const
|
| +Element* DocumentOrderedMap::getElementByMapName(StringImpl* key, const TreeScope* scope) const
|
| {
|
| return get<keyMatchesMapName>(key, scope);
|
| }
|
|
|
| -Element* DocumentOrderedMap::getElementByLowercasedMapName(AtomicStringImpl* key, const TreeScope* scope) const
|
| +Element* DocumentOrderedMap::getElementByLowercasedMapName(StringImpl* key, const TreeScope* scope) const
|
| {
|
| return get<keyMatchesLowercasedMapName>(key, scope);
|
| }
|
|
|
| -Element* DocumentOrderedMap::getElementByLabelForAttribute(AtomicStringImpl* key, const TreeScope* scope) const
|
| +Element* DocumentOrderedMap::getElementByLabelForAttribute(StringImpl* key, const TreeScope* scope) const
|
| {
|
| return get<keyMatchesLabelForAttribute>(key, scope);
|
| }
|
|
|