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

Unified Diff: ui/accessibility/ax_tree_combiner.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 | « ui/accessibility/ax_node_data.h ('k') | ui/accessibility/ax_tree_combiner_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_tree_combiner.cc
diff --git a/ui/accessibility/ax_tree_combiner.cc b/ui/accessibility/ax_tree_combiner.cc
index 953c203bcd55e6b044c47433ac412babd8d3019c..8214248596d55b9ac1e292585e96124d8c890546 100644
--- a/ui/accessibility/ax_tree_combiner.cc
+++ b/ui/accessibility/ax_tree_combiner.cc
@@ -208,10 +208,7 @@ void AXTreeCombiner::ProcessTree(const AXTreeUpdate* tree) {
// Apply the transformation to the object's bounds to put it in
// the coordinate space of the root frame.
- gfx::RectF boundsf(node.location);
- transform_.TransformRect(&boundsf);
- node.location = gfx::Rect(boundsf.x(), boundsf.y(),
- boundsf.width(), boundsf.height());
+ transform_.TransformRect(&node.location);
// See if this node has a child tree. As a sanity check make sure the
// child tree lists this tree as its parent tree id.
« no previous file with comments | « ui/accessibility/ax_node_data.h ('k') | ui/accessibility/ax_tree_combiner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698