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

Unified Diff: third_party/WebKit/Source/core/editing/DOMSelection.h

Issue 2704443002: Selection API: extend() should operate DOM Ranges. (Closed)
Patch Set: rebase 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/editing/DOMSelection.h
diff --git a/third_party/WebKit/Source/core/editing/DOMSelection.h b/third_party/WebKit/Source/core/editing/DOMSelection.h
index b983c877129bb251bec1cfbc3770702d1b95b149..25b32570acf23d7ad655ed92cf2789f41c4fc53a 100644
--- a/third_party/WebKit/Source/core/editing/DOMSelection.h
+++ b/third_party/WebKit/Source/core/editing/DOMSelection.h
@@ -111,6 +111,7 @@ class CORE_EXPORT DOMSelection final : public GarbageCollected<DOMSelection>,
// Convenience methods for accessors, does not check m_frame present.
const VisibleSelection& visibleSelection() const;
bool isBaseFirstInSelection() const;
+ const Position& anchorPosition() const;
Node* shadowAdjustedNode(const Position&) const;
int shadowAdjustedOffset(const Position&) const;

Powered by Google App Engine
This is Rietveld 408576698