• weinig@apple.com's avatar
    ContextMenuController should hold onto a Page& · d376cafe
    weinig@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=121320
    
    Reviewed by Anders Carlsson.
    
    * page/ContextMenuController.cpp:
    (WebCore::ContextMenuController::ContextMenuController):
    (WebCore::ContextMenuController::~ContextMenuController):
    (WebCore::ContextMenuController::showContextMenu):
    (WebCore::ContextMenuController::contextMenuItemSelected):
    (WebCore::ContextMenuController::checkOrEnableIfNeeded):
    (WebCore::ContextMenuController::showContextMenuAt):
    * page/ContextMenuController.h:
    Store the Page and ContextMenuClient as references.
    
    * page/Page.cpp:
    (WebCore::Page::Page):
    Pass the Page and ContextMenuClient as references and switch to using createOwned<>().
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d376cafe