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

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

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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/html/BaseMultipleFieldsDateAndTimeInputType.cpp ('k') | Source/core/html/ColorInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/html/BaseMultipleFieldsDateAndTimeInputType.cpp ('k') | Source/core/html/ColorInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698