Changeset 79672 in webkit


Ignore:
Timestamp:
Feb 25, 2011 4:48:11 AM (13 years ago)
Author:
andreas.kling@nokia.com
Message:

2011-02-25 Gopal Raghavan <gopal.1.raghavan@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] QML WebView inside a Flickable shows checkers pattern at startup
https://bugs.webkit.org/show_bug.cgi?id=50222.

This patch fixes the checkerboard visible at startup even if preferredWidth and preferredHeight are not set.

  • declarative/qdeclarativewebview.cpp: (QDeclarativeWebView::init):
  • tests/qdeclarativewebview: Added.
  • tests/qdeclarativewebview/qdeclarativewebview.pro: Added.
  • tests/qdeclarativewebview/resources: Added.
  • tests/qdeclarativewebview/resources/webviewtest.qml: Added.
  • tests/qdeclarativewebview/resources/webviewtestdefault.qml: Added.
  • tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: Added. (tst_QDeclarativeWebView::initTestCase): (tst_QDeclarativeWebView::cleanupTestCase): (tst_QDeclarativeWebView::init): (tst_QDeclarativeWebView::cleanup): (tst_QDeclarativeWebView::preferredWidthTest): (tst_QDeclarativeWebView::preferredHeightTest): (tst_QDeclarativeWebView::preferredWidthDefaultTest): (tst_QDeclarativeWebView::preferredHeightDefaultTest): (tst_QDeclarativeWebView::checkNoErrors):
  • tests/tests.pri:
  • tests/tests.pro:
Location:
trunk/Source/WebKit/qt
Files:
7 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/qt/ChangeLog

    r79668 r79672  
     12011-02-25  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] QML WebView inside a Flickable shows checkers pattern at startup
     6        https://bugs.webkit.org/show_bug.cgi?id=50222.
     7
     8        This patch fixes the checkerboard visible at startup even if preferredWidth and preferredHeight are not set.
     9
     10        * declarative/qdeclarativewebview.cpp:
     11        (QDeclarativeWebView::init):
     12        * tests/qdeclarativewebview: Added.
     13        * tests/qdeclarativewebview/qdeclarativewebview.pro: Added.
     14        * tests/qdeclarativewebview/resources: Added.
     15        * tests/qdeclarativewebview/resources/webviewtest.qml: Added.
     16        * tests/qdeclarativewebview/resources/webviewtestdefault.qml: Added.
     17        * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: Added.
     18        (tst_QDeclarativeWebView::initTestCase):
     19        (tst_QDeclarativeWebView::cleanupTestCase):
     20        (tst_QDeclarativeWebView::init):
     21        (tst_QDeclarativeWebView::cleanup):
     22        (tst_QDeclarativeWebView::preferredWidthTest):
     23        (tst_QDeclarativeWebView::preferredHeightTest):
     24        (tst_QDeclarativeWebView::preferredWidthDefaultTest):
     25        (tst_QDeclarativeWebView::preferredHeightDefaultTest):
     26        (tst_QDeclarativeWebView::checkNoErrors):
     27        * tests/tests.pri:
     28        * tests/tests.pro:
     29
    1302011-02-24  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
    231
  • trunk/Source/WebKit/qt/declarative/qdeclarativewebview.cpp

    r78270 r79672  
    276276    QWebPage* wp = new QDeclarativeWebPage(this);
    277277    setPage(wp);
     278    if (!preferredWidth())
     279        setPreferredWidth(d->view->preferredWidth());
     280    if (!preferredHeight())
     281        setPreferredHeight(d->view->preferredHeight());
    278282    connect(d->view, SIGNAL(geometryChanged()), this, SLOT(updateDeclarativeWebViewSize()));
    279283    connect(d->view, SIGNAL(doubleClick(int, int)), this, SIGNAL(doubleClick(int, int)));
  • trunk/Source/WebKit/qt/tests/tests.pri

    r78817 r79672  
    2121
    2222include(../../../WebKit.pri)
    23 QT += testlib network
     23QT += testlib network declarative
    2424
    2525QMAKE_RPATHDIR = $$OUTPUT_DIR/lib $$QMAKE_RPATHDIR
  • trunk/Source/WebKit/qt/tests/tests.pro

    r56386 r79672  
    11
    22TEMPLATE = subdirs
    3 SUBDIRS = qwebframe qwebpage qwebelement qgraphicswebview qwebhistoryinterface qwebview qwebhistory qwebinspector hybridPixmap
     3SUBDIRS = qwebframe qwebpage qwebelement qgraphicswebview qwebhistoryinterface qwebview qwebhistory qdeclarativewebview qwebinspector hybridPixmap
    44SUBDIRS += benchmarks/painting benchmarks/loading
Note: See TracChangeset for help on using the changeset viewer.