Commit ce5c5e09 authored by Leonard Grey's avatar Leonard Grey Committed by Commit Bot

Mac a11y: Report actual window as window instead of top level widget

Bug: 948878
Change-Id: I79ef6f31524cb6cbca7acab42f5b488e1b2d9524
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1849123Reviewed-by: default avatarccameron <ccameron@chromium.org>
Commit-Queue: Leonard Grey <lgrey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704309}
parent 9f116e2b
...@@ -27,12 +27,8 @@ gfx::NativeViewAccessible ViewAXPlatformNodeDelegateMac::GetNSWindow() { ...@@ -27,12 +27,8 @@ gfx::NativeViewAccessible ViewAXPlatformNodeDelegateMac::GetNSWindow() {
if (!widget) if (!widget)
return nil; return nil;
auto* top_level_widget = widget->GetTopLevelWidget();
if (!top_level_widget)
return nil;
auto* window_host = NativeWidgetMacNSWindowHost::GetFromNativeWindow( auto* window_host = NativeWidgetMacNSWindowHost::GetFromNativeWindow(
top_level_widget->GetNativeWindow()); widget->GetNativeWindow());
if (!window_host) if (!window_host)
return nil; return nil;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment