summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/VisibleSelection.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/editing/VisibleSelection.h')
-rw-r--r--WebCore/editing/VisibleSelection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebCore/editing/VisibleSelection.h b/WebCore/editing/VisibleSelection.h
index 4ce2b92..ffdb6f8 100644
--- a/WebCore/editing/VisibleSelection.h
+++ b/WebCore/editing/VisibleSelection.h
@@ -73,6 +73,8 @@ public:
bool isCaret() const { return selectionType() == CaretSelection; }
bool isRange() const { return selectionType() == RangeSelection; }
bool isCaretOrRange() const { return selectionType() != NoSelection; }
+ bool isNonOrphanedRange() const { return isRange() && !start().isOrphan() && !end().isOrphan(); }
+ bool isNonOrphanedCaretOrRange() const { return isCaretOrRange() && !start().isOrphan() && !end().isOrphan(); }
bool isBaseFirst() const { return m_baseIsFirst; }