Reviewed by Ken.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Jan 2005 19:36:39 +0000 (19:36 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Jan 2005 19:36:39 +0000 (19:36 +0000)
        <rdar://problem/3962214> AX: AXLeftLineTextMarkerRangeForTextMarker returns incorrect range

        * kwq/KWQAccObject.mm:
        (-[KWQAccObject doAXRightLineTextMarkerRangeForTextMarker:]):
        Allowed for selection to end of line including the linebreak.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8460 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/kwq/KWQAccObject.mm

index cd229114b34d727db85bf80b12569d7a96366150..de117943490bf0093322a3ed58f9c77c1a70649b 100644 (file)
@@ -1,3 +1,13 @@
+2005-01-27  David Harrison  <harrison@apple.com>
+
+        Reviewed by Ken.
+
+        <rdar://problem/3962214> AX: AXLeftLineTextMarkerRangeForTextMarker returns incorrect range
+
+        * kwq/KWQAccObject.mm:
+        (-[KWQAccObject doAXRightLineTextMarkerRangeForTextMarker:]):
+        Allowed for selection to end of line including the linebreak.
+        
 2005-01-27  David Harrison  <harrison@apple.com>
 
         Reviewed by Darin, Ken.
index bcb799ad68284b73a2ca577b0fb889f2498c9b82..5fb48912044c821318c429c00316422e9e047c81 100644 (file)
@@ -1494,8 +1494,8 @@ static void AXAttributedStringAppendReplaced (NSMutableAttributedString *attrStr
     // starting at an empty line.  The resulting selection in that case
     // will be a caret at nextVisiblePos. 
     Selection sel = Selection(nextVisiblePos, nextVisiblePos);
-    (void)sel.modify(Selection::MOVE, Selection::RIGHT, khtml::LINE_BOUNDARY);
-    (void)sel.modify(Selection::EXTEND, Selection::LEFT, khtml::LINE_BOUNDARY);
+    (void)sel.modify(Selection::MOVE, Selection::LEFT, khtml::LINE_BOUNDARY);
+    (void)sel.modify(Selection::EXTEND, Selection::RIGHT, khtml::LINE_BOUNDARY);
 
     // return a marker range for the selection start to end
     VisiblePosition startPosition = VisiblePosition(sel.start());