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

Unified Diff: Source/core/accessibility/AXObjectCache.cpp

Issue 300223009: Implement basic parts of hit regions on canvas2d. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: exclude clipping region part Created 6 years, 6 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: Source/core/accessibility/AXObjectCache.cpp
diff --git a/Source/core/accessibility/AXObjectCache.cpp b/Source/core/accessibility/AXObjectCache.cpp
index dff32cf5b930674cccb701bdb5c1987a1bf8a505..afaf45881c8d6ded3b4a2ab1107437609ed9e598 100644
--- a/Source/core/accessibility/AXObjectCache.cpp
+++ b/Source/core/accessibility/AXObjectCache.cpp
@@ -1018,4 +1018,13 @@ void AXObjectCache::handleScrollPositionChanged(RenderObject* renderObject)
postPlatformNotification(getOrCreate(renderObject), AXScrollPositionChanged);
}
+void AXObjectCache::setCanvasObjectBounds(Element* element, const LayoutRect& rect)
+{
+ AXObject* obj = getOrCreate(element);
+ if (!obj)
+ return;
+
+ obj->setElementRect(rect);
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698