Reviewed by Darin.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Feb 2005 21:25:11 +0000 (21:25 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Feb 2005 21:25:11 +0000 (21:25 +0000)
        <rdar://problem/4010059> BoundsForTextMarkerRange does not update with scrolled web area

        * kwq/KWQAccObject.mm:
        (-[KWQAccObject doAXBoundsForTextMarkerRange:]):
        Adjust for scrolling.

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

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

index c191e387d9f1b02733452559fc5b79d4124170ce..9339907382a43d0e0ae9b159957c3532d299bfe6 100644 (file)
@@ -1,3 +1,13 @@
+2005-02-23  David Harrison  <harrison@apple.com>
+
+        Reviewed by Darin.
+
+        <rdar://problem/4010059> BoundsForTextMarkerRange does not update with scrolled web area
+
+        * kwq/KWQAccObject.mm:
+        (-[KWQAccObject doAXBoundsForTextMarkerRange:]):
+        Adjust for scrolling.
+
 2005-02-22  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Ken.
index 6586025084b6de72827c242233fda07d3d32f527..90db387b419932eba9dd116aced8af22a005f583 100644 (file)
@@ -1111,6 +1111,7 @@ static QRect boundingBoxRect(RenderObject* obj)
  
     // convert our rectangle to screen coordinates
     NSRect rect = NSMakeRect(ourrect.left(), ourrect.top(), ourrect.width(), ourrect.height());
+    rect = NSOffsetRect(rect, -[self topView]->contentsX(), -[self topView]->contentsY());
     rect = [view convertRect:rect toView:nil];
     rect.origin = [[view window] convertBaseToScreen:rect.origin];