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); |
} |
}; |