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

Side by Side Diff: Source/core/accessibility/AXObject.cpp

Issue 69543007: Have NodeTraversal::nextSkippingChildren() take a reference (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 years, 1 month 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/core/css/StyleInvalidationAnalysis.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, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 { 523 {
524 if (!node) 524 if (!node)
525 return 0; 525 return 0;
526 526
527 AXObjectCache* cache = node->document().axObjectCache(); 527 AXObjectCache* cache = node->document().axObjectCache();
528 AXObject* accessibleObject = cache->getOrCreate(node->renderer()); 528 AXObject* accessibleObject = cache->getOrCreate(node->renderer());
529 while (accessibleObject && accessibleObject->accessibilityIsIgnored()) { 529 while (accessibleObject && accessibleObject->accessibilityIsIgnored()) {
530 node = NodeTraversal::next(*node); 530 node = NodeTraversal::next(*node);
531 531
532 while (node && !node->renderer()) 532 while (node && !node->renderer())
533 node = NodeTraversal::nextSkippingChildren(node); 533 node = NodeTraversal::nextSkippingChildren(*node);
534 534
535 if (!node) 535 if (!node)
536 return 0; 536 return 0;
537 537
538 accessibleObject = cache->getOrCreate(node->renderer()); 538 accessibleObject = cache->getOrCreate(node->renderer());
539 } 539 }
540 540
541 return accessibleObject; 541 return accessibleObject;
542 } 542 }
543 543
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 return ToggleButtonRole; 898 return ToggleButtonRole;
899 if (ariaHasPopup()) 899 if (ariaHasPopup())
900 return PopUpButtonRole; 900 return PopUpButtonRole;
901 // We don't contemplate RadioButtonRole, as it depends on the input 901 // We don't contemplate RadioButtonRole, as it depends on the input
902 // type. 902 // type.
903 903
904 return ButtonRole; 904 return ButtonRole;
905 } 905 }
906 906
907 } // namespace WebCore 907 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/StyleInvalidationAnalysis.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698