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

Unified Diff: Source/core/html/ClassList.h

Issue 258143002: Oilpan: move DOM string collection objects to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase + final adjustments 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
« no previous file with comments | « Source/core/frame/Location.cpp ('k') | Source/core/html/ClassList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/ClassList.h
diff --git a/Source/core/html/ClassList.h b/Source/core/html/ClassList.h
index 94536316998abd0f6e85f9dccae78370ee56ebc9..f795a4508ed93355623393dd50349b145d3c23cf 100644
--- a/Source/core/html/ClassList.h
+++ b/Source/core/html/ClassList.h
@@ -40,13 +40,15 @@ typedef int ExceptionCode;
class ClassList FINAL : public DOMTokenList {
public:
- static PassOwnPtr<ClassList> create(Element* element)
+ static PassOwnPtrWillBeRawPtr<ClassList> create(Element* element)
{
- return adoptPtr(new ClassList(element));
+ return adoptPtrWillBeNoop(new ClassList(element));
}
+#if !ENABLE(OILPAN)
virtual void ref() OVERRIDE;
virtual void deref() OVERRIDE;
+#endif
virtual unsigned length() const OVERRIDE;
virtual const AtomicString item(unsigned index) const OVERRIDE;
@@ -55,8 +57,10 @@ public:
void clearValueForQuirksMode() { m_classNamesForQuirksMode = nullptr; }
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
- ClassList(Element*);
+ explicit ClassList(Element*);
virtual bool containsInternal(const AtomicString&) const OVERRIDE;
@@ -65,7 +69,7 @@ private:
virtual const AtomicString& value() const OVERRIDE { return m_element->getAttribute(HTMLNames::classAttr); }
virtual void setValue(const AtomicString& value) OVERRIDE { m_element->setAttribute(HTMLNames::classAttr, value); }
- Element* m_element;
+ RawPtrWillBeMember<Element> m_element;
mutable OwnPtr<SpaceSplitString> m_classNamesForQuirksMode;
};
« no previous file with comments | « Source/core/frame/Location.cpp ('k') | Source/core/html/ClassList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698