| 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 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1763 } | 1763 } |
| 1764 | 1764 |
| 1765 if (foundParent) | 1765 if (foundParent) |
| 1766 break; | 1766 break; |
| 1767 | 1767 |
| 1768 containerParent = containerParent->parentObject(); | 1768 containerParent = containerParent->parentObject(); |
| 1769 } | 1769 } |
| 1770 | 1770 |
| 1771 // Post that the row count changed. | 1771 // Post that the row count changed. |
| 1772 if (containerParent) | 1772 if (containerParent) |
| 1773 axObjectCache()->postNotification(containerParent, document(), AXObjectC
acheImpl::AXRowCountChanged, true); | 1773 axObjectCache()->postNotification(containerParent, AXObjectCacheImpl::AX
RowCountChanged, true); |
| 1774 | 1774 |
| 1775 // Post that the specific row either collapsed or expanded. | 1775 // Post that the specific row either collapsed or expanded. |
| 1776 AccessibilityExpanded expanded = isExpanded(); | 1776 AccessibilityExpanded expanded = isExpanded(); |
| 1777 if (!expanded) | 1777 if (!expanded) |
| 1778 return; | 1778 return; |
| 1779 | 1779 |
| 1780 if (roleValue() == RowRole || roleValue() == TreeItemRole) { | 1780 if (roleValue() == RowRole || roleValue() == TreeItemRole) { |
| 1781 AXObjectCacheImpl::AXNotification notification = AXObjectCacheImpl::AXRo
wExpanded; | 1781 AXObjectCacheImpl::AXNotification notification = AXObjectCacheImpl::AXRo
wExpanded; |
| 1782 if (expanded == ExpandedCollapsed) | 1782 if (expanded == ExpandedCollapsed) |
| 1783 notification = AXObjectCacheImpl::AXRowCollapsed; | 1783 notification = AXObjectCacheImpl::AXRowCollapsed; |
| 1784 | 1784 |
| 1785 axObjectCache()->postNotification(this, document(), notification, true); | 1785 axObjectCache()->postNotification(this, notification, true); |
| 1786 } | 1786 } |
| 1787 } | 1787 } |
| 1788 | 1788 |
| 1789 void AXLayoutObject::textChanged() | 1789 void AXLayoutObject::textChanged() |
| 1790 { | 1790 { |
| 1791 if (!m_layoutObject) | 1791 if (!m_layoutObject) |
| 1792 return; | 1792 return; |
| 1793 | 1793 |
| 1794 Settings* settings = document()->settings(); | 1794 Settings* settings = document()->settings(); |
| 1795 if (settings && settings->inlineTextBoxAccessibilityEnabled() && roleValue()
== StaticTextRole) | 1795 if (settings && settings->inlineTextBoxAccessibilityEnabled() && roleValue()
== StaticTextRole) |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2396 if (label && label->layoutObject()) { | 2396 if (label && label->layoutObject()) { |
| 2397 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2397 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
| 2398 result.unite(labelRect); | 2398 result.unite(labelRect); |
| 2399 } | 2399 } |
| 2400 } | 2400 } |
| 2401 | 2401 |
| 2402 return result; | 2402 return result; |
| 2403 } | 2403 } |
| 2404 | 2404 |
| 2405 } // namespace blink | 2405 } // namespace blink |
| OLD | NEW |