Changeset 24974 in webkit


Ignore:
Timestamp:
Aug 9, 2007 8:56:17 PM (17 years ago)
Author:
bdash
Message:

2007-08-09 Mitz Pettel <mitz@webkit.org>

Reviewed by Justin Garcia.

Test: editing/selection/contains-boundaries.html

  • editing/SelectionController.cpp: (WebCore::SelectionController::contains): Changed to return true for the selection boundaries too.

2007-08-09 Mitz Pettel <mitz@webkit.org>

Reviewed by Justin Garcia.

  • editing/selection/contains-boundaries-expected.checksum: Added.
  • editing/selection/contains-boundaries-expected.png: Added.
  • editing/selection/contains-boundaries-expected.txt: Added.
  • editing/selection/contains-boundaries.html: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r24971 r24974  
     12007-08-09  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Justin Garcia.
     4
     5        - test for http://bugs.webkit.org/show_bug.cgi?id=14347
     6          REGRESSION (r21291): Initiating a drag near the edge of a selection deselects it
     7
     8        * editing/selection/contains-boundaries-expected.checksum: Added.
     9        * editing/selection/contains-boundaries-expected.png: Added.
     10        * editing/selection/contains-boundaries-expected.txt: Added.
     11        * editing/selection/contains-boundaries.html: Added.
     12
    1132007-08-09  Mitz Pettel  <mitz@webkit.org>
    214
  • trunk/WebCore/ChangeLog

    r24973 r24974  
     12007-08-09  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Justin Garcia.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=14347
     6          REGRESSION (r21291): Initiating a drag near the edge of a selection deselects it
     7
     8        Test: editing/selection/contains-boundaries.html
     9
     10        * editing/SelectionController.cpp:
     11        (WebCore::SelectionController::contains): Changed to return true for the
     12        selection boundaries too.
     13
    1142007-08-09  Mitz Pettel  <mitz@webkit.org>
    215
  • trunk/WebCore/editing/SelectionController.cpp

    r24187 r24974  
    10911091    HitTestResult result(point);
    10921092    document->renderer()->layer()->hitTest(request, result);
    1093     Node *innerNode = result.innerNode();
     1093    Node* innerNode = result.innerNode();
    10941094    if (!innerNode || !innerNode->renderer())
    10951095        return false;
     
    11051105    Position end(m_sel.visibleEnd().deepEquivalent());
    11061106    Position p(visiblePos.deepEquivalent());
    1107     // A selection doesn't contain its endpoints.
    1108     return comparePositions(start, p) < 0 && comparePositions(p, end) < 0;
     1107
     1108    return comparePositions(start, p) <= 0 && comparePositions(p, end) <= 0;
    11091109}
    11101110
Note: See TracChangeset for help on using the changeset viewer.