Index: Source/core/editing/VisibleSelection.cpp |
diff --git a/Source/core/editing/VisibleSelection.cpp b/Source/core/editing/VisibleSelection.cpp |
index 2ef64380a1ca35dff680130a93f3d22e570d48cf..3bda17171bc2ae98ba7ec2127e7aa7b5ebc1e3a8 100644 |
--- a/Source/core/editing/VisibleSelection.cpp |
+++ b/Source/core/editing/VisibleSelection.cpp |
@@ -242,10 +242,7 @@ bool VisibleSelection::intersectsNode(Node* node) const |
PassRefPtrWillBeRawPtr<Range> VisibleSelection::toNormalizedRange() const |
{ |
- const EphemeralRange range = toNormalizedEphemeralRange(); |
- if (range.isNull()) |
- return nullptr; |
- return Range::create(range.document(), range.startPosition(), range.endPosition()); |
+ return createRange(toNormalizedEphemeralRange()); |
} |
template <typename Strategy> |