[Qt] Fix WebKit1 build with V8
https://bugs.webkit.org/show_bug.cgi?id=83322
Reviewed by Adam Barth.
Source/JavaScriptCore:
Source/WebCore:
Make it possible to build WebKit1 with v8.
WebKit2 is not covered yet so it need to be disabled.
To build webkit with --v8 one need a qtjsbackend with
an up-to-date copy of v8. Thanks to Peter Varga such
a public repository is available on gitorious:
https://qt.gitorious.org/~stampho/qt/stamphos-qtjsbackend.
This patch contains some build fix with !ENABLE(INSPECTOR)
from it's previous version. These are not necessary now
but I kept them because they makes sense.
No change in behaviour so no new tests.
- DerivedSources.pri:
- Target.pri:
- WebCore.pri:
- bindings/v8/ScriptController.cpp:
- bindings/v8/ScriptControllerQt.cpp:
- bindings/v8/ScriptProfiler.cpp:
(WebCore::retainedDOMInfo):
(WebCore::ScriptProfiler::initialize):
- bindings/v8/ScriptState.cpp:
(WebCore::evalEnabled):
(WebCore::setEvalEnabled):
- bindings/v8/V8Binding.cpp:
(WebCore):
(V8BindingPerIsolateData):
- bindings/v8/V8DOMWindowShell.cpp:
(WebCore::V8DOMWindowShell::initContextIfNeeded):
- bindings/v8/V8GCForContextDispose.cpp:
(WebCore::V8GCForContextDispose::pseudoIdleTimerFired):
- bindings/v8/custom/V8InjectedScriptManager.cpp:
- config.h:
- editing/TextIterator.cpp:
- html/MediaFragmentURIParser.cpp:
- platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
- platform/qt/PlatformSupportQt.cpp:
(WebCore::PlatformSupport::popupsAllowed):
Source/WebKit/qt:
- WebCoreSupport/FrameLoaderClientQt.cpp:
(WebCore::FrameLoaderClientQt::didCreateScriptContext):
- WebCoreSupport/FrameLoaderClientQt.h:
(FrameLoaderClientQt):
(WebCore::FrameLoaderClientQt::allowScriptExtension):
- WebCoreSupport/InitWebCoreQt.cpp:
Source/WTF:
(WTF):
Tools:
- DumpRenderTree/qt/DumpRenderTree.pro:
- qmake/mkspecs/features/default_post.prf:
- qmake/mkspecs/features/default_pre.prf:
- qmake/mkspecs/features/features.prf: