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

Unified Diff: content/renderer/accessibility/render_accessibility_impl.cc

Issue 2154213007: Replace gfx::Rect with gfx::RectF in ui::AXNodeData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win compile Created 4 years, 5 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 | « content/renderer/accessibility/render_accessibility_impl.h ('k') | ui/accessibility/ax_node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/accessibility/render_accessibility_impl.cc
diff --git a/content/renderer/accessibility/render_accessibility_impl.cc b/content/renderer/accessibility/render_accessibility_impl.cc
index 5611c7f318203b41e175cc94e46b2033194e3295..4538ca414641193148ef0f2e344fe200a103f018 100644
--- a/content/renderer/accessibility/render_accessibility_impl.cc
+++ b/content/renderer/accessibility/render_accessibility_impl.cc
@@ -362,7 +362,7 @@ void RenderAccessibilityImpl::SendLocationChanges() {
return;
// Do a breadth-first explore of the whole blink AX tree.
- base::hash_map<int, gfx::Rect> new_locations;
+ base::hash_map<int, gfx::RectF> new_locations;
std::queue<WebAXObject> objs_to_explore;
objs_to_explore.push(root);
while (objs_to_explore.size()) {
@@ -372,12 +372,12 @@ void RenderAccessibilityImpl::SendLocationChanges() {
// See if we had a previous location. If not, this whole subtree must
// be new, so don't continue to explore this branch.
int id = obj.axID();
- base::hash_map<int, gfx::Rect>::iterator iter = locations_.find(id);
+ base::hash_map<int, gfx::RectF>::iterator iter = locations_.find(id);
if (iter == locations_.end())
continue;
// If the location has changed, append it to the IPC message.
- gfx::Rect new_location = obj.boundingBoxRect();
+ gfx::RectF new_location = gfx::RectF(obj.boundingBoxRect());
if (iter != locations_.end() && iter->second != new_location) {
AccessibilityHostMsg_LocationChangeParams message;
message.id = id;
« no previous file with comments | « content/renderer/accessibility/render_accessibility_impl.h ('k') | ui/accessibility/ax_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698