Index: Source/core/dom/Range.cpp |
diff --git a/Source/core/dom/Range.cpp b/Source/core/dom/Range.cpp |
index 344fc42d6970d9be55a7631bed5187c8f9164b97..a2f224296d5931fbf64c6a6f9dc6ac3f50c044ed 100644 |
--- a/Source/core/dom/Range.cpp |
+++ b/Source/core/dom/Range.cpp |
@@ -75,6 +75,11 @@ PassRefPtrWillBeRawPtr<Range> Range::create(Document& ownerDocument) |
return adoptRefWillBeNoop(new Range(ownerDocument)); |
} |
+PassRefPtrWillBeRawPtr<Range> Range::create(ExecutionContext* executionContext) |
+{ |
+ return create(*toDocument(executionContext)); |
+} |
+ |
inline Range::Range(Document& ownerDocument, Node* startContainer, int startOffset, Node* endContainer, int endOffset) |
: m_ownerDocument(&ownerDocument) |
, m_start(m_ownerDocument) |