| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 AXSliderThumb* AXSliderThumb::create(AXObjectCacheImpl& axObjectCache) | 141 AXSliderThumb* AXSliderThumb::create(AXObjectCacheImpl& axObjectCache) |
| 142 { | 142 { |
| 143 return new AXSliderThumb(axObjectCache); | 143 return new AXSliderThumb(axObjectCache); |
| 144 } | 144 } |
| 145 | 145 |
| 146 LayoutRect AXSliderThumb::elementRect() const | 146 LayoutRect AXSliderThumb::elementRect() const |
| 147 { | 147 { |
| 148 if (!m_parent) | 148 if (!m_parent) |
| 149 return LayoutRect(); | 149 return LayoutRect(); |
| 150 | 150 |
| 151 LayoutObject* sliderLayoutObject = m_parent->layoutObject(); | 151 LayoutObject* sliderLayoutObject = m_parent->getLayoutObject(); |
| 152 if (!sliderLayoutObject || !sliderLayoutObject->isSlider()) | 152 if (!sliderLayoutObject || !sliderLayoutObject->isSlider()) |
| 153 return LayoutRect(); | 153 return LayoutRect(); |
| 154 return toElement(sliderLayoutObject->node())->userAgentShadowRoot()->getElem
entById(ShadowElementNames::sliderThumb())->boundingBox(); | 154 return toElement(sliderLayoutObject->node())->userAgentShadowRoot()->getElem
entById(ShadowElementNames::sliderThumb())->boundingBox(); |
| 155 } | 155 } |
| 156 | 156 |
| 157 bool AXSliderThumb::computeAccessibilityIsIgnored(IgnoredReasons* ignoredReasons
) const | 157 bool AXSliderThumb::computeAccessibilityIsIgnored(IgnoredReasons* ignoredReasons
) const |
| 158 { | 158 { |
| 159 return accessibilityIsIgnoredByDefault(ignoredReasons); | 159 return accessibilityIsIgnoredByDefault(ignoredReasons); |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace blink | 162 } // namespace blink |
| OLD | NEW |