Skip to content
  • kbalazs@webkit.org's avatar
    [Qt] Fix WebKit1 build with V8 · 768684d2
    kbalazs@webkit.org authored
    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: http://svn.webkit.org/repository/webkit/trunk@114042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    768684d2