Chromium Code Reviews| 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) { |