| Index: Source/core/paint/FileUploadControlPainter.cpp
|
| diff --git a/Source/core/paint/FileUploadControlPainter.cpp b/Source/core/paint/FileUploadControlPainter.cpp
|
| index 766241a6512b92383effb9d3ec2b8a2400fcfbbf..dcc69fc7fcd5936e057c85a4a92bc03cf7568dbb 100644
|
| --- a/Source/core/paint/FileUploadControlPainter.cpp
|
| +++ b/Source/core/paint/FileUploadControlPainter.cpp
|
| @@ -44,7 +44,7 @@ void FileUploadControlPainter::paintObject(const PaintInfo& paintInfo, const Lay
|
| if (!button)
|
| return;
|
|
|
| - int buttonWidth = (button && button->renderBox()) ? button->renderBox()->pixelSnappedWidth() : 0;
|
| + int buttonWidth = (button && button->layoutBox()) ? button->layoutBox()->pixelSnappedWidth() : 0;
|
| LayoutUnit buttonAndSpacingWidth = buttonWidth + RenderFileUploadControl::afterButtonSpacing;
|
| float textWidth = font.width(textRun);
|
| LayoutUnit textX;
|
|
|