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 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1732 break; | 1732 break; |
1733 | 1733 |
1734 containerParent = containerParent->parentObject(); | 1734 containerParent = containerParent->parentObject(); |
1735 } | 1735 } |
1736 | 1736 |
1737 // Post that the row count changed. | 1737 // Post that the row count changed. |
1738 if (containerParent) | 1738 if (containerParent) |
1739 axObjectCache()->postNotification(containerParent, document(), AXObjectC
acheImpl::AXRowCountChanged, true); | 1739 axObjectCache()->postNotification(containerParent, document(), AXObjectC
acheImpl::AXRowCountChanged, true); |
1740 | 1740 |
1741 // Post that the specific row either collapsed or expanded. | 1741 // Post that the specific row either collapsed or expanded. |
1742 if (roleValue() == RowRole || roleValue() == TreeItemRole) | 1742 AccessibilityExpanded expanded = isExpanded(); |
1743 axObjectCache()->postNotification(this, document(), isExpanded() ? AXObj
ectCacheImpl::AXRowExpanded : AXObjectCacheImpl::AXRowCollapsed, true); | 1743 if (!expanded) |
| 1744 return; |
| 1745 |
| 1746 if (roleValue() == RowRole || roleValue() == TreeItemRole) { |
| 1747 AXObjectCacheImpl::AXNotification notification = AXObjectCacheImpl::AXRo
wExpanded; |
| 1748 if (expanded == ExpandedCollapsed) |
| 1749 notification = AXObjectCacheImpl::AXRowCollapsed; |
| 1750 |
| 1751 axObjectCache()->postNotification(this, document(), notification, true); |
| 1752 } |
1744 } | 1753 } |
1745 | 1754 |
1746 void AXRenderObject::textChanged() | 1755 void AXRenderObject::textChanged() |
1747 { | 1756 { |
1748 if (!m_renderer) | 1757 if (!m_renderer) |
1749 return; | 1758 return; |
1750 | 1759 |
1751 Settings* settings = document()->settings(); | 1760 Settings* settings = document()->settings(); |
1752 if (settings && settings->inlineTextBoxAccessibilityEnabled() && roleValue()
== StaticTextRole) | 1761 if (settings && settings->inlineTextBoxAccessibilityEnabled() && roleValue()
== StaticTextRole) |
1753 childrenChanged(); | 1762 childrenChanged(); |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2397 if (label && label->renderer()) { | 2406 if (label && label->renderer()) { |
2398 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2407 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
2399 result.unite(labelRect); | 2408 result.unite(labelRect); |
2400 } | 2409 } |
2401 } | 2410 } |
2402 | 2411 |
2403 return result; | 2412 return result; |
2404 } | 2413 } |
2405 | 2414 |
2406 } // namespace blink | 2415 } // namespace blink |
OLD | NEW |