| Index: third_party/WebKit/Source/core/editing/DOMSelection.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/DOMSelection.cpp b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
|
| index 5578cccf233a3cf544baec14ce8238e1264d8b72..940d173731789675676d70cf98978fcaad5f7e6d 100644
|
| --- a/third_party/WebKit/Source/core/editing/DOMSelection.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/DOMSelection.cpp
|
| @@ -204,13 +204,10 @@ int DOMSelection::rangeCount() const
|
|
|
| void DOMSelection::collapse(Node* node, int offset, ExceptionState& exceptionState)
|
| {
|
| - if (!m_frame)
|
| - return;
|
| + ASSERT(node);
|
|
|
| - if (!node) {
|
| - m_frame->selection().clear();
|
| + if (!m_frame)
|
| return;
|
| - }
|
|
|
| if (offset < 0) {
|
| exceptionState.throwDOMException(IndexSizeError, String::number(offset) + " is not a valid offset.");
|
|
|