199
200
textX = contentLeft + contentWidth() - buttonAndIconWidth - style()->font().width(textRun);
200
201
// We want to match the button's baseline
202
203
int textY = buttonRenderer->absoluteBoundingBoxRect().y()
203
204
+ buttonRenderer->marginTop() + buttonRenderer->borderTop() + buttonRenderer->paddingTop()
204
205
+ buttonRenderer->baselinePosition(true, false);
207
207
paintInfo.context->setFillColor(style()->color());
210
paintInfo.context->drawBidiText(style()->font(), textRun, IntPoint(textX, textY));
212
212
if (m_fileChooser->icon()) {
213
213
// Determine where the icon should be placed
214
214
int iconY = ty + borderTop() + paddingTop() + (contentHeight() - iconHeight) / 2;
216
216
if (style()->direction() == LTR)
222
222
m_fileChooser->icon()->paint(paintInfo.context, IntRect(iconX, iconY, iconWidth, iconHeight));