| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 AXSliderThumb* thumb = | 91 AXSliderThumb* thumb = |
| 92 static_cast<AXSliderThumb*>(cache.getOrCreate(SliderThumbRole)); | 92 static_cast<AXSliderThumb*>(cache.getOrCreate(SliderThumbRole)); |
| 93 thumb->setParent(this); | 93 thumb->setParent(this); |
| 94 | 94 |
| 95 // Before actually adding the value indicator to the hierarchy, | 95 // Before actually adding the value indicator to the hierarchy, |
| 96 // allow the platform to make a final decision about it. | 96 // allow the platform to make a final decision about it. |
| 97 if (thumb->accessibilityIsIgnored()) | 97 if (thumb->accessibilityIsIgnored()) |
| 98 cache.remove(thumb->axObjectID()); | 98 cache.remove(thumb->axObjectID()); |
| 99 else | 99 else |
| 100 m_children.append(thumb); | 100 m_children.push_back(thumb); |
| 101 } | 101 } |
| 102 | 102 |
| 103 AXObject* AXSlider::elementAccessibilityHitTest(const IntPoint& point) const { | 103 AXObject* AXSlider::elementAccessibilityHitTest(const IntPoint& point) const { |
| 104 if (m_children.size()) { | 104 if (m_children.size()) { |
| 105 ASSERT(m_children.size() == 1); | 105 ASSERT(m_children.size() == 1); |
| 106 if (m_children[0]->getBoundsInFrameCoordinates().contains(point)) | 106 if (m_children[0]->getBoundsInFrameCoordinates().contains(point)) |
| 107 return m_children[0].get(); | 107 return m_children[0].get(); |
| 108 } | 108 } |
| 109 | 109 |
| 110 return axObjectCache().getOrCreate(m_layoutObject); | 110 return axObjectCache().getOrCreate(m_layoutObject); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 DCHECK(thumbElement); | 147 DCHECK(thumbElement); |
| 148 return thumbElement->layoutObject(); | 148 return thumbElement->layoutObject(); |
| 149 } | 149 } |
| 150 | 150 |
| 151 bool AXSliderThumb::computeAccessibilityIsIgnored( | 151 bool AXSliderThumb::computeAccessibilityIsIgnored( |
| 152 IgnoredReasons* ignoredReasons) const { | 152 IgnoredReasons* ignoredReasons) const { |
| 153 return accessibilityIsIgnoredByDefault(ignoredReasons); | 153 return accessibilityIsIgnoredByDefault(ignoredReasons); |
| 154 } | 154 } |
| 155 | 155 |
| 156 } // namespace blink | 156 } // namespace blink |
| OLD | NEW |