Index: Source/core/paint/FileUploadControlPainter.cpp |
diff --git a/Source/core/paint/FileUploadControlPainter.cpp b/Source/core/paint/FileUploadControlPainter.cpp |
index 1fe0bb2b4e7e60b0ac402b9f66a51e0698694908..fff6fdb2b9882793ad6b29ebe4a54e89378d4ba9 100644 |
--- a/Source/core/paint/FileUploadControlPainter.cpp |
+++ b/Source/core/paint/FileUploadControlPainter.cpp |
@@ -56,7 +56,7 @@ void FileUploadControlPainter::paintObject(const PaintInfo& paintInfo, const Lay |
LayoutUnit textY = 0; |
// We want to match the button's baseline |
// FIXME: Make this work with transforms. |
- if (LayoutButton* buttonRenderer = toLayoutButton(button->renderer())) |
+ if (LayoutButton* buttonRenderer = toLayoutButton(button->layoutObject())) |
textY = paintOffset.y() + m_renderFileUploadControl.borderTop() + m_renderFileUploadControl.paddingTop() + buttonRenderer->baselinePosition(AlphabeticBaseline, true, HorizontalLine, PositionOnContainingLine); |
else |
textY = m_renderFileUploadControl.baselinePosition(AlphabeticBaseline, true, HorizontalLine, PositionOnContainingLine); |