Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1018)

Unified Diff: Source/core/page/Page.cpp

Issue 28983004: Split the frame tree logic out of HistoryItem (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Page.cpp
diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
index c2fdba26cb753b832bb29481bf2c7fc70232f550..ca5a5f79189d3b23ef4857c4b221be619b20d231 100644
--- a/Source/core/page/Page.cpp
+++ b/Source/core/page/Page.cpp
@@ -104,6 +104,7 @@ Page::Page(PageClients& pageClients)
, m_contextMenuController(ContextMenuController::create(this, pageClients.contextMenuClient))
, m_inspectorController(InspectorController::create(this, pageClients.inspectorClient))
, m_pointerLockController(PointerLockController::create(this))
+ , m_history(adoptPtr(new HistoryController(this)))
, m_settings(Settings::create(this))
, m_progress(ProgressTracker::create())
, m_backForwardClient(pageClients.backForwardClient)
@@ -222,18 +223,6 @@ void Page::setOpenedByDOM()
m_openedByDOM = true;
}
-void Page::goToItem(HistoryItem* item)
-{
- // stopAllLoaders may end up running onload handlers, which could cause further history traversals that may lead to the passed in HistoryItem
- // being deref()-ed. Make sure we can still use it with HistoryController::goToItem later.
- RefPtr<HistoryItem> protector(item);
-
- if (m_mainFrame->loader().history()->shouldStopLoadingForHistoryItem(item))
- m_mainFrame->loader().stopAllLoaders();
-
- m_mainFrame->loader().history()->goToItem(item);
-}
-
void Page::clearPageGroup()
{
if (!m_group)
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698