Index: Source/core/html/ClassList.cpp |
diff --git a/Source/core/html/ClassList.cpp b/Source/core/html/ClassList.cpp |
index c12b38a586e39a14892a1d33bba1037e512be997..4f435e3f49c6bacb4b32614b3c64eae1e421f235 100644 |
--- a/Source/core/html/ClassList.cpp |
+++ b/Source/core/html/ClassList.cpp |
@@ -63,7 +63,7 @@ bool ClassList::containsInternal(const AtomicString& token) const |
const SpaceSplitString& ClassList::classNames() const |
{ |
ASSERT(m_element->hasClass()); |
- if (m_element->document()->inQuirksMode()) { |
+ if (m_element->document().inQuirksMode()) { |
if (!m_classNamesForQuirksMode) |
m_classNamesForQuirksMode = adoptPtr(new SpaceSplitString(value(), false)); |
return *m_classNamesForQuirksMode.get(); |