⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176550 in webkit


Ignore:
Timestamp:
Nov 27, 2014, 9:58:41 AM (12 years ago)
Author:
andersca@apple.com
Message:

Add a Page::setVisitedLinkStore member function
https://bugs.webkit.org/show_bug.cgi?id=139065

Reviewed by Antti Koivisto.

This will be used in a subsequent commit.

  • WebCore.exp.in:
  • page/Page.cpp:

(WebCore::Page::setVisitedLinkStore):

  • page/Page.h:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r176545 r176550  
     12014-11-27  Anders Carlsson  <andersca@apple.com>
     2
     3        Add a Page::setVisitedLinkStore member function
     4        https://bugs.webkit.org/show_bug.cgi?id=139065
     5
     6        Reviewed by Antti Koivisto.
     7
     8        This will be used in a subsequent commit.
     9
     10        * WebCore.exp.in:
     11        * page/Page.cpp:
     12        (WebCore::Page::setVisitedLinkStore):
     13        * page/Page.h:
     14
    1152014-11-25  Sukolsak Sakshuwong  <sukolsak@gmail.com>
    216
  • trunk/Source/WebCore/WebCore.exp.in

    r176544 r176550  
    11571157__ZN7WebCore4Page19addLayoutMilestonesEj
    11581158__ZN7WebCore4Page19enablePageThrottlerEv
     1159__ZN7WebCore4Page19setVisitedLinkStoreEN3WTF7PassRefINS_16VisitedLinkStoreEEE
    11591160__ZN7WebCore4Page20scrollingCoordinatorEv
    11601161__ZN7WebCore4Page20setDeviceScaleFactorEf
  • trunk/Source/WebCore/page/Page.cpp

    r176542 r176550  
    16381638}
    16391639
     1640void Page::setVisitedLinkStore(PassRef<VisitedLinkStore> visitedLinkStore)
     1641{
     1642    if (m_visitedLinkStore)
     1643        m_visitedLinkStore->removePage(*this);
     1644
     1645    m_visitedLinkStore = WTF::move(visitedLinkStore);
     1646    m_visitedLinkStore->addPage(*this);
     1647
     1648    invalidateStylesForAllLinks();
     1649    pageCache()->markPagesForFullStyleRecalc(this);
     1650}
     1651
    16401652SessionID Page::sessionID() const
    16411653{
  • trunk/Source/WebCore/page/Page.h

    r176499 r176550  
    402402    unsigned lastSpatialNavigationCandidateCount() const { return m_lastSpatialNavigationCandidatesCount; }
    403403
     404    UserContentController* userContentController() { return m_userContentController.get(); }
    404405    void setUserContentController(UserContentController*);
    405     UserContentController* userContentController() { return m_userContentController.get(); }
    406406
    407407    VisitedLinkStore& visitedLinkStore();
     408    void setVisitedLinkStore(PassRef<VisitedLinkStore>);
    408409
    409410    WEBCORE_EXPORT SessionID sessionID() const;
Note: See TracChangeset for help on using the changeset viewer.