Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10840
REGRESSION: Shadow of file upload button is clipped
* rendering/RenderFileUploadControl.cpp:
(WebCore::RenderFileUploadControl::paintObject): Add 2px to the clip
height to keep from clipping in the shadow
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17555
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-11-02 Adam Roben <aroben@apple.com>
+
+ Reviewed by Tim H, landed by Anders.
+
+ Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10840
+ REGRESSION: Shadow of file upload button is clipped
+
+ * rendering/RenderFileUploadControl.cpp:
+ (WebCore::RenderFileUploadControl::paintObject): Add 2px to the clip
+ height to keep from clipping in the shadow
+
2006-11-02 Eike Preuss <mail@eikepreuss.de>
Reviewed by Maciej, landed by Anders.
// Push a clip.
if (paintInfo.phase == PaintPhaseForeground || paintInfo.phase == PaintPhaseChildBlockBackgrounds) {
IntRect clipRect(tx + borderLeft(), ty + borderTop(),
- width() - borderLeft() - borderRight(), height() - borderBottom() - borderTop());
+ width() - borderLeft() - borderRight(), height() - borderBottom() - borderTop() + buttonShadowHeight);
if (clipRect.width() == 0 || clipRect.height() == 0)
return;
paintInfo.context->save();