Title: [181709] trunk/Source/WebCore
- Revision
- 181709
- Author
- [email protected]
- Date
- 2015-03-18 14:06:15 -0700 (Wed, 18 Mar 2015)
Log Message
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: trunk/Source/WebCore/ChangeLog (181708 => 181709)
--- trunk/Source/WebCore/ChangeLog 2015-03-18 20:42:11 UTC (rev 181708)
+++ trunk/Source/WebCore/ChangeLog 2015-03-18 21:06:15 UTC (rev 181709)
@@ -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 Tim Horton <[email protected]>
Temporarily fix the !ENABLE(CSS_SELECTOR_JIT) and assertions-enabled build
Modified: trunk/Source/WebCore/platform/Cookie.h (181708 => 181709)
--- trunk/Source/WebCore/platform/Cookie.h 2015-03-18 20:42:11 UTC (rev 181708)
+++ trunk/Source/WebCore/platform/Cookie.h 2015-03-18 21:06:15 UTC (rev 181709)
@@ -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