| Index: third_party/WebKit/Source/core/dom/NthIndexCache.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/NthIndexCache.cpp b/third_party/WebKit/Source/core/dom/NthIndexCache.cpp
|
| index a039019abecbb93d6e2a5b6d1fcaf045d0d1549d..2ec3fa300f4dea88f3af95800d31d0e14053ee47 100644
|
| --- a/third_party/WebKit/Source/core/dom/NthIndexCache.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/NthIndexCache.cpp
|
| @@ -27,11 +27,11 @@ NthIndexCache::~NthIndexCache()
|
| NthIndexData& NthIndexCache::ensureNthIndexDataFor(Node& parent)
|
| {
|
| if (!m_parentMap)
|
| - m_parentMap = adoptPtrWillBeNoop(new ParentMap());
|
| + m_parentMap = (new ParentMap());
|
|
|
| ParentMap::AddResult addResult = m_parentMap->add(&parent, nullptr);
|
| if (addResult.isNewEntry)
|
| - addResult.storedValue->value = adoptPtrWillBeNoop(new NthIndexData());
|
| + addResult.storedValue->value = (new NthIndexData());
|
|
|
| ASSERT(addResult.storedValue->value);
|
| return *addResult.storedValue->value;
|
| @@ -40,11 +40,11 @@ NthIndexData& NthIndexCache::ensureNthIndexDataFor(Node& parent)
|
| NthIndexCache::IndexByType& NthIndexCache::ensureTypeIndexMap(Node& parent)
|
| {
|
| if (!m_parentMapForType)
|
| - m_parentMapForType = adoptPtrWillBeNoop(new ParentMapForType());
|
| + m_parentMapForType = (new ParentMapForType());
|
|
|
| ParentMapForType::AddResult addResult = m_parentMapForType->add(&parent, nullptr);
|
| if (addResult.isNewEntry)
|
| - addResult.storedValue->value = adoptPtrWillBeNoop(new IndexByType());
|
| + addResult.storedValue->value = (new IndexByType());
|
|
|
| ASSERT(addResult.storedValue->value);
|
| return *addResult.storedValue->value;
|
| @@ -54,7 +54,7 @@ NthIndexData& NthIndexCache::nthIndexDataWithTagName(Element& element)
|
| {
|
| IndexByType::AddResult addResult = ensureTypeIndexMap(*element.parentNode()).add(element.tagName(), nullptr);
|
| if (addResult.isNewEntry)
|
| - addResult.storedValue->value = adoptPtrWillBeNoop(new NthIndexData());
|
| + addResult.storedValue->value = (new NthIndexData());
|
| return *addResult.storedValue->value;
|
| }
|
|
|
|
|