| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 return AccessibilityOrientationHorizontal; | 76 return AccessibilityOrientationHorizontal; |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 | 79 |
| 80 void AccessibilitySlider::addChildren() | 80 void AccessibilitySlider::addChildren() |
| 81 { | 81 { |
| 82 ASSERT(!m_haveChildren); | 82 ASSERT(!m_haveChildren); |
| 83 | 83 |
| 84 m_haveChildren = true; | 84 m_haveChildren = true; |
| 85 | 85 |
| 86 AXObjectCache* cache = m_renderer->document()->axObjectCache(); | 86 AXObjectCache* cache = m_renderer->document().axObjectCache(); |
| 87 | 87 |
| 88 AccessibilitySliderThumb* thumb = static_cast<AccessibilitySliderThumb*>(cac
he->getOrCreate(SliderThumbRole)); | 88 AccessibilitySliderThumb* thumb = static_cast<AccessibilitySliderThumb*>(cac
he->getOrCreate(SliderThumbRole)); |
| 89 thumb->setParent(this); | 89 thumb->setParent(this); |
| 90 | 90 |
| 91 // Before actually adding the value indicator to the hierarchy, | 91 // Before actually adding the value indicator to the hierarchy, |
| 92 // allow the platform to make a final decision about it. | 92 // allow the platform to make a final decision about it. |
| 93 if (thumb->accessibilityIsIgnored()) | 93 if (thumb->accessibilityIsIgnored()) |
| 94 cache->remove(thumb->axObjectID()); | 94 cache->remove(thumb->axObjectID()); |
| 95 else | 95 else |
| 96 m_children.append(thumb); | 96 m_children.append(thumb); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 return LayoutRect(); | 150 return LayoutRect(); |
| 151 return toElement(sliderRenderer->node())->userAgentShadowRoot()->getElementB
yId(ShadowElementNames::sliderThumb())->boundingBox(); | 151 return toElement(sliderRenderer->node())->userAgentShadowRoot()->getElementB
yId(ShadowElementNames::sliderThumb())->boundingBox(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 bool AccessibilitySliderThumb::computeAccessibilityIsIgnored() const | 154 bool AccessibilitySliderThumb::computeAccessibilityIsIgnored() const |
| 155 { | 155 { |
| 156 return accessibilityIsIgnoredByDefault(); | 156 return accessibilityIsIgnoredByDefault(); |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace WebCore | 159 } // namespace WebCore |
| OLD | NEW |