summaryrefslogtreecommitdiffstats
path: root/WebKit/android
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-11-25 03:26:54 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-11-25 03:26:54 -0800
commit8d4e6f47fe31b9b3990faefd42269e85cab05fc9 (patch)
treecd7435878fcd8eecab1213d6e0b05e406967b49d /WebKit/android
parent42fa9723e35d0015387952766c19355098122551 (diff)
parent073888a8dc1673fa90ca33226485b7bb0e19d460 (diff)
downloadexternal_webkit-8d4e6f47fe31b9b3990faefd42269e85cab05fc9.zip
external_webkit-8d4e6f47fe31b9b3990faefd42269e85cab05fc9.tar.gz
external_webkit-8d4e6f47fe31b9b3990faefd42269e85cab05fc9.tar.bz2
Merge change I973e6b03 into eclair-mr2
* changes: Unfork WebCore/bridge/jni.
Diffstat (limited to 'WebKit/android')
-rw-r--r--WebKit/android/jni/WebCoreFrameBridge.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/WebKit/android/jni/WebCoreFrameBridge.cpp b/WebKit/android/jni/WebCoreFrameBridge.cpp
index 65913ab..f88bf1b 100644
--- a/WebKit/android/jni/WebCoreFrameBridge.cpp
+++ b/WebKit/android/jni/WebCoreFrameBridge.cpp
@@ -1163,13 +1163,13 @@ protected:
{
JNIEnv* env = JSC::Bindings::getJNIEnv();
// JavaInstance creates a global ref to instance in its constructor.
- env->DeleteGlobalRef(_instance->_instance);
+ env->DeleteGlobalRef(_instance->instance());
// Set the object to our WeakReference wrapper.
- _instance->_instance = adoptGlobalRef(env, instance);
+ _instance->setInstance(adoptGlobalRef(env, instance));
}
virtual void virtualBegin() {
- _weakRef = _instance->_instance;
+ _weakRef = _instance->instance();
JNIEnv* env = JSC::Bindings::getJNIEnv();
// This is odd. getRealObject returns an AutoJObject which is used to
// cleanly create and delete a local reference. But, here we need to
@@ -1178,7 +1178,7 @@ protected:
// and delete the local reference in virtualEnd().
_realObject = getRealObject(env, _weakRef).release();
// Point to the real object
- _instance->_instance = _realObject;
+ _instance->setInstance(_realObject);
// Call the base class method
INHERITED::virtualBegin();
}
@@ -1189,7 +1189,7 @@ protected:
// Get rid of the local reference to the real object.
JSC::Bindings::getJNIEnv()->DeleteLocalRef(_realObject);
// Point back to the WeakReference.
- _instance->_instance = _weakRef;
+ _instance->setInstance(_weakRef);
}
private: