Changeset 74673 in webkit
- Timestamp:
- Dec 26, 2010 8:42:01 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r74667 r74673 1 2010-12-26 MORITA Hajime <morrita@google.com> 2 3 Reviewed by Dan Bernstein. 4 5 For box-shadow, non-primary shadows should have specified radii. 6 https://bugs.webkit.org/show_bug.cgi?id=51386 7 8 * fast/box-shadow/spread-multiple-normal-expected.txt: Added. 9 * fast/box-shadow/spread-multiple-normal.html: Added. 10 * fast/box-shadow/spread-multiple-normal-expected.checksum: Added. 11 * fast/box-shadow/spread-multiple-normal-expected.png: Added. 12 1 13 2010-12-26 Kenneth Russell <kbr@google.com> 2 14 -
trunk/WebCore/ChangeLog
r74671 r74673 1 2010-12-26 MORITA Hajime <morrita@google.com> 2 3 Reviewed by Dan Bernstein. 4 5 For box-shadow, non-primary shadows should have specified radii. 6 https://bugs.webkit.org/show_bug.cgi?id=51386 7 8 On paintBoxShadow(), the spread value accidentally accumulated accidentally 9 during the loop, which should be applied individually for radius of each shadow. 10 This change makes the radii for rects computed for each shadow. 11 12 Test: fast/box-shadow/spread-multiple-normal.html 13 14 * rendering/RenderBoxModelObject.cpp: 15 (WebCore::RenderBoxModelObject::paintBoxShadow): 16 1 17 2010-12-26 Patrick Gansterer <paroga@webkit.org> 2 18 -
trunk/WebCore/rendering/RenderBoxModelObject.cpp
r73729 r74673 1713 1713 IntSize bottomRightToClipOut = bottomRight; 1714 1714 1715 IntSize topLeftToFill = topLeft; 1716 IntSize topRightToFill = topRight; 1717 IntSize bottomLeftToFill = bottomLeft; 1718 IntSize bottomRightToFill = bottomRight; 1715 1719 if (shadowSpread < 0) 1716 uniformlyExpandBorderRadii(shadowSpread, topLeft , topRight, bottomLeft, bottomRight);1720 uniformlyExpandBorderRadii(shadowSpread, topLeftToFill, topRightToFill, bottomLeftToFill, bottomRightToFill); 1717 1721 1718 1722 // If the box is opaque, it is unnecessary to clip it out. However, doing so saves time … … 1726 1730 if (!rectToClipOut.isEmpty()) 1727 1731 context->clipOutRoundedRect(rectToClipOut, topLeftToClipOut, topRightToClipOut, bottomLeftToClipOut, bottomRightToClipOut); 1728 context->fillRoundedRect(fillRect, topLeft , topRight, bottomLeft, bottomRight, Color::black, s->colorSpace());1732 context->fillRoundedRect(fillRect, topLeftToFill, topRightToFill, bottomLeftToFill, bottomRightToFill, Color::black, s->colorSpace()); 1729 1733 } else { 1730 1734 IntRect rectToClipOut = rect;
Note: See TracChangeset
for help on using the changeset viewer.