Title: [181940] releases/WebKitGTK/webkit-2.8/Source/WebCore
Revision
181940
Author
[email protected]
Date
2015-03-25 02:53:47 -0700 (Wed, 25 Mar 2015)

Log Message

Merge r181709 - Pass cookies by reference in CookieHash functions
https://bugs.webkit.org/show_bug.cgi?id=142839

Reviewed by Sam Weinig.

* platform/Cookie.h:
(WebCore::CookieHash::hash):
(WebCore::CookieHash::equal):

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.8/Source/WebCore/ChangeLog (181939 => 181940)


--- releases/WebKitGTK/webkit-2.8/Source/WebCore/ChangeLog	2015-03-25 09:50:23 UTC (rev 181939)
+++ releases/WebKitGTK/webkit-2.8/Source/WebCore/ChangeLog	2015-03-25 09:53:47 UTC (rev 181940)
@@ -1,3 +1,14 @@
+2015-03-18  Anders Carlsson  <[email protected]>
+
+        Pass cookies by reference in CookieHash functions
+        https://bugs.webkit.org/show_bug.cgi?id=142839
+
+        Reviewed by Sam Weinig.
+
+        * platform/Cookie.h:
+        (WebCore::CookieHash::hash):
+        (WebCore::CookieHash::equal):
+
 2015-03-18  Manuel Rego Casasnovas  <[email protected]>
 
         Flex and grid items should be painted as inline-blocks

Modified: releases/WebKitGTK/webkit-2.8/Source/WebCore/platform/Cookie.h (181939 => 181940)


--- releases/WebKitGTK/webkit-2.8/Source/WebCore/platform/Cookie.h	2015-03-25 09:50:23 UTC (rev 181939)
+++ releases/WebKitGTK/webkit-2.8/Source/WebCore/platform/Cookie.h	2015-03-25 09:53:47 UTC (rev 181940)
@@ -62,12 +62,12 @@
     };
 
     struct CookieHash {
-        static unsigned hash(Cookie key)
+        static unsigned hash(const Cookie& key)
         { 
             return StringHash::hash(key.name) + StringHash::hash(key.domain) + StringHash::hash(key.path) + key.secure;
         }
 
-        static bool equal(Cookie a, Cookie b)
+        static bool equal(const Cookie& a, const Cookie& b)
         {
             return a.name == b.name && a.domain == b.domain && a.path == b.path && a.secure == b.secure;
         }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to