Index: Source/core/rendering/RenderFileUploadControl.cpp |
diff --git a/Source/core/rendering/RenderFileUploadControl.cpp b/Source/core/rendering/RenderFileUploadControl.cpp |
index c83c865e4c05b433cb1cfdc1696c9c124278165a..6fb6dae18f2af3cde530020ff69a2e85fa723264 100644 |
--- a/Source/core/rendering/RenderFileUploadControl.cpp |
+++ b/Source/core/rendering/RenderFileUploadControl.cpp |
@@ -125,9 +125,9 @@ void RenderFileUploadControl::paintObject(PaintInfo& paintInfo, const LayoutPoin |
// We want to match the button's baseline |
// FIXME: Make this work with transforms. |
if (RenderButton* buttonRenderer = toRenderButton(button->renderer())) |
- textY = paintOffset.y() + borderTop() + paddingTop() + buttonRenderer->baselinePosition(AlphabeticBaseline, true, HorizontalLine, PositionOnContainingLine); |
+ textY = paintOffset.y() + borderTop() + paddingTop() + buttonRenderer->baselinePosition(AlphabeticBaseline, FirstLineStyle, HorizontalLine, PositionOnContainingLine); |
else |
- textY = baselinePosition(AlphabeticBaseline, true, HorizontalLine, PositionOnContainingLine); |
+ textY = baselinePosition(AlphabeticBaseline, FirstLineStyle, HorizontalLine, PositionOnContainingLine); |
TextRunPaintInfo textRunPaintInfo(textRun); |
// FIXME: Shouldn't these offsets be rounded? crbug.com/350474 |
textRunPaintInfo.bounds = FloatRect(textX.toFloat(), textY.toFloat() - style()->fontMetrics().ascent(), |