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

Unified Diff: ui/accessibility/ax_node.cc

Issue 2217363002: Use relative bounding boxes throughout Chrome accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: ui/accessibility/ax_node.cc
diff --git a/ui/accessibility/ax_node.cc b/ui/accessibility/ax_node.cc
index 462e4e860eb1cc156ebfb8493d19e8740fd43c44..70254bc43d326338c48957d75be0bcc75d884551 100644
--- a/ui/accessibility/ax_node.cc
+++ b/ui/accessibility/ax_node.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "ui/accessibility/ax_node.h"
+#include "ui/gfx/transform.h"
namespace ui {
@@ -18,8 +19,13 @@ void AXNode::SetData(const AXNodeData& src) {
data_ = src;
}
-void AXNode::SetLocation(const gfx::RectF& new_location) {
- data_.location = new_location;
+void AXNode::SetLocation(int offset_container_id,
+ const gfx::RectF& location,
+ gfx::Transform* transform) {
+ data_.offset_container_id = offset_container_id;
+ data_.location = location;
+ if (transform)
aboxhall 2016/08/12 16:05:10 Should this reset .transform to nullptr otherwise?
dmazzoni 2016/08/15 05:31:11 Yes! Good catch. Fixed similar bug in AXNodeData,
+ data_.transform.reset(new gfx::Transform(*transform));
}
void AXNode::SetIndexInParent(int index_in_parent) {

Powered by Google App Engine
This is Rietveld 408576698