Changeset 121788 in webkit


Ignore:
Timestamp:
Jul 3, 2012 10:36:27 AM (12 years ago)
Author:
kbalazs@webkit.org
Message:

[Qt][WTR] Get rid of using DumpRenderTreeSupportQt
https://bugs.webkit.org/show_bug.cgi?id=90262

Unreviewed build fix.

Reverting r121550 manually because it caused build
break on ARM and Mac. It turned out that the Qt build
system is too broken for this change now, first we have
to address two issues:

  • symbol hiding was forbidden accidentally on x86 Linux
  • Qt lacks a separate library for test support
  • Tools.pro:
  • WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:

(WTR::InjectedBundlePage::resetAfterTest):
(WTR::InjectedBundlePage::didClearWindowForFrame):

  • WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp:
Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r121785 r121788  
     12012-07-03  Balazs Kelemen  <kbalazs@webkit.org>
     2
     3        [Qt][WTR] Get rid of using DumpRenderTreeSupportQt
     4        https://bugs.webkit.org/show_bug.cgi?id=90262
     5
     6        Unreviewed build fix.
     7
     8        Reverting r121550 manually because it caused build
     9        break on ARM and Mac. It turned out that the Qt build
     10        system is too broken for this change now, first we have
     11        to address two issues:
     12            * symbol hiding was forbidden accidentally on x86 Linux
     13            * Qt lacks a separate library for test support
     14
     15        * Tools.pro:
     16        * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
     17        (WTR::InjectedBundlePage::resetAfterTest):
     18        (WTR::InjectedBundlePage::didClearWindowForFrame):
     19        * WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp:
     20
    1212012-07-03  Tony Chang  <tony@chromium.org>
    222
  • trunk/Tools/Tools.pro

    r121777 r121788  
    1818    SUBDIRS += WebKitTestRunner/WebKitTestRunner.pro
    1919    SUBDIRS += MiniBrowser/qt/raw/MiniBrowserRaw.pro
     20
     21    # WTR's InjectedBundle depends currently on WK1's DumpRenderTreeSupport
     22    !no_webkit1: SUBDIRS += WebKitTestRunner/WebKitTestRunner.pro
    2023}
    2124
  • trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp

    r121550 r121788  
    4545#include <wtf/text/CString.h>
    4646#include <wtf/text/StringBuilder.h>
     47
     48#if PLATFORM(QT)
     49#include "DumpRenderTreeSupportQt.h"
     50#endif
    4751
    4852using namespace std;
     
    348352    WKBundleFrameRef frame = WKBundlePageGetMainFrame(m_page);
    349353    JSGlobalContextRef context = WKBundleFrameGetJavaScriptContext(frame);
     354#if PLATFORM(QT)
     355    DumpRenderTreeSupportQt::injectInternalsObject(context);
     356#else
    350357    WebCoreTestSupport::resetInternalsObject(context);
     358#endif
    351359}
    352360
     
    770778    InjectedBundle::shared().accessibilityController()->makeWindowObject(context, window, &exception);
    771779
     780#if PLATFORM(QT)
     781    DumpRenderTreeSupportQt::injectInternalsObject(context);
     782#else
    772783    WebCoreTestSupport::injectInternalsObject(context);
     784#endif
    773785}
    774786
  • trunk/Tools/WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp

    r121550 r121788  
    3030#include "config.h"
    3131#include "ActivateFonts.h"
     32#include "DumpRenderTreeSupportQt.h"
    3233#include "QtInitializeTestFonts.h"
    3334
Note: See TracChangeset for help on using the changeset viewer.