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

Unified Diff: Source/core/editing/VisibleSelection.h

Issue 565613002: Remove usages of temporary Range objects that end up registered on the (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/TextIterator.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/VisibleSelection.h
diff --git a/Source/core/editing/VisibleSelection.h b/Source/core/editing/VisibleSelection.h
index d1990dae6ac884f666aba34367f9579f17bffb67..f59b4a97a541227468997cf35caf8dc8ffb6d443 100644
--- a/Source/core/editing/VisibleSelection.h
+++ b/Source/core/editing/VisibleSelection.h
@@ -98,10 +98,12 @@ public:
bool intersectsNode(Node*) const;
- // FIXME: Most callers probably don't want this function, but are using it
- // for historical reasons. toNormalizedRange contracts the range around
- // text, and moves the caret upstream before returning the range.
+ // FIXME: Most callers probably don't want these functions, but
+ // are using them for historical reasons. toNormalizedRange and
+ // toNormalizedPositions contracts the range around text, and
+ // moves the caret upstream before returning the range/positions.
PassRefPtrWillBeRawPtr<Range> toNormalizedRange() const;
+ bool toNormalizedPositions(Position& start, Position& end) const;
Element* rootEditableElement() const;
bool isContentEditable() const;
« no previous file with comments | « Source/core/editing/TextIterator.cpp ('k') | Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698