Changeset 19172 in webkit
- Timestamp:
- Jan 26, 2007 6:04:41 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r19159 r19172 1 2007-01-26 Alice Liu <alice.liu@apple.com> 2 3 Reviewed by Ada. 4 5 Added tests for <rdar://problem/4919097> REGRESSION: Ctrl-Y fails to yank (11076) 6 7 * editing/pasteboard/emacs-ctrl-a-k-y-expected.checksum: Added. 8 * editing/pasteboard/emacs-ctrl-a-k-y-expected.png: Added. 9 * editing/pasteboard/emacs-ctrl-a-k-y-expected.txt: Added. 10 * editing/pasteboard/emacs-ctrl-a-k-y.html: Added. 11 Test for <rdar://problem/4919097> 12 13 * editing/deleting/delete-by-word-001-expected.txt: 14 * editing/deleting/delete-by-word-002-expected.txt: 15 * editing/deleting/delete-to-end-of-paragraph-expected.txt: 16 * editing/pasteboard/emacs-cntl-y-001-expected.txt: 17 The expected results of these tests were affected by the WebCore checkin of the same number. The results are the same, but there were more editing delegates that were called, as expected. I suspect these tests were created during the time that <rdar://problem/4919097> was broken 18 1 19 2007-01-26 Alexey Proskuryakov <ap@webkit.org> 2 20 -
trunk/LayoutTests/editing/deleting/delete-by-word-001-expected.txt
r15414 r19172 16 16 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 17 17 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification 18 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 18 19 EDITING DELEGATE: shouldDeleteDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 12 of #text > DIV > DIV > BODY > HTML > #document 19 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 12of #text > DIV > DIV > BODY > HTML > #document to 12 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE20 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 12 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 9 of #text > DIV > DIV > BODY > HTML > #document to 9 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 20 21 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 21 22 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/LayoutTests/editing/deleting/delete-by-word-002-expected.txt
r15414 r19172 4 4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 6 7 EDITING DELEGATE: shouldDeleteDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document 7 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE8 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > DIV > BODY > HTML > #document to 4 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 8 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 10 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/LayoutTests/editing/deleting/delete-to-end-of-paragraph-expected.txt
r18345 r19172 1 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 5 of BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 3 4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 4 5 EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 13 of #text > DIV > BODY > HTML > #document -
trunk/LayoutTests/editing/pasteboard/emacs-cntl-y-001-expected.txt
r16586 r19172 4 4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 6 7 EDITING DELEGATE: shouldDeleteDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document 7 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE8 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > DIV > DIV > BODY > HTML > #document to 6 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 8 9 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 9 10 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification -
trunk/WebCore/ChangeLog
r19171 r19172 1 2007-01-26 Alice Liu <alice.liu@apple.com> 2 3 Reviewed by Ada. 4 5 Fixed <rdar://problem/4919097> REGRESSION: Ctrl-Y fails to yank (11076) 6 7 * editing/Editor.cpp: 8 (WebCore::Editor::deleteWithDirection): 9 If there's no selection, locally create a range that is to the end of the granularity unit and pass that to deleteRange(). 10 1 11 2007-01-26 Sam Weinig <sam@webkit.org> 2 12 … … 198 208 (WebCore::adoptCFReference): 199 209 210 >>>>>>> .r19171 200 211 2007-01-26 Darin Adler <darin@apple.com> 201 212 -
trunk/WebCore/editing/Editor.cpp
r19109 r19172 214 214 return false; 215 215 216 RefPtr<Range> range; 216 217 EditorDeleteAction deletionAction = deleteSelectionAction; 217 218 … … 219 220 220 221 if (m_frame->selectionController()->isRange()) { 222 range = selectedRange(); 221 223 smartDeleteOK = true; 222 224 if (isTypingAction) 223 225 deletionAction = deleteKeyAction; 224 226 } else { 227 SelectionController selectionController; 228 selectionController.setSelection(m_frame->selectionController()->selection()); 229 selectionController.modify(SelectionController::EXTEND, direction, granularity); 230 range = selectionController.toRange(); 231 225 232 switch (direction) { 226 233 case SelectionController::FORWARD: … … 235 242 } 236 243 237 deleteRange( selectedRange().get(), killRing, false, smartDeleteOK, deletionAction, granularity);244 deleteRange(range.get(), killRing, false, smartDeleteOK, deletionAction, granularity); 238 245 239 246 return true;
Note: See TracChangeset
for help on using the changeset viewer.