[Qt] Fix WebKit1 build with V8
authorkbalazs@webkit.org <kbalazs@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Apr 2012 22:28:03 +0000 (22:28 +0000)
committerkbalazs@webkit.org <kbalazs@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Apr 2012 22:28:03 +0000 (22:28 +0000)
commit243f8cb06dfc3598864aaa4c336e01cc989e3dda
tree4b2b1ead446b839652568d4f78e03187f96eaefa
parente35960dd57b95a28b7d18a0a43b2bbefb6511967
[Qt] Fix WebKit1 build with V8
https://bugs.webkit.org/show_bug.cgi?id=83322

Reviewed by Adam Barth.

Source/JavaScriptCore:

* yarr/yarr.pri:

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):
* bindings/v8/V8Binding.h:
(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/StdLibExtras.h:
(WTF):

Tools:

* DumpRenderTree/qt/DumpRenderTree.pro:
* qmake/mkspecs/features/default_post.prf:
* qmake/mkspecs/features/default_pre.prf:
* qmake/mkspecs/features/features.prf:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@114042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
31 files changed:
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/yarr/yarr.pri
Source/WTF/ChangeLog
Source/WTF/wtf/StdLibExtras.h
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.pri
Source/WebCore/Target.pri
Source/WebCore/bindings/v8/ScriptController.cpp
Source/WebCore/bindings/v8/ScriptControllerQt.cpp
Source/WebCore/bindings/v8/ScriptProfiler.cpp
Source/WebCore/bindings/v8/V8Binding.cpp
Source/WebCore/bindings/v8/V8Binding.h
Source/WebCore/bindings/v8/V8DOMWindowShell.cpp
Source/WebCore/bindings/v8/custom/V8InjectedScriptManager.cpp
Source/WebCore/config.h
Source/WebCore/dom/RequestAnimationFrameCallback.h
Source/WebCore/editing/TextIterator.cpp
Source/WebCore/html/MediaFragmentURIParser.cpp
Source/WebCore/inspector/InspectorFrontendClientLocal.cpp
Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp
Source/WebCore/platform/qt/PlatformSupportQt.cpp
Source/WebKit/qt/ChangeLog
Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
Source/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.h
Source/WebKit/qt/WebCoreSupport/InitWebCoreQt.cpp
Source/WebKit/qt/declarative/declarative.pro
Tools/ChangeLog
Tools/DumpRenderTree/qt/DumpRenderTree.pro
Tools/qmake/mkspecs/features/default_post.prf
Tools/qmake/mkspecs/features/features.prf
WebKit.pro