LayoutTests:
Reviewed by Darin.
* editing/selection/select-all-iframe-expected.txt:
* editing/selection/select-from-textfield-outwards-expected.checksum: Added.
* editing/selection/select-from-textfield-outwards-expected.png: Added.
* editing/selection/select-from-textfield-outwards-expected.txt: Added.
* editing/selection/select-from-textfield-outwards.html: Added.
* fast/events/drag-outside-window-expected.txt:
WebCore:
Reviewed by Darin.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9312
REGRESSION: Selection bug in new text fields when selecting past the first letter
Test: editing/selection/select-from-textfield-outwards.html
* editing/Selection.cpp:
(WebCore::Selection::adjustForEditableContent): Added code to handle the case
where the selection starts (resp. ends) in the last (resp. first) visual position
inside an editable root.
* editing/htmlediting.cpp:
(WebCore::comparePositions): Fixed the case of comparing a position inside a shadow
tree with a position in the shadow ancestor.
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::positionForCoordinates): For coordinates outside a replaced
object, return the position just before (after) the element if the coordinates are above or
to the left (below or to the right).
* rendering/RenderObject.cpp:
(WebCore::RenderObject::caretMaxOffset): Changed to return 1 for replaced objects.
* rendering/RenderText.cpp:
(WebCore::RenderText::positionForCoordinates): Changed to return the last position
in the lowest text box if the y coordinate is below all text boxes.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15558
268f45cc-cd09-0410-ab3c-
d52691b4dbfc