mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1205744 - Removed redundant method IsContextRunningJS. r=h4writer
This commit is contained in:
parent
958b1fed19
commit
7d158b93c0
@ -2827,7 +2827,7 @@ nsObjectLoadingContent::ScriptRequestPluginInstance(JSContext* aCx,
|
||||
aCx == nsContentUtils::GetCurrentJSContext());
|
||||
bool callerIsContentJS = (!nsContentUtils::IsCallerChrome() &&
|
||||
!nsContentUtils::IsCallerContentXBL() &&
|
||||
js::IsContextRunningJS(aCx));
|
||||
JS_IsRunning(aCx));
|
||||
|
||||
nsCOMPtr<nsIContent> thisContent =
|
||||
do_QueryInterface(static_cast<nsIImageLoadingContent*>(this));
|
||||
|
@ -1017,12 +1017,6 @@ js::SetActivityCallback(JSRuntime* rt, ActivityCallback cb, void* arg)
|
||||
rt->activityCallbackArg = arg;
|
||||
}
|
||||
|
||||
JS_FRIEND_API(bool)
|
||||
js::IsContextRunningJS(JSContext* cx)
|
||||
{
|
||||
return cx->currentlyRunning();
|
||||
}
|
||||
|
||||
JS_FRIEND_API(void)
|
||||
JS::NotifyDidPaint(JSRuntime* rt)
|
||||
{
|
||||
|
@ -1086,9 +1086,6 @@ SetActivityCallback(JSRuntime* rt, ActivityCallback cb, void* arg);
|
||||
extern JS_FRIEND_API(const JSStructuredCloneCallbacks*)
|
||||
GetContextStructuredCloneCallbacks(JSContext* cx);
|
||||
|
||||
extern JS_FRIEND_API(bool)
|
||||
IsContextRunningJS(JSContext* cx);
|
||||
|
||||
typedef bool
|
||||
(* DOMInstanceClassHasProtoAtDepth)(const Class* instanceClass,
|
||||
uint32_t protoID, uint32_t depth);
|
||||
|
Loading…
Reference in New Issue
Block a user