Skip to content
  • beidson@apple.com's avatar
    WebCore: · 0d9e16ff
    beidson@apple.com authored
    2008-11-04  Brady Eidson  <beidson@apple.com>
    
            Reviewed by John Sullivan
    
            Add a simple "visited" method to HistoryItem for use by global history
    
            * WebCore.base.exp:
    
            * history/HistoryItem.cpp:
            (WebCore::HistoryItem::visited):  Update the title on the item, set last visited time,
              and bump the visit count.  All things that should happen when a url is visited again!
            * history/HistoryItem.h:
    
    WebKit/mac:
    
    2008-11-04  Brady Eidson  <beidson@apple.com>
    
            Reviewed by John Sullivan
    
            Cleanup global history a tad.  
    
            Used to _addItemForURL always create a new item and merge it with a previous item if one existed.
    
            It is more efficient and less complicated to update the previous item if one exists.
    
            * History/WebHistory.mm:
            (-[WebHistoryPrivate visitedURL:withTitle:]):
            (-[WebHistory _visitedURL:withTitle:]):  Instead of calling the general purpose [WebHistoryPrivate addItem:]
              with a new history item, call the new special purposed visitedURL:withTitle:
            * History/WebHistoryInternal.h:
    
            * History/WebHistoryItem.mm:
            (-[WebHistoryItem _visitedWithTitle:]): Call "visited()" on the WebCore history item with the pertinent info.
            * History/WebHistoryItemInternal.h:
    
            * WebCoreSupport/WebFrameLoaderClient.mm:
            (WebFrameLoaderClient::updateGlobalHistory):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38110 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0d9e16ff