Title: [222767] trunk/Source/WebCore
Revision
222767
Author
[email protected]
Date
2017-10-02 21:35:28 -0700 (Mon, 02 Oct 2017)

Log Message

Rename computeSharedStringHash() overload taking a URL to computedVisitedLinkHash()
https://bugs.webkit.org/show_bug.cgi?id=177776

Reviewed by Alex Christensen.

* dom/VisitedLinkState.cpp:
(WebCore::linkHashForElement):
(WebCore::VisitedLinkState::determineLinkStateSlowCase):
* html/HTMLAnchorElement.h:
(WebCore::HTMLAnchorElement::visitedLinkHash const):
* platform/SharedStringHash.cpp:
(WebCore::computeVisitedLinkHash):
* platform/SharedStringHash.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (222766 => 222767)


--- trunk/Source/WebCore/ChangeLog	2017-10-03 03:07:05 UTC (rev 222766)
+++ trunk/Source/WebCore/ChangeLog	2017-10-03 04:35:28 UTC (rev 222767)
@@ -1,3 +1,19 @@
+2017-10-02  Chris Dumez  <[email protected]>
+
+        Rename computeSharedStringHash() overload taking a URL to computedVisitedLinkHash()
+        https://bugs.webkit.org/show_bug.cgi?id=177776
+
+        Reviewed by Alex Christensen.
+
+        * dom/VisitedLinkState.cpp:
+        (WebCore::linkHashForElement):
+        (WebCore::VisitedLinkState::determineLinkStateSlowCase):
+        * html/HTMLAnchorElement.h:
+        (WebCore::HTMLAnchorElement::visitedLinkHash const):
+        * platform/SharedStringHash.cpp:
+        (WebCore::computeVisitedLinkHash):
+        * platform/SharedStringHash.h:
+
 2017-10-02  Joanmarie Diggs  <[email protected]>
 
         AX: [ATK] The value of aria-level is not exposed on non-heading roles

Modified: trunk/Source/WebCore/dom/VisitedLinkState.cpp (222766 => 222767)


--- trunk/Source/WebCore/dom/VisitedLinkState.cpp	2017-10-03 03:07:05 UTC (rev 222766)
+++ trunk/Source/WebCore/dom/VisitedLinkState.cpp	2017-10-03 04:35:28 UTC (rev 222767)
@@ -71,7 +71,7 @@
     if (is<HTMLAnchorElement>(element))
         return downcast<HTMLAnchorElement>(element).visitedLinkHash();
     if (const AtomicString* attribute = linkAttribute(element))
-        return WebCore::computeSharedStringHash(document.baseURL(), *attribute);
+        return computeVisitedLinkHash(document.baseURL(), *attribute);
     return 0;
 }
 
@@ -102,7 +102,7 @@
     if (is<HTMLAnchorElement>(element))
         hash = downcast<HTMLAnchorElement>(element).visitedLinkHash();
     else
-        hash = WebCore::computeSharedStringHash(element.document().baseURL(), *attribute);
+        hash = computeVisitedLinkHash(element.document().baseURL(), *attribute);
 
     if (!hash)
         return InsideUnvisitedLink;

Modified: trunk/Source/WebCore/html/HTMLAnchorElement.h (222766 => 222767)


--- trunk/Source/WebCore/html/HTMLAnchorElement.h	2017-10-03 03:07:05 UTC (rev 222766)
+++ trunk/Source/WebCore/html/HTMLAnchorElement.h	2017-10-03 04:35:28 UTC (rev 222767)
@@ -112,7 +112,7 @@
 inline SharedStringHash HTMLAnchorElement::visitedLinkHash() const
 {
     if (!m_cachedVisitedLinkHash)
-        m_cachedVisitedLinkHash = WebCore::computeSharedStringHash(document().baseURL(), attributeWithoutSynchronization(HTMLNames::hrefAttr));
+        m_cachedVisitedLinkHash = computeVisitedLinkHash(document().baseURL(), attributeWithoutSynchronization(HTMLNames::hrefAttr));
     return m_cachedVisitedLinkHash; 
 }
 

Modified: trunk/Source/WebCore/platform/SharedStringHash.cpp (222766 => 222767)


--- trunk/Source/WebCore/platform/SharedStringHash.cpp	2017-10-03 03:07:05 UTC (rev 222766)
+++ trunk/Source/WebCore/platform/SharedStringHash.cpp	2017-10-03 04:35:28 UTC (rev 222767)
@@ -280,7 +280,7 @@
     return;
 }
 
-SharedStringHash computeSharedStringHash(const URL& base, const AtomicString& attributeURL)
+SharedStringHash computeVisitedLinkHash(const URL& base, const AtomicString& attributeURL)
 {
     if (attributeURL.isEmpty())
         return 0;

Modified: trunk/Source/WebCore/platform/SharedStringHash.h (222766 => 222767)


--- trunk/Source/WebCore/platform/SharedStringHash.h	2017-10-03 03:07:05 UTC (rev 222766)
+++ trunk/Source/WebCore/platform/SharedStringHash.h	2017-10-03 04:35:28 UTC (rev 222767)
@@ -60,6 +60,6 @@
 // base URL, and returns the hash of the string that will be used for visited
 // link coloring. It will return the special value of 0 if attributeURL does not
 // look like a relative URL.
-SharedStringHash computeSharedStringHash(const URL& base, const AtomicString& attributeURL);
+SharedStringHash computeVisitedLinkHash(const URL& base, const AtomicString& attributeURL);
 
 } // namespace WebCore
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to