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

Unified Diff: third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js

Issue 2088453002: Implement the inert attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert histograms.xml Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js b/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js
index 0fea75375716a9f7d12c2610b66d8d9f0116a5c2..41c8a98b235dee71753aabbd07872332ae6ebbc8 100644
--- a/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js
+++ b/third_party/WebKit/Source/devtools/front_end/accessibility/AccessibilityNodeView.js
@@ -574,11 +574,11 @@ Accessibility.AXNodeIgnoredReasonTreeElement = class extends Accessibility.AXNod
case 'ancestorIsLeafNode':
reasonElement = UI.formatLocalized('Ancestor\'s children are all presentational:\u00a0', []);
break;
- case 'ariaHidden':
+ case 'ariaHiddenElement':
var ariaHiddenSpan = createElement('span', 'source-code').textContent = 'aria-hidden';
reasonElement = UI.formatLocalized('Element is %s.', [ariaHiddenSpan]);
break;
- case 'ariaHiddenRoot':
+ case 'ariaHiddenSubTree':
var ariaHiddenSpan = createElement('span', 'source-code').textContent = 'aria-hidden';
var trueSpan = createElement('span', 'source-code').textContent = 'true';
reasonElement = UI.formatLocalized('%s is %s on ancestor:\u00a0', [ariaHiddenSpan, trueSpan]);
@@ -589,9 +589,12 @@ Accessibility.AXNodeIgnoredReasonTreeElement = class extends Accessibility.AXNod
case 'emptyText':
reasonElement = UI.formatLocalized('No text content.', []);
break;
- case 'inert':
+ case 'inertElement':
reasonElement = UI.formatLocalized('Element is inert.', []);
break;
+ case 'inertSubtree':
+ reasonElement = UI.formatLocalized('Element is in an inert subtree from\u00a0', []);
+ break;
case 'inheritsPresentation':
reasonElement = UI.formatLocalized('Element inherits presentational role from\u00a0', []);
break;

Powered by Google App Engine
This is Rietveld 408576698