summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/EditCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/editing/EditCommand.h')
-rw-r--r--WebCore/editing/EditCommand.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebCore/editing/EditCommand.h b/WebCore/editing/EditCommand.h
index 7dc4d92..e50e88d 100644
--- a/WebCore/editing/EditCommand.h
+++ b/WebCore/editing/EditCommand.h
@@ -57,6 +57,8 @@ public:
virtual bool isTypingCommand() const;
virtual bool preservesTypingStyle() const;
+
+ bool isTopLevelCommand() const { return !m_parent; }
protected:
EditCommand(Document*);