Reviewed by Tim H, landed by Anders.
[WebKit-https.git] / WebCore / rendering / RenderFileUploadControl.cpp
index e657967e07c8f99bf860cecb24f23266316a9f6c..f6b3772941ac17efe44910a068e22ab8d329d244 100644 (file)
@@ -144,7 +144,7 @@ void RenderFileUploadControl::paintObject(PaintInfo& paintInfo, int tx, int ty)
     // 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();