| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 { | 48 { |
| 49 return adoptRef(new AXSlider(renderer, axObjectCache)); | 49 return adoptRef(new AXSlider(renderer, axObjectCache)); |
| 50 } | 50 } |
| 51 | 51 |
| 52 AccessibilityOrientation AXSlider::orientation() const | 52 AccessibilityOrientation AXSlider::orientation() const |
| 53 { | 53 { |
| 54 // Default to horizontal in the unknown case. | 54 // Default to horizontal in the unknown case. |
| 55 if (!m_renderer) | 55 if (!m_renderer) |
| 56 return AccessibilityOrientationHorizontal; | 56 return AccessibilityOrientationHorizontal; |
| 57 | 57 |
| 58 RenderStyle* style = m_renderer->style(); | 58 const RenderStyle* style = m_renderer->style(); |
| 59 if (!style) | 59 if (!style) |
| 60 return AccessibilityOrientationHorizontal; | 60 return AccessibilityOrientationHorizontal; |
| 61 | 61 |
| 62 ControlPart styleAppearance = style->appearance(); | 62 ControlPart styleAppearance = style->appearance(); |
| 63 switch (styleAppearance) { | 63 switch (styleAppearance) { |
| 64 case SliderThumbHorizontalPart: | 64 case SliderThumbHorizontalPart: |
| 65 case SliderHorizontalPart: | 65 case SliderHorizontalPart: |
| 66 case MediaSliderPart: | 66 case MediaSliderPart: |
| 67 case MediaFullScreenVolumeSliderPart: | 67 case MediaFullScreenVolumeSliderPart: |
| 68 return AccessibilityOrientationHorizontal; | 68 return AccessibilityOrientationHorizontal; |
| (...skipping 81 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 AXSliderThumb::computeAccessibilityIsIgnored() const | 154 bool AXSliderThumb::computeAccessibilityIsIgnored() const |
| 155 { | 155 { |
| 156 return accessibilityIsIgnoredByDefault(); | 156 return accessibilityIsIgnoredByDefault(); |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace blink | 159 } // namespace blink |
| OLD | NEW |