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

Unified Diff: Source/WebKit/chromium/src/WebSelectElement.cpp

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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/WebKit/chromium/src/WebSearchableFormData.cpp ('k') | Source/WebKit/chromium/src/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebSelectElement.cpp
diff --git a/Source/WebKit/chromium/src/WebSelectElement.cpp b/Source/WebKit/chromium/src/WebSelectElement.cpp
index 3bb1ba9df9b1db943a333a7039f3e4fcb82aa88b..4647c6e517782e00219c27ef931070f9efa0ccce 100644
--- a/Source/WebKit/chromium/src/WebSelectElement.cpp
+++ b/Source/WebKit/chromium/src/WebSelectElement.cpp
@@ -34,6 +34,7 @@
#include "HTMLNames.h"
#include "core/html/HTMLOptionElement.h"
#include "core/html/HTMLSelectElement.h"
+#include "heap/Handle.h"
#include <public/WebString.h>
#include <wtf/PassRefPtr.h>
@@ -61,20 +62,20 @@ WebVector<WebElement> WebSelectElement::listItems() const
return items;
}
-WebSelectElement::WebSelectElement(const PassRefPtr<HTMLSelectElement>& elem)
+WebSelectElement::WebSelectElement(Handle<HTMLSelectElement> elem)
: WebFormControlElement(elem)
{
}
-WebSelectElement& WebSelectElement::operator=(const PassRefPtr<HTMLSelectElement>& elem)
+WebSelectElement& WebSelectElement::operator=(Handle<HTMLSelectElement> elem)
{
- m_private = elem;
+ m_private = elem.passRefPtr();
return *this;
}
-WebSelectElement::operator PassRefPtr<HTMLSelectElement>() const
+WebSelectElement::operator Handle<HTMLSelectElement>() const
{
- return static_cast<HTMLSelectElement*>(m_private.get());
+ return Handle<HTMLSelectElement>(static_cast<HTMLSelectElement*>(m_private.get()));
}
} // namespace WebKit
« no previous file with comments | « Source/WebKit/chromium/src/WebSearchableFormData.cpp ('k') | Source/WebKit/chromium/src/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698