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

Unified Diff: Source/core/layout/LayoutThemeMac.mm

Issue 1311533004: Mac: Fallback to CSS rendering if buttons has non-100% scale. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | « LayoutTests/platform/mac/fast/forms/submit/submit-appearance-basic-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutThemeMac.mm
diff --git a/Source/core/layout/LayoutThemeMac.mm b/Source/core/layout/LayoutThemeMac.mm
index 618ee12ba613e0fe76ac4ac2705e656d0d24df26..c5e44983674d5648d1803f7565e36b9839b398fc 100644
--- a/Source/core/layout/LayoutThemeMac.mm
+++ b/Source/core/layout/LayoutThemeMac.mm
@@ -458,10 +458,18 @@ bool LayoutThemeMac::isControlStyled(const ComputedStyle& style) const
// like the control is styled.
if (style.appearance() == MenulistPart && style.effectiveZoom() != 1.0f)
return true;
- // FIXME: NSSearchFieldCell doesn't work well when scaled.
- if (style.appearance() == SearchFieldPart && style.effectiveZoom() != 1)
- return true;
-
+ // Some other cells don't work well when scaled.
+ if (style.effectiveZoom() != 1) {
+ switch (style.appearance()) {
+ case ButtonPart:
+ case PushButtonPart:
+ case SearchFieldPart:
+ case SquareButtonPart:
+ return true;
+ default:
+ break;
+ }
+ }
return LayoutTheme::isControlStyled(style);
}
« no previous file with comments | « LayoutTests/platform/mac/fast/forms/submit/submit-appearance-basic-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698