bool JSDOMWindowBase::supportsRichSourceInfo(const JSGlobalObject* object) { const JSDOMWindowBase* thisObject = static_cast<const JSDOMWindowBase*>(object); Frame* frame = thisObject->wrapped().frame(); if (!frame) return false; Page* page = frame->page(); if (!page) return false; bool enabled = page->inspectorController().enabled(); ASSERT(enabled || !thisObject->debugger()); ASSERT(enabled || !supportsProfiling(thisObject)); return enabled; }
bool JSDOMWindowBase::supportsRichSourceInfo() const { #if !ENABLE(JAVASCRIPT_DEBUGGER) || !ENABLE(INSPECTOR) return false; #else Frame* frame = impl()->frame(); if (!frame) return false; Page* page = frame->page(); if (!page) return false; bool enabled = page->inspectorController()->enabled(); ASSERT(enabled || !debugger()); ASSERT(enabled || !supportsProfiling()); return enabled; #endif }
bool JSDOMWindowBase::supportsRichSourceInfo(const JSGlobalObject* object) { #if !ENABLE(JAVASCRIPT_DEBUGGER) || !ENABLE(INSPECTOR) return false; #else const JSDOMWindowBase* thisObject = static_cast<const JSDOMWindowBase*>(object); Frame* frame = thisObject->impl()->frame(); if (!frame) return false; Page* page = frame->page(); if (!page) return false; bool enabled = page->inspectorController()->enabled(); ASSERT(enabled || !thisObject->debugger()); ASSERT(enabled || !supportsProfiling(thisObject)); return enabled; #endif }