[Qt] Compiling error in Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp with...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Jul 2011 17:12:48 +0000 (17:12 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Jul 2011 17:12:48 +0000 (17:12 +0000)
https://bugs.webkit.org/show_bug.cgi?id=64560

Patch by Hui Huang <hui.2.huang@nokia.com> on 2011-07-18
Reviewed by Noam Rosenthal.

* tests/qwebelement/tst_qwebelement.cpp:
(tst_QWebElement::render):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@91193 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/qt/ChangeLog
Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp

index 8b2527c..8248be5 100644 (file)
@@ -1,3 +1,13 @@
+2011-07-18  Hui Huang  <hui.2.huang@nokia.com>
+
+        [Qt] Compiling error in Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp with Qt 4.7 or older
+        https://bugs.webkit.org/show_bug.cgi?id=64560
+
+        Reviewed by Noam Rosenthal.
+
+        * tests/qwebelement/tst_qwebelement.cpp:
+        (tst_QWebElement::render):
+
 2011-07-15  Dan Bernstein  <mitz@apple.com>
 
         REGRESSION: Mouse cursor doesn’t hide when full screen video HUD hides
index 0f05b2b..d9221ae 100644 (file)
@@ -1023,7 +1023,11 @@ void tst_QWebElement::render()
         QPainter painter(&chunk);
         painter.fillRect(chunkRect, Qt::white);
         QRect chunkPaintRect(x, 0, chunkWidth, chunkHeight);
+#if QT_VERSION >= QT_VERSION_CHECK(4, 8, 0)
         tables[0].render(&painter, chunkPaintRect);
+#else
+        tables[0].render(&painter);
+#endif
         painter.end();
 
         QVERIFY(chunk == image4.copy(chunkPaintRect));