Changeset 39073 in webkit
- Timestamp:
- Dec 6, 2008 5:03:55 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r39069 r39073 1 2008-12-06 Simon Fraser <simon.fraser@apple.com> 2 3 Reviewed by Dan Bernstein 4 5 https://bugs.webkit.org/show_bug.cgi?id=15739 6 7 Testcase for selection painting on a transformed, replaced element. 8 9 * fast/replaced/selection-rect-transform.html: Added. 10 * platform/mac/fast/replaced/selection-rect-transform-expected.checksum: Added. 11 * platform/mac/fast/replaced/selection-rect-transform-expected.png: Added. 12 * platform/mac/fast/replaced/selection-rect-transform-expected.txt: Added. 13 1 14 2008-12-06 Simon Fraser <simon.fraser@apple.com> 2 15 -
trunk/WebCore/ChangeLog
r39069 r39073 1 2008-12-06 Simon Fraser <simon.fraser@apple.com> 2 3 Reviewed by Dan Bernstein 4 5 https://bugs.webkit.org/show_bug.cgi?id=15739 6 7 When painting the selection on a replaced element, paint 8 using local coordinates so that the selection is correctly 9 painted for transformed elements. 10 11 Test: fast/replaced/selection-rect-transform.html 12 13 * rendering/RenderReplaced.cpp: 14 (WebCore::RenderReplaced::paint): 15 1 16 2008-12-06 Simon Fraser <simon.fraser@apple.com> 2 17 -
trunk/WebCore/rendering/RenderReplaced.cpp
r38922 r39073 140 140 paintReplaced(paintInfo, tx, ty); 141 141 142 if (drawSelectionTint) 143 paintInfo.context->fillRect(selectionRect(), selectionBackgroundColor()); 142 if (drawSelectionTint) { 143 IntRect selectionPaintingRect = localSelectionRect(); 144 selectionPaintingRect.move(tx, ty); 145 paintInfo.context->fillRect(selectionPaintingRect, selectionBackgroundColor()); 146 } 144 147 } 145 148
Note: See TracChangeset
for help on using the changeset viewer.