| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 361 |
| 362 if (node && node->hasTagName(ddTag)) | 362 if (node && node->hasTagName(ddTag)) |
| 363 return DescriptionListDetailRole; | 363 return DescriptionListDetailRole; |
| 364 | 364 |
| 365 if (node && node->hasTagName(dlTag)) | 365 if (node && node->hasTagName(dlTag)) |
| 366 return DescriptionListRole; | 366 return DescriptionListRole; |
| 367 | 367 |
| 368 if (node && node->hasTagName(dtTag)) | 368 if (node && node->hasTagName(dtTag)) |
| 369 return DescriptionListTermRole; | 369 return DescriptionListTermRole; |
| 370 | 370 |
| 371 if (node && (node->nodeName() == "math")) |
| 372 return MathRole; |
| 373 |
| 371 if (node && (node->hasTagName(rpTag) || node->hasTagName(rtTag))) | 374 if (node && (node->hasTagName(rpTag) || node->hasTagName(rtTag))) |
| 372 return AnnotationRole; | 375 return AnnotationRole; |
| 373 | 376 |
| 374 // Table sections should be ignored. | 377 // Table sections should be ignored. |
| 375 if (m_renderer->isTableSection()) | 378 if (m_renderer->isTableSection()) |
| 376 return IgnoredRole; | 379 return IgnoredRole; |
| 377 | 380 |
| 378 if (m_renderer->isHR()) | 381 if (m_renderer->isHR()) |
| 379 return SplitterRole; | 382 return SplitterRole; |
| 380 | 383 |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 | 732 |
| 730 if (roleValue() == FigcaptionRole) | 733 if (roleValue() == FigcaptionRole) |
| 731 return false; | 734 return false; |
| 732 | 735 |
| 733 if (roleValue() == FigureRole) | 736 if (roleValue() == FigureRole) |
| 734 return false; | 737 return false; |
| 735 | 738 |
| 736 if (roleValue() == DetailsRole) | 739 if (roleValue() == DetailsRole) |
| 737 return false; | 740 return false; |
| 738 | 741 |
| 742 if (roleValue() == MathRole) |
| 743 return false; |
| 744 |
| 739 if (roleValue() == MeterRole) | 745 if (roleValue() == MeterRole) |
| 740 return false; | 746 return false; |
| 741 | 747 |
| 742 if (roleValue() == RubyRole) | 748 if (roleValue() == RubyRole) |
| 743 return false; | 749 return false; |
| 744 | 750 |
| 745 // if this element has aria attributes on it, it should not be ignored. | 751 // if this element has aria attributes on it, it should not be ignored. |
| 746 if (supportsARIAAttributes()) | 752 if (supportsARIAAttributes()) |
| 747 return false; | 753 return false; |
| 748 | 754 |
| (...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2437 if (label && label->renderer()) { | 2443 if (label && label->renderer()) { |
| 2438 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); | 2444 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR
ect(); |
| 2439 result.unite(labelRect); | 2445 result.unite(labelRect); |
| 2440 } | 2446 } |
| 2441 } | 2447 } |
| 2442 | 2448 |
| 2443 return result; | 2449 return result; |
| 2444 } | 2450 } |
| 2445 | 2451 |
| 2446 } // namespace blink | 2452 } // namespace blink |
| OLD | NEW |