diff options
Diffstat (limited to 'Source/WebKit2/UIProcess/WebBackForwardList.cpp')
| -rw-r--r-- | Source/WebKit2/UIProcess/WebBackForwardList.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebKit2/UIProcess/WebBackForwardList.cpp b/Source/WebKit2/UIProcess/WebBackForwardList.cpp index 00e8f4c01..763023d07 100644 --- a/Source/WebKit2/UIProcess/WebBackForwardList.cpp +++ b/Source/WebKit2/UIProcess/WebBackForwardList.cpp @@ -186,21 +186,21 @@ WebBackForwardListItem* WebBackForwardList::itemAtIndex(int index) return m_entries[index + m_currentIndex].get(); } -int WebBackForwardList::backListCount() +int WebBackForwardList::backListCount() const { ASSERT(!m_hasCurrentIndex || m_currentIndex < m_entries.size()); return m_page && m_hasCurrentIndex ? m_currentIndex : 0; } -int WebBackForwardList::forwardListCount() +int WebBackForwardList::forwardListCount() const { ASSERT(!m_hasCurrentIndex || m_currentIndex < m_entries.size()); return m_page && m_hasCurrentIndex ? m_entries.size() - (m_currentIndex + 1) : 0; } -PassRefPtr<ImmutableArray> WebBackForwardList::backListAsImmutableArrayWithLimit(unsigned limit) +PassRefPtr<ImmutableArray> WebBackForwardList::backListAsImmutableArrayWithLimit(unsigned limit) const { ASSERT(!m_hasCurrentIndex || m_currentIndex < m_entries.size()); @@ -224,7 +224,7 @@ PassRefPtr<ImmutableArray> WebBackForwardList::backListAsImmutableArrayWithLimit return ImmutableArray::adopt(vector); } -PassRefPtr<ImmutableArray> WebBackForwardList::forwardListAsImmutableArrayWithLimit(unsigned limit) +PassRefPtr<ImmutableArray> WebBackForwardList::forwardListAsImmutableArrayWithLimit(unsigned limit) const { ASSERT(!m_hasCurrentIndex || m_currentIndex < m_entries.size()); |
