Index: third_party/WebKit/Source/web/WebDocument.cpp |
diff --git a/third_party/WebKit/Source/web/WebDocument.cpp b/third_party/WebKit/Source/web/WebDocument.cpp |
index b44a752136713844e6f9bbc4e7ed7e9af57b741c..36ed942ab6a42a1e81c5d755db38aaa0e6153517 100644 |
--- a/third_party/WebKit/Source/web/WebDocument.cpp |
+++ b/third_party/WebKit/Source/web/WebDocument.cpp |
@@ -266,6 +266,13 @@ WebAXObject WebDocument::accessibilityObjectFromID(int axID) const |
return cache ? WebAXObject(cache->objectFromAXID(axID)) : WebAXObject(); |
} |
+WebAXObject WebDocument::focusedAccessibilityObject() const |
+{ |
+ const Document* document = constUnwrap<Document>(); |
+ AXObjectCacheImpl* cache = toAXObjectCacheImpl(document->axObjectCache()); |
+ return cache ? WebAXObject(cache->focusedObject()) : WebAXObject(); |
+} |
+ |
WebVector<WebDraggableRegion> WebDocument::draggableRegions() const |
{ |
WebVector<WebDraggableRegion> draggableRegions; |