summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/editing/InsertTextCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/editing/InsertTextCommand.h')
-rw-r--r--Source/WebCore/editing/InsertTextCommand.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/WebCore/editing/InsertTextCommand.h b/Source/WebCore/editing/InsertTextCommand.h
index 77ae016..672e576 100644
--- a/Source/WebCore/editing/InsertTextCommand.h
+++ b/Source/WebCore/editing/InsertTextCommand.h
@@ -32,14 +32,20 @@ namespace WebCore {
class InsertTextCommand : public CompositeEditCommand {
public:
+ enum RebalanceType {
+ RebalanceLeadingAndTrailingWhitespaces,
+ RebalanceAllWhitespaces
+ };
+
static PassRefPtr<InsertTextCommand> create(Document* document)
{
return adoptRef(new InsertTextCommand(document));
}
- void input(const String& text, bool selectInsertedText = false);
+ void input(const String& text, bool selectInsertedText = false, RebalanceType = RebalanceLeadingAndTrailingWhitespaces);
private:
+
InsertTextCommand(Document*);
void deleteCharacter();