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

Unified Diff: third_party/WebKit/Source/core/dom/StaticRange.cpp

Issue 2709883004: [InputEvent] Change |InputEventInit::sequence<Range> ranges| to |sequence<StaticRange> targetRanges| (Closed)
Patch Set: yosin's review: Use early return Created 3 years, 10 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: third_party/WebKit/Source/core/dom/StaticRange.cpp
diff --git a/third_party/WebKit/Source/core/dom/StaticRange.cpp b/third_party/WebKit/Source/core/dom/StaticRange.cpp
index 3bb08a37fb6c84b072a2f958b4fec653a8ea3544..c763d1803982211ad652930c444badae4de4bb23 100644
--- a/third_party/WebKit/Source/core/dom/StaticRange.cpp
+++ b/third_party/WebKit/Source/core/dom/StaticRange.cpp
@@ -15,9 +15,9 @@ namespace blink {
StaticRange::StaticRange(Document& document)
: m_ownerDocument(document),
- m_startContainer(nullptr),
+ m_startContainer(document),
m_startOffset(0),
- m_endContainer(nullptr),
+ m_endContainer(document),
m_endOffset(0) {}
StaticRange::StaticRange(Document& document,
« no previous file with comments | « third_party/WebKit/Source/core/dom/StaticRange.h ('k') | third_party/WebKit/Source/core/editing/EditingUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698