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

Unified Diff: Source/platform/mac/ThemeMac.mm

Issue 394433002: Add :indeterminate pseudo class support for radio button input (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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: Source/platform/mac/ThemeMac.mm
diff --git a/Source/platform/mac/ThemeMac.mm b/Source/platform/mac/ThemeMac.mm
index 4e702e1b7071e584c8c439a3175eed4eda8ffcbb..9d37a4f19e3264f0028eb73136ff5d61e73e04bb 100644
--- a/Source/platform/mac/ThemeMac.mm
+++ b/Source/platform/mac/ThemeMac.mm
@@ -349,6 +349,8 @@ static NSButtonCell *radio(ControlStates states, const IntRect& zoomedRect, floa
setControlSize(radioCell, radioSizes(), zoomedRect.size(), zoomFactor);
// Update the various states we respond to.
+ // Cocoa draws NSMixedState NSRadioButton as NSOnState so we don't want that.
+ states &= ~IndeterminateControlState;
tkent 2014/07/15 01:31:50 Do we have a pixel test for indeterminate radio bu
keishi 2014/07/15 03:05:30 All elements in radio-appearance-basic.html are no
updateStates(radioCell, states);
return radioCell;
« Source/core/html/forms/RadioInputType.h ('K') | « Source/core/html/forms/RadioInputType.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698