summaryrefslogtreecommitdiffstats
path: root/webkit/port/bindings/v8/v8_proxy.h
diff options
context:
space:
mode:
authorager@chromium.org <ager@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-09 14:38:09 +0000
committerager@chromium.org <ager@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-09 14:38:09 +0000
commitb045a67113c1d3c511aed76d618732d6a251919a (patch)
treee2624b3029e3f05757c96d8355dd36d06ca94e3f /webkit/port/bindings/v8/v8_proxy.h
parentf39b11ef0d10b596df75782bf8db0f7f494abc8f (diff)
downloadchromium_src-b045a67113c1d3c511aed76d618732d6a251919a.zip
chromium_src-b045a67113c1d3c511aed76d618732d6a251919a.tar.gz
chromium_src-b045a67113c1d3c511aed76d618732d6a251919a.tar.bz2
Reapply caching of the document JavaScript wrapper on the global
object. Because initialization of a context can now instantiate a document wrapper, we have to be careful if the context initialization happens when attempting to create that very same document wrapper. We therefore make sure that the context is initialized before checking if a node already has a wrapper. Review URL: http://codereview.chromium.org/118430 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17939 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/bindings/v8/v8_proxy.h')
-rw-r--r--webkit/port/bindings/v8/v8_proxy.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/port/bindings/v8/v8_proxy.h b/webkit/port/bindings/v8/v8_proxy.h
index a00c5f9..5fe78bf 100644
--- a/webkit/port/bindings/v8/v8_proxy.h
+++ b/webkit/port/bindings/v8/v8_proxy.h
@@ -502,6 +502,14 @@ class V8Proxy {
void SetSecurityToken();
void ClearDocumentWrapper();
void UpdateDocumentWrapper(v8::Handle<v8::Value> wrapper);
+
+ // The JavaScript wrapper for the document object is cached on the global
+ // object for fast access. UpdateDocumentWrapperCache sets the wrapper
+ // for the current document on the global object. ClearDocumentWrapperCache
+ // deletes the document wrapper from the global object.
+ void UpdateDocumentWrapperCache();
+ void ClearDocumentWrapperCache();
+
// Dispose global handles of m_contexts and friends.
void DisposeContextHandles();