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