Changeset 176582 in webkit
- Timestamp:
- Nov 29, 2014, 3:40:30 PM (12 years ago)
- Location:
- trunk/Source/WebKit/win
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
WebCoreSupport/WebChromeClient.cpp (modified) (1 diff)
-
WebHistory.cpp (modified) (6 diffs)
-
WebHistory.h (modified) (1 diff)
-
WebView.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/win/ChangeLog
r176581 r176582 1 2014-11-29 Anders Carlsson <andersca@apple.com> 2 3 Switch over to using WebVisitedLinkStore on Windows 4 https://bugs.webkit.org/show_bug.cgi?id=139103 5 6 Reviewed by Antti Koivisto. 7 8 * WebCoreSupport/WebChromeClient.cpp: 9 (WebChromeClient::populateVisitedLinks): 10 * WebHistory.cpp: 11 (WebHistory::setOptionalSharedHistory): 12 (WebHistory::removeAllItems): 13 (WebHistory::setVisitedLinkTrackingEnabled): 14 (WebHistory::removeAllVisitedLinks): 15 (WebHistory::removeItemForURLString): 16 (WebHistory::addVisitedLinksToVisitedLinkStore): 17 (WebHistory::addVisitedLinksToPageGroup): Deleted. 18 * WebHistory.h: 19 * WebView.cpp: 20 (WebView::initWithFrame): 21 1 22 2014-11-29 Anders Carlsson <andersca@apple.com> 2 23 -
trunk/Source/WebKit/win/WebCoreSupport/WebChromeClient.cpp
r174470 r176582 638 638 void WebChromeClient::populateVisitedLinks() 639 639 { 640 COMPtr<IWebHistoryDelegate> historyDelegate;641 m_webView->historyDelegate(&historyDelegate);642 if (historyDelegate) {643 historyDelegate->populateVisitedLinksForWebView(m_webView);644 return;645 }646 647 WebHistory* history = WebHistory::sharedHistory();648 if (!history)649 return;650 history->addVisitedLinksToPageGroup(m_webView->page()->group());651 640 } 652 641 -
trunk/Source/WebKit/win/WebHistory.cpp
r176581 r176582 264 264 return S_OK; 265 265 sharedHistoryStorage().query(history); 266 PageGroup::setShouldTrackVisitedLinks(sharedHistoryStorage());267 PageGroup::removeAllVisitedLinks();266 WebVisitedLinkStore::setShouldTrackVisitedLinks(sharedHistoryStorage()); 267 WebVisitedLinkStore::removeAllVisitedLinks(); 268 268 return S_OK; 269 269 } … … 325 325 m_entriesByURL.clear(); 326 326 327 PageGroup::removeAllVisitedLinks();327 WebVisitedLinkStore::removeAllVisitedLinks(); 328 328 329 329 return postNotification(kWebHistoryAllItemsRemovedNotification, userInfo.get()); … … 375 375 HRESULT WebHistory::setVisitedLinkTrackingEnabled(BOOL visitedLinkTrackingEnabled) 376 376 { 377 PageGroup::setShouldTrackVisitedLinks(visitedLinkTrackingEnabled);377 WebVisitedLinkStore::setShouldTrackVisitedLinks(visitedLinkTrackingEnabled); 378 378 return S_OK; 379 379 } … … 381 381 HRESULT WebHistory::removeAllVisitedLinks() 382 382 { 383 PageGroup::removeAllVisitedLinks();383 WebVisitedLinkStore::removeAllVisitedLinks(); 384 384 return S_OK; 385 385 } … … 568 568 569 569 if (!m_entriesByURL.size()) 570 PageGroup::removeAllVisitedLinks();570 WebVisitedLinkStore::removeAllVisitedLinks(); 571 571 572 572 return S_OK; … … 585 585 visitedLinkStore.addVisitedLink(url); 586 586 } 587 588 void WebHistory::addVisitedLinksToPageGroup(PageGroup& group)589 {590 for (auto& url : m_entriesByURL.keys())591 group.addVisitedLinkHash(visitedLinkHash(url));592 } -
trunk/Source/WebKit/win/WebHistory.h
r176579 r176582 113 113 static WebHistory* sharedHistory(); 114 114 void visitedURL(const WebCore::URL&, const WTF::String& title, const WTF::String& httpMethod, bool wasFailure, bool increaseVisitCount); 115 void addVisitedLinksToPageGroup(WebCore::PageGroup&);116 115 void addVisitedLinksToVisitedLinkStore(WebVisitedLinkStore&); 117 116 -
trunk/Source/WebKit/win/WebView.cpp
r176578 r176582 2804 2804 configuration.loaderClientForMainFrame = new WebFrameLoaderClient; 2805 2805 configuration.progressTrackerClient = static_cast<WebFrameLoaderClient*>(configuration.loaderClientForMainFrame); 2806 configuration.visitedLinkStore = &WebVisitedLinkStore::shared(); 2806 2807 2807 2808 m_page = new Page(configuration);
Note:
See TracChangeset
for help on using the changeset viewer.