Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index ff5772d283d1d2a15a67f07728c4b0d5989c71ac..dc3066d7e1756d94713b403295dd8cfd205745fd 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -2767,20 +2767,20 @@ bool Element::matches(const String& selectors, ExceptionState& exceptionState) |
return selectorQuery->matches(*this); |
} |
-DOMTokenList* Element::classList() |
+DOMTokenList& Element::classList() |
{ |
ElementRareData& rareData = ensureElementRareData(); |
if (!rareData.classList()) |
rareData.setClassList(ClassList::create(this)); |
- return rareData.classList(); |
+ return *rareData.classList(); |
} |
-DOMStringMap* Element::dataset() |
+DOMStringMap& Element::dataset() |
{ |
ElementRareData& rareData = ensureElementRareData(); |
if (!rareData.dataset()) |
rareData.setDataset(DatasetDOMStringMap::create(this)); |
- return rareData.dataset(); |
+ return *rareData.dataset(); |
} |
KURL Element::getURLAttribute(const QualifiedName& name) const |