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

Unified Diff: third_party/WebKit/Source/web/WebElement.cpp

Issue 1865813002: Remove RawPtr from Source/web/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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/web/WebElement.cpp
diff --git a/third_party/WebKit/Source/web/WebElement.cpp b/third_party/WebKit/Source/web/WebElement.cpp
index 9202795f4c8cf997b0e9d58b3fd2b125ee36187c..45b77fdbc8a348a9c71ffc822518fdcd147af6fe 100644
--- a/third_party/WebKit/Source/web/WebElement.cpp
+++ b/third_party/WebKit/Source/web/WebElement.cpp
@@ -158,20 +158,20 @@ WebImage WebElement::imageContents()
return WebImage(unwrap<Element>()->imageContents());
}
-WebElement::WebElement(const RawPtr<Element>& elem)
+WebElement::WebElement(Element* elem)
: WebNode(elem)
{
}
DEFINE_WEB_NODE_TYPE_CASTS(WebElement, isElementNode());
-WebElement& WebElement::operator=(const RawPtr<Element>& elem)
+WebElement& WebElement::operator=(Element* elem)
{
m_private = elem;
return *this;
}
-WebElement::operator RawPtr<Element>() const
+WebElement::operator Element*() const
{
return toElement(m_private.get());
}
« no previous file with comments | « third_party/WebKit/Source/web/WebDocument.cpp ('k') | third_party/WebKit/Source/web/WebElementCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698