Changeset 95541 in webkit


Ignore:
Timestamp:
Sep 20, 2011, 7:22:58 AM (14 years ago)
Author:
vestbo@webkit.org
Message:

[Qt] Don't override default QApplication font for DRT and WTR

Revision 95526 moved the relevant code below the QApplication
constructor, to fix a potential crash, and that made the code
take effect, breaking 6 tests.

We should rely on the QWebSettings to set default fonts, and
this QApplication::setFont() is a relic from when we didn't
have that option, so we remove the code.

Reviewed by Csaba Osztrogonác.

  • DumpRenderTree/qt/main.cpp:
  • WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r95532 r95541  
     12011-09-20  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
     2
     3        [Qt] Don't override default QApplication font for DRT and WTR
     4
     5        Revision 95526 moved the relevant code below the QApplication
     6        constructor, to fix a potential crash, and that made the code
     7        take effect, breaking 6 tests.
     8
     9        We should rely on the QWebSettings to set default fonts, and
     10        this QApplication::setFont() is a relic from when we didn't
     11        have that option, so we remove the code.
     12
     13        Reviewed by Csaba Osztrogonác.
     14
     15        * DumpRenderTree/qt/main.cpp:
     16        * WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp:
     17
    1182011-09-20  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
    219
  • trunk/Tools/DumpRenderTree/qt/main.cpp

    r95526 r95541  
    147147    QApplication app(argc, argv);
    148148
    149     QFont f("Sans Serif");
    150     f.setPointSize(9);
    151     f.setWeight(QFont::Normal);
    152     f.setStyle(QFont::StyleNormal);
    153     QApplication::setFont(f);
    154 
    155149#ifdef Q_WS_X11
    156150    QX11Info::setAppDpiY(0, 96);
  • trunk/Tools/WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp

    r89241 r95541  
    9191    QApplication::setStyle(new QWindowsStyle);
    9292
    93     QFont f(QLatin1String("Sans Serif"));
    94     f.setPointSize(9);
    95     f.setWeight(QFont::Normal);
    96     f.setStyle(QFont::StyleNormal);
    97     QApplication::setFont(f);
    98 
    9993#if defined(Q_WS_X11)
    10094    QX11Info::setAppDpiX(0, 96);
Note: See TracChangeset for help on using the changeset viewer.