WebCore:
[WebKit-https.git] / WebKit / WebCoreSupport / WebContextMenuClient.mm
index 2a7e6f23d9ee33dd652b9b60913977a4052b00b4..1c92df5db0f1e0c423d4831cea6bfa95616fff64 100644 (file)
@@ -65,11 +65,11 @@ void WebContextMenuClient::addCustomContextMenuItems(ContextMenu* menu)
 
 void WebContextMenuClient::contextMenuItemSelected(ContextMenuItem* item)
 {
-    ASSERT(item->menu());
+    ASSERT(item->parentMenu());
     
     id delegate = [m_webView UIDelegate];
     if ([delegate respondsToSelector:@selector(webView:contextMenuItemSelected:forElement:)]) {
-        NSDictionary *element = [[[WebElementDictionary alloc] initWithHitTestResult:item->menu()->hitTestResult()] autorelease];
+        NSDictionary *element = [[[WebElementDictionary alloc] initWithHitTestResult:item->parentMenu()->hitTestResult()] autorelease];
         [delegate webView:m_webView contextMenuItemSelected:item->platformDescription() forElement:element];
     }
 }