Skip to content
  • commit-queue@webkit.org's avatar
    2010-11-08 Juha Savolainen <juha.savolainen@weego.fi> · ce484f7d
    commit-queue@webkit.org authored
            Reviewed by Andreas Kling.
    
            [Qt] Added new methods to QWKHistory and made QWKHistoryItemPrivate to shared object.
            https://bugs.webkit.org/show_bug.cgi?id=49063
    
            Added more functionality to the QWKHistory and changed QWKHistoryItemPrivate to shared object.
            This is needed because we cannot delete the QWKHistoryItemPrivate pointer in destructor of QWKHistoryItem,
            there may have other history instances which share same private implementation.
    
            * UIProcess/API/qt/qwkhistory.cpp:
            (QWKHistoryItemPrivate::~QWKHistoryItemPrivate):
            (QWKHistoryItem::QWKHistoryItem):
            (QWKHistoryItem::QWKHistoryItem::operator=):
            (QWKHistory::currentItem): Added
            (QWKHistory::backItem): Added
            (QWKHistory::forwardItem): Added
            (QWKHistory::itemAt): Added
            (QWKHistory::backItems): Added
            (QWKHistory::forwardItems): Added
            * UIProcess/API/qt/qwkhistory.h:
            * UIProcess/API/qt/qwkhistory_p.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ce484f7d