Changeset 53603 in webkit
- Timestamp:
- Jan 20, 2010 9:36:41 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r53601 r53603 1 2010-01-20 Oliver Hunt <oliver@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 Insufficient repaint issues with html embedded in foreignObject 6 https://bugs.webkit.org/show_bug.cgi?id=16318 7 8 Final part of fix -- now we render the selection rect of list 9 markers in a transformed context. 10 11 * rendering/RenderListMarker.cpp: 12 (WebCore::RenderListMarker::localSelectionRect): 13 (WebCore::RenderListMarker::paint): 14 * rendering/RenderListMarker.h: 15 1 16 2010-01-20 Daniel Bates <dbates@webkit.org> 2 17 -
trunk/WebCore/rendering/RenderListMarker.cpp
r53452 r53603 773 773 } 774 774 775 IntRect RenderListMarker::localSelectionRect() 776 { 777 InlineBox* box = inlineBoxWrapper(); 778 if (!box) 779 return IntRect(); 780 RootInlineBox* root = box->root(); 781 return IntRect(x(), root->selectionTop() - y(), width(), root->selectionHeight()); 782 } 783 775 784 void RenderListMarker::paint(PaintInfo& paintInfo, int tx, int ty) 776 785 { … … 801 810 context->drawImage(m_image->image(this, marker.size()), style()->colorSpace(), marker.location()); 802 811 if (selectionState() != SelectionNone) { 803 // FIXME: selectionRect() is in absolute, not painting coordinates. 804 context->fillRect(selectionRect(), selectionBackgroundColor(), style()->colorSpace()); 812 IntRect selRect = localSelectionRect(); 813 selRect.move(tx, ty); 814 context->fillRect(selRect, selectionBackgroundColor(), style()->colorSpace()); 805 815 } 806 816 return; … … 814 824 815 825 if (selectionState() != SelectionNone) { 816 // FIXME: selectionRect() is in absolute, not painting coordinates. 817 context->fillRect(selectionRect(), selectionBackgroundColor(), style()->colorSpace()); 826 IntRect selRect = localSelectionRect(); 827 selRect.move(tx, ty); 828 context->fillRect(selRect, selectionBackgroundColor(), style()->colorSpace()); 818 829 } 819 830 -
trunk/WebCore/rendering/RenderListMarker.h
r46815 r53603 74 74 75 75 IntRect getRelativeMarkerRect(); 76 IntRect localSelectionRect(); 76 77 77 78 String m_text;
Note: See TracChangeset
for help on using the changeset viewer.