Changeset 24334 in webkit
- Timestamp:
- Jul 16, 2007, 3:31:10 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r24327 r24334 1 2007-07-16 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by Adele. 4 5 <rdar://problem/5240265> REGRESSION: Clicking a <button> clears the selection in contenteditable areas 6 7 * editing/selection/5240265-expected.checksum: Added. 8 * editing/selection/5240265-expected.png: Added. 9 * editing/selection/5240265-expected.txt: Added. 10 * editing/selection/5240265.html: Added. 11 1 12 2007-07-16 Adele Peterson <adele@apple.com> 2 13 -
trunk/WebCore/ChangeLog
r24332 r24334 1 2007-07-16 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by Adele. 4 5 <rdar://problem/5240265> 6 REGRESSION: Clicking a <button> clears the selection in contenteditable areas 7 8 * page/FocusController.cpp: 9 (WebCore::clearSelectionIfNeeded): Don't clear the selection if 10 the mouse press that caused the focus shift occurred in 11 a -webkit-user-select: ignore region. 12 1 13 2007-07-16 Adam Roben <aroben@apple.com> 2 14 -
trunk/WebCore/page/FocusController.cpp
r21642 r24334 236 236 if (selectionStartNode == newFocusedNode || selectionStartNode->isDescendantOf(newFocusedNode) || selectionStartNode->shadowAncestorNode() == newFocusedNode) 237 237 return; 238 239 if (Node* mousePressNode = newFocusedFrame->eventHandler()->mousePressNode()) 240 if (mousePressNode->renderer() && mousePressNode->renderer()->style()->userSelect() == SELECT_IGNORE) 241 // Don't do this for textareas and text fields, when they lose focus their selections should be cleared 242 // and then restored when they regain focus, to match other browsers. 243 if (!s->rootEditableElement()->shadowAncestorNode()) 244 return; 238 245 239 246 s->clear();
Note:
See TracChangeset
for help on using the changeset viewer.