Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: content/browser/accessibility/browser_accessibility_win.cc

Issue 8746022: Split accessible bounds calculation into two methods for Mac & Win (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/accessibility/browser_accessibility_cocoa.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_win.cc
===================================================================
--- content/browser/accessibility/browser_accessibility_win.cc (revision 111700)
+++ content/browser/accessibility/browser_accessibility_win.cc (working copy)
@@ -207,7 +207,7 @@
return E_INVALIDARG;
gfx::Point point(x_left, y_top);
- if (!GetBoundsRect().Contains(point)) {
+ if (!GetGlobalBoundsRect().Contains(point)) {
// Return S_FALSE and VT_EMPTY when the outside the object's boundaries.
child->vt = VT_EMPTY;
return S_FALSE;
@@ -238,7 +238,7 @@
if (!target)
return E_INVALIDARG;
- gfx::Rect bounds = target->GetBoundsRect();
+ gfx::Rect bounds = target->GetGlobalBoundsRect();
*x_left = bounds.x();
*y_top = bounds.y();
*width = bounds.width();
« no previous file with comments | « content/browser/accessibility/browser_accessibility_cocoa.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698