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

Issue 2911553002: Fix automation API bounding boxes on high-dpi devices (Closed)

Created:
3 years, 7 months ago by dmazzoni
Modified:
3 years, 7 months ago
Reviewers:
aboxhall
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix automation API bounding boxes on high-dpi devices This regressed in r460412 (https://codereview.chromium.org/2762373002) when we switched from taking the frame-relative coordinates of each web object and adding a frame offset, to always just walking up the whole accessibility tree to find the global bounds of an object. The reason that failed is because the coordinates we get from the web have the scale factor applied, but coordinates we get from the desktop do not. So we need to "unapply" the device scale factor just once, at the point we walk from the web tree to the desktop tree. This regressed once before last year. This time I figured out a way to add a regression test for it. BUG=726081 Review-Url: https://codereview.chromium.org/2911553002 Cr-Commit-Position: refs/heads/master@{#474967} Committed: https://chromium.googlesource.com/chromium/src/+/cb19f7f0877982a0d5c326198eb3a67f366d4114

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comment about mutating cache #

Messages

Total messages: 14 (9 generated)
dmazzoni
3 years, 7 months ago (2017-05-25 23:03:06 UTC) #4
aboxhall
lgtm Could you add a comment answering my question below? https://codereview.chromium.org/2911553002/diff/1/chrome/renderer/extensions/automation_internal_custom_bindings.cc File chrome/renderer/extensions/automation_internal_custom_bindings.cc (right): https://codereview.chromium.org/2911553002/diff/1/chrome/renderer/extensions/automation_internal_custom_bindings.cc#newcode131 ...
3 years, 7 months ago (2017-05-26 01:05:00 UTC) #5
dmazzoni
https://codereview.chromium.org/2911553002/diff/1/chrome/renderer/extensions/automation_internal_custom_bindings.cc File chrome/renderer/extensions/automation_internal_custom_bindings.cc (right): https://codereview.chromium.org/2911553002/diff/1/chrome/renderer/extensions/automation_internal_custom_bindings.cc#newcode131 chrome/renderer/extensions/automation_internal_custom_bindings.cc:131: TreeCache* previous_cache = cache; On 2017/05/26 01:04:59, aboxhall wrote: ...
3 years, 7 months ago (2017-05-26 06:41:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2911553002/20001
3 years, 7 months ago (2017-05-26 06:41:52 UTC) #11
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 08:25:21 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/cb19f7f0877982a0d5c326198eb3...

Powered by Google App Engine
This is Rietveld 408576698