-
morrita@google.com authored
Reviewed by Eric Seidel. REGRESSION: Inset shadow with too large border radius misses rounded corner. https://bugs.webkit.org/show_bug.cgi?id=52800 * fast/box-shadow/inset-with-extraordinary-radii-and-border.html: Added. * platform/mac/fast/box-shadow/inset-with-extraordinary-radii-and-border-expected.checksum: Added. * platform/mac/fast/box-shadow/inset-with-extraordinary-radii-and-border-expected.png: Added. * platform/mac/fast/box-shadow/inset-with-extraordinary-radii-and-border-expected.txt: Added. 2011-01-23 MORITA Hajime <morrita@google.com> Reviewed by Eric Seidel. REGRESSION: Inset shadow with too large border radius misses rounded corner. https://bugs.webkit.org/show_bug.cgi?id=52800 The refactoring on r76083 broke the invariant between border IntRect and its radii because RoundedIntRect::setRect() is called after getRoundedInnerBorderWithBorderWidths(), which enforces the invariant. Th rounded-rect clipping code verifies the invariant, and discard the invalid radii, that results broken paintings. This change moved setRect() before getRoundedInnerBorderWithBorderWidths() not to modify the valid RoundedIntRect value. Test: fast/box-shadow/inset-with-extraordinary-radii-and-border.html * rendering/RenderBoxModelObject.cpp: (WebCore::RenderBoxModelObject::paintBoxShadow): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2d33a85b