Title: [107868] trunk
- Revision
- 107868
- Author
- [email protected]
- Date
- 2012-02-15 18:43:17 -0800 (Wed, 15 Feb 2012)
Log Message
[Qt][WK2] WebKitTestRunner should use 480x360 sized view for W3C SVG tests
https://bugs.webkit.org/show_bug.cgi?id=76546
Patch by Szilard Ledan <[email protected]> on 2012-02-15
Reviewed by Simon Hausmann.
Resize the web view programatically because the declarative property binding
does not work. Seems like our qml environment is not initialized fully but it
needs more investigation.
* WebKitTestRunner/qt/PlatformWebViewQt.cpp:
(WTR::WrapperWindow::handleStatusChanged):
(WTR::PlatformWebView::resizeTo):
Modified Paths
Diff
Modified: trunk/LayoutTests/platform/qt-5.0-wk2/Skipped (107867 => 107868)
--- trunk/LayoutTests/platform/qt-5.0-wk2/Skipped 2012-02-16 02:41:08 UTC (rev 107867)
+++ trunk/LayoutTests/platform/qt-5.0-wk2/Skipped 2012-02-16 02:43:17 UTC (rev 107868)
@@ -402,11 +402,6 @@
fast/dynamic/012.html
platform/qt/plugins/qt-qwidget-plugin.html
-# [Qt][WK2] WebKitTestRunner should use 480x360 sized view for W3C SVG tests
-# https://bugs.webkit.org/show_bug.cgi?id=76546
-svg/W3C-SVG-1.1
-svg/W3C-SVG-1.1-SE
-
# [Qt][WK2]REGRESSION(r105461): It made 8 tests fail
# https://bugs.webkit.org/show_bug.cgi?id=76699
fast/block/margin-collapse/056.html
Modified: trunk/Tools/ChangeLog (107867 => 107868)
--- trunk/Tools/ChangeLog 2012-02-16 02:41:08 UTC (rev 107867)
+++ trunk/Tools/ChangeLog 2012-02-16 02:43:17 UTC (rev 107868)
@@ -1,3 +1,18 @@
+2012-02-15 Szilard Ledan <[email protected]>
+
+ [Qt][WK2] WebKitTestRunner should use 480x360 sized view for W3C SVG tests
+ https://bugs.webkit.org/show_bug.cgi?id=76546
+
+ Reviewed by Simon Hausmann.
+
+ Resize the web view programatically because the declarative property binding
+ does not work. Seems like our qml environment is not initialized fully but it
+ needs more investigation.
+
+ * WebKitTestRunner/qt/PlatformWebViewQt.cpp:
+ (WTR::WrapperWindow::handleStatusChanged):
+ (WTR::PlatformWebView::resizeTo):
+
2012-02-15 Dirk Pranke <[email protected]>
webkitpy: add a worker_args concept to start_worker()
Modified: trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp (107867 => 107868)
--- trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp 2012-02-16 02:41:08 UTC (rev 107867)
+++ trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp 2012-02-16 02:43:17 UTC (rev 107868)
@@ -55,10 +55,14 @@
return;
setGeometry(0, 0, 800, 600);
+ m_view->setX(0);
+ m_view->setY(0);
+ m_view->setWidth(800);
+ m_view->setHeight(600);
+
setResizeMode(QQuickView::SizeRootObjectToView);
m_view->setParentItem(rootObject());
- QDeclarativeProperty::write(m_view, "anchors.fill", qVariantFromValue(rootObject()));
QWindowSystemInterface::handleWindowActivated(this);
m_view->page()->setFocus(true);
@@ -88,6 +92,8 @@
void PlatformWebView::resizeTo(unsigned width, unsigned height)
{
m_window->resize(width, height);
+ m_view->setWidth(width);
+ m_view->setHeight(height);
}
WKPageRef PlatformWebView::page()
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes