| Index: third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp b/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
|
| index d540356437baf2da64f9dffba4fa90535c3ab7d7..e91538e6be50fd332b45e0b5741d1ddb74a4a566 100644
|
| --- a/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp
|
| @@ -378,7 +378,7 @@ bool ThemePainterDefault::paintSearchFieldCancelButton(const LayoutObject& cance
|
| LayoutRect inputContentBox = inputLayoutBox.contentBoxRect();
|
|
|
| // Make sure the scaled button stays square and will fit in its parent's box.
|
| - LayoutUnit cancelButtonSize = std::min(inputContentBox.width(), std::min<LayoutUnit>(inputContentBox.height(), r.height()));
|
| + LayoutUnit cancelButtonSize = std::min(inputContentBox.width(), std::min(inputContentBox.height(), LayoutUnit(r.height())));
|
| // Calculate cancel button's coordinates relative to the input element.
|
| // Center the button vertically. Round up though, so if it has to be one pixel off-center, it will
|
| // be one pixel closer to the bottom of the field. This tends to look better with the text.
|
| @@ -406,7 +406,7 @@ bool ThemePainterDefault::paintSearchFieldResultsDecoration(const LayoutObject&
|
| LayoutRect inputContentBox = inputLayoutBox.contentBoxRect();
|
|
|
| // Make sure the scaled decoration stays square and will fit in its parent's box.
|
| - LayoutUnit magnifierSize = std::min(inputContentBox.width(), std::min<LayoutUnit>(inputContentBox.height(), r.height()));
|
| + LayoutUnit magnifierSize = std::min(inputContentBox.width(), std::min(inputContentBox.height(), LayoutUnit(r.height())));
|
| // Calculate decoration's coordinates relative to the input element.
|
| // Center the decoration vertically. Round up though, so if it has to be one pixel off-center, it will
|
| // be one pixel closer to the bottom of the field. This tends to look better with the text.
|
|
|