Commit 2782babc authored by oshima's avatar oshima Committed by Commit bot

Apply RTL transform to the background layer

This is a workaround for views layer bug (458753)

BUG=379777
TEST=maual

Review URL: https://codereview.chromium.org/929653002

Cr-Commit-Position: refs/heads/master@{#316399}
parent 0d1b5306
......@@ -64,6 +64,9 @@ class LayerControlView : public views::View {
views::View* child = child_at(0);
child->SetBounds(0, 0, rounded_size.width(), rounded_size.height());
gfx::Transform transform;
// Apply RTL transform explicitly becacuse Views layer code
// doesn't handle RTL. crbug.com/458753.
transform.Translate(-child->GetMirroredX(), 0);
transform.Scale(ui_scale, ui_scale);
child->SetTransform(transform);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment