diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-12 17:38:46 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-12 17:38:46 +0000 |
commit | 310cf7bf7b505c85a5c18a42ad2d05c56bc7d301 (patch) | |
tree | 4880e7f57a9fbcd271db7dec7cc979908f3cd960 /webkit/port | |
parent | 210d2de6ed1ddbe03ac992abd3cea8dbd8fc7292 (diff) | |
download | chromium_src-310cf7bf7b505c85a5c18a42ad2d05c56bc7d301.zip chromium_src-310cf7bf7b505c85a5c18a42ad2d05c56bc7d301.tar.gz chromium_src-310cf7bf7b505c85a5c18a42ad2d05c56bc7d301.tar.bz2 |
Revert 11539 which increased webkit failures on the mac
tbr=davemoore
Review URL: http://codereview.chromium.org/42134
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11548 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r-- | webkit/port/bindings/v8/V8SVGPODTypeWrapper.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/webkit/port/bindings/v8/V8SVGPODTypeWrapper.h b/webkit/port/bindings/v8/V8SVGPODTypeWrapper.h index 79553c2..55e9ee1 100644 --- a/webkit/port/bindings/v8/V8SVGPODTypeWrapper.h +++ b/webkit/port/bindings/v8/V8SVGPODTypeWrapper.h @@ -262,10 +262,7 @@ template<typename PODType, typename PODTypeCreator> struct PODTypeWrapperCacheInfoHash { static unsigned hash(const PODTypeWrapperCacheInfo<PODType, PODTypeCreator>& info) { - 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); + return StringImpl::computeHash((::UChar*) &info, sizeof(PODTypeWrapperCacheInfo<PODType, PODTypeCreator>) / sizeof(::UChar)); } static bool equal(const PODTypeWrapperCacheInfo<PODType, PODTypeCreator>& a, const PODTypeWrapperCacheInfo<PODType, PODTypeCreator>& b) |