| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 { | 46 { |
| 47 return adoptRef(new AXTableHeaderContainer(axObjectCache)); | 47 return adoptRef(new AXTableHeaderContainer(axObjectCache)); |
| 48 } | 48 } |
| 49 | 49 |
| 50 LayoutRect AXTableHeaderContainer::elementRect() const | 50 LayoutRect AXTableHeaderContainer::elementRect() const |
| 51 { | 51 { |
| 52 // this will be filled in when addChildren is called | 52 // this will be filled in when addChildren is called |
| 53 return m_headerRect; | 53 return m_headerRect; |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool AXTableHeaderContainer::computeAccessibilityIsIgnored() const | 56 bool AXTableHeaderContainer::computeAccessibilityIsIgnored(PassRefPtr<TypeBuilde
r::Array<TypeBuilder::Accessibility::AXProperty>> ignoredReasons) const |
| 57 { | 57 { |
| 58 if (!m_parent) | 58 if (!m_parent) |
| 59 return true; | 59 return true; |
| 60 | 60 |
| 61 if (ignoredReasons) |
| 62 return m_parent->computeAccessibilityIsIgnored(ignoredReasons); |
| 63 |
| 61 return m_parent->accessibilityIsIgnored(); | 64 return m_parent->accessibilityIsIgnored(); |
| 62 } | 65 } |
| 63 | 66 |
| 64 void AXTableHeaderContainer::addChildren() | 67 void AXTableHeaderContainer::addChildren() |
| 65 { | 68 { |
| 66 ASSERT(!m_haveChildren); | 69 ASSERT(!m_haveChildren); |
| 67 | 70 |
| 68 m_haveChildren = true; | 71 m_haveChildren = true; |
| 69 if (!m_parent || !m_parent->isAXTable()) | 72 if (!m_parent || !m_parent->isAXTable()) |
| 70 return; | 73 return; |
| 71 | 74 |
| 72 toAXTable(m_parent)->columnHeaders(m_children); | 75 toAXTable(m_parent)->columnHeaders(m_children); |
| 73 | 76 |
| 74 unsigned length = m_children.size(); | 77 unsigned length = m_children.size(); |
| 75 for (unsigned k = 0; k < length; ++k) | 78 for (unsigned k = 0; k < length; ++k) |
| 76 m_headerRect.unite(m_children[k]->elementRect()); | 79 m_headerRect.unite(m_children[k]->elementRect()); |
| 77 } | 80 } |
| 78 | 81 |
| 79 } // namespace blink | 82 } // namespace blink |
| OLD | NEW |