void PopupContainer::popupOpened(const IntRect& bounds) { WebViewImpl* webView = WebViewImpl::fromPage(m_frameView->frame().page()); if (!webView->client()) return; WebWidget* webwidget = webView->client()->createPopupMenu(WebPopupTypeSelect); // We only notify when the WebView has to handle the popup, as when // the popup is handled externally, the fact that a popup is showing is // transparent to the WebView. webView->popupOpened(this); toWebPopupMenuImpl(webwidget)->initialize(this, bounds); }