Index: Source/core/dom/Node.h |
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h |
index 557103e8988fbcec3e3ac068df124686c2efdb2e..e8124911044aa7d0ab540e315d376cb95429ceb1 100644 |
--- a/Source/core/dom/Node.h |
+++ b/Source/core/dom/Node.h |
@@ -884,16 +884,7 @@ inline bool isTreeScopeRoot(const Node& node) |
} |
// Allow equality comparisons of Nodes by reference or pointer, interchangeably. |
-inline bool operator==(const Node& a, const Node& b) { return &a == &b; } |
-inline bool operator==(const Node& a, const Node* b) { return &a == b; } |
-inline bool operator==(const Node* a, const Node& b) { return a == &b; } |
-inline bool operator!=(const Node& a, const Node& b) { return !(a == b); } |
-inline bool operator!=(const Node& a, const Node* b) { return !(a == b); } |
-inline bool operator!=(const Node* a, const Node& b) { return !(a == b); } |
-inline bool operator==(const PassRefPtr<Node>& a, const Node& b) { return a.get() == &b; } |
-inline bool operator==(const Node& a, const PassRefPtr<Node>& b) { return &a == b.get(); } |
-inline bool operator!=(const PassRefPtr<Node>& a, const Node& b) { return !(a == b); } |
-inline bool operator!=(const Node& a, const PassRefPtr<Node>& b) { return !(a == b); } |
+DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Node) |
#define DEFINE_NODE_TYPE_CASTS(thisType, predicate) \ |