Changeset 21435 in webkit


Ignore:
Timestamp:
May 12, 2007 7:12:53 PM (17 years ago)
Author:
weinig
Message:

LayoutTests:

Reviewed by Darin.

  • fast/repaint/text-selection-rect-in-overflow-expected.checksum: Added.
  • fast/repaint/text-selection-rect-in-overflow-expected.png: Added.
  • fast/repaint/text-selection-rect-in-overflow-expected.txt: Added.
  • fast/repaint/text-selection-rect-in-overflow.html: Added.

WebCore:

Reviewed by Darin.

Test: fast/repaint/text-selection-rect-in-overflow.html

  • rendering/RenderText.cpp: (WebCore::RenderText::selectionRect):
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r21423 r21435  
     12007-05-12  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Darin.
     4
     5        - repaint test for http://bugs.webkit.org/show_bug.cgi?id=13685
     6          REGRESSION (r21368-r21388): Highlighting text in scrolled textareas behaves oddly
     7
     8        * fast/repaint/text-selection-rect-in-overflow-expected.checksum: Added.
     9        * fast/repaint/text-selection-rect-in-overflow-expected.png: Added.
     10        * fast/repaint/text-selection-rect-in-overflow-expected.txt: Added.
     11        * fast/repaint/text-selection-rect-in-overflow.html: Added.
     12
    1132007-05-11  Oliver Hunt  <oliver@apple.com>
    214
  • trunk/WebCore/ChangeLog

    r21431 r21435  
     12007-05-12  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Darin.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=13685
     6          REGRESSION (r21368-r21388): Highlighting text in scrolled textareas behaves oddly
     7
     8        Test: fast/repaint/text-selection-rect-in-overflow.html
     9
     10        * rendering/RenderText.cpp:
     11        (WebCore::RenderText::selectionRect):
     12
    1132007-05-12  Brady Eidson  <beidson@apple.com>
    214
  • trunk/WebCore/rendering/RenderText.cpp

    r21387 r21435  
    10621062        cb->adjustRectForColumns(rect);
    10631063
    1064     if (cb->hasOverflowClip()) {
    1065         int x = rect.x();
    1066         int y = rect.y();
    1067         cb->layer()->subtractScrollOffset(x, y);
    1068         if (clipToVisibleContent) {
    1069             IntRect boxRect(0, 0, cb->layer()->width(), cb->layer()->height());
    1070             IntRect repaintRect(x, y, rect.width(), rect.height());
    1071             rect = intersection(repaintRect, boxRect);
    1072         }
    1073     }
    1074 
    10751064    if (clipToVisibleContent)
    1076         cb->computeAbsoluteRepaintRect(rect);
     1065        computeAbsoluteRepaintRect(rect);
    10771066    else {
    10781067        int absx, absy;
    1079         cb->absolutePosition(absx, absy);
     1068        absolutePosition(absx, absy);
    10801069        rect.move(absx, absy);
    10811070    }
Note: See TracChangeset for help on using the changeset viewer.