summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/jni')
-rw-r--r--WebKit/android/jni/WebHistory.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/WebKit/android/jni/WebHistory.cpp b/WebKit/android/jni/WebHistory.cpp
index ad7b32e..46c40a5 100644
--- a/WebKit/android/jni/WebHistory.cpp
+++ b/WebKit/android/jni/WebHistory.cpp
@@ -147,15 +147,8 @@ static void WebHistoryRestoreIndex(JNIEnv* env, jobject obj, jint frame, jint in
LOG_ASSERT(frame, "RestoreState needs a valid Frame pointer!");
WebCore::Frame* pFrame = (WebCore::Frame*)frame;
WebCore::Page* page = pFrame->page();
-
- // Set the current index in the list.
- WebCore::BackForwardList* list = page->backForwardList();
- WebCore::HistoryItem* currentItem = list->entries()[index].get();
- list->goToItem(currentItem);
-
- // Update the current and previous history item.
- WebCore::FrameLoader* loader = pFrame->loader();
- loader->history()->setCurrentItem(currentItem);
+ WebCore::HistoryItem* currentItem =
+ page->backForwardList()->entries()[index].get();
// load the current page with FrameLoadTypeIndexedBackForward so that it
// will use cache when it is possible