<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)
commit33b755d6479cd73bd8ff022de49c5616cd71938a
treebb41b34957d319cfce4a425e5d8f1419c57dac58
parente2738f7bd4e02c3c71660e4fbfa58cbb0acc38fc
<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: http://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