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

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

Issue 8373004: [Aura] Fix invisible DOMView. (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/native/native_view_host_aura.cc
diff --git a/views/controls/native/native_view_host_aura.cc b/views/controls/native/native_view_host_aura.cc
index af82d3b5d3b018c1452c197e18b904688e1d278b..2f214232204ce96198dbf35dd9d6b816a0751bec 100644
--- a/views/controls/native/native_view_host_aura.cc
+++ b/views/controls/native/native_view_host_aura.cc
@@ -26,7 +26,6 @@ void NativeViewHostAura::NativeViewAttached() {
if (host_->native_view()->parent())
host_->native_view()->parent()->RemoveChild(host_->native_view());
host_->GetWidget()->GetNativeView()->AddChild(host_->native_view());
- host_->native_view()->Show();
host_->Layout();
}
@@ -69,6 +68,7 @@ void NativeViewHostAura::UninstallClip() {
void NativeViewHostAura::ShowWidget(int x, int y, int w, int h) {
// TODO: need to support fast resize.
host_->native_view()->SetBounds(gfx::Rect(x, y, w, h));
+ host_->native_view()->Show();
}
void NativeViewHostAura::HideWidget() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698