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

Unified Diff: third_party/WebKit/Source/core/dom/NthIndexCache.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/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;
}

Powered by Google App Engine
This is Rietveld 408576698