| Index: Source/core/editing/DOMSelection.cpp
|
| diff --git a/Source/core/editing/DOMSelection.cpp b/Source/core/editing/DOMSelection.cpp
|
| index 0468dbc358f711e80df97db3fcc79745064fb840..8a5c09edec63b4455100156251ece7ca11188e3f 100644
|
| --- a/Source/core/editing/DOMSelection.cpp
|
| +++ b/Source/core/editing/DOMSelection.cpp
|
| @@ -456,12 +456,14 @@ void DOMSelection::deleteFromDocument()
|
|
|
| bool DOMSelection::containsNode(const Node* n, bool allowPartial) const
|
| {
|
| + ASSERT(n);
|
| +
|
| if (!m_frame)
|
| return false;
|
|
|
| FrameSelection& selection = m_frame->selection();
|
|
|
| - if (!n || m_frame->document() != n->document() || selection.isNone())
|
| + if (m_frame->document() != n->document() || selection.isNone())
|
| return false;
|
|
|
| unsigned nodeIndex = n->nodeIndex();
|
|
|