Commit 2c74a80b authored by aroben's avatar aroben

Initialize ContextMenuController::m_page

Somehow this variable had never been initialized before.

Reviewed by Tim.

* page/ContextMenuController.cpp:
(WebCore::ContextMenuController::ContextMenuController):
* page/ContextMenuController.h:
* page/Page.cpp:
(WebCore::Page::Page):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24379 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ae021902
2007-07-17 Adam Roben <aroben@apple.com>
Initialize ContextMenuController::m_page
Somehow this variable had never been initialized before.
Reviewed by Tim.
* page/ContextMenuController.cpp:
(WebCore::ContextMenuController::ContextMenuController):
* page/ContextMenuController.h:
* page/Page.cpp:
(WebCore::Page::Page):
2007-07-17 Adam Roben <aroben@apple.com>
Add Settings::developerExtrasEnabled
......@@ -58,10 +58,13 @@ namespace WebCore {
using namespace EventNames;
ContextMenuController::ContextMenuController(ContextMenuClient* client)
: m_client(client)
ContextMenuController::ContextMenuController(Page* page, ContextMenuClient* client)
: m_page(page)
, m_client(client)
, m_contextMenu(0)
{
ASSERT_ARG(page, page);
ASSERT_ARG(client, client);
}
ContextMenuController::~ContextMenuController()
......
......@@ -39,7 +39,7 @@ namespace WebCore {
class ContextMenuController : Noncopyable {
public:
ContextMenuController(ContextMenuClient*);
ContextMenuController(Page*, ContextMenuClient*);
~ContextMenuController();
ContextMenuClient* client() { return m_client; }
......
......@@ -72,7 +72,7 @@ Page::Page(ChromeClient* chromeClient, ContextMenuClient* contextMenuClient, Edi
, m_dragCaretController(new SelectionController(0, true))
, m_dragController(new DragController(this, dragClient))
, m_focusController(new FocusController(this))
, m_contextMenuController(new ContextMenuController(contextMenuClient))
, m_contextMenuController(new ContextMenuController(this, contextMenuClient))
, m_settings(new Settings(this))
, m_progress(new ProgressTracker)
, m_backForwardList(new BackForwardList(this))
......
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