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

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

Issue 757223002: Removing unused roles(7) from blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addin Created 6 years 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 | « Source/modules/accessibility/AXObject.h ('k') | Source/web/AssertMatchingEnums.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 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXObject.h ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698