Changeset 15487 in webkit
- Timestamp:
- Jul 17, 2006 12:38:48 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r15485 r15487 1 2006-07-14 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by levi 4 5 * editing/selection/drag-to-contenteditable-iframe-expected.txt: 6 * editing/selection/subframe-with-selection-expected.txt: 7 1 8 2006-07-17 Maciej Stachowiak <mjs@apple.com> 2 9 -
trunk/WebKit/ChangeLog
r15452 r15487 1 2006-07-17 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by levi 4 5 Rolled the first fix for: 6 <http://bugzilla.opendarwin.org/show_bug.cgi?id=9642> 7 GMail Editor: Operations that use drop down menus blow away the selection 8 back in and removed the call to _clearSelectionInOtherFrames from 9 -[WebHTMLView becomeFirstResponder] to fix the bug. 10 11 * WebView/WebHTMLView.m: 12 (-[NSArray maintainsInactiveSelection]): 13 (-[NSArray becomeFirstResponder]): 14 * WebView/WebView.m: 15 (-[WebView maintainsInactiveSelection]): 16 1 17 2006-07-15 Darin Adler <darin@apple.com> 2 18 -
trunk/WebKit/WebView/WebHTMLView.m
r15452 r15487 2206 2206 - (BOOL)maintainsInactiveSelection 2207 2207 { 2208 // This method helps to determin g whether the view should maintain2209 // an inactive selection when the view is not first responder.2208 // This method helps to determine whether the WebHTMLView should maintain 2209 // an inactive selection when it's not first responder. 2210 2210 // Traditionally, these views have not maintained such selections, 2211 2211 // clearing them when the view was not first responder. However, … … 2214 2214 // when they're not firstResponder" 2215 2215 // it was decided to add a switch to act more like an NSTextView. 2216 // For now, however, the view only acts in this way when the2217 // web view is set to be editable. This will maintain traditional2218 // behavior for WebKit clients dating back to before this change,2219 // and will likely be a decent switch for the long term, since2220 // clients to ste the web view to be editable probably want it2221 // to act like a "regular" Cocoa view in terms of its selection2222 // behavior.2223 2216 id nextResponder = [[self window] _newFirstResponderAfterResigning]; 2224 2217 … … 2241 2234 return YES; 2242 2235 2243 if (![[self _webView] maintainsInactiveSelection]) 2244 return NO; 2245 2246 // editable views lose selection when losing first responder status 2247 // to a widget in the same page, but not otherwise 2248 BOOL loseSelection = [nextResponder isKindOfClass:[NSView class]] 2249 && [nextResponder isDescendantOf:[self _webView]]; 2250 2251 return !loseSelection; 2236 return [[self _webView] maintainsInactiveSelection] || [[self _bridge] isSelectionEditable]; 2252 2237 } 2253 2238 … … 2993 2978 if (view) 2994 2979 [[self window] makeFirstResponder:view]; 2995 [[self _frame] _clearSelectionInOtherFrames];2996 2980 [self _updateActiveState]; 2997 2981 [self _updateFontPanel]; -
trunk/WebKit/WebView/WebView.m
r15441 r15487 3049 3049 - (BOOL)maintainsInactiveSelection 3050 3050 { 3051 return [self isEditable];3051 return NO; 3052 3052 } 3053 3053
Note: See TracChangeset
for help on using the changeset viewer.