Changeset 77995 in webkit


Ignore:
Timestamp:
Feb 8, 2011 4:55:42 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-02-08 Jia Pu <jpu@apple.com>

Reviewed by Darin Adler.

VisibleSelection::setWithoutValidation() should allow caret selection.
https://bugs.webkit.org/show_bug.cgi?id=53943

  • editing/undo/undo-paste-when-caret-is-not-in-range-expected.txt: Added.
  • editing/undo/undo-paste-when-caret-is-not-in-range.html: Added.

2011-02-08 Jia Pu <jpu@apple.com>

Reviewed by Darin Adler.

VisibleSelection::setWithoutValidation() should allow caret selection.
https://bugs.webkit.org/show_bug.cgi?id=53943

Test: editing/undo/undo-paste-when-caret-is-not-in-range.html

  • editing/VisibleSelection.cpp: (WebCore::VisibleSelection::setWithoutValidation):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r77988 r77995  
     12011-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
    1112011-02-08  Yael Aharon  <yael.aharon@nokia.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r77993 r77995  
     12011-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
    1132011-02-08  Martin Robinson  <mrobinson@igalia.com>
    214
  • trunk/Source/WebCore/editing/VisibleSelection.cpp

    r77062 r77995  
    432432    ASSERT(!base.isNull());
    433433    ASSERT(!extent.isNull());
    434     ASSERT(base != extent);
    435434    ASSERT(m_affinity == DOWNSTREAM);
    436435    m_base = base;
     
    444443        m_end = base;
    445444    }
    446     m_selectionType = RangeSelection;
     445    m_selectionType = base == extent ? CaretSelection : RangeSelection;
    447446}
    448447
Note: See TracChangeset for help on using the changeset viewer.