Index: Source/core/dom/Node.cpp |
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp |
index 7209be45a0a599d18f9938c3d93e46944d1957d5..4e48695d807058e50229593f7b573406386109bd 100644 |
--- a/Source/core/dom/Node.cpp |
+++ b/Source/core/dom/Node.cpp |
@@ -1431,10 +1431,6 @@ bool Node::offsetInCharacters() const |
unsigned short Node::compareDocumentPosition(const Node* otherNode, ShadowTreesTreatment treatment) const |
{ |
- // It is not clear what should be done if |otherNode| is nullptr. |
- if (!otherNode) |
- return DOCUMENT_POSITION_DISCONNECTED; |
- |
if (otherNode == this) |
return DOCUMENT_POSITION_EQUIVALENT; |