| Index: Source/core/dom/AXObjectCache.h
|
| diff --git a/Source/core/dom/AXObjectCache.h b/Source/core/dom/AXObjectCache.h
|
| index a389c0d7f446208d0f70627e9f63122190d1accf..2415c94d067ddca6d4639befe2a019a248c5c396 100644
|
| --- a/Source/core/dom/AXObjectCache.h
|
| +++ b/Source/core/dom/AXObjectCache.h
|
| @@ -120,10 +120,28 @@ public:
|
| virtual void handleLayoutComplete(RenderObject*) = 0;
|
| virtual void handleScrolledToAnchor(const Node* anchorNode) = 0;
|
|
|
| + virtual const AtomicString& computedRoleForNode(Node*) = 0;
|
| + virtual String computedNameForNode(Node*) = 0;
|
| +
|
| protected:
|
| AXObjectCache();
|
| };
|
|
|
| +class ScopedAXObjectCache {
|
| +public:
|
| + explicit ScopedAXObjectCache(Document&);
|
| + ~ScopedAXObjectCache();
|
| +
|
| + AXObjectCache* get();
|
| + AXObjectCache* operator->();
|
| +
|
| +private:
|
| +
|
| + Document& m_document;
|
| + AXObjectCache* m_cache;
|
| + bool m_isScoped;
|
| +};
|
| +
|
| }
|
|
|
| #endif
|
|
|