| Index: Source/core/dom/Range.cpp
|
| diff --git a/Source/core/dom/Range.cpp b/Source/core/dom/Range.cpp
|
| index 35ca972e1814edabcb62640c2314fc9f9ec6cb96..ea1c1d51f765d15053ad611a28a2eca6dda1988e 100644
|
| --- a/Source/core/dom/Range.cpp
|
| +++ b/Source/core/dom/Range.cpp
|
| @@ -245,11 +245,6 @@ short Range::comparePoint(Node* refNode, int offset, ExceptionState& exceptionSt
|
| // This method returns -1, 0 or 1 depending on if the point described by the
|
| // refNode node and an offset within the node is before, same as, or after the range respectively.
|
|
|
| - if (!refNode) {
|
| - exceptionState.throwDOMException(HierarchyRequestError, "The node provided was null.");
|
| - return 0;
|
| - }
|
| -
|
| if (!refNode->inActiveDocument()) {
|
| exceptionState.throwDOMException(WrongDocumentError, "The node provided is not in an active document.");
|
| return 0;
|
|
|