Chromium Code Reviews| Index: Source/core/html/ClassList.h |
| diff --git a/Source/core/html/ClassList.h b/Source/core/html/ClassList.h |
| index 94536316998abd0f6e85f9dccae78370ee56ebc9..55a3003d44b7a47857ea741b64a996ce65071391 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,6 +57,8 @@ public: |
| void clearValueForQuirksMode() { m_classNamesForQuirksMode = nullptr; } |
| + virtual void trace(Visitor*) OVERRIDE; |
| + |
| private: |
| ClassList(Element*); |
|
haraken
2014/05/08 11:59:59
Add explicit.
sof
2014/05/08 14:05:22
Done.
|
| @@ -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; |
| }; |