| Index: ui/accessibility/platform/ax_platform_node_win.cc
|
| diff --git a/ui/accessibility/platform/ax_platform_node_win.cc b/ui/accessibility/platform/ax_platform_node_win.cc
|
| index 4801322bb70551c4890dc53668fe111cc1670c2d..ac83e27d280b32ca15feb777c6ae99a73070c5bf 100644
|
| --- a/ui/accessibility/platform/ax_platform_node_win.cc
|
| +++ b/ui/accessibility/platform/ax_platform_node_win.cc
|
| @@ -18,6 +18,7 @@
|
| #include "ui/accessibility/platform/ax_platform_node_delegate.h"
|
| #include "ui/accessibility/platform/ax_platform_node_win.h"
|
| #include "ui/base/win/atl_module.h"
|
| +#include "ui/gfx/geometry/rect_conversions.h"
|
|
|
| //
|
| // Macros to use at the top of any AXPlatformNodeWin function that implements
|
| @@ -257,7 +258,7 @@ HRESULT AXPlatformNodeWin::accDoDefaultAction(VARIANT var_id) {
|
| STDMETHODIMP AXPlatformNodeWin::accLocation(
|
| LONG* x_left, LONG* y_top, LONG* width, LONG* height, VARIANT var_id) {
|
| COM_OBJECT_VALIDATE_VAR_ID_4_ARGS(var_id, x_left, y_top, width, height);
|
| - gfx::Rect bounds = GetData().location;
|
| + gfx::Rect bounds = gfx::ToEnclosingRect(GetData().location);
|
| bounds += delegate_->GetGlobalCoordinateOffset();
|
| *x_left = bounds.x();
|
| *y_top = bounds.y();
|
|
|