2007-07-20 Ada Chan <adachan@apple.com>
authoradachan <adachan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Jul 2007 22:59:23 +0000 (22:59 +0000)
committeradachan <adachan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Jul 2007 22:59:23 +0000 (22:59 +0000)
commit78ed313d36b1739144c1aa222c0bbfb838239b2b
treec968d18e588ef1cd9768dfbf7bc3ebdc97736ac6
parent1bfe4febd321fd1bdc0282deab05145d2706482e
2007-07-20  Ada Chan  <adachan@apple.com>

        Reviewed by Steve.

        <rdar://problem/5350832> History item's visitedCount wasn't updated correctly

        The call to setLastVisitedTimeInterval() in WebHistory::addItemForURL() does not
        really increment the visitedCount of the HistoryItem - because we only increment the count
        if the last visited time is different.  We should initialize the HistoryItem with
        lastVisited time = 0 so when we call setLastVisitedTimeInterval() later, it'll update
        the last visited time AND the visitedCount.

        * WebHistory.cpp:
        (WebHistory::addItemForURL):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24494 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/win/ChangeLog
WebKit/win/WebHistory.cpp