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

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

Issue 1715653002: Fix non-Oilpan ref pointer usage over DOMTokenLists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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..c37b6bf40db80f912a59bbc3b48debc74a4e94db 100644
--- a/third_party/WebKit/Source/core/html/ClassList.cpp
+++ b/third_party/WebKit/Source/core/html/ClassList.cpp
@@ -32,6 +32,20 @@ using namespace HTMLNames;
ClassList::ClassList(Element* element) : DOMTokenList(nullptr), m_element(element) { }
+#if !ENABLE(OILPAN)
+void ClassList::ref()
+{
+ m_element->ref();
+ DOMTokenList::ref();
+}
+
+void ClassList::deref()
+{
+ m_element->deref();
+ DOMTokenList::deref();
+}
+#endif
+
unsigned ClassList::length() const
{
return m_element->hasClass() ? classNames().size() : 0;
« no previous file with comments | « third_party/WebKit/Source/core/html/ClassList.h ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698