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

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

Issue 663233004: Re-land: Adding PreRole in blink side to expose HTML pre tag with correct MSAA+IA2. (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/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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 402
403 if (node && node->hasTagName(mainTag)) 403 if (node && node->hasTagName(mainTag))
404 return MainRole; 404 return MainRole;
405 405
406 if (node && node->hasTagName(navTag)) 406 if (node && node->hasTagName(navTag))
407 return NavigationRole; 407 return NavigationRole;
408 408
409 if (node && node->hasTagName(asideTag)) 409 if (node && node->hasTagName(asideTag))
410 return ComplementaryRole; 410 return ComplementaryRole;
411 411
412 if (node && node->hasTagName(preTag))
413 return PreRole;
414
412 if (node && node->hasTagName(sectionTag)) 415 if (node && node->hasTagName(sectionTag))
413 return RegionRole; 416 return RegionRole;
414 417
415 if (node && node->hasTagName(addressTag)) 418 if (node && node->hasTagName(addressTag))
416 return ContentInfoRole; 419 return ContentInfoRole;
417 420
418 if (node && node->hasTagName(dialogTag)) 421 if (node && node->hasTagName(dialogTag))
419 return DialogRole; 422 return DialogRole;
420 423
421 // The HTML element should not be exposed as an element. That's what the Ren derView element does. 424 // The HTML element should not be exposed as an element. That's what the Ren derView element does.
(...skipping 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after
2392 if (label && label->renderer()) { 2395 if (label && label->renderer()) {
2393 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect(); 2396 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect();
2394 result.unite(labelRect); 2397 result.unite(labelRect);
2395 } 2398 }
2396 } 2399 }
2397 2400
2398 return result; 2401 return result;
2399 } 2402 }
2400 2403
2401 } // namespace blink 2404 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXObject.h ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698