Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: Source/modules/accessibility/AXLayoutObject.cpp

Issue 1032183003: AXObjectCacheImpl::postNotification shouldn't post on an ancestor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/modules/accessibility/AXMenuList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/modules/accessibility/AXMenuList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698