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

Unified Diff: third_party/WebKit/Source/core/html/HTMLAllCollection.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
Index: third_party/WebKit/Source/core/html/HTMLAllCollection.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLAllCollection.cpp b/third_party/WebKit/Source/core/html/HTMLAllCollection.cpp
index 834bfb950dc80d00f00b607e8aca334acdb634cb..b4d3b79fa1db0e8ab997f30dce6151a71ad3c782 100644
--- a/third_party/WebKit/Source/core/html/HTMLAllCollection.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLAllCollection.cpp
@@ -31,10 +31,10 @@
namespace blink {
-PassRefPtrWillBeRawPtr<HTMLAllCollection> HTMLAllCollection::create(ContainerNode& node, CollectionType type)
+RawPtr<HTMLAllCollection> HTMLAllCollection::create(ContainerNode& node, CollectionType type)
{
ASSERT_UNUSED(type, type == DocAll);
- return adoptRefWillBeNoop(new HTMLAllCollection(node));
+ return new HTMLAllCollection(node);
}
HTMLAllCollection::HTMLAllCollection(ContainerNode& node)
@@ -51,13 +51,13 @@ Element* HTMLAllCollection::namedItemWithIndex(const AtomicString& name, unsigne
updateIdNameCache();
const NamedItemCache& cache = namedItemCache();
- if (WillBeHeapVector<RawPtrWillBeMember<Element>>* elements = cache.getElementsById(name)) {
+ if (HeapVector<Member<Element>>* elements = cache.getElementsById(name)) {
if (index < elements->size())
return elements->at(index);
index -= elements->size();
}
- if (WillBeHeapVector<RawPtrWillBeMember<Element>>* elements = cache.getElementsByName(name)) {
+ if (HeapVector<Member<Element>>* elements = cache.getElementsByName(name)) {
if (index < elements->size())
return elements->at(index);
}
@@ -67,7 +67,7 @@ Element* HTMLAllCollection::namedItemWithIndex(const AtomicString& name, unsigne
void HTMLAllCollection::namedGetter(const AtomicString& name, NodeListOrElement& returnValue)
{
- WillBeHeapVector<RefPtrWillBeMember<Element>> namedItems;
+ HeapVector<Member<Element>> namedItems;
this->namedItems(name, namedItems);
if (!namedItems.size())
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLAllCollection.h ('k') | third_party/WebKit/Source/core/html/HTMLAllCollection.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698