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

Unified Diff: Source/core/accessibility/AXRenderObject.cpp

Issue 248963002: Making LayoutUnit conversions to Int types explicit in core/accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@patch3
Patch Set: Created 6 years, 8 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 | « Source/core/accessibility/AXObject.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/accessibility/AXRenderObject.cpp
diff --git a/Source/core/accessibility/AXRenderObject.cpp b/Source/core/accessibility/AXRenderObject.cpp
index ea2b81e5407e93467f1fbfe8ddb9ece83495f7d9..0c2efaa05f3e9e26ace5f2d09e2baf9f58830ab1 100644
--- a/Source/core/accessibility/AXRenderObject.cpp
+++ b/Source/core/accessibility/AXRenderObject.cpp
@@ -1251,7 +1251,7 @@ IntPoint AXRenderObject::clickPoint()
if (!isWebArea() || isReadOnly())
return AXObject::clickPoint();
- LayoutRect bounds = elementRect();
+ IntRect bounds = pixelSnappedIntRect(elementRect());
return IntPoint(bounds.x() + (bounds.width() / 2), bounds.y() - (bounds.height() / 2));
}
« no previous file with comments | « Source/core/accessibility/AXObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698