summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/InsertLineBreakCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/editing/InsertLineBreakCommand.h')
-rw-r--r--WebCore/editing/InsertLineBreakCommand.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/WebCore/editing/InsertLineBreakCommand.h b/WebCore/editing/InsertLineBreakCommand.h
index 1f5cdc8..9e73add 100644
--- a/WebCore/editing/InsertLineBreakCommand.h
+++ b/WebCore/editing/InsertLineBreakCommand.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved.
+ * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,12 +32,18 @@ namespace WebCore {
class InsertLineBreakCommand : public CompositeEditCommand {
public:
+ static PassRefPtr<InsertLineBreakCommand> create(Document* document)
+ {
+ return adoptRef(new InsertLineBreakCommand(document));
+ }
+
+private:
InsertLineBreakCommand(Document*);
virtual void doApply();
-private:
virtual bool preservesTypingStyle() const;
+
void insertNodeAfterPosition(Node*, const Position&);
void insertNodeBeforePosition(Node*, const Position&);
bool shouldUseBreakElement(const Position&);