summaryrefslogtreecommitdiffstats
path: root/WebCore/bridge/jni/jni_runtime.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-01-19 00:56:35 +0000
committerSteve Block <steveblock@google.com>2010-01-19 15:04:37 +0000
commit7fb686e7b9de38c5d493745bcff821cd1782102b (patch)
tree0fdfd019c856986d8d065ed93068af683103b6e3 /WebCore/bridge/jni/jni_runtime.cpp
parenteeada71d41faa13ef971e1e95b2b6d25b3c76abf (diff)
downloadexternal_webkit-7fb686e7b9de38c5d493745bcff821cd1782102b.zip
external_webkit-7fb686e7b9de38c5d493745bcff821cd1782102b.tar.gz
external_webkit-7fb686e7b9de38c5d493745bcff821cd1782102b.tar.bz2
Cherry-pick WebKit change 53436 to fix style in JavaInstanceJSC
See http://trac.webkit.org/changeset/53436 This is required to sync the Android tree with webkit.org to allow unforking in WebCore/bridge. Note that changes to the following were required as a result of this cherry-pick. - WebCoreFrameBridge.cpp - updated to use JavaInstance::m_instance - V8Binding/jni/jni_instance - Updated to rename the V8 version of JavaInstance::_instance to JavaInstance::m_instance to allow the same code path to be used in WebCoreFrameBridge. Change-Id: I6884f7424c8a0917095f828bda4ca62452e527b5
Diffstat (limited to 'WebCore/bridge/jni/jni_runtime.cpp')
-rw-r--r--WebCore/bridge/jni/jni_runtime.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/WebCore/bridge/jni/jni_runtime.cpp b/WebCore/bridge/jni/jni_runtime.cpp
index 7f9fb72..d77048d 100644
--- a/WebCore/bridge/jni/jni_runtime.cpp
+++ b/WebCore/bridge/jni/jni_runtime.cpp
@@ -84,7 +84,7 @@ JSValue JavaArray::convertJObjectToArray(ExecState* exec, jobject anObject, cons
jvalue JavaField::dispatchValueFromInstance(ExecState *exec, const JavaInstance *instance, const char *name, const char *sig, JNIType returnType) const
{
jobject jinstance = instance->javaInstance();
- jobject fieldJInstance = _field->_instance;
+ jobject fieldJInstance = _field->m_instance;
JNIEnv *env = getJNIEnv();
jvalue result;
@@ -168,7 +168,7 @@ JSValue JavaField::valueFromInstance(ExecState* exec, const Instance* i) const
void JavaField::dispatchSetValueToInstance(ExecState *exec, const JavaInstance *instance, jvalue javaValue, const char *name, const char *sig) const
{
jobject jinstance = instance->javaInstance();
- jobject fieldJInstance = _field->_instance;
+ jobject fieldJInstance = _field->m_instance;
JNIEnv *env = getJNIEnv();
jclass cls = env->GetObjectClass(fieldJInstance);
@@ -377,7 +377,7 @@ JavaArray::JavaArray(jobject array, const char* type, PassRefPtr<RootObject> roo
_array = new JObjectWrapper(array);
// Java array are fixed length, so we can cache length.
JNIEnv *env = getJNIEnv();
- _length = env->GetArrayLength((jarray)_array->_instance);
+ _length = env->GetArrayLength((jarray)_array->m_instance);
_type = strdup(type);
_rootObject = rootObject;
}