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

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, 9 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 | « third_party/WebKit/Source/core/dom/NthIndexCache.h ('k') | third_party/WebKit/Source/core/dom/ParentNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 de8c37d0d3c90b9aee8cb24fa768942f4e76328b..76c2cbd89ce8b78579998101a6a22f8383707a42 100644
--- a/third_party/WebKit/Source/core/dom/NthIndexCache.cpp
+++ b/third_party/WebKit/Source/core/dom/NthIndexCache.cpp
@@ -156,21 +156,21 @@ void NthIndexCache::cacheNthIndexDataForParent(Element& element)
{
ASSERT(element.parentNode());
if (!m_parentMap)
- m_parentMap = adoptPtrWillBeNoop(new ParentMap());
+ m_parentMap = new ParentMap();
ParentMap::AddResult addResult = m_parentMap->add(element.parentNode(), nullptr);
ASSERT(addResult.isNewEntry);
- addResult.storedValue->value = adoptPtrWillBeNoop(new NthIndexData(*element.parentNode()));
+ addResult.storedValue->value = new NthIndexData(*element.parentNode());
}
NthIndexCache::IndexByType& NthIndexCache::ensureTypeIndexMap(ContainerNode& 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;
@@ -181,7 +181,7 @@ void NthIndexCache::cacheNthOfTypeIndexDataForParent(Element& element)
ASSERT(element.parentNode());
IndexByType::AddResult addResult = ensureTypeIndexMap(*element.parentNode()).add(element.tagName(), nullptr);
ASSERT(addResult.isNewEntry);
- addResult.storedValue->value = adoptPtrWillBeNoop(new NthIndexData(*element.parentNode(), element.tagQName()));
+ addResult.storedValue->value = new NthIndexData(*element.parentNode(), element.tagQName());
}
unsigned NthIndexData::nthIndex(Element& element) const
« no previous file with comments | « third_party/WebKit/Source/core/dom/NthIndexCache.h ('k') | third_party/WebKit/Source/core/dom/ParentNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698