summaryrefslogtreecommitdiffstats
path: root/WebCore/editing/DeleteFromTextNodeCommand.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/editing/DeleteFromTextNodeCommand.h
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/editing/DeleteFromTextNodeCommand.h')
-rw-r--r--WebCore/editing/DeleteFromTextNodeCommand.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/WebCore/editing/DeleteFromTextNodeCommand.h b/WebCore/editing/DeleteFromTextNodeCommand.h
index dfad153..b3bf10b 100644
--- a/WebCore/editing/DeleteFromTextNodeCommand.h
+++ b/WebCore/editing/DeleteFromTextNodeCommand.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,18 +32,19 @@ namespace WebCore {
class Text;
-class DeleteFromTextNodeCommand : public EditCommand {
+class DeleteFromTextNodeCommand : public SimpleEditCommand {
public:
- DeleteFromTextNodeCommand(Text*, int offset, int count);
+ static PassRefPtr<DeleteFromTextNodeCommand> create(PassRefPtr<Text> node, int offset, int count)
+ {
+ return adoptRef(new DeleteFromTextNodeCommand(node, offset, count));
+ }
+
+private:
+ DeleteFromTextNodeCommand(PassRefPtr<Text>, int offset, int count);
virtual void doApply();
virtual void doUnapply();
- Text* node() const { return m_node.get(); }
- int offset() const { return m_offset; }
- int count() const { return m_count; }
-
-private:
RefPtr<Text> m_node;
int m_offset;
int m_count;