| Index: Source/core/editing/VisibleSelection.cpp
|
| diff --git a/Source/core/editing/VisibleSelection.cpp b/Source/core/editing/VisibleSelection.cpp
|
| index 411437768c0c3bf2662cf67cf1c0bde506e3a3eb..13543de8bc310dcb3a9b7cc4b3c069aae5686b52 100644
|
| --- a/Source/core/editing/VisibleSelection.cpp
|
| +++ b/Source/core/editing/VisibleSelection.cpp
|
| @@ -192,6 +192,16 @@ PassRefPtrWillBeRawPtr<Range> VisibleSelection::firstRange() const
|
| return Range::create(*start.document(), start, end);
|
| }
|
|
|
| +bool VisibleSelection::intersectsNode(Node* node) const
|
| +{
|
| + if (isNone())
|
| + return false;
|
| + Position start = m_start.parentAnchoredEquivalent();
|
| + Position end = m_end.parentAnchoredEquivalent();
|
| + TrackExceptionState exceptionState;
|
| + return Range::intersectsNode(node, start, end, exceptionState) && !exceptionState.hadException();
|
| +}
|
| +
|
| PassRefPtrWillBeRawPtr<Range> VisibleSelection::toNormalizedRange() const
|
| {
|
| if (isNone())
|
|
|