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

Unified Diff: ui/views/controls/native/native_view_host_aura.cc

Issue 397293005: Fix positioning of children of NativeViewHostAura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky comes up with a one line fix Created 6 years, 5 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
Index: ui/views/controls/native/native_view_host_aura.cc
diff --git a/ui/views/controls/native/native_view_host_aura.cc b/ui/views/controls/native/native_view_host_aura.cc
index f690f0574fae9569ff7a6eb73c9470770e691d34..2c27aead4e52bdc4938de8d7ba852ae5b14eab2e 100644
--- a/ui/views/controls/native/native_view_host_aura.cc
+++ b/ui/views/controls/native/native_view_host_aura.cc
@@ -19,6 +19,7 @@ NativeViewHostAura::NativeViewHostAura(NativeViewHost* host)
: host_(host),
clipping_window_(NULL) {
clipping_window_.Init(aura::WINDOW_LAYER_NOT_DRAWN);
+ clipping_window_.SetType(ui::wm::WINDOW_TYPE_CONTROL);
clipping_window_.set_owned_by_parent(false);
clipping_window_.SetName("NativeViewHostAuraClip");
clipping_window_.layer()->SetMasksToBounds(true);

Powered by Google App Engine
This is Rietveld 408576698