| Index: third_party/WebKit/Source/core/editing/PlainTextRange.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/PlainTextRange.cpp b/third_party/WebKit/Source/core/editing/PlainTextRange.cpp
|
| index 849d7e4d817c015c5f46f1b219d66d78b977bc1d..90eefdb4938d41017e4de2a8a88620539bcd197d 100644
|
| --- a/third_party/WebKit/Source/core/editing/PlainTextRange.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/PlainTextRange.cpp
|
| @@ -184,10 +184,10 @@ PlainTextRange PlainTextRange::Create(const ContainerNode& scope,
|
| DocumentLifecycle::DisallowTransitionScope disallow_transition(
|
| scope.GetDocument().Lifecycle());
|
|
|
| - size_t start = TextIterator::RangeLength(
|
| - Position(&const_cast<ContainerNode&>(scope), 0), range.StartPosition());
|
| - size_t end = TextIterator::RangeLength(
|
| - Position(&const_cast<ContainerNode&>(scope), 0), range.EndPosition());
|
| + size_t start =
|
| + TextIterator::RangeLength(Position(scope, 0), range.StartPosition());
|
| + size_t end =
|
| + TextIterator::RangeLength(Position(scope, 0), range.EndPosition());
|
|
|
| return PlainTextRange(start, end);
|
| }
|
|
|