| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |