Commit 579feba6 authored by ossy@webkit.org's avatar ossy@webkit.org

[Qt] Enable mock scrollbars

https://bugs.webkit.org/show_bug.cgi?id=98011

Patch by Balazs Kelemen <kbalazs@webkit.org> on 2012-10-03
Reviewed by Csaba Osztrogonác.

Source/WebKit/qt:

Added helper to enable mock scrollbars.

* WebCoreSupport/DumpRenderTreeSupportQt.cpp:
(DumpRenderTreeSupportQt::enableMockScrollbars):
* WebCoreSupport/DumpRenderTreeSupportQt.h:

Tools:

Enable mock scrollbars for the Qt port. This patch will require a huge rebaseline.

* DumpRenderTree/qt/DumpRenderTreeQt.cpp:
(WebCore::DumpRenderTree::DumpRenderTree):
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::resetStateToConsistentValues):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130283 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 07070288
2012-10-03 Balazs Kelemen <kbalazs@webkit.org>
[Qt] Enable mock scrollbars
https://bugs.webkit.org/show_bug.cgi?id=98011
Reviewed by Csaba Osztrogonác.
Added helper to enable mock scrollbars.
* WebCoreSupport/DumpRenderTreeSupportQt.cpp:
(DumpRenderTreeSupportQt::enableMockScrollbars):
* WebCoreSupport/DumpRenderTreeSupportQt.h:
2012-10-01 Brady Eidson <beidson@apple.com>
Remove the Safari 2 -> Safari 3 icon database import code.
......
......@@ -939,6 +939,11 @@ bool DumpRenderTreeSupportQt::thirdPartyCookiePolicyAllows(QWebPage *page, const
return thirdPartyCookiePolicyPermits(corePage->mainFrame()->loader()->networkingContext(), url, firstPartyUrl);
}
void DumpRenderTreeSupportQt::enableMockScrollbars()
{
Settings::setMockScrollbarsEnabled(true);
}
QUrl DumpRenderTreeSupportQt::mediaContentUrlByElementId(QWebFrame* frame, const QString& elementId)
{
QUrl res;
......
......@@ -209,6 +209,8 @@ public:
static bool thirdPartyCookiePolicyAllows(QWebPage*, const QUrl&, const QUrl& firstPartyUrl);
static void enableMockScrollbars();
static QImage paintPagesWithBoundaries(QWebFrame*);
};
......
2012-10-03 Balazs Kelemen <kbalazs@webkit.org>
[Qt] Enable mock scrollbars
https://bugs.webkit.org/show_bug.cgi?id=98011
Reviewed by Csaba Osztrogonác.
Enable mock scrollbars for the Qt port. This patch will require a huge rebaseline.
* DumpRenderTree/qt/DumpRenderTreeQt.cpp:
(WebCore::DumpRenderTree::DumpRenderTree):
* WebKitTestRunner/TestController.cpp:
(WTR::TestController::resetStateToConsistentValues):
2012-10-03 Alberto Garcia <agarcia@igalia.com>
[GTK] [WK2] Add favicon support to the MiniBrowser
......
......@@ -471,6 +471,8 @@ DumpRenderTree::DumpRenderTree()
DumpRenderTreeSupportQt::setDumpRenderTreeModeEnabled(true);
DumpRenderTreeSupportQt::setInteractiveFormValidationEnabled(webPage(), true);
DumpRenderTreeSupportQt::enableMockScrollbars();
QFocusEvent event(QEvent::FocusIn, Qt::ActiveWindowFocusReason);
QApplication::sendEvent(m_mainView, &event);
}
......
......@@ -491,12 +491,7 @@ bool TestController::resetStateToConsistentValues()
WKPreferencesSetArtificialPluginInitializationDelayEnabled(preferences, false);
WKPreferencesSetTabToLinksEnabled(preferences, false);
WKPreferencesSetInteractiveFormValidationEnabled(preferences, true);
// [Qt][WK2]REGRESSION(r104881):It broke hundreds of tests
// FIXME: https://bugs.webkit.org/show_bug.cgi?id=76247
#if !PLATFORM(QT)
WKPreferencesSetMockScrollbarsEnabled(preferences, true);
#endif
#if !PLATFORM(QT)
static WKStringRef standardFontFamily = WKStringCreateWithUTF8CString("Times");
......
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