| Index: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| diff --git a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| index 3033dd2bf9cb17cbb7cfa85ac4049bb8e6536072..7df53a74a50a9c87e7d258b1f3cf56d67559efcf 100644
|
| --- a/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| +++ b/third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
|
| @@ -36,6 +36,7 @@
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/Settings.h"
|
| #include "core/html/HTMLAreaElement.h"
|
| +#include "core/html/HTMLCanvasElement.h"
|
| #include "core/html/HTMLImageElement.h"
|
| #include "core/html/HTMLInputElement.h"
|
| #include "core/html/HTMLLabelElement.h"
|
| @@ -1265,13 +1266,17 @@ void AXObjectCacheImpl::onTouchAccessibilityHover(const IntPoint& location)
|
| }
|
| }
|
|
|
| -void AXObjectCacheImpl::setCanvasObjectBounds(Element* element, const LayoutRect& rect)
|
| +void AXObjectCacheImpl::setCanvasObjectBounds(HTMLCanvasElement* canvas, Element* element, const LayoutRect& rect)
|
| {
|
| AXObject* obj = getOrCreate(element);
|
| if (!obj)
|
| return;
|
|
|
| - obj->setElementRect(rect);
|
| + AXObject* axCanvas = getOrCreate(canvas);
|
| + if (!axCanvas)
|
| + return;
|
| +
|
| + obj->setElementRect(rect, axCanvas);
|
| }
|
|
|
| DEFINE_TRACE(AXObjectCacheImpl)
|
|
|