summaryrefslogtreecommitdiffstats
path: root/webkit/port/bindings/v8
diff options
context:
space:
mode:
authorager@google.com <ager@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-02 12:53:51 +0000
committerager@google.com <ager@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-02 12:53:51 +0000
commit6240776617651b092c498411c696be9ae45a0178 (patch)
tree60ce243d38ecebd1f669775506b06c18dc4c793a /webkit/port/bindings/v8
parentbe896a761f3f022200a8e53003da99e132d9d848 (diff)
downloadchromium_src-6240776617651b092c498411c696be9ae45a0178.zip
chromium_src-6240776617651b092c498411c696be9ae45a0178.tar.gz
chromium_src-6240776617651b092c498411c696be9ae45a0178.tar.bz2
Revert the wrapper context change since it caused layout test
regressions. Review URL: http://codereview.chromium.org/5670 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2791 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/bindings/v8')
-rw-r--r--webkit/port/bindings/v8/v8_proxy.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/webkit/port/bindings/v8/v8_proxy.cpp b/webkit/port/bindings/v8/v8_proxy.cpp
index da3bec6..ae96b63 100644
--- a/webkit/port/bindings/v8/v8_proxy.cpp
+++ b/webkit/port/bindings/v8/v8_proxy.cpp
@@ -2390,28 +2390,10 @@ v8::Handle<v8::Value> V8Proxy::NodeToV8Object(Node* node) {
type = V8ClassIndex::NODE;
}
- // Find the context to which the node belongs and create the wrapper
- // in that context. If the node is not in a document, the current
- // context is used.
- v8::Local<v8::Context> context;
- Document* doc = node->document();
- if (doc) {
- context = V8Proxy::GetContext(doc->frame());
- }
- if (!context.IsEmpty()) {
- context->Enter();
- }
-
// Set the peer object for future access.
// InstantiateV8Object automatically casts node to Peerable*.
v8::Local<v8::Object> result =
InstantiateV8Object(type, V8ClassIndex::NODE, node);
-
- // Exit the node's context if it was entered.
- if (!context.IsEmpty()) {
- context->Exit();
- }
-
if (result.IsEmpty()) {
// If instantiation failed it's important not to add the result
// to the DOM node map. Instead we return an empty handle, which