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

Unified Diff: ui/views/view.cc

Issue 1474993003: Ensure View invalidates Widget::root_layers_ when LayerOwner::RecreateLayer is invoked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rollback ash/wm/window_state_unittest.cc - redundant now Created 5 years, 1 month 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
« no previous file with comments | « ui/views/view.h ('k') | ui/views/view_unittest_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index caf1a36784db471040e80e518f118744b7cd1ae8..2d0003908e61c418473aa0e0319f25352d50b7f3 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -468,6 +468,14 @@ void View::SetPaintToLayer(bool paint_to_layer) {
}
}
+scoped_ptr<ui::Layer> View::RecreateLayer() {
+ scoped_ptr<ui::Layer> old_layer = LayerOwner::RecreateLayer();
+ Widget* widget = GetWidget();
+ if (widget)
+ widget->UpdateRootLayers();
+ return old_layer.Pass();
+}
+
// RTL positioning -------------------------------------------------------------
gfx::Rect View::GetMirroredBounds() const {
« no previous file with comments | « ui/views/view.h ('k') | ui/views/view_unittest_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698