From 031c32d25a37eec52b946918d7648750f8e59a1f Mon Sep 17 00:00:00 2001 From: Steve Block Date: Wed, 9 Dec 2009 14:47:50 +0000 Subject: Merge webkit.org at r51976 : FrameLoaderClient::windowObjectCleared has been replaced with dispatchDidClearWindowObjectInWorld. See http://trac.webkit.org/changeset/50973 Change-Id: I54093cd917f15a51412b07b5495f32502cfd23b5 --- WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp | 6 +++++- WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'WebKit/android/WebCoreSupport') diff --git a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp index 44c942d..60e7913 100644 --- a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp +++ b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp @@ -1059,7 +1059,11 @@ String FrameLoaderClientAndroid::overrideMediaType() const { } // This function is used to re-attach Javascript<->native code classes. -void FrameLoaderClientAndroid::windowObjectCleared() { +void FrameLoaderClientAndroid::dispatchDidClearWindowObjectInWorld(DOMWrapperWorld* world) +{ + if (world != mainThreadNormalWorld()) + return; + ASSERT(m_frame); LOGV("::WebCore:: windowObjectCleared called on frame %p for %s\n", m_frame, m_frame->loader()->url().string().ascii().data()); diff --git a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.h b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.h index 86551f3..78896da 100644 --- a/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.h +++ b/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.h @@ -181,7 +181,7 @@ namespace android { virtual ObjectContentType objectContentType(const KURL& url, const String& mimeType); virtual String overrideMediaType() const; - virtual void windowObjectCleared(); + virtual void dispatchDidClearWindowObjectInWorld(DOMWrapperWorld*); virtual void documentElementAvailable(); virtual void didPerformFirstNavigation() const; -- cgit v1.1