Changeset 88723 in webkit
- Timestamp:
- Jun 13, 2011 3:45:23 PM (13 years ago)
- Location:
- trunk/Source/WebKit/efl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/efl/ChangeLog
r88710 r88723 1 2011-06-13 Jaehun Lim <ljaehun.lim@samsung.com> 2 3 Reviewed by Eric Seidel. 4 5 [EFL] Supports to execute "redo" command. 6 https://bugs.webkit.org/show_bug.cgi?id=62536 7 8 Implements basic functions for "redo" command. 9 10 * WebCoreSupport/EditorClientEfl.cpp: 11 (WebCore::EditorClientEfl::registerCommandForUndo): 12 (WebCore::EditorClientEfl::registerCommandForRedo): 13 (WebCore::EditorClientEfl::clearUndoRedoOperations): 14 (WebCore::EditorClientEfl::canRedo): 15 (WebCore::EditorClientEfl::redo): 16 * WebCoreSupport/EditorClientEfl.h: 17 1 18 2011-06-13 Grzegorz Czajkowski <g.czajkowski@samsung.com> 2 19 -
trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp
r88354 r88723 148 148 void EditorClientEfl::registerCommandForUndo(WTF::PassRefPtr<EditCommand> command) 149 149 { 150 redoStack.clear(); 150 151 undoStack.append(command); 151 152 } 152 153 153 void EditorClientEfl::registerCommandForRedo(WTF::PassRefPtr<EditCommand> )154 { 155 notImplemented();154 void EditorClientEfl::registerCommandForRedo(WTF::PassRefPtr<EditCommand> command) 155 { 156 redoStack.append(command); 156 157 } 157 158 … … 159 160 { 160 161 undoStack.clear(); 162 redoStack.clear(); 161 163 } 162 164 … … 178 180 bool EditorClientEfl::canRedo() const 179 181 { 180 notImplemented(); 181 return false; 182 return !redoStack.isEmpty(); 182 183 } 183 184 … … 191 192 void EditorClientEfl::redo() 192 193 { 193 notImplemented(); 194 RefPtr<WebCore::EditCommand> command(*(--redoStack.end())); 195 redoStack.remove(--redoStack.end()); 196 command->reapply(); 194 197 } 195 198 -
trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.h
r88354 r88723 48 48 protected: 49 49 WTF::Deque<WTF::RefPtr<WebCore::EditCommand> > undoStack; 50 WTF::Deque<WTF::RefPtr<WebCore::EditCommand> > redoStack; 50 51 51 52 public:
Note: See TracChangeset
for help on using the changeset viewer.