void FrameLoaderClientAndroid::restoreViewState() {
#ifdef ANDROID_HISTORY_CLIENT
WebViewCore* webViewCore = WebViewCore::getWebViewCore(m_frame->view());
- HistoryItem* item = m_frame->loader()->currentHistoryItem();
+ HistoryItem* item = m_frame->loader()->history()->currentItem();
// restore the scale (only) for the top frame
if (!m_frame->tree()->parent()) {
int scale = item->bridge()->scale();
// Keep a small list of child frames to traverse.
WTF::Vector<WebCore::Frame*> frameQueue;
// Fix the top-level item.
- pFrame->loader()->setCurrentHistoryItem(current);
+ pFrame->loader()->history()->setCurrentItem(current.get());
WebCore::Frame* child = pFrame->tree()->firstChild();
// Remember the parent history item so we can search for a child item.
RefPtr<WebCore::HistoryItem> parent = current;
// Use the old history item since the current one may have a
// deleted parent.
WebCore::HistoryItem* item = parent->childItemWithTarget(child->tree()->name());
- child->loader()->setCurrentHistoryItem(item);
+ child->loader()->history()->setCurrentItem(item);
// Append the first child to the queue if it exists.
if (WebCore::Frame* f = child->tree()->firstChild())
frameQueue.append(f);
frameQueue.remove(0);
// Figure out the parent history item used when searching for
// the history item to use.
- parent = child->tree()->parent()->loader()->currentHistoryItem();
+ parent = child->tree()->parent()->loader()->history()->currentItem();
}
}
}
// Update the current and previous history item.
WebCore::FrameLoader* loader = pFrame->loader();
- loader->setCurrentHistoryItem(currentItem);
+ loader->history()->setCurrentItem(currentItem);
// load the current page with FrameLoadTypeIndexedBackForward so that it
// will use cache when it is possible
{
if (!CacheBuilder::validNode(m_mainFrame, frame, 0))
frame = m_mainFrame;
- WebCore::HistoryItem *item = frame->loader()->currentHistoryItem();
+ WebCore::HistoryItem *item = frame->loader()->history()->currentItem();
// item can be null when there is no offical URL for the current page. This happens
// when the content is loaded using with WebCoreFrameBridge::LoadData() and there