Changeset 88928 in webkit
- Timestamp:
- Jun 15, 2011 7:38:14 AM (13 years ago)
- Location:
- trunk/Source/WebKit/efl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/efl/ChangeLog
r88725 r88928 1 2011-06-15 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r88723. 4 http://trac.webkit.org/changeset/88723 5 https://bugs.webkit.org/show_bug.cgi?id=62726 6 7 Stack can be empty, so it needs to be checked before as 8 pointed out in the comments of the bug. (Requested by demarchi 9 on #webkit). 10 11 * WebCoreSupport/EditorClientEfl.cpp: 12 (WebCore::EditorClientEfl::registerCommandForUndo): 13 (WebCore::EditorClientEfl::registerCommandForRedo): 14 (WebCore::EditorClientEfl::clearUndoRedoOperations): 15 (WebCore::EditorClientEfl::canRedo): 16 (WebCore::EditorClientEfl::redo): 17 * WebCoreSupport/EditorClientEfl.h: 18 1 19 2011-06-13 Michal Pakula vel Rutka <m.pakula@samsung.com> 2 20 -
trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp
r88723 r88928 148 148 void EditorClientEfl::registerCommandForUndo(WTF::PassRefPtr<EditCommand> command) 149 149 { 150 redoStack.clear();151 150 undoStack.append(command); 152 151 } 153 152 154 void EditorClientEfl::registerCommandForRedo(WTF::PassRefPtr<EditCommand> command)155 { 156 redoStack.append(command);153 void EditorClientEfl::registerCommandForRedo(WTF::PassRefPtr<EditCommand>) 154 { 155 notImplemented(); 157 156 } 158 157 … … 160 159 { 161 160 undoStack.clear(); 162 redoStack.clear();163 161 } 164 162 … … 180 178 bool EditorClientEfl::canRedo() const 181 179 { 182 return !redoStack.isEmpty(); 180 notImplemented(); 181 return false; 183 182 } 184 183 … … 192 191 void EditorClientEfl::redo() 193 192 { 194 RefPtr<WebCore::EditCommand> command(*(--redoStack.end())); 195 redoStack.remove(--redoStack.end()); 196 command->reapply(); 193 notImplemented(); 197 194 } 198 195 -
trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.h
r88723 r88928 48 48 protected: 49 49 WTF::Deque<WTF::RefPtr<WebCore::EditCommand> > undoStack; 50 WTF::Deque<WTF::RefPtr<WebCore::EditCommand> > redoStack;51 50 52 51 public:
Note: See TracChangeset
for help on using the changeset viewer.