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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 | 1051 |
1052 if (isHTMLTextAreaElement(*node)) | 1052 if (isHTMLTextAreaElement(*node)) |
1053 return toHTMLTextAreaElement(*node).isReadOnly(); | 1053 return toHTMLTextAreaElement(*node).isReadOnly(); |
1054 | 1054 |
1055 if (isHTMLInputElement(*node)) { | 1055 if (isHTMLInputElement(*node)) { |
1056 HTMLInputElement& input = toHTMLInputElement(*node); | 1056 HTMLInputElement& input = toHTMLInputElement(*node); |
1057 if (input.isTextField()) | 1057 if (input.isTextField()) |
1058 return input.isReadOnly(); | 1058 return input.isReadOnly(); |
1059 } | 1059 } |
1060 | 1060 |
1061 return !node->hasEditableStyle(); | 1061 return !hasEditableStyle(*node); |
1062 } | 1062 } |
1063 | 1063 |
1064 bool AXNodeObject::isRequired() const | 1064 bool AXNodeObject::isRequired() const |
1065 { | 1065 { |
1066 Node* n = this->getNode(); | 1066 Node* n = this->getNode(); |
1067 if (n && (n->isElementNode() && toElement(n)->isFormControlElement()) && has
Attribute(requiredAttr)) | 1067 if (n && (n->isElementNode() && toElement(n)->isFormControlElement()) && has
Attribute(requiredAttr)) |
1068 return toHTMLFormControlElement(n)->isRequired(); | 1068 return toHTMLFormControlElement(n)->isRequired(); |
1069 | 1069 |
1070 if (equalIgnoringCase(getAttribute(aria_requiredAttr), "true")) | 1070 if (equalIgnoringCase(getAttribute(aria_requiredAttr), "true")) |
1071 return true; | 1071 return true; |
(...skipping 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2840 return placeholder; | 2840 return placeholder; |
2841 } | 2841 } |
2842 | 2842 |
2843 DEFINE_TRACE(AXNodeObject) | 2843 DEFINE_TRACE(AXNodeObject) |
2844 { | 2844 { |
2845 visitor->trace(m_node); | 2845 visitor->trace(m_node); |
2846 AXObject::trace(visitor); | 2846 AXObject::trace(visitor); |
2847 } | 2847 } |
2848 | 2848 |
2849 } // namespace blink | 2849 } // namespace blink |
OLD | NEW |