| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 return true; | 586 return true; |
| 587 } | 587 } |
| 588 | 588 |
| 589 if (m_layoutObject->isBR()) | 589 if (m_layoutObject->isBR()) |
| 590 return false; | 590 return false; |
| 591 | 591 |
| 592 if (m_layoutObject->isText()) { | 592 if (m_layoutObject->isText()) { |
| 593 // Static text beneath MenuItems and MenuButtons are just reported along | 593 // Static text beneath MenuItems and MenuButtons are just reported along |
| 594 // with the menu item, so it's ignored on an individual level. | 594 // with the menu item, so it's ignored on an individual level. |
| 595 AXObject* parent = parentObjectUnignored(); | 595 AXObject* parent = parentObjectUnignored(); |
| 596 if (parent && (parent->ariaRoleAttribute() == MenuItemRole || | 596 if (parent && |
| 597 parent->ariaRoleAttribute() == MenuButtonRole)) { | 597 (parent->ariaRoleAttribute() == MenuItemRole || |
| 598 parent->ariaRoleAttribute() == MenuButtonRole)) { |
| 598 if (ignoredReasons) | 599 if (ignoredReasons) |
| 599 ignoredReasons->push_back( | 600 ignoredReasons->push_back( |
| 600 IgnoredReason(AXStaticTextUsedAsNameFor, parent)); | 601 IgnoredReason(AXStaticTextUsedAsNameFor, parent)); |
| 601 return true; | 602 return true; |
| 602 } | 603 } |
| 603 LayoutText* layoutText = toLayoutText(m_layoutObject); | 604 LayoutText* layoutText = toLayoutText(m_layoutObject); |
| 604 if (!layoutText->hasTextBoxes()) { | 605 if (!layoutText->hasTextBoxes()) { |
| 605 if (ignoredReasons) | 606 if (ignoredReasons) |
| 606 ignoredReasons->push_back(IgnoredReason(AXEmptyText)); | 607 ignoredReasons->push_back(IgnoredReason(AXEmptyText)); |
| 607 return true; | 608 return true; |
| (...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2482 | 2483 |
| 2483 bool AXLayoutObject::elementAttributeValue( | 2484 bool AXLayoutObject::elementAttributeValue( |
| 2484 const QualifiedName& attributeName) const { | 2485 const QualifiedName& attributeName) const { |
| 2485 if (!m_layoutObject) | 2486 if (!m_layoutObject) |
| 2486 return false; | 2487 return false; |
| 2487 | 2488 |
| 2488 return equalIgnoringCase(getAttribute(attributeName), "true"); | 2489 return equalIgnoringCase(getAttribute(attributeName), "true"); |
| 2489 } | 2490 } |
| 2490 | 2491 |
| 2491 } // namespace blink | 2492 } // namespace blink |
| OLD | NEW |