diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-12 22:27:08 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-12 22:27:08 +0000 |
commit | 2969763caf40459ced64b909f60768a8b991e308 (patch) | |
tree | 8c5ead89fbf0b670862f74fe918b88dad94bc321 /webkit/port/bindings/v8/v8_custom.h | |
parent | a34134678d6b2b048da627ef3105af312404a808 (diff) | |
download | chromium_src-2969763caf40459ced64b909f60768a8b991e308.zip chromium_src-2969763caf40459ced64b909f60768a8b991e308.tar.gz chromium_src-2969763caf40459ced64b909f60768a8b991e308.tar.bz2 |
Fix for http://code.google.com/p/chromium/issues/detail?id=5409.
A case study on why constants are bad. The meaning of V8 NPObject wrapper
constants got rearranged, and we failed to detect them properly, resulting in
doubly-wrapped NPObjects.
BUG=5409
Review URL: http://codereview.chromium.org/14031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6941 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/bindings/v8/v8_custom.h')
-rw-r--r-- | webkit/port/bindings/v8/v8_custom.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/port/bindings/v8/v8_custom.h b/webkit/port/bindings/v8/v8_custom.h index 64a2351..08ea4bc 100644 --- a/webkit/port/bindings/v8/v8_custom.h +++ b/webkit/port/bindings/v8/v8_custom.h @@ -37,6 +37,9 @@ class V8Custom { static const int kDOMWrapperObjectIndex = 1; static const int kDefaultWrapperInternalFieldCount = 2; + static const int kNPObjectInternalFieldCount = + kDefaultWrapperInternalFieldCount + 0; + static const int kDocumentImplementationIndex = kDefaultWrapperInternalFieldCount + 0; static const int kDocumentMinimumInternalFieldCount = |