| Index: ui/views/view.cc
|
| diff --git a/ui/views/view.cc b/ui/views/view.cc
|
| index 9d04967fb39d244bbc52da72c080d5efb5dd7e0d..3356002f861a12deec4435e0ad8aea10c580d8e6 100644
|
| --- a/ui/views/view.cc
|
| +++ b/ui/views/view.cc
|
| @@ -332,8 +332,10 @@ gfx::Rect View::GetVisibleBounds() const {
|
|
|
| while (view != NULL && !vis_bounds.IsEmpty()) {
|
| transform.ConcatTransform(view->GetTransform());
|
| - transform.ConcatTranslate(static_cast<float>(view->GetMirroredX()),
|
| - static_cast<float>(view->y()));
|
| + gfx::Transform translation;
|
| + translation.Translate(static_cast<float>(view->GetMirroredX()),
|
| + static_cast<float>(view->y()));
|
| + transform.ConcatTransform(translation);
|
|
|
| vis_bounds = view->ConvertRectToParent(vis_bounds);
|
| const View* ancestor = view->parent_;
|
| @@ -1798,8 +1800,10 @@ bool View::GetTransformRelativeTo(const View* ancestor,
|
|
|
| while (p && p != ancestor) {
|
| transform->ConcatTransform(p->GetTransform());
|
| - transform->ConcatTranslate(static_cast<float>(p->GetMirroredX()),
|
| - static_cast<float>(p->y()));
|
| + gfx::Transform translation;
|
| + translation.Translate(static_cast<float>(p->GetMirroredX()),
|
| + static_cast<float>(p->y()));
|
| + transform->ConcatTransform(translation);
|
|
|
| p = p->parent_;
|
| }
|
|
|