Index: ash/display/root_window_transformers.cc |
diff --git a/ash/display/root_window_transformers.cc b/ash/display/root_window_transformers.cc |
index 8a028b37a1061f9ac21f2dbc7396288cce216d88..509bb8e215e64f1098c4d7a92e74e1552f978bc0 100644 |
--- a/ash/display/root_window_transformers.cc |
+++ b/ash/display/root_window_transformers.cc |
@@ -62,18 +62,16 @@ |
// updating the transform results in incorrectly resizing |
// the root window. Don't apply the transform unless |
// necessary so that unit tests pass on win8 bots. |
- if (info.GetActiveRotation() == |
- root_window->GetProperty(kRotationPropertyKey)) { |
+ if (info.rotation() == root_window->GetProperty(kRotationPropertyKey)) |
return gfx::Transform(); |
- } |
- root_window->SetProperty(kRotationPropertyKey, info.GetActiveRotation()); |
+ root_window->SetProperty(kRotationPropertyKey, info.rotation()); |
#endif |
gfx::Transform rotate; |
// The origin is (0, 0), so the translate width/height must be reduced by |
// 1 pixel. |
float one_pixel = 1.0f / display.device_scale_factor(); |
- switch (info.GetActiveRotation()) { |
+ switch (info.rotation()) { |
case gfx::Display::ROTATE_0: |
break; |
case gfx::Display::ROTATE_90: |