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

Unified Diff: Source/core/dom/ContainerNode.h

Issue 280123002: Oilpan: move LiveNodeList collections to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Pre-emptively GC a long runnning test Created 6 years, 7 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: Source/core/dom/ContainerNode.h
diff --git a/Source/core/dom/ContainerNode.h b/Source/core/dom/ContainerNode.h
index 99543d230c3308ecd517eb6de1b2df2dfaff6469..5f1cad860574e43f750307b39fb25e0ac88ec9f4 100644
--- a/Source/core/dom/ContainerNode.h
+++ b/Source/core/dom/ContainerNode.h
@@ -103,13 +103,13 @@ public:
bool hasOneTextChild() const { return hasOneChild() && m_firstChild->isTextNode(); }
bool hasChildCount(unsigned) const;
- PassRefPtr<HTMLCollection> children();
+ PassRefPtrWillBeRawPtr<HTMLCollection> children();
unsigned countChildren() const;
Node* traverseToChildAt(unsigned index) const;
PassRefPtr<Element> querySelector(const AtomicString& selectors, ExceptionState&);
- PassRefPtr<NodeList> querySelectorAll(const AtomicString& selectors, ExceptionState&);
+ PassRefPtrWillBeRawPtr<NodeList> querySelectorAll(const AtomicString& selectors, ExceptionState&);
void insertBefore(PassRefPtr<Node> newChild, Node* refChild, ExceptionState& = ASSERT_NO_EXCEPTION);
void replaceChild(PassRefPtr<Node> newChild, Node* oldChild, ExceptionState& = ASSERT_NO_EXCEPTION);
@@ -117,11 +117,11 @@ public:
void appendChild(PassRefPtr<Node> newChild, ExceptionState& = ASSERT_NO_EXCEPTION);
Element* getElementById(const AtomicString& id) const;
- PassRefPtr<HTMLCollection> getElementsByTagName(const AtomicString&);
- PassRefPtr<HTMLCollection> getElementsByTagNameNS(const AtomicString& namespaceURI, const AtomicString& localName);
- PassRefPtr<NodeList> getElementsByName(const AtomicString& elementName);
- PassRefPtr<HTMLCollection> getElementsByClassName(const AtomicString& classNames);
- PassRefPtr<RadioNodeList> radioNodeList(const AtomicString&, bool onlyMatchImgElements = false);
+ PassRefPtrWillBeRawPtr<HTMLCollection> getElementsByTagName(const AtomicString&);
+ PassRefPtrWillBeRawPtr<HTMLCollection> getElementsByTagNameNS(const AtomicString& namespaceURI, const AtomicString& localName);
+ PassRefPtrWillBeRawPtr<NodeList> getElementsByName(const AtomicString& elementName);
+ PassRefPtrWillBeRawPtr<HTMLCollection> getElementsByClassName(const AtomicString& classNames);
+ PassRefPtrWillBeRawPtr<RadioNodeList> radioNodeList(const AtomicString&, bool onlyMatchImgElements = false);
// These methods are only used during parsing.
// They don't send DOM mutation events or handle reparenting.

Powered by Google App Engine
This is Rietveld 408576698