Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: Source/modules/accessibility/AXSlider.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated patch after splitting Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 LayoutStyle* style = m_renderer->style(); 58 const LayoutStyle* 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698