[webkit-changes] cvs commit: WebCore/khtml/rendering render_text.cpp

Adele adele at opensource.apple.com
Fri Oct 28 10:14:15 PDT 2005


adele       05/10/28 10:14:15

  Modified:    .        ChangeLog
               khtml/rendering render_text.cpp
  Log:
          Reviewed by Beth.
  
          - fixed <rdar://problem/4319232> finding text in overflow area doesn't always scroll to the right place
  
          * khtml/rendering/render_text.cpp:
          (RenderText::selectionRect): Subtracts scroll offset of containing block layer.
  
  Revision  Changes    Path
  1.313     +9 -0      WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.312
  retrieving revision 1.313
  diff -u -r1.312 -r1.313
  --- ChangeLog	28 Oct 2005 08:42:11 -0000	1.312
  +++ ChangeLog	28 Oct 2005 17:14:11 -0000	1.313
  @@ -1,3 +1,12 @@
  +2005-10-28  Adele Peterson  <adele at apple.com>
  +
  +        Reviewed by Beth.
  +
  +        - fixed <rdar://problem/4319232> finding text in overflow area doesn't always scroll to the right place
  +
  +        * khtml/rendering/render_text.cpp:
  +        (RenderText::selectionRect): Subtracts scroll offset of containing block layer.
  +
   2005-10-28  David Hyatt  <hyatt at apple.com>
   
   	Make sure positioned content works with width:intrinsic.  Fixes positioned buttons.  The bug
  
  
  
  1.204     +3 -0      WebCore/khtml/rendering/render_text.cpp
  
  Index: render_text.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_text.cpp,v
  retrieving revision 1.203
  retrieving revision 1.204
  diff -u -r1.203 -r1.204
  --- render_text.cpp	24 Oct 2005 22:51:06 -0000	1.203
  +++ render_text.cpp	28 Oct 2005 17:14:14 -0000	1.204
  @@ -1750,6 +1750,9 @@
   
       int absx, absy;
       cb->absolutePosition(absx, absy);
  +    RenderLayer *layer = cb->layer();
  +    if (layer)
  +       layer->subtractScrollOffset(absx, absy); 
       for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) {
           QRect r = box->selectionRect(absx, absy, startPos, endPos);
           if (!r.isEmpty()) {
  
  
  



More information about the webkit-changes mailing list