| Index: third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp b/third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp
|
| index 8220fc72029200de2a92cdc35730ed144811a750..fa91d2abe6c28ece737bda22db96579851a8bbab 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp
|
| @@ -218,6 +218,7 @@ void LayoutThemeDefault::setSelectionColors(
|
| m_inactiveSelectionForegroundColor = inactiveForegroundColor;
|
| }
|
|
|
| +#if !USE(NEW_THEME)
|
| void LayoutThemeDefault::setCheckboxSize(ComputedStyle& style) const
|
| {
|
| // If the width and height are both specified, then we have nothing to do.
|
| @@ -230,7 +231,9 @@ void LayoutThemeDefault::setCheckboxSize(ComputedStyle& style) const
|
| size.setHeight(size.height() * zoomLevel);
|
| setSizeIfAuto(style, size);
|
| }
|
| +#endif // !USE(NEW_THEME)
|
|
|
| +#if !USE(NEW_THEME)
|
| void LayoutThemeDefault::setRadioSize(ComputedStyle& style) const
|
| {
|
| // If the width and height are both specified, then we have nothing to do.
|
| @@ -243,7 +246,9 @@ void LayoutThemeDefault::setRadioSize(ComputedStyle& style) const
|
| size.setHeight(size.height() * zoomLevel);
|
| setSizeIfAuto(style, size);
|
| }
|
| +#endif // !USE(NEW_THEME)
|
|
|
| +#if !USE(NEW_THEME)
|
| void LayoutThemeDefault::adjustInnerSpinButtonStyle(ComputedStyle& style) const
|
| {
|
| IntSize size = Platform::current()->themeEngine()->getSize(WebThemeEngine::PartInnerSpinButton);
|
| @@ -251,6 +256,7 @@ void LayoutThemeDefault::adjustInnerSpinButtonStyle(ComputedStyle& style) const
|
| style.setWidth(Length(size.width(), Fixed));
|
| style.setMinWidth(Length(size.width(), Fixed));
|
| }
|
| +#endif // !USE(NEW_THEME)
|
|
|
| bool LayoutThemeDefault::shouldOpenPickerWithF4Key() const
|
| {
|
| @@ -311,6 +317,7 @@ IntRect center(const IntRect& original, int width, int height)
|
| return IntRect(x, y, width, height);
|
| }
|
|
|
| +#if !USE(NEW_THEME)
|
| void LayoutThemeDefault::adjustButtonStyle(ComputedStyle& style) const
|
| {
|
| if (style.appearance() == PushButtonPart) {
|
| @@ -318,6 +325,7 @@ void LayoutThemeDefault::adjustButtonStyle(ComputedStyle& style) const
|
| style.setLineHeight(ComputedStyle::initialLineHeight());
|
| }
|
| }
|
| +#endif // !USE(NEW_THEME)
|
|
|
| void LayoutThemeDefault::adjustSearchFieldStyle(ComputedStyle& style) const
|
| {
|
|
|