| Index: ui/views/view.cc
|
| diff --git a/ui/views/view.cc b/ui/views/view.cc
|
| index 43b7ba964d338d5c9cf24776f1630734f78ed3ee..dcc4869e13f28988dc03f13e8989985cf4a9ce3b 100644
|
| --- a/ui/views/view.cc
|
| +++ b/ui/views/view.cc
|
| @@ -237,7 +237,7 @@ void View::AddChildViewAt(View* view, int index) {
|
| RegisterChildrenForVisibleBoundsNotification(view);
|
| const ui::NativeTheme* new_theme = widget->GetNativeTheme();
|
| if (new_theme != old_theme)
|
| - PropagateNativeThemeChanged(new_theme);
|
| + view->PropagateNativeThemeChanged(new_theme);
|
| if (view->visible())
|
| view->SchedulePaint();
|
| }
|
| @@ -1616,6 +1616,14 @@ bool View::InDrag() {
|
| return widget ? widget->dragged_view() == this : false;
|
| }
|
|
|
| +// NativeTheme -----------------------------------------------------------------
|
| +
|
| +void View::PropagateNativeThemeChanged(const ui::NativeTheme* theme) {
|
| + for (int i = 0, count = child_count(); i < count; ++i)
|
| + child_at(i)->PropagateNativeThemeChanged(theme);
|
| + OnNativeThemeChanged(theme);
|
| +}
|
| +
|
| // Debugging -------------------------------------------------------------------
|
|
|
| #if !defined(NDEBUG)
|
| @@ -1880,12 +1888,6 @@ void View::ViewHierarchyChangedImpl(
|
| details.parent->needs_layout_ = true;
|
| }
|
|
|
| -void View::PropagateNativeThemeChanged(const ui::NativeTheme* theme) {
|
| - for (int i = 0, count = child_count(); i < count; ++i)
|
| - child_at(i)->PropagateNativeThemeChanged(theme);
|
| - OnNativeThemeChanged(theme);
|
| -}
|
| -
|
| // Size and disposition --------------------------------------------------------
|
|
|
| void View::PropagateVisibilityNotifications(View* start, bool is_visible) {
|
|
|