Commit ffd2bdde authored by dmazzoni's avatar dmazzoni Committed by Commit bot

Make sure Legacy HWND is created and has proper bounds on bounds change.

BUG=436218

Review URL: https://codereview.chromium.org/771353004

Cr-Commit-Position: refs/heads/master@{#307160}
parent 0048d01f
......@@ -1472,6 +1472,17 @@ void WebContentsViewAura::OnBoundsChanged(const gfx::Rect& old_bounds,
window_->children()[i]->SetBounds(bounds);
}
}
#if defined(OS_WIN)
if (!legacy_hwnd_ && window_ && window_->GetHost()) {
HWND parent_hwnd = window_->GetHost()->GetAcceleratedWidget();
CHECK(parent_hwnd);
legacy_hwnd_.reset(LegacyRenderWidgetHostHWND::Create(parent_hwnd, this));
}
if (legacy_hwnd_)
legacy_hwnd_->SetBounds(window_->GetBoundsInRootWindow());
#endif
}
gfx::NativeCursor WebContentsViewAura::GetCursor(const gfx::Point& point) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment