Changeset 156660 in webkit for trunk/Source/WebCore/page/Page.cpp
- Timestamp:
- Sep 30, 2013, 9:50:34 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/page/Page.cpp
r156625 r156660 125 125 126 126 Page::Page(PageClients& pageClients) 127 : m_chrome( createOwned<Chrome>(*this, *pageClients.chromeClient))128 , m_dragCaretController( createOwned<DragCaretController>())127 : m_chrome(std::make_unique<Chrome>(*this, *pageClients.chromeClient)) 128 , m_dragCaretController(std::make_unique<DragCaretController>()) 129 129 #if ENABLE(DRAG_SUPPORT) 130 , m_dragController( createOwned<DragController>(*this, *pageClients.dragClient))131 #endif 132 , m_focusController( createOwned<FocusController>(*this))130 , m_dragController(std::make_unique<DragController>(*this, *pageClients.dragClient)) 131 #endif 132 , m_focusController(std::make_unique<FocusController>(*this)) 133 133 #if ENABLE(CONTEXT_MENUS) 134 , m_contextMenuController( createOwned<ContextMenuController>(*this, *pageClients.contextMenuClient))134 , m_contextMenuController(std::make_unique<ContextMenuController>(*this, *pageClients.contextMenuClient)) 135 135 #endif 136 136 #if ENABLE(INSPECTOR) … … 141 141 #endif 142 142 , m_settings(Settings::create(this)) 143 , m_progress( ProgressTracker::create())144 , m_backForwardController( createOwned<BackForwardController>(*this, pageClients.backForwardClient))143 , m_progress(std::make_unique<ProgressTracker>()) 144 , m_backForwardController(std::make_unique<BackForwardController>(*this, pageClients.backForwardClient)) 145 145 , m_mainFrame(MainFrame::create(*this, *pageClients.loaderClientForMainFrame)) 146 146 , m_theme(RenderTheme::themeForPage(this)) … … 186 186 , m_alternativeTextClient(pageClients.alternativeTextClient) 187 187 , m_scriptedAnimationsSuspended(false) 188 , m_pageThrottler( createOwned<PageThrottler>(*this))189 , m_console( createOwned<PageConsole>(*this))188 , m_pageThrottler(std::make_unique<PageThrottler>(*this)) 189 , m_console(std::make_unique<PageConsole>(*this)) 190 190 , m_lastSpatialNavigationCandidatesCount(0) // NOTE: Only called from Internals for Spatial Navigation testing. 191 191 , m_framesHandlingBeforeUnloadEvent(0) … … 441 441 m_group = m_singlePageGroup.get(); 442 442 else { 443 m_singlePageGroup .clear();443 m_singlePageGroup = nullptr; 444 444 m_group = PageGroup::pageGroup(name); 445 445 m_group->addPage(this); … … 456 456 ASSERT(!m_singlePageGroup); 457 457 ASSERT(!m_group); 458 m_singlePageGroup = PageGroup::create(this);458 m_singlePageGroup = std::make_unique<PageGroup>(*this); 459 459 m_group = m_singlePageGroup.get(); 460 460 }
Note:
See TracChangeset
for help on using the changeset viewer.