diff options
Diffstat (limited to 'webkit/tools/test_shell/mac')
-rw-r--r-- | webkit/tools/test_shell/mac/test_webview_delegate.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/mac/test_webview_delegate.mm b/webkit/tools/test_shell/mac/test_webview_delegate.mm index ee5cef1..83d0237 100644 --- a/webkit/tools/test_shell/mac/test_webview_delegate.mm +++ b/webkit/tools/test_shell/mac/test_webview_delegate.mm @@ -46,6 +46,7 @@ void TestWebViewDelegate::show(WebNavigationPolicy policy) { items.push_back(popup_menu_info_->items[i]); int item_height = popup_menu_info_->itemHeight; + double font_size = popup_menu_info_->itemFontSize; int selected_index = popup_menu_info_->selectedIndex; popup_menu_info_.reset(); // No longer needed. @@ -60,7 +61,8 @@ void TestWebViewDelegate::show(WebNavigationPolicy policy) { // Display the menu. scoped_nsobject<WebMenuRunner> menu_runner; - menu_runner.reset([[WebMenuRunner alloc] initWithItems:items]); + menu_runner.reset([[WebMenuRunner alloc] initWithItems:items + fontSize:font_size]); [menu_runner runMenuInView:shell_->webViewWnd() withBounds:position |