Index: Source/WebCore/page/History.cpp |
=================================================================== |
--- Source/WebCore/page/History.cpp (revision 112895) |
+++ Source/WebCore/page/History.cpp (working copy) |
@@ -88,11 +88,11 @@ |
return; |
ASSERT(isMainThread()); |
- Frame* activeFrame = static_cast<Document*>(context)->frame(); |
- if (!activeFrame) |
+ Document* activeDocument = static_cast<Document*>(context); |
+ if (!activeDocument) |
return; |
- if (!activeFrame->loader()->shouldAllowNavigation(m_frame)) |
+ if (!activeDocument->canNavigate(m_frame)) |
return; |
m_frame->navigationScheduler()->scheduleHistoryNavigation(distance); |