| Index: views/view.cc
|
| diff --git a/views/view.cc b/views/view.cc
|
| index 956335e5a31bf66b99aa7a8d9d0c2b49114f7791..223283f808f58fc59ac3512ab8ea550599b6ee1e 100644
|
| --- a/views/view.cc
|
| +++ b/views/view.cc
|
| @@ -16,6 +16,7 @@
|
| #include "ui/gfx/canvas_skia.h"
|
| #include "ui/gfx/compositor/compositor.h"
|
| #include "ui/gfx/path.h"
|
| +#include "ui/gfx/point3.h"
|
| #include "ui/gfx/transform.h"
|
| #include "views/background.h"
|
| #include "views/layout/layout_manager.h"
|
| @@ -1537,7 +1538,9 @@ bool View::ConvertPointForAncestor(const View* ancestor,
|
| ui::Transform trans;
|
| // TODO(sad): Have some way of caching the transformation results.
|
| bool result = GetTransformRelativeTo(ancestor, &trans);
|
| - trans.TransformPoint(point);
|
| + gfx::Point3f p(*point);
|
| + trans.TransformPoint(p);
|
| + *point = p;
|
| return result;
|
| }
|
|
|
| @@ -1545,7 +1548,9 @@ bool View::ConvertPointFromAncestor(const View* ancestor,
|
| gfx::Point* point) const {
|
| ui::Transform trans;
|
| bool result = GetTransformRelativeTo(ancestor, &trans);
|
| - trans.TransformPointReverse(point);
|
| + gfx::Point3f p(*point);
|
| + trans.TransformPointReverse(p);
|
| + *point = p;
|
| return result;
|
| }
|
|
|
|
|