| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 | 388 |
| 389 const AtomicString& result = getAttribute(aria_checkedAttr); | 389 const AtomicString& result = getAttribute(aria_checkedAttr); |
| 390 if (equalIgnoringCase(result, "true")) | 390 if (equalIgnoringCase(result, "true")) |
| 391 return ButtonStateOn; | 391 return ButtonStateOn; |
| 392 if (equalIgnoringCase(result, "mixed")) | 392 if (equalIgnoringCase(result, "mixed")) |
| 393 return ButtonStateMixed; | 393 return ButtonStateMixed; |
| 394 | 394 |
| 395 return ButtonStateOff; | 395 return ButtonStateOff; |
| 396 } | 396 } |
| 397 | 397 |
| 398 const AtomicString& AXObject::placeholderValue() const | |
| 399 { | |
| 400 const AtomicString& placeholder = getAttribute(placeholderAttr); | |
| 401 if (!placeholder.isEmpty()) | |
| 402 return placeholder; | |
| 403 | |
| 404 return nullAtom; | |
| 405 } | |
| 406 | |
| 407 bool AXObject::ariaIsMultiline() const | 398 bool AXObject::ariaIsMultiline() const |
| 408 { | 399 { |
| 409 return equalIgnoringCase(getAttribute(aria_multilineAttr), "true"); | 400 return equalIgnoringCase(getAttribute(aria_multilineAttr), "true"); |
| 410 } | 401 } |
| 411 | 402 |
| 412 bool AXObject::ariaPressedIsPresent() const | 403 bool AXObject::ariaPressedIsPresent() const |
| 413 { | 404 { |
| 414 return !getAttribute(aria_pressedAttr).isEmpty(); | 405 return !getAttribute(aria_pressedAttr).isEmpty(); |
| 415 } | 406 } |
| 416 | 407 |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 return ToggleButtonRole; | 908 return ToggleButtonRole; |
| 918 if (ariaHasPopup()) | 909 if (ariaHasPopup()) |
| 919 return PopUpButtonRole; | 910 return PopUpButtonRole; |
| 920 // We don't contemplate RadioButtonRole, as it depends on the input | 911 // We don't contemplate RadioButtonRole, as it depends on the input |
| 921 // type. | 912 // type. |
| 922 | 913 |
| 923 return ButtonRole; | 914 return ButtonRole; |
| 924 } | 915 } |
| 925 | 916 |
| 926 } // namespace WebCore | 917 } // namespace WebCore |
| OLD | NEW |