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

Unified Diff: views/controls/native_control_gtk.cc

Issue 8202026: views: Some more layer change, and add/update some tests for layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 2 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 | « views/aura_desktop/aura_desktop_main.cc ('k') | views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/native_control_gtk.cc
diff --git a/views/controls/native_control_gtk.cc b/views/controls/native_control_gtk.cc
index 965d34738c194215329ca08a25fb57a8b23bc847..1e3c0b6d0badd66f697bcf593c7d9580054fda45 100644
--- a/views/controls/native_control_gtk.cc
+++ b/views/controls/native_control_gtk.cc
@@ -172,6 +172,8 @@ void NativeControlGtk::ViewHierarchyChanged(bool is_add, View* parent,
}
void NativeControlGtk::VisibilityChanged(View* starting_from, bool is_visible) {
+ if (starting_from != this)
+ return;
oshima 2011/10/10 20:48:43 I discussed this with dave and we concluded that t
sadrul 2011/10/10 22:29:58 Done. trybots seem happy with the change.
if (!is_visible) {
if (native_view()) {
// We destroy the child widget when we become invisible because of the
« no previous file with comments | « views/aura_desktop/aura_desktop_main.cc ('k') | views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698