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 1f4822f212e6b2747fe02adbdd2fc9fcddff6a72..acd1576d8da4c5d5e1cc6138eae0e1117bb5eced 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; |