Changeset 77995 in webkit
- Timestamp:
- Feb 8, 2011 4:55:42 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r77988 r77995 1 2011-02-08 Jia Pu <jpu@apple.com> 2 3 Reviewed by Darin Adler. 4 5 VisibleSelection::setWithoutValidation() should allow caret selection. 6 https://bugs.webkit.org/show_bug.cgi?id=53943 7 8 * editing/undo/undo-paste-when-caret-is-not-in-range-expected.txt: Added. 9 * editing/undo/undo-paste-when-caret-is-not-in-range.html: Added. 10 1 11 2011-02-08 Yael Aharon <yael.aharon@nokia.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r77993 r77995 1 2011-02-08 Jia Pu <jpu@apple.com> 2 3 Reviewed by Darin Adler. 4 5 VisibleSelection::setWithoutValidation() should allow caret selection. 6 https://bugs.webkit.org/show_bug.cgi?id=53943 7 8 Test: editing/undo/undo-paste-when-caret-is-not-in-range.html 9 10 * editing/VisibleSelection.cpp: 11 (WebCore::VisibleSelection::setWithoutValidation): 12 1 13 2011-02-08 Martin Robinson <mrobinson@igalia.com> 2 14 -
trunk/Source/WebCore/editing/VisibleSelection.cpp
r77062 r77995 432 432 ASSERT(!base.isNull()); 433 433 ASSERT(!extent.isNull()); 434 ASSERT(base != extent);435 434 ASSERT(m_affinity == DOWNSTREAM); 436 435 m_base = base; … … 444 443 m_end = base; 445 444 } 446 m_selectionType = RangeSelection;445 m_selectionType = base == extent ? CaretSelection : RangeSelection; 447 446 } 448 447
Note: See TracChangeset
for help on using the changeset viewer.