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

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

Issue 663783002: ADD AX role for Output Element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git/+/master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/accessibility/AXNodeObject.cpp ('k') | no next file » | 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 if (node && (node->hasTagName(rpTag) || node->hasTagName(rtTag))) 369 if (node && (node->hasTagName(rpTag) || node->hasTagName(rtTag)))
370 return AnnotationRole; 370 return AnnotationRole;
371 371
372 // Table sections should be ignored. 372 // Table sections should be ignored.
373 if (m_renderer->isTableSection()) 373 if (m_renderer->isTableSection())
374 return IgnoredRole; 374 return IgnoredRole;
375 375
376 if (m_renderer->isHR()) 376 if (m_renderer->isHR())
377 return HorizontalRuleRole; 377 return HorizontalRuleRole;
378 378
379 if (isHTMLOutputElement(node))
380 return StatusRole;
381
379 if (isHTMLParagraphElement(node)) 382 if (isHTMLParagraphElement(node))
380 return ParagraphRole; 383 return ParagraphRole;
381 384
382 if (isHTMLLabelElement(node)) 385 if (isHTMLLabelElement(node))
383 return LabelRole; 386 return LabelRole;
384 387
385 if (isHTMLDivElement(node)) 388 if (isHTMLDivElement(node))
386 return DivRole; 389 return DivRole;
387 390
388 if (isHTMLMeterElement(node)) 391 if (isHTMLMeterElement(node))
(...skipping 1994 matching lines...) Expand 10 before | Expand all | Expand 10 after
2383 if (label && label->renderer()) { 2386 if (label && label->renderer()) {
2384 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect(); 2387 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect();
2385 result.unite(labelRect); 2388 result.unite(labelRect);
2386 } 2389 }
2387 } 2390 }
2388 2391
2389 return result; 2392 return result;
2390 } 2393 }
2391 2394
2392 } // namespace blink 2395 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXNodeObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698