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

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

Issue 2406163004: Simplify the usage of PositionWithAffinity (Closed)
Patch Set: Created 4 years, 2 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/PositionWithAffinity.h
diff --git a/third_party/WebKit/Source/core/editing/PositionWithAffinity.h b/third_party/WebKit/Source/core/editing/PositionWithAffinity.h
index f18eb6cbe2b0c19619d28232ae578b2f0e6bc5f8..d53dc0d288cbcb15d8e8ad49a5cceb7c3842b045 100644
--- a/third_party/WebKit/Source/core/editing/PositionWithAffinity.h
+++ b/third_party/WebKit/Source/core/editing/PositionWithAffinity.h
@@ -36,6 +36,11 @@ class CORE_TEMPLATE_CLASS_EXPORT PositionWithAffinityTemplate {
bool isNotNull() const { return m_position.isNotNull(); }
bool isNull() const { return m_position.isNull(); }
+ bool isOrphan() const { return m_position.isOrphan(); }
+ bool isConnected() const { return m_position.isConnected(); }
+
+ Node* anchorNode() const { return m_position.anchorNode(); }
+ Document* document() const { return m_position.document(); }
DEFINE_INLINE_TRACE() { visitor->trace(m_position); }
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameCaret.cpp ('k') | third_party/WebKit/Source/core/editing/VisiblePosition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698