Changeset 21436 in webkit
- Timestamp:
- May 12, 2007 7:31:03 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r21435 r21436 1 2007-05-12 Mitz Pettel <mitz@webkit.org> 2 3 Reviewed by Hyatt. 4 5 - pixel test for http://bugs.webkit.org/show_bug.cgi?id=13695 6 REGRESSION (r21387): Replaced elements' highlight rects are wrongly positioned 7 8 * fast/replaced/selection-rect-expected.checksum: Added. 9 * fast/replaced/selection-rect-expected.png: Added. 10 * fast/replaced/selection-rect-expected.txt: Added. 11 * fast/replaced/selection-rect.html: Added. 12 1 13 2007-05-12 Mitz Pettel <mitz@webkit.org> 2 14 -
trunk/WebCore/ChangeLog
r21435 r21436 1 2007-05-12 Mitz Pettel <mitz@webkit.org> 2 3 Reviewed by Hyatt. 4 5 - fix http://bugs.webkit.org/show_bug.cgi?id=13695 6 REGRESSION (r21387): Replaced elements' highlight rects are wrongly positioned 7 8 Test: fast/replaced/selection-rect.html 9 10 Also fixes the same problem with list markers, covered by existing test 11 fast/lists/markers-in-selection.html. 12 13 * rendering/RenderListMarker.cpp: 14 (WebCore::RenderListMarker::selectionRect): 15 * rendering/RenderReplaced.cpp: 16 (WebCore::RenderReplaced::selectionRect): 17 1 18 2007-05-12 Mitz Pettel <mitz@webkit.org> 2 19 -
trunk/WebCore/rendering/RenderListMarker.cpp
r21387 r21436 887 887 888 888 RootInlineBox* root = inlineBoxWrapper()->root(); 889 IntRect rect( xPos(), root->selectionTop(), width(), root->selectionHeight());889 IntRect rect(0, root->selectionTop() - yPos(), width(), root->selectionHeight()); 890 890 891 891 if (clipToVisibleContent) … … 893 893 else { 894 894 int absx, absy; 895 RenderBlock* cb = containingBlock(); 896 cb->absolutePosition(absx, absy); 897 if (cb->hasOverflowClip()) 898 cb->layer()->subtractScrollOffset(absx, absy); 895 absolutePosition(absx, absy); 899 896 rect.move(absx, absy); 900 897 } -
trunk/WebCore/rendering/RenderReplaced.cpp
r21387 r21436 168 168 169 169 RootInlineBox* root = m_inlineBoxWrapper->root(); 170 int selectionTop = root->selectionTop(); 171 int selectionHeight = root->selectionHeight(); 172 int selectionLeft = xPos(); 173 int selectionRight = xPos() + width(); 174 175 IntRect rect(selectionLeft, selectionTop, selectionRight - selectionLeft, selectionHeight); 170 IntRect rect(0, root->selectionTop() - yPos(), width(), root->selectionHeight()); 176 171 177 172 if (clipToVisibleContent) … … 179 174 else { 180 175 int absx, absy; 181 cb->absolutePositionForContent(absx, absy); 182 if (cb->hasOverflowClip()) 183 cb->layer()->subtractScrollOffset(absx, absy); 176 absolutePositionForContent(absx, absy); 184 177 rect.move(absx, absy); 185 178 }
Note: See TracChangeset
for help on using the changeset viewer.