Changeset 156635 in webkit
- Timestamp:
- Sep 30, 2013, 12:12:44 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r156619 r156635 1 2013-09-30 Vani Hegde <vani.hegde@samsung.com> 2 3 user-select: none cursor turns to I-beam on mouse dragging 4 https://bugs.webkit.org/show_bug.cgi?id=90159 5 6 Reviewed by Ryosuke Niwa. 7 8 Test case added to verify that explicitly set cursor style 9 is retained on performing text selection. 10 11 * editing/caret/selection-with-caret-type-progress-expected.txt: Added. 12 * editing/caret/selection-with-caret-type-progress.html: Added. 13 1 14 2013-09-29 Philip Rogers <pdr@google.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r156633 r156635 1 2013-09-30 Vani Hegde <vani.hegde@samsung.com> 2 3 user-select: none cursor turns to I-beam on mouse dragging 4 https://bugs.webkit.org/show_bug.cgi?id=90159 5 6 Reviewed by Ryosuke Niwa. 7 8 When tried to select some text in an area that has style 9 cursor:default set, cursor type changes to text cursor ignoring 10 the cursor style that is explicitly set. 11 12 When the cursor style is explicitly set as default (or something else), 13 we should not change it to text cursor no matter what we are over 14 or what operation we are performing (be it hovering over the text 15 or selecting the text). 16 17 During text selection, changing the cursor type to text only when 18 there is no explicit cursor type set fixes the issue. 19 20 Test: editing/caret/selection-with-caret-type-progress.html 21 22 * page/EventHandler.cpp: 23 (WebCore::EventHandler::selectCursor): 24 During selection, set the cursor style to text only if there is no 25 explicit cursor style set. 26 1 27 2013-09-29 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 28 -
trunk/Source/WebCore/page/EventHandler.cpp
r156622 r156635 1304 1304 #endif 1305 1305 1306 // During selection, use an I-beam no matter what we're over.1307 // If a drag may be starting or we're capturing mouse events for a particular node, don't treat this as a selection.1308 if (m_mousePressed && m_mouseDownMayStartSelect1309 #if ENABLE(DRAG_SUPPORT)1310 && !m_mouseDownMayStartDrag1311 #endif1312 && m_frame.selection().isCaretOrRange() && !m_capturingMouseEventsNode)1313 return iBeam;1314 1315 1306 if (renderer) { 1316 1307 Cursor overrideCursor; … … 1374 1365 } 1375 1366 } 1367 1368 // During selection, use an I-beam regardless of the content beneath the cursor when cursor style is not explicitly specified. 1369 // If a drag may be starting or we're capturing mouse events for a particular node, don't treat this as a selection. 1370 if (m_mousePressed && m_mouseDownMayStartSelect 1371 #if ENABLE(DRAG_SUPPORT) 1372 && !m_mouseDownMayStartDrag 1373 #endif 1374 && m_frame.selection().isCaretOrRange() 1375 && !m_capturingMouseEventsNode) { 1376 return iBeam; 1377 } 1378 1376 1379 if ((editable || (renderer && renderer->isText() && node->canStartSelection())) && !inResizer && !result.scrollbar()) 1377 1380 return iBeam;
Note:
See TracChangeset
for help on using the changeset viewer.