<rdar://problem/9335973> REGRESSION (r84341): Buttons in the Mac App store are render...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Apr 2011 18:29:06 +0000 (18:29 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Apr 2011 18:29:06 +0000 (18:29 +0000)
commit2101298a27a96cc68cd2a941884ec5c3fd9a2d5c
treebb41b34957d319cfce4a425e5d8f1419c57dac58
parent21064f8630f433e7ace64d06bf9e880409422460
<rdar://problem/9335973> REGRESSION (r84341): Buttons in the Mac App store are rendered incorrectly
https://bugs.webkit.org/show_bug.cgi?id=59622

Reviewed by Anders Carlsson.

Source/WebCore:

Test: fast/borders/border-image-trumps-radius.html

* rendering/RenderBox.cpp:
(WebCore::RenderBox::determineBackgroundBleedAvoidance): If there is a renderable, loaded border
image, then border radius is ignored, so no bleed avoidance is needed.
* rendering/RenderObject.cpp:
(WebCore::RenderObject::borderImageIsLoadedAndCanBeRendered): Added. Moved some logic here from...
(WebCore::RenderObject::mustRepaintBackgroundOrBorder): ...here.
* rendering/RenderObject.h:

LayoutTests:

* fast/borders/border-image-trumps-radius-expected.png: Added.
* fast/borders/border-image-trumps-radius-expected.txt: Added.
* fast/borders/border-image-trumps-radius.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@85067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/borders/border-image-trumps-radius-expected.png [new file with mode: 0644]
LayoutTests/fast/borders/border-image-trumps-radius-expected.txt [new file with mode: 0644]
LayoutTests/fast/borders/border-image-trumps-radius.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBox.cpp
Source/WebCore/rendering/RenderObject.cpp
Source/WebCore/rendering/RenderObject.h