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

Unified Diff: Source/core/editing/PlainTextRange.cpp

Issue 430843002: Use tighter typing in editing: PlainTextRange / ReplaceNodeWithSpanCommand (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 5 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
« no previous file with comments | « Source/core/editing/PlainTextRange.h ('k') | Source/core/editing/ReplaceNodeWithSpanCommand.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/PlainTextRange.cpp
diff --git a/Source/core/editing/PlainTextRange.cpp b/Source/core/editing/PlainTextRange.cpp
index a09ccc634ce4174d49de9ecc9ad45bf7e138126d..986799b8d47d5d01c8aacb92d14991c471168388 100644
--- a/Source/core/editing/PlainTextRange.cpp
+++ b/Source/core/editing/PlainTextRange.cpp
@@ -159,7 +159,7 @@ PassRefPtrWillBeRawPtr<Range> PlainTextRange::createRangeFor(const ContainerNode
return resultRange.release();
}
-PlainTextRange PlainTextRange::create(const Node& scope, const Range& range)
+PlainTextRange PlainTextRange::create(const ContainerNode& scope, const Range& range)
{
if (!range.startContainer())
return PlainTextRange();
@@ -174,7 +174,7 @@ PlainTextRange PlainTextRange::create(const Node& scope, const Range& range)
if (range.endContainer() != scope && !range.endContainer()->isDescendantOf(&scope))
return PlainTextRange();
- RefPtrWillBeRawPtr<Range> testRange = Range::create(scope.document(), const_cast<Node*>(&scope), 0, range.startContainer(), range.startOffset());
+ RefPtrWillBeRawPtr<Range> testRange = Range::create(scope.document(), const_cast<ContainerNode*>(&scope), 0, range.startContainer(), range.startOffset());
ASSERT(testRange->startContainer() == &scope);
size_t start = TextIterator::rangeLength(testRange.get());
« no previous file with comments | « Source/core/editing/PlainTextRange.h ('k') | Source/core/editing/ReplaceNodeWithSpanCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698