Changeset 24499 in webkit
- Timestamp:
- Jul 20, 2007, 5:38:20 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r24497 r24499 1 2007-07-20 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by Darin. 4 5 <rdar://problem/5109817> Ctrl-click on word in non-editable text doesn't select it 6 7 * editing/selection/5109817-expected.checksum: Added. 8 * editing/selection/5109817-expected.png: Added. 9 * editing/selection/5109817-expected.txt: Added. 10 * editing/selection/5109817.html: Added. 11 1 12 2007-07-21 Antti <antti@apple.com> 2 13 -
trunk/WebCore/ChangeLog
r24498 r24499 1 2007-07-20 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by Darin. 4 5 <rdar://problem/5109817> Ctrl-click on word in non-editable text doesn't select it 6 7 * bridge/EditorClient.h: Removed a client method for enabling/disabling 8 word selection on right clicks. 9 * editing/Editor.cpp: Ditto. 10 * editing/Editor.h: 11 * page/EventHandler.cpp: 12 (WebCore::EventHandler::sendContextMenuEvent): Select the 13 word underneath the mouse regardless of whether its editable. 14 1 15 2007-07-20 Ada Chan <adachan@apple.com> 2 16 -
trunk/WebCore/bridge/EditorClient.h
r21311 r24499 76 76 virtual int spellCheckerDocumentTag() = 0; 77 77 78 virtual bool selectWordBeforeMenuEvent() = 0;79 78 virtual bool isEditable() = 0; 80 79 -
trunk/WebCore/editing/Editor.cpp
r24175 r24499 716 716 if (client() && client()->shouldApplyStyle(style, m_frame->selectionController()->toRange().get())) 717 717 applyParagraphStyle(style, editingAction); 718 }719 720 bool Editor::selectWordBeforeMenuEvent() const721 {722 return client() && client()->selectWordBeforeMenuEvent();723 718 } 724 719 -
trunk/WebCore/editing/Editor.h
r24085 r24499 145 145 bool selectionStartHasStyle(CSSStyleDeclaration*) const; 146 146 147 bool selectWordBeforeMenuEvent() const;148 147 bool clientIsEditable() const; 149 148 -
trunk/WebCore/page/EventHandler.cpp
r24465 r24499 1307 1307 MouseEventWithHitTestResults mev = doc->prepareMouseEvent(HitTestRequest(false, true), viewportPos, event); 1308 1308 1309 if (!m_frame->selectionController()->contains(viewportPos) && 1310 (m_frame->editor()->selectWordBeforeMenuEvent() || m_frame->editor()->clientIsEditable() 1311 || (mev.targetNode() && mev.targetNode()->isContentEditable()))) { 1309 if (!m_frame->selectionController()->contains(viewportPos)) { 1312 1310 m_mouseDownMayStartSelect = true; // context menu events are always allowed to perform a selection 1313 1311 selectClosestWordFromMouseEvent(mev); -
trunk/WebKit/ChangeLog
r24489 r24499 1 2007-07-20 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by Darin. 4 5 <rdar://problem/5109817> Ctrl-click on word in non-editable text doesn't select it 6 7 * WebCoreSupport/WebEditorClient.h: 8 * WebCoreSupport/WebEditorClient.mm: Removed the method 9 for enabling/disabling word selection on right click. 10 * WebView/WebView.mm: Ditto. 11 * WebView/WebViewPrivate.h: Removed the getter/setter entirely, 12 it was in a private Category for Mail, but wasn't used by Mail 13 on Tiger or Leopard, they apparently implement word selection on 14 their own. 15 1 16 2007-07-20 Timothy Hatcher <timothy@apple.com> 2 17 -
trunk/WebKit/WebCoreSupport/WebEditorClient.h
r21318 r24499 49 49 50 50 virtual bool smartInsertDeleteEnabled(); 51 virtual bool selectWordBeforeMenuEvent();52 51 virtual bool isEditable(); 53 52 -
trunk/WebKit/WebCoreSupport/WebEditorClient.mm
r21757 r24499 196 196 { 197 197 return [m_webView spellCheckerDocumentTag]; 198 }199 200 bool WebEditorClient::selectWordBeforeMenuEvent()201 {202 return [m_webView _selectWordBeforeMenuEvent];203 198 } 204 199 -
trunk/WebKit/WebView/WebView.mm
r24422 r24499 324 324 BOOL dashboardBehaviorAllowWheelScrolling; 325 325 326 BOOL selectWordBeforeMenuEvent;327 328 326 // WebKit has both a global plug-in database and a separate, per WebView plug-in database. Dashboard uses the per WebView database. 329 327 WebPluginDatabase *pluginDatabase; … … 3505 3503 } 3506 3504 3507 - (BOOL)_selectWordBeforeMenuEvent3508 {3509 return _private->selectWordBeforeMenuEvent;3510 }3511 3512 - (void)_setSelectWordBeforeMenuEvent:(BOOL)flag3513 {3514 _private->selectWordBeforeMenuEvent = flag;3515 }3516 3517 3505 - (void)_replaceSelectionWithNode:(DOMNode *)node matchStyle:(BOOL)matchStyle 3518 3506 { -
trunk/WebKit/WebView/WebViewPrivate.h
r23774 r24499 450 450 @interface WebView (WebViewEditingInMail) 451 451 - (void)_insertNewlineInQuotedContent; 452 - (BOOL)_selectWordBeforeMenuEvent;453 - (void)_setSelectWordBeforeMenuEvent:(BOOL)flag;454 452 - (void)_replaceSelectionWithNode:(DOMNode *)node matchStyle:(BOOL)matchStyle; 455 453 @end -
trunk/WebKit/win/ChangeLog
r24494 r24499 1 2007-07-20 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by Darin. 4 5 <rdar://problem/5109817> Ctrl-click on word in non-editable text doesn't select it 6 7 * WebEditorClient.cpp: Removed the now unused selectWordBeforeMenuEvent(). 8 * WebEditorClient.h: 9 1 10 2007-07-20 Ada Chan <adachan@apple.com> 2 11 -
trunk/WebKit/win/WebEditorClient.cpp
r24469 r24499 604 604 } 605 605 606 bool WebEditorClient::selectWordBeforeMenuEvent()607 {608 return false;609 }610 611 606 bool WebEditorClient::isEditable() 612 607 { -
trunk/WebKit/win/WebEditorClient.h
r23455 r24499 50 50 virtual int spellCheckerDocumentTag(); 51 51 52 virtual bool selectWordBeforeMenuEvent();53 52 virtual bool isEditable(); 54 53
Note:
See TracChangeset
for help on using the changeset viewer.