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

Unified Diff: ui/views/widget/widget.cc

Issue 2753813003: Fix theme change paint issue on linux. (Closed)
Patch Set: Created 3 years, 9 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/widget/widget.h ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 38ade374c65cfbb03616880c7d61507b3a5ba1a5..5ff65fdbd3aeda262b71e96eee4e627472e019f1 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -175,8 +175,7 @@ Widget::Widget()
auto_release_capture_(true),
views_with_layers_dirty_(false),
movement_disabled_(false),
- observer_manager_(this),
- processing_theme_changed_(false) {}
+ observer_manager_(this) {}
Widget::~Widget() {
DestroyRootView();
@@ -919,8 +918,6 @@ void Widget::DebugToggleFrameType() {
}
void Widget::FrameTypeChanged() {
- if (processing_theme_changed_)
- return;
native_widget_->FrameTypeChanged();
}
@@ -1427,10 +1424,6 @@ void Widget::OnNativeThemeUpdated(ui::NativeTheme* observed_theme) {
observer_manager_.Add(current_native_theme);
}
- DCHECK_EQ(processing_theme_changed_, false);
-
- base::AutoReset<bool> auto_theme_changed_recursion_break(
- &processing_theme_changed_, true);
root_view_->PropagateNativeThemeChanged(current_native_theme);
}
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698