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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 const ComputedStyle* style = m_layoutObject->style(); | 65 const ComputedStyle* style = m_layoutObject->style(); |
66 if (!style) | 66 if (!style) |
67 return AccessibilityOrientationHorizontal; | 67 return AccessibilityOrientationHorizontal; |
68 | 68 |
69 ControlPart styleAppearance = style->appearance(); | 69 ControlPart styleAppearance = style->appearance(); |
70 switch (styleAppearance) { | 70 switch (styleAppearance) { |
71 case SliderThumbHorizontalPart: | 71 case SliderThumbHorizontalPart: |
72 case SliderHorizontalPart: | 72 case SliderHorizontalPart: |
73 case MediaSliderPart: | 73 case MediaSliderPart: |
74 case MediaFullScreenVolumeSliderPart: | 74 case MediaFullscreenVolumeSliderPart: |
75 return AccessibilityOrientationHorizontal; | 75 return AccessibilityOrientationHorizontal; |
76 | 76 |
77 case SliderThumbVerticalPart: | 77 case SliderThumbVerticalPart: |
78 case SliderVerticalPart: | 78 case SliderVerticalPart: |
79 case MediaVolumeSliderPart: | 79 case MediaVolumeSliderPart: |
80 return AccessibilityOrientationVertical; | 80 return AccessibilityOrientationVertical; |
81 | 81 |
82 default: | 82 default: |
83 return AccessibilityOrientationHorizontal; | 83 return AccessibilityOrientationHorizontal; |
84 } | 84 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |