summaryrefslogtreecommitdiffstats
path: root/WebCore/page/History.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/page/History.cpp')
-rw-r--r--WebCore/page/History.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/page/History.cpp b/WebCore/page/History.cpp
index 3d463b6..95b1350 100644
--- a/WebCore/page/History.cpp
+++ b/WebCore/page/History.cpp
@@ -26,6 +26,7 @@
#include "config.h"
#include "History.h"
+#include "BackForwardController.h"
#include "ExceptionCode.h"
#include "Frame.h"
#include "FrameLoader.h"
@@ -56,7 +57,7 @@ unsigned History::length() const
return 0;
if (!m_frame->page())
return 0;
- return m_frame->page()->getHistoryLength();
+ return m_frame->page()->backForward()->count();
}
void History::back()