Changeset 41976 in webkit
- Timestamp:
- Mar 25, 2009 10:07:31 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r41972 r41976 1 2009-03-25 David Hyatt <hyatt@apple.com> 2 3 Reviewed by Eric Seidel 4 5 Test case for bug 23198. 6 7 * fast/borders/border-image-border-radius.html: Added. 8 * platform/mac/fast/borders/border-image-border-radius-expected.checksum: Added. 9 * platform/mac/fast/borders/border-image-border-radius-expected.png: Added. 10 * platform/mac/fast/borders/border-image-border-radius-expected.txt: Added. 11 1 12 2009-03-25 Darin Adler <darin@apple.com> 2 13 -
trunk/WebCore/ChangeLog
r41975 r41976 1 2009-03-25 David Hyatt <hyatt@apple.com> 2 3 Reviewed by Eric Seidel 4 5 Fix for bug 23198, border images should not clip to border radii. The border-image should just ignore 6 the border-radius, since the assumption is that any desired rounding will be built into the border-image 7 itself. 8 9 Note that I do not agree with this change, but I am matching the spec. 10 11 Added fast/borders/border-image-border-radius.html 12 13 * rendering/RenderBoxModelObject.cpp: 14 (WebCore::RenderBoxModelObject::paintNinePieceImage): 15 1 16 2009-03-25 Gustavo Noronha Silva <gns@gnome.org> 2 17 -
trunk/WebCore/rendering/RenderBoxModelObject.cpp
r41602 r41976 602 602 { 603 603 StyleImage* styleImage = ninePieceImage.image(); 604 if (!styleImage || !styleImage->canRender(style->effectiveZoom()))604 if (!styleImage) 605 605 return false; 606 606 … … 608 608 return true; // Never paint a nine-piece image incrementally, but don't paint the fallback borders either. 609 609 610 // If we have a border radius, the image gets clipped to the rounded rect. 611 bool clipped = false; 612 if (style->hasBorderRadius()) { 613 IntRect clipRect(tx, ty, w, h); 614 graphicsContext->save(); 615 graphicsContext->addRoundedRectClip(clipRect, style->borderTopLeftRadius(), style->borderTopRightRadius(), 616 style->borderBottomLeftRadius(), style->borderBottomRightRadius()); 617 clipped = true; 618 } 610 if (!styleImage->canRender(style->effectiveZoom())) 611 return false; 619 612 620 613 // FIXME: border-image is broken with full page zooming when tiling has to happen, since the tiling function … … 712 705 IntRect(leftSlice, topSlice, imageWidth - rightSlice - leftSlice, imageHeight - topSlice - bottomSlice), 713 706 (Image::TileRule)hRule, (Image::TileRule)vRule, op); 714 715 // Clear the clip for the border radius.716 if (clipped)717 graphicsContext->restore();718 707 719 708 return true;
Note: See TracChangeset
for help on using the changeset viewer.