Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(735)

Unified Diff: Source/core/dom/Range.cpp

Issue 340763003: Change [ConstructorCallWith={Document => ExecutionContext}] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698