Implement AX isolated tree mode support for event notifications.
Created attachment 388442 [details] Patch
Created attachment 388455 [details] Patch
(In reply to Andres Gonzalez from comment #2) > Created attachment 388455 [details] > Patch Fix for GTK and WIN builds.
Comment on attachment 388455 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=388455&action=review > Source/WebCore/accessibility/AXObjectCache.cpp:606 > +void AXObjectCache::cacheAndWrap(AccessibilityObject* newObject, RenderObject* renderer, Node* node, Widget* widget) maybe rename to cacheAndInitializeWrapperObject() > Source/WebCore/accessibility/AXObjectCache.cpp:806 > + RefPtr<AccessibilityObject> obj; how come you want to remove the initialization?
(In reply to chris fleizach from comment #4) > Comment on attachment 388455 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=388455&action=review > > > Source/WebCore/accessibility/AXObjectCache.cpp:606 > > +void AXObjectCache::cacheAndWrap(AccessibilityObject* newObject, RenderObject* renderer, Node* node, Widget* widget) > > maybe rename to cacheAndInitializeWrapperObject() Done. > > > Source/WebCore/accessibility/AXObjectCache.cpp:806 > > + RefPtr<AccessibilityObject> obj; > > how come you want to remove the initialization? The default constructor of most smart pointers typically initialize the internal pointer to nullptr, like in the case of RefPtr: ALWAYS_INLINE constexpr RefPtr() : m_ptr(nullptr) { } In this case it is also followed by a switch that will initialize the pointer to something, including: default: obj = nullptr;
Created attachment 388461 [details] Patch
Created attachment 388462 [details] Patch
(In reply to Andres Gonzalez from comment #7) > Created attachment 388462 [details] > Patch Another fix for GTK.
Comment on attachment 388462 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=388462&action=review > Source/WebCore/accessibility/AXObjectCache.cpp:1032 > + AccessibilityObject* obj = note.first.get(); seems like an auto here would be an improvement > Source/WebCore/accessibility/AXObjectCache.cpp:1152 > + return isolatedObjectForAXObject(*axObject).get(); this worries me here that we're accessing the tree and objects on that tree on the main thread now
Do we still need this one? or is it obsolete
*** This bug has been marked as a duplicate of bug 207581 ***