| 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 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1345 return AXObject::colorValue(); | 1345 return AXObject::colorValue(); |
| 1346 | 1346 |
| 1347 HTMLInputElement* input = toHTMLInputElement(getNode()); | 1347 HTMLInputElement* input = toHTMLInputElement(getNode()); |
| 1348 const AtomicString& type = input->getAttribute(typeAttr); | 1348 const AtomicString& type = input->getAttribute(typeAttr); |
| 1349 if (!equalIgnoringCase(type, "color")) | 1349 if (!equalIgnoringCase(type, "color")) |
| 1350 return AXObject::colorValue(); | 1350 return AXObject::colorValue(); |
| 1351 | 1351 |
| 1352 // HTMLInputElement::value always returns a string parseable by Color. | 1352 // HTMLInputElement::value always returns a string parseable by Color. |
| 1353 Color color; | 1353 Color color; |
| 1354 bool success = color.setFromString(input->value()); | 1354 bool success = color.setFromString(input->value()); |
| 1355 ASSERT_UNUSED(success, success); | 1355 DCHECK(success); |
| 1356 return color.rgb(); | 1356 return color.rgb(); |
| 1357 } | 1357 } |
| 1358 | 1358 |
| 1359 AriaCurrentState AXNodeObject::ariaCurrentState() const { | 1359 AriaCurrentState AXNodeObject::ariaCurrentState() const { |
| 1360 if (!hasAttribute(aria_currentAttr)) | 1360 if (!hasAttribute(aria_currentAttr)) |
| 1361 return AXObject::ariaCurrentState(); | 1361 return AXObject::ariaCurrentState(); |
| 1362 | 1362 |
| 1363 const AtomicString& attributeValue = getAttribute(aria_currentAttr); | 1363 const AtomicString& attributeValue = getAttribute(aria_currentAttr); |
| 1364 if (attributeValue.isEmpty() || equalIgnoringCase(attributeValue, "false")) | 1364 if (attributeValue.isEmpty() || equalIgnoringCase(attributeValue, "false")) |
| 1365 return AriaCurrentStateFalse; | 1365 return AriaCurrentStateFalse; |
| (...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2952 } | 2952 } |
| 2953 return placeholder; | 2953 return placeholder; |
| 2954 } | 2954 } |
| 2955 | 2955 |
| 2956 DEFINE_TRACE(AXNodeObject) { | 2956 DEFINE_TRACE(AXNodeObject) { |
| 2957 visitor->trace(m_node); | 2957 visitor->trace(m_node); |
| 2958 AXObject::trace(visitor); | 2958 AXObject::trace(visitor); |
| 2959 } | 2959 } |
| 2960 | 2960 |
| 2961 } // namespace blink | 2961 } // namespace blink |
| OLD | NEW |