OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 | 859 |
860 if (!node() || !node()->hasTagName(inputTag)) | 860 if (!node() || !node()->hasTagName(inputTag)) |
861 return; | 861 return; |
862 | 862 |
863 HTMLInputElement* input = toHTMLInputElement(node()); | 863 HTMLInputElement* input = toHTMLInputElement(node()); |
864 const AtomicString& type = input->getAttribute(typeAttr); | 864 const AtomicString& type = input->getAttribute(typeAttr); |
865 if (!equalIgnoringCase(type, "color")) | 865 if (!equalIgnoringCase(type, "color")) |
866 return; | 866 return; |
867 | 867 |
868 // HTMLInputElement::value always returns a string parseable by Color(). | 868 // HTMLInputElement::value always returns a string parseable by Color(). |
869 Color color(input->value()); | 869 StyleColor color(input->value()); |
870 r = color.red(); | 870 r = color.red(); |
871 g = color.green(); | 871 g = color.green(); |
872 b = color.blue(); | 872 b = color.blue(); |
873 } | 873 } |
874 | 874 |
875 String AccessibilityNodeObject::valueDescription() const | 875 String AccessibilityNodeObject::valueDescription() const |
876 { | 876 { |
877 if (!isARIARange()) | 877 if (!isARIARange()) |
878 return String(); | 878 return String(); |
879 | 879 |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1666 useTextUnderElement = true; | 1666 useTextUnderElement = true; |
1667 | 1667 |
1668 if (useTextUnderElement) { | 1668 if (useTextUnderElement) { |
1669 String text = textUnderElement(); | 1669 String text = textUnderElement(); |
1670 if (!text.isEmpty()) | 1670 if (!text.isEmpty()) |
1671 textOrder.append(AccessibilityText(text, ChildrenText)); | 1671 textOrder.append(AccessibilityText(text, ChildrenText)); |
1672 } | 1672 } |
1673 } | 1673 } |
1674 | 1674 |
1675 } // namespace WebCore | 1675 } // namespace WebCore |
OLD | NEW |