Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp

Issue 1690493002: Switch to LayoutThemeMobile when emulating mobile device in DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more mac compile Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
{

Powered by Google App Engine
This is Rietveld 408576698