| Index: Source/core/dom/Range.cpp
|
| diff --git a/Source/core/dom/Range.cpp b/Source/core/dom/Range.cpp
|
| index 0b87825708b4dbcb40361fdc0e8c4fc0b6beb687..efa129d85a14badec6a8da30f5838c7cf5a7aa53 100644
|
| --- a/Source/core/dom/Range.cpp
|
| +++ b/Source/core/dom/Range.cpp
|
| @@ -462,9 +462,7 @@ bool Range::boundaryPointsValid() const
|
|
|
| void Range::deleteContents(ExceptionState& exceptionState)
|
| {
|
| - checkDeleteExtract(exceptionState);
|
| - if (exceptionState.hadException())
|
| - return;
|
| + ASSERT(boundaryPointsValid());
|
|
|
| {
|
| EventQueueScope eventQueueScope;
|
| @@ -800,7 +798,7 @@ PassRefPtrWillBeRawPtr<Node> Range::processAncestorsAndTheirSiblings(ActionType
|
|
|
| PassRefPtrWillBeRawPtr<DocumentFragment> Range::extractContents(ExceptionState& exceptionState)
|
| {
|
| - checkDeleteExtract(exceptionState);
|
| + checkExtractPrecondition(exceptionState);
|
| if (exceptionState.hadException())
|
| return nullptr;
|
|
|
| @@ -1298,7 +1296,7 @@ void Range::setStartBefore(Node* refNode, ExceptionState& exceptionState)
|
| setStart(refNode->parentNode(), refNode->nodeIndex(), exceptionState);
|
| }
|
|
|
| -void Range::checkDeleteExtract(ExceptionState& exceptionState)
|
| +void Range::checkExtractPrecondition(ExceptionState& exceptionState)
|
| {
|
| ASSERT(boundaryPointsValid());
|
|
|
|
|