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

Side by Side Diff: Source/core/html/forms/InputType.cpp

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, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/forms/InputType.h ('k') | Source/core/html/forms/RadioButtonGroupScope.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
8 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 9 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
10 * 10 *
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 bool InputType::hasLegalLinkAttribute(const QualifiedName&) const 763 bool InputType::hasLegalLinkAttribute(const QualifiedName&) const
764 { 764 {
765 return false; 765 return false;
766 } 766 }
767 767
768 const QualifiedName& InputType::subResourceAttributeName() const 768 const QualifiedName& InputType::subResourceAttributeName() const
769 { 769 {
770 return QualifiedName::null(); 770 return QualifiedName::null();
771 } 771 }
772 772
773 bool InputType::supportsIndeterminateAppearance() const 773 bool InputType::shouldAppearIndeterminate() const
774 { 774 {
775 return false; 775 return false;
776 } 776 }
777 777
778 bool InputType::supportsInputModeAttribute() const 778 bool InputType::supportsInputModeAttribute() const
779 { 779 {
780 return false; 780 return false;
781 } 781 }
782 782
783 bool InputType::supportsSelectionAPI() const 783 bool InputType::supportsSelectionAPI() const
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 StepRange InputType::createStepRange(AnyStepHandling anyStepHandling, const Deci mal& stepBaseDefault, const Decimal& minimumDefault, const Decimal& maximumDefau lt, const StepRange::StepDescription& stepDescription) const 976 StepRange InputType::createStepRange(AnyStepHandling anyStepHandling, const Deci mal& stepBaseDefault, const Decimal& minimumDefault, const Decimal& maximumDefau lt, const StepRange::StepDescription& stepDescription) const
977 { 977 {
978 const Decimal stepBase = findStepBase(stepBaseDefault); 978 const Decimal stepBase = findStepBase(stepBaseDefault);
979 const Decimal minimum = parseToNumber(element().fastGetAttribute(minAttr), m inimumDefault); 979 const Decimal minimum = parseToNumber(element().fastGetAttribute(minAttr), m inimumDefault);
980 const Decimal maximum = parseToNumber(element().fastGetAttribute(maxAttr), m aximumDefault); 980 const Decimal maximum = parseToNumber(element().fastGetAttribute(maxAttr), m aximumDefault);
981 const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element().fastGetAttribute(stepAttr)); 981 const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element().fastGetAttribute(stepAttr));
982 return StepRange(stepBase, minimum, maximum, step, stepDescription); 982 return StepRange(stepBase, minimum, maximum, step, stepDescription);
983 } 983 }
984 984
985 } // namespace blink 985 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/forms/InputType.h ('k') | Source/core/html/forms/RadioButtonGroupScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698