Chromium Code Reviews| Index: Source/core/accessibility/AXNodeObject.cpp |
| diff --git a/Source/core/accessibility/AXNodeObject.cpp b/Source/core/accessibility/AXNodeObject.cpp |
| index f90ad0135b5ef1208f51cc0f546e02e4fbe81d61..a4dc7b8565dc39abcd7aa2b1360c649762d2b68e 100644 |
| --- a/Source/core/accessibility/AXNodeObject.cpp |
| +++ b/Source/core/accessibility/AXNodeObject.cpp |
| @@ -746,13 +746,13 @@ bool AXNodeObject::isReadOnly() const |
| bool AXNodeObject::isRequired() const |
| { |
| - if (equalIgnoringCase(getAttribute(aria_requiredAttr), "true")) |
| - return true; |
| - |
| Node* n = this->node(); |
| if (n && (n->isElementNode() && toElement(n)->isFormControlElement())) |
| return toHTMLFormControlElement(n)->isRequired(); |
| + if (equalIgnoringCase(getAttribute(aria_requiredAttr), "true")) |
|
shreeramk
2014/12/05 07:32:54
Spec says http://w3c.github.io/aria/aria/aria.html
|
| + return true; |
| + |
| return false; |
| } |