summaryrefslogtreecommitdiffstats
path: root/webkit/port
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 19:29:38 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 19:29:38 +0000
commit773bcf71f43cb1d193054ac0f511e6bb7aaa3cb0 (patch)
treec9cd0ecd4fea7d7b03a4dad0da01e85ab3f4db12 /webkit/port
parented8b1b805203b6ccdb5517d0c30cc689dde65e98 (diff)
downloadchromium_src-773bcf71f43cb1d193054ac0f511e6bb7aaa3cb0.zip
chromium_src-773bcf71f43cb1d193054ac0f511e6bb7aaa3cb0.tar.gz
chromium_src-773bcf71f43cb1d193054ac0f511e6bb7aaa3cb0.tar.bz2
Revert 11539 restoring 11548
Mac failures seem to be flaky, and not caused by 11548 tbr=davemoore Review URL: http://codereview.chromium.org/42141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11563 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r--webkit/port/bindings/v8/V8SVGPODTypeWrapper.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/port/bindings/v8/V8SVGPODTypeWrapper.h b/webkit/port/bindings/v8/V8SVGPODTypeWrapper.h
index 55e9ee1..79553c2 100644
--- a/webkit/port/bindings/v8/V8SVGPODTypeWrapper.h
+++ b/webkit/port/bindings/v8/V8SVGPODTypeWrapper.h
@@ -262,7 +262,10 @@ template<typename PODType, typename PODTypeCreator>
struct PODTypeWrapperCacheInfoHash {
static unsigned hash(const PODTypeWrapperCacheInfo<PODType, PODTypeCreator>& info)
{
- return StringImpl::computeHash((::UChar*) &info, sizeof(PODTypeWrapperCacheInfo<PODType, PODTypeCreator>) / sizeof(::UChar));
+ unsigned creator = reinterpret_cast<unsigned>(info.creator);
+ unsigned getter = reinterpret_cast<unsigned>(*(void**)&info.getter);
+ unsigned setter = reinterpret_cast<unsigned>(*(void**)&info.setter);
+ return (creator * 13) + getter ^ (setter >> 2);
}
static bool equal(const PODTypeWrapperCacheInfo<PODType, PODTypeCreator>& a, const PODTypeWrapperCacheInfo<PODType, PODTypeCreator>& b)