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

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

Issue 1160433004: Revert of Add MarkRole in blink side to expose mark tag properly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, Google 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 430
431 if (isHTMLFormElement(*node())) 431 if (isHTMLFormElement(*node()))
432 return FormRole; 432 return FormRole;
433 433
434 if (node()->hasTagName(articleTag)) 434 if (node()->hasTagName(articleTag))
435 return ArticleRole; 435 return ArticleRole;
436 436
437 if (node()->hasTagName(mainTag)) 437 if (node()->hasTagName(mainTag))
438 return MainRole; 438 return MainRole;
439 439
440 if (node()->hasTagName(markTag))
441 return MarkRole;
442
443 if (node()->hasTagName(navTag)) 440 if (node()->hasTagName(navTag))
444 return NavigationRole; 441 return NavigationRole;
445 442
446 if (node()->hasTagName(asideTag)) 443 if (node()->hasTagName(asideTag))
447 return ComplementaryRole; 444 return ComplementaryRole;
448 445
449 if (node()->hasTagName(preTag)) 446 if (node()->hasTagName(preTag))
450 return PreRole; 447 return PreRole;
451 448
452 if (node()->hasTagName(sectionTag)) 449 if (node()->hasTagName(sectionTag))
(...skipping 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after
2375 ariaLabeledByElements(elements); 2372 ariaLabeledByElements(elements);
2376 2373
2377 for (const auto& element : elements) { 2374 for (const auto& element : elements) {
2378 RefPtr<AXObject> axElement = axObjectCache()->getOrCreate(element); 2375 RefPtr<AXObject> axElement = axObjectCache()->getOrCreate(element);
2379 textOrder.append(AccessibilityText(ariaLabeledBy, AlternativeText, a xElement)); 2376 textOrder.append(AccessibilityText(ariaLabeledBy, AlternativeText, a xElement));
2380 } 2377 }
2381 } 2378 }
2382 } 2379 }
2383 2380
2384 } // namespace blink 2381 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXLayoutObject.cpp ('k') | Source/modules/accessibility/AXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698