#include "platform/scroll/ScrollView.h"
#include "wtf/PassRefPtr.h"
-namespace WebCore {
+namespace blink {
using namespace HTMLNames;
if (node && node->isMediaControlElement())
return AccessibilityMediaControl::create(renderer);
+ if (isHTMLOptionElement(node))
+ return AXListBoxOption::create(renderer);
+
if (renderer->isSVGRoot())
return AXSVGRoot::create(renderer);
// will be filled in...
switch (role) {
- case ListBoxOptionRole:
- obj = AXListBoxOption::create();
- break;
case ImageMapLinkRole:
obj = AXImageMapLink::create();
break;
if (!obj->axObjectCache())
continue;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
// Make sure none of the render views are in the process of being layed out.
// Notifications should only be sent after the renderer has finished
if (obj->isAXRenderObject()) {
postPlatformNotification(getOrCreate(renderObject), AXScrollPositionChanged);
}
-} // namespace WebCore
+void AXObjectCache::setCanvasObjectBounds(Element* element, const LayoutRect& rect)
+{
+ AXObject* obj = getOrCreate(element);
+ if (!obj)
+ return;
+
+ obj->setElementRect(rect);
+}
+
+} // namespace blink