Skip to content
Permalink
Browse files
Minor fix to pass RenderProgress instead of RenderObject
https://bugs.webkit.org/show_bug.cgi?id=37481

Reviewed by Tor Arne Vestbo.

* accessibility/AXObjectCache.cpp:
* accessibility/AccessibilityProgressIndicator.cpp:
* accessibility/AccessibilityProgressIndicator.h:



Canonical link: https://commits.webkit.org/48815@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@57527 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Yael Aharon committed Apr 13, 2010
1 parent 77f50db commit 231de5a6573da63546227a5700c4dc576e5788bb
Showing 4 changed files with 21 additions and 5 deletions.
@@ -1,3 +1,17 @@
2010-04-12 yael aharon <yael.aharon@nokia.com>

Reviewed by Tor Arne Vestbo.

Minor fix to pass RenderProgress instead of RenderObject
https://bugs.webkit.org/show_bug.cgi?id=37481

* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::getOrCreate):
* accessibility/AccessibilityProgressIndicator.cpp:
(WebCore::AccessibilityProgressIndicator::AccessibilityProgressIndicator):
(WebCore::AccessibilityProgressIndicator::create):
* accessibility/AccessibilityProgressIndicator.h:

2010-04-13 David Hyatt <hyatt@apple.com>

Reviewed by Oliver Hunt.
@@ -60,6 +60,7 @@
#include "InputElement.h"
#include "Page.h"
#include "RenderObject.h"
#include "RenderProgress.h"
#include "RenderView.h"

#include <wtf/PassRefPtr.h>
@@ -213,7 +214,7 @@ AccessibilityObject* AXObjectCache::getOrCreate(RenderObject* renderer)
#if ENABLE(PROGRESS_TAG)
// progress bar
else if (renderer->isProgress())
newObj = AccessibilityProgressIndicator::create(renderer);
newObj = AccessibilityProgressIndicator::create(toRenderProgress(renderer));
#endif

// input type=range
@@ -34,12 +34,12 @@ namespace WebCore {

using namespace HTMLNames;

AccessibilityProgressIndicator::AccessibilityProgressIndicator(RenderObject* renderer)
AccessibilityProgressIndicator::AccessibilityProgressIndicator(RenderProgress* renderer)
: AccessibilityRenderObject(renderer)
{
}

PassRefPtr<AccessibilityProgressIndicator> AccessibilityProgressIndicator::create(RenderObject* renderer)
PassRefPtr<AccessibilityProgressIndicator> AccessibilityProgressIndicator::create(RenderProgress* renderer)
{
return adoptRef(new AccessibilityProgressIndicator(renderer));
}
@@ -28,10 +28,11 @@
namespace WebCore {

class HTMLProgressElement;
class RenderProgress;

class AccessibilityProgressIndicator : public AccessibilityRenderObject {
public:
static PassRefPtr<AccessibilityProgressIndicator> create(RenderObject*);
static PassRefPtr<AccessibilityProgressIndicator> create(RenderProgress*);

private:
virtual AccessibilityRole roleValue() const { return ProgressIndicatorRole; }
@@ -42,7 +43,7 @@ class AccessibilityProgressIndicator : public AccessibilityRenderObject {
virtual float maxValueForRange() const;
virtual float minValueForRange() const;

AccessibilityProgressIndicator(RenderObject*);
AccessibilityProgressIndicator(RenderProgress*);

HTMLProgressElement* element() const;
virtual bool accessibilityIsIgnored() const;

0 comments on commit 231de5a

Please sign in to comment.