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

Unified Diff: ui/views/view.cc

Issue 2651753003: Wires up ShouldDescendIntoChildForEventHandling() for DesktopNativeWidgetAura (Closed)
Patch Set: improve comments Created 3 years, 11 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
« 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 83d2700c4a6777ac4303de36faae0f34db7245e6..cf93f92c3016a06eece18b959e411bdde8da2f91 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -219,7 +219,7 @@ void View::AddChildViewAt(View* view, int index) {
const bool did_reparent_any_layers = view->UpdateParentLayers();
Widget* widget = GetWidget();
if (did_reparent_any_layers && widget)
- widget->UpdateRootLayers();
+ widget->LayerTreeChanged();
ReorderLayers();
@@ -565,14 +565,14 @@ void View::DestroyLayer() {
Widget* widget = GetWidget();
if (widget)
- widget->UpdateRootLayers();
+ widget->LayerTreeChanged();
}
std::unique_ptr<ui::Layer> View::RecreateLayer() {
std::unique_ptr<ui::Layer> old_layer = LayerOwner::RecreateLayer();
Widget* widget = GetWidget();
if (widget)
- widget->UpdateRootLayers();
+ widget->LayerTreeChanged();
return old_layer;
}
@@ -1941,7 +1941,7 @@ void View::DoRemoveChildView(View* view,
// removed.
view->OrphanLayers();
if (widget)
- widget->UpdateRootLayers();
+ widget->LayerTreeChanged();
view->PropagateRemoveNotifications(this, new_parent);
view->parent_ = nullptr;
@@ -2235,7 +2235,7 @@ void View::CreateLayer(ui::LayerType layer_type) {
Widget* widget = GetWidget();
if (widget)
- widget->UpdateRootLayers();
+ widget->LayerTreeChanged();
// Before having its own Layer, this View may have painted in to a Layer owned
// by an ancestor View. Scheduling a paint on the parent View will erase this
« 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