Index: third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
index 27fd14f47a416696251aa34584c15ccf0bbf6fdf..a6dae1300c5634338faf2c173743a41c54b6f515 100644 |
--- a/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebPagePopupImpl.cpp |
@@ -47,8 +47,8 @@ |
#include "core/page/Page.h" |
#include "core/page/PagePopupClient.h" |
#include "core/page/PagePopupSupplement.h" |
-#include "modules/accessibility/AXObject.h" |
#include "modules/accessibility/AXObjectCacheImpl.h" |
+#include "modules/accessibility/AXObjectImpl.h" |
#include "platform/EventDispatchForbiddenScope.h" |
#include "platform/LayoutTestSupport.h" |
#include "platform/ScriptForbiddenScope.h" |
@@ -225,9 +225,11 @@ class PagePopupChromeClient final : public EmptyChromeClient { |
AXObjectCache::AXNotification notification) override { |
WebLocalFrameImpl* frame = WebLocalFrameImpl::FromFrame( |
popup_->popup_client_->OwnerElement().GetDocument().GetFrame()); |
- if (obj && frame && frame->Client()) |
+ if (obj && frame && frame->Client()) { |
frame->Client()->PostAccessibilityEvent( |
- WebAXObject(obj), static_cast<WebAXEvent>(notification)); |
+ WebAXObject(ToAXObjectImpl(obj)), |
+ static_cast<WebAXEvent>(notification)); |
+ } |
} |
void SetToolTip(LocalFrame&, |