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 }); |
}, |