Title: [91193] trunk/Source/WebKit/qt
Revision
91193
Author
[email protected]
Date
2011-07-18 10:12:48 -0700 (Mon, 18 Jul 2011)

Log Message

[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

Patch by Hui Huang <[email protected]> on 2011-07-18
Reviewed by Noam Rosenthal.

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

Modified Paths

Diff

Modified: trunk/Source/WebKit/qt/ChangeLog (91192 => 91193)


--- trunk/Source/WebKit/qt/ChangeLog	2011-07-18 17:04:50 UTC (rev 91192)
+++ trunk/Source/WebKit/qt/ChangeLog	2011-07-18 17:12:48 UTC (rev 91193)
@@ -1,3 +1,13 @@
+2011-07-18  Hui Huang  <[email protected]>
+
+        [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  <[email protected]>
 
         REGRESSION: Mouse cursor doesn’t hide when full screen video HUD hides

Modified: trunk/Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp (91192 => 91193)


--- trunk/Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp	2011-07-18 17:04:50 UTC (rev 91192)
+++ trunk/Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp	2011-07-18 17:12:48 UTC (rev 91193)
@@ -1023,7 +1023,11 @@
         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));
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to