| 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 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1764 // Find if a parent of this object should handle aria-expanded changes. | 1764 // Find if a parent of this object should handle aria-expanded changes. |
| 1765 AXObject* containerParent = this->parentObject(); | 1765 AXObject* containerParent = this->parentObject(); |
| 1766 while (containerParent) { | 1766 while (containerParent) { |
| 1767 bool foundParent = false; | 1767 bool foundParent = false; |
| 1768 | 1768 |
| 1769 switch (containerParent->roleValue()) { | 1769 switch (containerParent->roleValue()) { |
| 1770 case TreeRole: | 1770 case TreeRole: |
| 1771 case TreeGridRole: | 1771 case TreeGridRole: |
| 1772 case GridRole: | 1772 case GridRole: |
| 1773 case TableRole: | 1773 case TableRole: |
| 1774 case BrowserRole: | |
| 1775 foundParent = true; | 1774 foundParent = true; |
| 1776 break; | 1775 break; |
| 1777 default: | 1776 default: |
| 1778 break; | 1777 break; |
| 1779 } | 1778 } |
| 1780 | 1779 |
| 1781 if (foundParent) | 1780 if (foundParent) |
| 1782 break; | 1781 break; |
| 1783 | 1782 |
| 1784 containerParent = containerParent->parentObject(); | 1783 containerParent = containerParent->parentObject(); |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2457 if (label && label->renderer()) { | 2456 if (label && label->renderer()) { |
| 2458 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2457 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
| 2459 result.unite(labelRect); | 2458 result.unite(labelRect); |
| 2460 } | 2459 } |
| 2461 } | 2460 } |
| 2462 | 2461 |
| 2463 return result; | 2462 return result; |
| 2464 } | 2463 } |
| 2465 | 2464 |
| 2466 } // namespace blink | 2465 } // namespace blink |
| OLD | NEW |