Title: [176577] trunk/Source/WebCore
Revision
176577
Author
[email protected]
Date
2014-11-29 14:17:07 -0800 (Sat, 29 Nov 2014)

Log Message

Add an EmptyVisitedLinkStore implementation
https://bugs.webkit.org/show_bug.cgi?id=139102

Reviewed by Sam Weinig.

* loader/EmptyClients.cpp:
(WebCore::fillWithEmptyClients):
* loader/EmptyClients.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (176576 => 176577)


--- trunk/Source/WebCore/ChangeLog	2014-11-29 22:11:08 UTC (rev 176576)
+++ trunk/Source/WebCore/ChangeLog	2014-11-29 22:17:07 UTC (rev 176577)
@@ -1,3 +1,14 @@
+2014-11-29  Anders Carlsson  <[email protected]>
+
+        Add an EmptyVisitedLinkStore implementation
+        https://bugs.webkit.org/show_bug.cgi?id=139102
+
+        Reviewed by Sam Weinig.
+
+        * loader/EmptyClients.cpp:
+        (WebCore::fillWithEmptyClients):
+        * loader/EmptyClients.h:
+
 2014-11-28  Sam Weinig  <[email protected]>
 
         Move the '-webkit-initial-letter', '-webkit-line-box-contain' and '-webkit-text-stroke-width' CSS properties to the new StyleBuilder

Modified: trunk/Source/WebCore/loader/EmptyClients.cpp (176576 => 176577)


--- trunk/Source/WebCore/loader/EmptyClients.cpp	2014-11-29 22:11:08 UTC (rev 176576)
+++ trunk/Source/WebCore/loader/EmptyClients.cpp	2014-11-29 22:17:07 UTC (rev 176577)
@@ -44,6 +44,11 @@
 
 namespace WebCore {
 
+class EmptyVisitedLinkStore : public VisitedLinkStore {
+    virtual bool isLinkVisited(Page&, LinkHash, const URL&, const AtomicString&) override { return false; }
+    virtual void addVisitedLink(Page&, LinkHash) override { }
+};
+
 void fillWithEmptyClients(PageConfiguration& pageConfiguration)
 {
     static NeverDestroyed<EmptyChromeClient> dummyChromeClient;
@@ -73,6 +78,8 @@
 
     static NeverDestroyed<EmptyDiagnosticLoggingClient> dummyDiagnosticLoggingClient;
     pageConfiguration.diagnosticLoggingClient = &dummyDiagnosticLoggingClient.get();
+
+    pageConfiguration.visitedLinkStore = adoptRef(new EmptyVisitedLinkStore);
 }
 
 class EmptyPopupMenu : public PopupMenu {

Modified: trunk/Source/WebCore/loader/EmptyClients.h (176576 => 176577)


--- trunk/Source/WebCore/loader/EmptyClients.h	2014-11-29 22:11:08 UTC (rev 176576)
+++ trunk/Source/WebCore/loader/EmptyClients.h	2014-11-29 22:17:07 UTC (rev 176577)
@@ -44,6 +44,7 @@
 #include "Page.h"
 #include "ProgressTrackerClient.h"
 #include "ResourceError.h"
+#include "VisitedLinkStore.h"
 #include <wtf/text/StringView.h>
 
 /*
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to