Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: ui/aura/test/test_screen.cc

Issue 1078123002: Send resize event when the screen info changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/aura/test/test_screen.cc
diff --git a/ui/aura/test/test_screen.cc b/ui/aura/test/test_screen.cc
index 266963d9dc36b8f2b26888a3fb870d58a7ed222b..317d3a39f1dd0c7504d7ea8445764ebcec31ea7f 100644
--- a/ui/aura/test/test_screen.cc
+++ b/ui/aura/test/test_screen.cc
@@ -64,7 +64,8 @@ void TestScreen::SetDisplayRotation(gfx::Display::Rotation rotation) {
}
display_.set_rotation(rotation);
display_.SetScaleAndBounds(display_.device_scale_factor(), new_bounds);
- host_->SetRootTransform(GetRotationTransform() * GetUIScaleTransform());
+ if (host_)
+ host_->SetRootTransform(GetRotationTransform() * GetUIScaleTransform());
sadrul 2015/04/10 22:58:30 We don't do null checks elsewhere in this file. Is
}
void TestScreen::SetUIScale(float ui_scale) {

Powered by Google App Engine
This is Rietveld 408576698