Changeset 24974 in webkit
- Timestamp:
- Aug 9, 2007 8:56:17 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r24971 r24974 1 2007-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 1 13 2007-08-09 Mitz Pettel <mitz@webkit.org> 2 14 -
trunk/WebCore/ChangeLog
r24973 r24974 1 2007-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 1 14 2007-08-09 Mitz Pettel <mitz@webkit.org> 2 15 -
trunk/WebCore/editing/SelectionController.cpp
r24187 r24974 1091 1091 HitTestResult result(point); 1092 1092 document->renderer()->layer()->hitTest(request, result); 1093 Node *innerNode = result.innerNode();1093 Node* innerNode = result.innerNode(); 1094 1094 if (!innerNode || !innerNode->renderer()) 1095 1095 return false; … … 1105 1105 Position end(m_sel.visibleEnd().deepEquivalent()); 1106 1106 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; 1109 1109 } 1110 1110
Note: See TracChangeset
for help on using the changeset viewer.