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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp

Issue 2169273004: Switch all LayoutTests to use new accessibility relative bounding box API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix absolute bounds in AXInlineTextBox::elementRect Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698