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

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

Issue 1837963002: Use fallback in LayoutThemeMobile on mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 4 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutThemeMobile.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutThemeMobile.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutThemeMobile.cpp b/third_party/WebKit/Source/core/layout/LayoutThemeMobile.cpp
index f93224325d3b13c225da8db1b89879a2bea0820b..b57673fea4ae3430649aea56436e681a70451cbb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutThemeMobile.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutThemeMobile.cpp
@@ -76,4 +76,15 @@ void LayoutThemeMobile::adjustInnerSpinButtonStyle(ComputedStyle& style) const
}
}
+bool LayoutThemeMobile::shouldUseFallbackTheme(const ComputedStyle& style) const
+{
+#if OS(MACOSX)
+ // Mac WebThemeEngine cannot handle these controls.
+ ControlPart part = style.appearance();
+ if (part == CheckboxPart || part == RadioPart)
+ return true;
+#endif
+ return LayoutThemeDefault::shouldUseFallbackTheme(style);
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutThemeMobile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698