Skip to content
  • dbates@webkit.org's avatar
    [iOS] Upstream WebCore/history changes · 611e3546
    dbates@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=125769
    
    Reviewed by Darin Adler.
    
    * history/BackForwardClient.h:
    * history/BackForwardList.cpp:
    (WebCore::BackForwardList::current): Added; guard by PLATFORM(IOS). Also added FIXME comment.
    (WebCore::BackForwardList::setCurrent): Added; guard by PLATFORM(IOS). Also added FIXME comment.
    (WebCore::BackForwardList::clearAllPageCaches): Added; guarded by PLATFORM(IOS).
    * history/BackForwardList.h:
    * history/CachedFrame.cpp:
    (WebCore::CachedFrameBase::restore): Added iOS-specific code.
    (WebCore::CachedFrame::CachedFrame): Ditto.
    * history/CachedPage.cpp:
    (WebCore::CachedPage::restore): Ditto.
    * history/HistoryItem.cpp:
    (WebCore::HistoryItem::HistoryItem): Ditto.
    * history/HistoryItem.h:
    (WebCore::HistoryItem::scale): Added; guarded by PLATFORM(IOS).
    (WebCore::HistoryItem::scaleIsInitial): Added; guarded by PLATFORM(IOS).
    (WebCore::HistoryItem::setScale): Added; guarded by PLATFORM(IOS).
    (WebCore::HistoryItem::viewportArguments): Added; guarded by PLATFORM(IOS).
    (WebCore::HistoryItem::setViewportArguments): Added; guarded by PLATFORM(IOS).
    (WebCore::HistoryItem::bookmarkID): Added; guarded by PLATFORM(IOS).
    (WebCore::HistoryItem::setBookmarkID): Added; guarded by PLATFORM(IOS).
    (WebCore::HistoryItem::sharedLinkUniqueIdentifier): Added; guarded by PLATFORM(IOS).
    (WebCore::HistoryItem::setSharedLinkUniqueIdentifier): Added; guarded by PLATFORM(IOS).
    * history/PageCache.cpp:
    (WebCore::logCanCacheFrameDecision): Added iOS-specific code.
    (WebCore::logCanCachePageDecision): Ditto.
    (WebCore::PageCache::canCachePageContainingThisFrame): Ditto.
    (WebCore::PageCache::canCache): Ditto.
    (WebCore::PageCache::pruneToCapacityNow): Added.
    * history/PageCache.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    611e3546