Changeset 21435 in webkit
- Timestamp:
- May 12, 2007 7:12:53 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r21423 r21435 1 2007-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 1 13 2007-05-11 Oliver Hunt <oliver@apple.com> 2 14 -
trunk/WebCore/ChangeLog
r21431 r21435 1 2007-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 1 13 2007-05-12 Brady Eidson <beidson@apple.com> 2 14 -
trunk/WebCore/rendering/RenderText.cpp
r21387 r21435 1062 1062 cb->adjustRectForColumns(rect); 1063 1063 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 1075 1064 if (clipToVisibleContent) 1076 c b->computeAbsoluteRepaintRect(rect);1065 computeAbsoluteRepaintRect(rect); 1077 1066 else { 1078 1067 int absx, absy; 1079 cb->absolutePosition(absx, absy);1068 absolutePosition(absx, absy); 1080 1069 rect.move(absx, absy); 1081 1070 }
Note: See TracChangeset
for help on using the changeset viewer.