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

Side by Side Diff: Source/core/accessibility/AccessibilitySlider.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 return AccessibilityOrientationHorizontal; 76 return AccessibilityOrientationHorizontal;
77 } 77 }
78 } 78 }
79 79
80 void AccessibilitySlider::addChildren() 80 void AccessibilitySlider::addChildren()
81 { 81 {
82 ASSERT(!m_haveChildren); 82 ASSERT(!m_haveChildren);
83 83
84 m_haveChildren = true; 84 m_haveChildren = true;
85 85
86 AXObjectCache* cache = m_renderer->document()->axObjectCache(); 86 AXObjectCache* cache = m_renderer->document().axObjectCache();
87 87
88 AccessibilitySliderThumb* thumb = static_cast<AccessibilitySliderThumb*>(cac he->getOrCreate(SliderThumbRole)); 88 AccessibilitySliderThumb* thumb = static_cast<AccessibilitySliderThumb*>(cac he->getOrCreate(SliderThumbRole));
89 thumb->setParent(this); 89 thumb->setParent(this);
90 90
91 // Before actually adding the value indicator to the hierarchy, 91 // Before actually adding the value indicator to the hierarchy,
92 // allow the platform to make a final decision about it. 92 // allow the platform to make a final decision about it.
93 if (thumb->accessibilityIsIgnored()) 93 if (thumb->accessibilityIsIgnored())
94 cache->remove(thumb->axObjectID()); 94 cache->remove(thumb->axObjectID());
95 else 95 else
96 m_children.append(thumb); 96 m_children.append(thumb);
(...skipping 53 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 AccessibilitySliderThumb::computeAccessibilityIsIgnored() const 154 bool AccessibilitySliderThumb::computeAccessibilityIsIgnored() const
155 { 155 {
156 return accessibilityIsIgnoredByDefault(); 156 return accessibilityIsIgnoredByDefault();
157 } 157 }
158 158
159 } // namespace WebCore 159 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/accessibility/AccessibilityRenderObject.cpp ('k') | Source/core/accessibility/AccessibilityTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698