| Index: third_party/WebKit/Source/core/layout/LayoutFileUploadControl.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutFileUploadControl.cpp b/third_party/WebKit/Source/core/layout/LayoutFileUploadControl.cpp
|
| index a4510d488fdf303d2a1a83f782362c37583a89a7..03dd133144a39b7a0c590f4641ad6e280d155ff6 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutFileUploadControl.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutFileUploadControl.cpp
|
| @@ -119,13 +119,13 @@ void LayoutFileUploadControl::computePreferredLogicalWidths()
|
| computeIntrinsicLogicalWidths(m_minPreferredLogicalWidth, m_maxPreferredLogicalWidth);
|
|
|
| if (styleToUse.minWidth().isFixed() && styleToUse.minWidth().value() > 0) {
|
| - m_maxPreferredLogicalWidth = std::max(m_maxPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(styleToUse.minWidth().value()));
|
| - m_minPreferredLogicalWidth = std::max(m_minPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(styleToUse.minWidth().value()));
|
| + m_maxPreferredLogicalWidth = std::max(m_maxPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(LayoutUnit(styleToUse.minWidth().value())));
|
| + m_minPreferredLogicalWidth = std::max(m_minPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(LayoutUnit(styleToUse.minWidth().value())));
|
| }
|
|
|
| if (styleToUse.maxWidth().isFixed()) {
|
| - m_maxPreferredLogicalWidth = std::min(m_maxPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(styleToUse.maxWidth().value()));
|
| - m_minPreferredLogicalWidth = std::min(m_minPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(styleToUse.maxWidth().value()));
|
| + m_maxPreferredLogicalWidth = std::min(m_maxPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(LayoutUnit(styleToUse.maxWidth().value())));
|
| + m_minPreferredLogicalWidth = std::min(m_minPreferredLogicalWidth, adjustContentBoxLogicalWidthForBoxSizing(LayoutUnit(styleToUse.maxWidth().value())));
|
| }
|
|
|
| int toAdd = borderAndPaddingWidth();
|
|
|