| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 AXTable::~AXTable() | 58 AXTable::~AXTable() |
| 59 { | 59 { |
| 60 } | 60 } |
| 61 | 61 |
| 62 void AXTable::init() | 62 void AXTable::init() |
| 63 { | 63 { |
| 64 AXLayoutObject::init(); | 64 AXLayoutObject::init(); |
| 65 m_isAXTable = isTableExposableThroughAccessibility(); | 65 m_isAXTable = isTableExposableThroughAccessibility(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 PassRefPtr<AXTable> AXTable::create(LayoutObject* layoutObject, AXObjectCacheImp
l& axObjectCache) | 68 PassRefPtrWillBeRawPtr<AXTable> AXTable::create(LayoutObject* layoutObject, AXOb
jectCacheImpl& axObjectCache) |
| 69 { | 69 { |
| 70 return adoptRef(new AXTable(layoutObject, axObjectCache)); | 70 return adoptRefWillBeNoop(new AXTable(layoutObject, axObjectCache)); |
| 71 } | 71 } |
| 72 | 72 |
| 73 bool AXTable::hasARIARole() const | 73 bool AXTable::hasARIARole() const |
| 74 { | 74 { |
| 75 if (!m_layoutObject) | 75 if (!m_layoutObject) |
| 76 return false; | 76 return false; |
| 77 | 77 |
| 78 AccessibilityRole ariaRole = ariaRoleAttribute(); | 78 AccessibilityRole ariaRole = ariaRoleAttribute(); |
| 79 if (ariaRole != UnknownRole) | 79 if (ariaRole != UnknownRole) |
| 80 return true; | 80 return true; |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 title = caption->innerText(); | 585 title = caption->innerText(); |
| 586 } | 586 } |
| 587 | 587 |
| 588 // try the standard | 588 // try the standard |
| 589 if (title.isEmpty()) | 589 if (title.isEmpty()) |
| 590 title = AXLayoutObject::deprecatedTitle(mode); | 590 title = AXLayoutObject::deprecatedTitle(mode); |
| 591 | 591 |
| 592 return title; | 592 return title; |
| 593 } | 593 } |
| 594 | 594 |
| 595 DEFINE_TRACE(AXTable) |
| 596 { |
| 597 visitor->trace(m_rows); |
| 598 visitor->trace(m_columns); |
| 599 visitor->trace(m_headerContainer); |
| 600 AXLayoutObject::trace(visitor); |
| 601 } |
| 602 |
| 595 } // namespace blink | 603 } // namespace blink |
| OLD | NEW |