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

Unified Diff: chrome/renderer/resources/extensions/automation/automation_node.js

Issue 2900803003: Automation API hit test should automatically convert to integer coordinates. (Closed)
Patch Set: Created 3 years, 7 months 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 | « no previous file | chrome/test/data/extensions/api_test/automation/sites/hit_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/automation/automation_node.js
diff --git a/chrome/renderer/resources/extensions/automation/automation_node.js b/chrome/renderer/resources/extensions/automation/automation_node.js
index b0ae6740a3e0a23c5d97280f2788b58b3ec0a948..a960f732872fc9bc5c729a4d81900cb8432991ea 100644
--- a/chrome/renderer/resources/extensions/automation/automation_node.js
+++ b/chrome/renderer/resources/extensions/automation/automation_node.js
@@ -398,8 +398,8 @@ AutomationNodeImpl.prototype = {
// Convert from global to tree-relative coordinates.
var location = GetLocation(this.treeID, GetRootID(this.treeID));
this.performAction_('hitTest',
- { x: x - location.left,
- y: y - location.top,
+ { x: Math.floor(x - location.left),
+ y: Math.floor(y - location.top),
eventToFire: eventToFire });
},
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/automation/sites/hit_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698