Changeset 73923 in webkit
- Timestamp:
- Dec 13, 2010 9:27:55 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r73922 r73923 1 2010-12-13 Benjamin Kalman <kalman@chromium.org> 2 3 Reviewed by Ojan Vafai. 4 5 Shift-End does not select to the end of the line 6 https://bugs.webkit.org/show_bug.cgi?id=50610 7 8 * editing/selection/extend-to-line-boundary-expected.txt: Added. 9 * editing/selection/extend-to-line-boundary.html: Added. 10 1 11 2010-12-13 Pavel Feldman <pfeldman@chromium.org> 2 12 -
trunk/WebCore/ChangeLog
r73921 r73923 1 2010-12-13 Benjamin Kalman <kalman@chromium.org> 2 3 Reviewed by Ojan Vafai. 4 5 Shift-End does not select to the end of the line 6 https://bugs.webkit.org/show_bug.cgi?id=50610 7 8 Test: editing/selection/extend-to-line-boundary.html 9 10 * editing/SelectionController.cpp: 11 (WebCore::SelectionController::positionForPlatform): Use visibleStart/visibleEnd rather than 12 start/end. 13 (WebCore::SelectionController::modifyExtendingForward): 14 1 15 2010-12-13 Adam Roben <aroben@apple.com> 2 16 -
trunk/WebCore/editing/SelectionController.cpp
r73416 r73923 303 303 VisiblePosition SelectionController::positionForPlatform(bool isGetStart) const 304 304 { 305 Position pos;306 305 Settings* settings = m_frame ? m_frame->settings() : 0; 307 306 if (settings && settings->editingBehaviorType() == EditingMacBehavior) 308 pos = isGetStart ? m_selection.start() : m_selection.end();307 return isGetStart ? m_selection.visibleStart() : m_selection.visibleEnd(); 309 308 else { 310 309 // Linux and Windows always extend selections from the extent endpoint. … … 313 312 // to which depends on the value of isBaseFirst. Then this can be changed 314 313 // to just return m_sel.extent(). 315 pos = m_selection.isBaseFirst() ? m_selection.end() : m_selection.start(); 316 } 317 return VisiblePosition(pos, m_selection.affinity()); 314 return m_selection.isBaseFirst() ? m_selection.visibleEnd() : m_selection.visibleStart(); 315 } 318 316 } 319 317 … … 386 384 break; 387 385 case LineBoundary: 388 pos = endForPlatform(); 389 pos.setAffinity(UPSTREAM); 390 pos = logicalEndOfLine(pos); 386 pos = logicalEndOfLine(endForPlatform()); 391 387 break; 392 388 case ParagraphBoundary:
Note: See TracChangeset
for help on using the changeset viewer.