diff options
| author | Ben Murdoch <benm@google.com> | 2009-11-23 14:25:39 +0000 |
|---|---|---|
| committer | Ben Murdoch <benm@google.com> | 2009-11-24 12:18:38 +0000 |
| commit | 073888a8dc1673fa90ca33226485b7bb0e19d460 (patch) | |
| tree | 683884483e92f509d6a5d0954189cb143435f677 /WebKit/android | |
| parent | ecf268d482528c4778b1bca2eea6a2d49e477c3f (diff) | |
| download | external_webkit-073888a8dc1673fa90ca33226485b7bb0e19d460.zip external_webkit-073888a8dc1673fa90ca33226485b7bb0e19d460.tar.gz external_webkit-073888a8dc1673fa90ca33226485b7bb0e19d460.tar.bz2 | |
Unfork WebCore/bridge/jni.
Change-Id: I973e6b03286b1d8f6e6325a2b31d0cf9e99d19b3
Diffstat (limited to 'WebKit/android')
| -rw-r--r-- | WebKit/android/jni/WebCoreFrameBridge.cpp | 10 |
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: |
