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

Unified Diff: third_party/WebKit/Source/web/WebNode.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/WebNode.cpp
diff --git a/third_party/WebKit/Source/web/WebNode.cpp b/third_party/WebKit/Source/web/WebNode.cpp
index 25e5e5c944eb65b9ec4f710ad0c9102763c3c0c3..735ba21fc2abee78623030f2f5e6625279fc289c 100644
--- a/third_party/WebKit/Source/web/WebNode.cpp
+++ b/third_party/WebKit/Source/web/WebNode.cpp
@@ -239,7 +239,7 @@ WebElement WebNode::querySelector(const WebString& selector, WebExceptionCode& e
if (!m_private->isContainerNode())
return WebElement();
TrackExceptionState exceptionState;
- WebElement element = toContainerNode(m_private.get())->querySelector(selector, exceptionState);
+ WebElement element = toContainerNode(m_private.get())->querySelector(selector, exceptionState).get();
ec = exceptionState.code();
return element;
}
@@ -305,18 +305,18 @@ WebAXObject WebNode::accessibilityObject()
return cache ? WebAXObject(cache->get(node)) : WebAXObject();
}
-WebNode::WebNode(const RawPtr<Node>& node)
+WebNode::WebNode(Node* node)
: m_private(node)
{
}
-WebNode& WebNode::operator=(const RawPtr<Node>& node)
+WebNode& WebNode::operator=(Node* node)
{
m_private = node;
return *this;
}
-WebNode::operator RawPtr<Node>() const
+WebNode::operator Node*() const
{
return m_private.get();
}
« no previous file with comments | « third_party/WebKit/Source/web/WebMetaElement.cpp ('k') | third_party/WebKit/Source/web/WebOptionElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698