Commit ed762a03 authored by hausmann@webkit.org's avatar hausmann@webkit.org

Ariya Hidayat <ariya.hidayat@trolltech.com>

In the Qt's DumpRenderTree, adjust the web view properly (because W3C SVG
tests expect to be 480x360)


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32869 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1ce02397
2008-05-05 Ariya Hidayat <ariya.hidayat@trolltech.com>
Reviewed by Simon.
In the Qt's DumpRenderTree, adjust the web view properly (because W3C SVG
tests expect to be 480x360)
* DumpRenderTree/qt/DumpRenderTree.cpp:
(WebCore::DumpRenderTree::open):
2008-05-02 Dan Bernstein <mitz@apple.com>
Reviewed by Adam Roben.
......
......@@ -176,6 +176,13 @@ void DumpRenderTree::open()
void DumpRenderTree::open(const QUrl& url)
{
// W3C SVG tests expect to be 480x360
bool isW3CTest = url.toString().contains("svg/W3C-SVG-1.1");
int width = isW3CTest ? 480 : maxViewWidth;
int height = isW3CTest ? 360 : maxViewHeight;
m_page->view()->resize(QSize(width, height));
m_page->setViewportSize(QSize(width, height));
resetJSObjects();
qt_dump_frame_loader(url.toString().contains("loading/"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment