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

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

Issue 420603002: Use tighter typing in editing/ (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/SpellChecker.cpp ('k') | Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/VisiblePosition.cpp
diff --git a/Source/core/editing/VisiblePosition.cpp b/Source/core/editing/VisiblePosition.cpp
index a48f8e175ad2e6f2c0e9c294b1511020896346ef..a5ec11bf2d5d76146cbab5f419b8de9404ac786b 100644
--- a/Source/core/editing/VisiblePosition.cpp
+++ b/Source/core/editing/VisiblePosition.cpp
@@ -457,7 +457,7 @@ VisiblePosition VisiblePosition::honorEditingBoundaryAtOrBefore(const VisiblePos
if (pos.isNull())
return pos;
- Node* highestRoot = highestEditableRoot(deepEquivalent());
+ ContainerNode* highestRoot = highestEditableRoot(deepEquivalent());
// Return empty position if pos is not somewhere inside the editable region containing this position
if (highestRoot && !pos.deepEquivalent().deprecatedNode()->isDescendantOf(highestRoot))
@@ -483,7 +483,7 @@ VisiblePosition VisiblePosition::honorEditingBoundaryAtOrAfter(const VisiblePosi
if (pos.isNull())
return pos;
- Node* highestRoot = highestEditableRoot(deepEquivalent());
+ ContainerNode* highestRoot = highestEditableRoot(deepEquivalent());
// Return empty position if pos is not somewhere inside the editable region containing this position
if (highestRoot && !pos.deepEquivalent().deprecatedNode()->isDescendantOf(highestRoot))
@@ -509,8 +509,8 @@ VisiblePosition VisiblePosition::skipToStartOfEditingBoundary(const VisiblePosit
if (pos.isNull())
return pos;
- Node* highestRoot = highestEditableRoot(deepEquivalent());
- Node* highestRootOfPos = highestEditableRoot(pos.deepEquivalent());
+ ContainerNode* highestRoot = highestEditableRoot(deepEquivalent());
+ ContainerNode* highestRootOfPos = highestEditableRoot(pos.deepEquivalent());
// Return pos itself if the two are from the very same editable region, or both are non-editable.
if (highestRootOfPos == highestRoot)
@@ -529,8 +529,8 @@ VisiblePosition VisiblePosition::skipToEndOfEditingBoundary(const VisiblePositio
if (pos.isNull())
return pos;
- Node* highestRoot = highestEditableRoot(deepEquivalent());
- Node* highestRootOfPos = highestEditableRoot(pos.deepEquivalent());
+ ContainerNode* highestRoot = highestEditableRoot(deepEquivalent());
+ ContainerNode* highestRootOfPos = highestEditableRoot(pos.deepEquivalent());
// Return pos itself if the two are from the very same editable region, or both are non-editable.
if (highestRootOfPos == highestRoot)
« no previous file with comments | « Source/core/editing/SpellChecker.cpp ('k') | Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698