mirror of
https://github.com/aphrody-labs/cef.git
synced 2026-10-14 05:09:23 +00:00
16 lines
770 B
Diff
16 lines
770 B
Diff
diff --git ui/accessibility/platform/ax_platform_node_win.cc ui/accessibility/platform/ax_platform_node_win.cc
|
|
index 10a1d0cd42185b953d8516d466afe98cd1e083b9..15a765cd629a9f8ec379e96bda7ce0cc72532a87 100644
|
|
--- ui/accessibility/platform/ax_platform_node_win.cc
|
|
+++ ui/accessibility/platform/ax_platform_node_win.cc
|
|
@@ -1644,6 +1644,10 @@ IFACEMETHODIMP AXPlatformNodeWin::accLocation(LONG* physical_pixel_left,
|
|
var_id, physical_pixel_left, physical_pixel_top, width, height, target);
|
|
AXPlatform::GetInstance().OnMinimalPropertiesUsed();
|
|
|
|
+ if (!target || target->IsDestroyed()) {
|
|
+ return S_FALSE;
|
|
+ }
|
|
+
|
|
gfx::Rect bounds = target->GetDelegate()->GetBoundsRect(
|
|
AXCoordinateSystem::kScreenPhysicalPixels,
|
|
AXClippingBehavior::kUnclipped);
|