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

Unified Diff: third_party/WebKit/Source/core/html/RelList.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
« no previous file with comments | « third_party/WebKit/Source/core/html/RelList.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/RelList.cpp
diff --git a/third_party/WebKit/Source/core/html/RelList.cpp b/third_party/WebKit/Source/core/html/RelList.cpp
index 841044640fe7e27aa626da547cf5f3a958228704..18a2ecdaa776a3c636d9ee66aa3fcd28dbe8145e 100644
--- a/third_party/WebKit/Source/core/html/RelList.cpp
+++ b/third_party/WebKit/Source/core/html/RelList.cpp
@@ -14,6 +14,20 @@ using namespace HTMLNames;
RelList::RelList(Element* element) : DOMTokenList(nullptr), m_element(element) { }
+#if !ENABLE(OILPAN)
+void RelList::ref()
+{
+ m_element->ref();
+ DOMTokenList::ref();
+}
+
+void RelList::deref()
+{
+ m_element->deref();
+ DOMTokenList::deref();
+}
+#endif
+
unsigned RelList::length() const
{
return !m_element->fastGetAttribute(relAttr).isEmpty() ? m_relValues.size() : 0;
« no previous file with comments | « third_party/WebKit/Source/core/html/RelList.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698