| Index: third_party/WebKit/Source/core/html/ClassList.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/ClassList.cpp b/third_party/WebKit/Source/core/html/ClassList.cpp
|
| index 1637c65a3b5f02a7075cd140e4dd76af447bf117..8637d0a56b50692e1709441ca0071c2943728aa0 100644
|
| --- a/third_party/WebKit/Source/core/html/ClassList.cpp
|
| +++ b/third_party/WebKit/Source/core/html/ClassList.cpp
|
| @@ -25,6 +25,7 @@
|
| #include "core/html/ClassList.h"
|
|
|
| #include "core/dom/Document.h"
|
| +#include "wtf/PtrUtil.h"
|
|
|
| namespace blink {
|
|
|
| @@ -54,7 +55,7 @@ const SpaceSplitString& ClassList::classNames() const
|
| ASSERT(m_element->hasClass());
|
| if (m_element->document().inQuirksMode()) {
|
| if (!m_classNamesForQuirksMode)
|
| - m_classNamesForQuirksMode = adoptPtr(new SpaceSplitString(value(), SpaceSplitString::ShouldNotFoldCase));
|
| + m_classNamesForQuirksMode = wrapUnique(new SpaceSplitString(value(), SpaceSplitString::ShouldNotFoldCase));
|
| return *m_classNamesForQuirksMode.get();
|
| }
|
| return m_element->classNames();
|
|
|