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

Unified Diff: Source/core/dom/ChildNode.h

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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: Source/core/dom/ChildNode.h
diff --git a/Source/core/dom/ChildNode.h b/Source/core/dom/ChildNode.h
index 79aa891dad02f816d6b83fe4ef9cfabeab08b00c..19bcc5a602ffbd5867bfee395dba66e6c280bed7 100644
--- a/Source/core/dom/ChildNode.h
+++ b/Source/core/dom/ChildNode.h
@@ -12,22 +12,19 @@ namespace WebCore {
class ChildNode {
public:
- static Element* previousElementSibling(Node* node)
+ static Element* previousElementSibling(Node& node)
{
- ASSERT(node);
- return ElementTraversal::previousSibling(*node);
+ return ElementTraversal::previousSibling(node);
}
- static Element* nextElementSibling(Node* node)
+ static Element* nextElementSibling(Node& node)
{
- ASSERT(node);
- return ElementTraversal::nextSibling(*node);
+ return ElementTraversal::nextSibling(node);
}
- static void remove(Node* node, ExceptionState& exceptionState)
+ static void remove(Node& node, ExceptionState& exceptionState)
{
- ASSERT(node);
- return node->remove(exceptionState);
+ return node.remove(exceptionState);
}
};

Powered by Google App Engine
This is Rietveld 408576698