diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-12 19:29:38 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-12 19:29:38 +0000 |
commit | 773bcf71f43cb1d193054ac0f511e6bb7aaa3cb0 (patch) | |
tree | c9cd0ecd4fea7d7b03a4dad0da01e85ab3f4db12 /webkit/port | |
parent | ed8b1b805203b6ccdb5517d0c30cc689dde65e98 (diff) | |
download | chromium_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.h | 5 |
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) |