summaryrefslogtreecommitdiffstats
path: root/WebCore/wml/WMLPageState.cpp
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2010-11-10 15:31:59 -0800
committerTeng-Hui Zhu <ztenghui@google.com>2010-11-17 13:35:59 -0800
commit28040489d744e0c5d475a88663056c9040ed5320 (patch)
treec463676791e4a63e452a95f0a12b2a8519730693 /WebCore/wml/WMLPageState.cpp
parenteff9be92c41913c92fb1d3b7983c071f3e718678 (diff)
downloadexternal_webkit-28040489d744e0c5d475a88663056c9040ed5320.zip
external_webkit-28040489d744e0c5d475a88663056c9040ed5320.tar.gz
external_webkit-28040489d744e0c5d475a88663056c9040ed5320.tar.bz2
Merge WebKit at r71558: Initial merge by git.
Change-Id: Ib345578fa29df7e4bc72b4f00e4a6fddcb754c4c
Diffstat (limited to 'WebCore/wml/WMLPageState.cpp')
-rw-r--r--WebCore/wml/WMLPageState.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/WebCore/wml/WMLPageState.cpp b/WebCore/wml/WMLPageState.cpp
index d03cf44..5779e0e 100644
--- a/WebCore/wml/WMLPageState.cpp
+++ b/WebCore/wml/WMLPageState.cpp
@@ -64,8 +64,8 @@ void WMLPageState::reset()
m_variables.clear();
// Clear the navigation history state
- if (BackForwardList* list = m_page ? m_page->backForwardList() : 0)
- list->clearWMLPageHistory();
+ if (m_page)
+ m_page->backForward()->client()->clearWMLPageHistory();
}
static inline String normalizedHostName(const String& passedHost)
@@ -121,15 +121,11 @@ static bool tryAccessHistoryURLs(Page* page, KURL& previousURL, KURL& currentURL
if (!frame || !frame->document())
return false;
- BackForwardList* list = page->backForwardList();
- if (!list)
- return false;
-
- HistoryItem* previousItem = list->backItem();
+ HistoryItem* previousItem = page->backForward()->backItem();
if (!previousItem)
return false;
- HistoryItem* currentItem = list->currentItem();
+ HistoryItem* currentItem = page->backForward()->currentItem();
if (!currentItem)
return false;