2010-05-06 Andreas Kling Reviewed by Simon Hausmann. [Qt] Patch to fix compilation warnings for QGraphicsWebView https://bugs.webkit.org/show_bug.cgi?id=37428 Patch by Alexis Menard * Api/qgraphicswebview.cpp: (QGraphicsWebView::itemChange): 2010-05-06 Simon Hausmann Reviewed by Kenneth Rohde Christiansen. [Qt] Replace public inspector url with private property for QtLauncher https://bugs.webkit.org/show_bug.cgi?id=35340 Replace the public API with a private dynamic property until this feature is ready. * Api/qwebsettings.cpp: * Api/qwebsettings.h: * WebCoreSupport/InspectorClientQt.cpp: (WebCore::InspectorClientQt::openInspectorFrontend): * symbian/bwins/QtWebKitu.def: * symbian/eabi/QtWebKitu.def: 2010-05-04 Laszlo Gombos Reviewed by Kenneth Rohde Christiansen. [Qt] QWebPage viewMode property https://bugs.webkit.org/show_bug.cgi?id=38119 Rename the property from wrt_viewMode to _q_viewMode. * Api/qwebpage.cpp: (QWebPagePrivate::dynamicPropertyChangeEvent): * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::viewModes): 2010-05-04 Simon Hausmann Rubber-stamped by Tor Arne Vestbø. [Qt] Preserve binary compatibility with qtwebkit-2.0 branch Moved the WebGL attribute in QWebSettings to the end of the enum, to ensure that the numeric values of the enum values following it are the same as in the release branch. * Api/qwebsettings.h: 2010-05-03 Laszlo Gombos Reviewed by Simon Hausmann. [Qt] Expose HTMLTokenizer yielding parameters https://bugs.webkit.org/show_bug.cgi?id=37023 Enables to set TimeDelay and ChunkSize for HTMLTokenizer. * Api/qwebpage.cpp: (QWebPagePrivate::dynamicPropertyChangeEvent): 2010-05-03 Abhishek Arya Reviewed by Adam Barth. Add support for controlling clipboard access from javascript. Clipboard access from javascript is disabled by default. https://bugs.webkit.org/show_bug.cgi?id=27751 * Api/qwebsettings.cpp: (QWebSettingsPrivate::apply): * Api/qwebsettings.h: 2010-05-03 Jens Alfke Reviewed by Darin Fisher. [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient https://bugs.webkit.org/show_bug.cgi?id=38397 No tests (functionality is exposed only through native WebKit API.) * WebCoreSupport/FrameLoaderClientQt.h: (WebCore::FrameLoaderClientQt::dispatchWillSendSubmitEvent): 2010-05-03 Tor Arne Vestbø Reviewed by Simon Hausmann. [Qt] Prune dead code in QWebPage * Api/qwebpage.cpp: 2010-05-02 Tasuku Suzuki Reviewed by Simon Hausmann. [Qt] Fix compilation with QT_NO_BEARERMANAGEMENT https://bugs.webkit.org/show_bug.cgi?id=38324 * Api/qwebsettings.cpp: 2010-04-29 Janne Koskinen Reviewed by Simon Hausmann. [Qt] QtWebKit versioning added https://bugs.webkit.org/show_bug.cgi?id=37207 QtWebkit releases separated from Qt release cycle. * qtwebkit_version.pri: Added. 2010-05-02 Benjamin Poulain Reviewed by Kenneth Rohde Christiansen. [Qt] QWebPage::userAgentForUrl is terrible API https://bugs.webkit.org/show_bug.cgi?id=33875 Simplify the creation of the user agent string to avoid some overhead for each loaded url. The static part of the user agent is cached so it only have to be made once. This creation has been made in order to simplify the code. The two variable: application name and current language are set dynamically when needed. The default locale is non longer created if the widget locale is used. * Api/qwebpage.cpp: (QWebPage::userAgentForUrl): * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::userAgentApplicationName): (tst_QWebPage::userAgentLocaleChange): 2010-05-02 Noam Rosenthal Reviewed by Kenneth Rohde Christiansen. [Qt] GraphicsLayer: animation incorrect when scrolling https://bugs.webkit.org/show_bug.cgi?id=38371 This is a regression introduced with the invalidate-on-scroll code path, that uses QGraphicsWebViewPrivate::update() instead of QGraphicsWebViewPrivate::scroll(). The patch makes sure that the scrolling position is correct on each content update - this shouldn't have a performance impact - the only overhead is an additional value-test on each update. Tested by http://www.the-art-of-web.com/css/css-animation/ * Api/qgraphicswebview.cpp: (QGraphicsWebViewPrivate::update): 2010-05-01 Robert Hogan Reviewed by Simon Hausmann. [Qt] Add smart paste support https://bugs.webkit.org/show_bug.cgi?id=38136 * Api/qwebpage.cpp: (QWebPagePrivate::QWebPagePrivate): Enable smart paste support by default. 2010-04-29 Laszlo Gombos Reviewed by Kenneth Rohde Christiansen. [Qt] Reinstate qt_drt_ symbol exports as of QtWebKit 4.6 release https://bugs.webkit.org/show_bug.cgi?id=38304 This change provides backward compatibility with some previously exported private symbols. No new functionality introduced. * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (qt_resumeActiveDOMObjects): (qt_suspendActiveDOMObjects): (qt_drt_clearFrameName): (qt_drt_garbageCollector_collect): (qt_drt_garbageCollector_collectOnAlternateThread): (qt_drt_javaScriptObjectsCount): (qt_drt_numberOfActiveAnimations): (qt_drt_overwritePluginDirectories): (qt_drt_pauseAnimation): (qt_drt_pauseTransitionOfProperty): (qt_drt_resetOriginAccessWhiteLists): (qt_drt_run): (qt_drt_setJavaScriptProfilingEnabled): (qt_drt_whiteListAccessFromOrigin): (qt_webpage_groupName): (qt_webpage_setGroupName): 2010-04-29 Benjamin Poulain Reviewed by Kenneth Rohde Christiansen. Get rid of forceLayout() on FrameView https://bugs.webkit.org/show_bug.cgi?id=38199 The function FrameView::forceLayout() is missleading because it does not actually force the layout, the call is equivalent to layout(). This patch replace the call to forceLayout() by layout() in Qt to avoid the misunderstanding/improve readability. * Api/qwebpage.cpp: (QWebPagePrivate::dynamicPropertyChangeEvent): (QWebPage::setPreferredContentsSize): * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::setMediaType): * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::forceLayout): 2010-04-29 Andreas Kling Reviewed by Simon Hausmann. Remove unnecessary call to FrameView::forceLayout() in setViewportSize() This prevents a double relayout on resize. https://bugs.webkit.org/show_bug.cgi?id=38179 Thanks to Nate Whetsell for spotting this. * Api/qwebpage.cpp: (QWebPage::setViewportSize): 2010-04-29 Simon Hausmann Reviewed by Tor Arne Vestbø. [Qt] REGRESSION(r57982): tst_qwebpage::showModalDialog() crashes https://bugs.webkit.org/show_bug.cgi?id=38314 Make sure that there's always a main frame when returning from createWindow() to the caller in WebCore. * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::createWindow): 2010-04-28 Laszlo Gombos Unreviewed, Qt build fix. [Qt] Guard the body of the function instead of the function for exported functions. * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::webInspectorExecuteScript): (DumpRenderTreeSupportQt::webInspectorClose): (DumpRenderTreeSupportQt::webInspectorShow): (DumpRenderTreeSupportQt::setTimelineProfilingEnabled): 2010-04-28 Antonio Gomes , Yi Shen Reviewed by Simon Hausmann. [Qt] tst_QWebHistoryInterface::visitedLinks() fails https://bugs.webkit.org/show_bug.cgi?id=37323 Patch fixes styleProperty method of QWebElement to make use of CSSComputedStyleDeclaration::computedStyle 'allowVisitedStyle' parameter and the corresponding failing QWebHistoryInterface::visitedLinks method. * Api/qwebelement.cpp: (QWebElement::styleProperty): * tests/qwebhistoryinterface/tst_qwebhistoryinterface.cpp: (tst_QWebHistoryInterface::visitedLinks): 2010-04-28 Luiz Agostini Reviewed by Kenneth Rohde Christiansen. [Qt] QWebPage viewMode property https://bugs.webkit.org/show_bug.cgi?id=38119 Replacing method qt_wrt_setViewMode by wrt_viewMode property. * Api/qwebpage.cpp: (QWebPagePrivate::dynamicPropertyChangeEvent): (QWebPage::event): * Api/qwebpage_p.h: * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::wrt_viewModes): 2010-04-28 Janne Koskinen Reviewed by Simon Hausmann [Qt] WINS DEF file freeze Updated WINSCW def file with added and removed symbols. * symbian/bwins/QtWebKitu.def: 2010-04-25 Sam Weinig Reviewed by Maciej Stachowiak. Fix for https://bugs.webkit.org/show_bug.cgi?id=38097 Disentangle initializing the main thread from initializing threading * Api/qwebpage.cpp: (QWebPagePrivate::QWebPagePrivate): Add call to initializeMainThread. 2010-04-26 Thiago Macieira Reviewed by Simon Hausmann. [Qt] Fix the include header -> The module/header.h style inclusion removes the need to have -I$QTDIR/include/depending-module in the include search path for the application. * Api/qwebkitversion.h: 2010-04-26 Bruno Schmidt Reviewed by Kenneth Rohde Christiansen. [Qt] Exposing an QVariantMap containing QObjectStar to Javascript causes Segmentation Fault https://bugs.webkit.org/show_bug.cgi?id=34729 If an QVariantMap containing QObjectStar is added to the to QtWebkit Javascript, it's use causes Segmentation Fault. It happens because, in the case QMetaType::QVariantMap, the "root" object that is inside of a PassRefPtr is passed recursively inside a loop to recover the content of the map, but the PassRefPtr semantics prohibit its use inside a loop, so the "root" object mus be passed using the method "PassRefPtr::get" in order to keep the current reference. * tests/qwebframe/tst_qwebframe.cpp: (MyQObject::MyQObject): new property variantMapProperty (MyQObject::variantMapProperty): read variantMapProperty (MyQObject::setVariantMapProperty): write variantMapProperty 2010-04-25 Shinichiro Hamaji Reviewed by Simon Hausmann. [Qt] layoutTestController.counterValueForElementById crashes for a nonexistent ID https://bugs.webkit.org/show_bug.cgi?id=34573 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::counterValueForElementById): 2010-04-20 Robert Hogan Reviewed by Simon Hausmann. [Qt] Add more support for textInputController Add support for selectedRange(), setMarkedText(), insertText(), and firstRectForCharacterRange(). https://bugs.webkit.org/show_bug.cgi?id=35702 * Api/qwebpage.cpp: (QWebPagePrivate::inputMethodEvent): * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::selectedRange): (DumpRenderTreeSupportQt::firstRectForCharacterRange): * WebCoreSupport/DumpRenderTreeSupportQt.h: * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::inputMethods): 2010-04-22 John Pavan Reviewed by Laszlo Gombos. [Qt] inputMethodQuery returns coordinates in web page coordinates rather than in item coordinates. https://bugs.webkit.org/show_bug.cgi?id=37163 QWebPage::inputMethodQuery is modified so that it returns coordinates in the widget's coordinate system. Tests are added for QGraphicsWebView and QWebView to verify that this behavior is correct after the webpage has been scrolled. * Api/qwebpage.cpp: (QWebPage::inputMethodQuery): * tests/qgraphicswebview/tst_qgraphicswebview.cpp: (tst_QGraphicsWebView::microFocusCoordinates): * tests/qwebview/tst_qwebview.cpp: (tst_QWebView::microFocusCoordinates): 2010-04-22 Robert Hogan Reviewed by Simon Hausmann. [Qt] Fix createPlugin() tests in tst_qwebpage to match behaviour of Qt plugins when PluginsEnabled is false. tst_qwebpage should have been updated as part of r56662. (See https://bugs.webkit.org/show_bug.cgi?id=32196) Updated documentation of QWebPage::createPlugin and QWebSetting::pluginsEnabled to match the new behaviour. * Api/qwebpage.cpp: Update docs. * Api/qwebsettings.cpp: Update docs. * tests/qwebpage/tst_qwebpage.cpp: (createPlugin): (tst_QWebPage::createPluginWithPluginsEnabled): (tst_QWebPage::createPluginWithPluginsDisabled): 2010-04-22 Dave Moore Reviewed by Dimitri Glazkov. Added notification when the favicons for a page are changed from a script. The Document object will notify the frame loader, which will notify the client. Implementations of FrameLoaderClient will have to add one method; dispatchDidChangeIcons(). https://bugs.webkit.org/show_bug.cgi?id=33812 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::dispatchDidChangeIcons): (WebCore::FrameLoaderClientQt::didChangeTitle): * WebCoreSupport/FrameLoaderClientQt.h: 2010-04-22 Jocelyn Turcotte Reviewed by Kenneth Rohde Christiansen. [Qt] Remove translatable strings from the hybridPixmap test. https://bugs.webkit.org/show_bug.cgi?id=37867 * tests/hybridPixmap/widget.ui: 2010-04-22 Jocelyn Turcotte Reviewed by Kenneth Rohde Christiansen. [Qt] Fix autotests .qrc file paths when built in Qt. Compiling auto-tests from qt/tests/auto/qweb* produced failing tests since these .pro files include the ones in WebKit/qt/tests and the .qrc file was not added to RESOURCES * tests/benchmarks/loading/loading.pro: * tests/benchmarks/painting/painting.pro: * tests/qgraphicswebview/qgraphicswebview.pro: * tests/qwebelement/qwebelement.pro: * tests/qwebframe/qwebframe.pro: * tests/qwebhistory/qwebhistory.pro: * tests/qwebhistoryinterface/qwebhistoryinterface.pro: * tests/qwebinspector/qwebinspector.pro: * tests/qwebpage/qwebpage.pro: * tests/qwebplugindatabase/qwebplugindatabase.pro: * tests/qwebview/qwebview.pro: * tests/tests.pri: 2010-04-22 Adam Barth Unreviewed, rolling out r58069. http://trac.webkit.org/changeset/58069 https://bugs.webkit.org/show_bug.cgi?id=27751 Broke compile on Windows. * Api/qwebsettings.cpp: (QWebSettingsPrivate::apply): * Api/qwebsettings.h: 2010-04-22 Abhishek Arya Reviewed by Adam Barth. Add support for controlling clipboard access from javascript. Clipboard access from javascript is disabled by default. https://bugs.webkit.org/show_bug.cgi?id=27751 * Api/qwebsettings.cpp: (QWebSettingsPrivate::apply): * Api/qwebsettings.h: 2010-04-21 Jesus Sanchez-Palencia Reviewed by Kenneth Rohde Christiansen. Add PageClientQWidget implementation based on the old QWebPageWidgetClient to PageClientQt files. Also fix QWebPage::setView() to use PageClientQWidget. [Qt] PageClientQt specific implementation for QWidget https://bugs.webkit.org/show_bug.cgi?id=37858 * Api/qwebpage.cpp: (QWebPage::setView): * WebCoreSupport/PageClientQt.cpp: Added. (WebCore::PageClientQWidget::scroll): (WebCore::PageClientQWidget::update): (WebCore::PageClientQWidget::setInputMethodEnabled): (WebCore::PageClientQWidget::inputMethodEnabled): (WebCore::PageClientQWidget::setInputMethodHint): (WebCore::PageClientQWidget::cursor): (WebCore::PageClientQWidget::updateCursor): (WebCore::PageClientQWidget::palette): (WebCore::PageClientQWidget::screenNumber): (WebCore::PageClientQWidget::ownerWidget): (WebCore::PageClientQWidget::geometryRelativeToOwnerWidget): (WebCore::PageClientQWidget::pluginParent): (WebCore::PageClientQWidget::style): * WebCoreSupport/PageClientQt.h: Added. (WebCore::PageClientQWidget::PageClientQWidget): (WebCore::PageClientQWidget::isQWidgetClient): 2010-04-21 Jakub Wieczorek Reviewed by Darin Adler. List item markers are not always updated after changes in the DOM. https://bugs.webkit.org/show_bug.cgi?id=37060 * Api/qwebelement.h: Make DumpRenderTreeSupportQt a friend class. * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::markerTextForListItem): Add a private API to get the marker text for a list item. 2010-04-21 Yi Shen Reviewed by Simon Hausmann. [Qt] Check the request empty or not in ChromeClientQt::createWindow() https://bugs.webkit.org/show_bug.cgi?id=37821 * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::createWindow): 2010-04-21 Shu Chang Reviewed by Simon Hausmann. [Qt] Fix Symbian build where QT_NO_SYSTEMTRAYICON is defined. https://bugs.webkit.org/show_bug.cgi?id=37442 * WebCoreSupport/NotificationPresenterClientQt.cpp: (NotificationPresenterClientQt::show): * WebCoreSupport/NotificationPresenterClientQt.h: 2010-04-21 Eric Seidel Unreviewed, rolling out r57963. http://trac.webkit.org/changeset/57963 https://bugs.webkit.org/show_bug.cgi?id=37759 Three tests started crashing on the Qt bot. * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::isCommandEnabled): * WebCoreSupport/DumpRenderTreeSupportQt.h: 2010-04-21 Yi Shen Reviewed by Simon Hausmann. [Qt] Add LayoutTestController interface: computedStyleIncludingVisitedInfo https://bugs.webkit.org/show_bug.cgi?id=37759 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo): * WebCoreSupport/DumpRenderTreeSupportQt.h: 2010-04-21 No'am Rosenthal Reviewed by Simon Fraser. [Qt] Fix or remove the runtime flag for accelerated compositing. https://bugs.webkit.org/show_bug.cgi?id=37313 This lets the QWebPageClient "veto" the settings value for accelerated compositing. In this case we allow accelerated compositing only on QGraphicsWebView. * Api/qgraphicswebview.cpp: (QGraphicsWebViewPrivate::allowsAcceleratedCompositing): * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::allowsAcceleratedCompositing): * WebCoreSupport/ChromeClientQt.h: 2010-04-20 Adam Barth Unreviewed build fix. * Api/qwebframe.cpp: (QWebFrame::setUrl): 2010-04-20 Adam Barth Reviewed by Eric Seidel. Factor DocumentWriter out of FrameLoader https://bugs.webkit.org/show_bug.cgi?id=37175 Update these callsites because the method moved to DocumentWriter. * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::finishedLoading): (WebCore::FrameLoaderClientQt::setMainDocumentError): (WebCore::FrameLoaderClientQt::committedLoad): (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 2010-04-20 Kent Tamura Reviewed by Darin Adler. Change a parameter type of chooseIconForFiles() https://bugs.webkit.org/show_bug.cgi?id=37504 * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::chooseIconForFiles): * WebCoreSupport/ChromeClientQt.h: 2010-04-19 Jocelyn Turcotte Reviewed by Simon Hausmann. [Qt] Fix compilation against namespaced Qt. * WebCoreSupport/ChromeClientQt.h: * WebCoreSupport/QtFallbackWebPopup.h: 2010-04-18 Robert Hogan Reviewed by Simon Hausmann. [Qt] Add support for LayoutTestController commands: setSmartInsertDeleteEnabled setSelectTrailingWhitespaceEnabled execCommand isCommandEnabled https://bugs.webkit.org/show_bug.cgi?id=35844 * Api/qwebpage.cpp: (QWebPagePrivate::QWebPagePrivate): * Api/qwebpage_p.h: * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::setSmartInsertDeleteEnabled): (DumpRenderTreeSupportQt::setSelectTrailingWhitespaceEnabled): (DumpRenderTreeSupportQt::executeCoreCommandByName): (DumpRenderTreeSupportQt::isCommandEnabled): * WebCoreSupport/DumpRenderTreeSupportQt.h: * WebCoreSupport/EditorClientQt.cpp: (WebCore::EditorClientQt::smartInsertDeleteEnabled): (WebCore::EditorClientQt::toggleSmartInsertDelete): (WebCore::EditorClientQt::isSelectTrailingWhitespaceEnabled): * WebCoreSupport/EditorClientQt.h: 2010-04-15 Kent Hansen Reviewed by Kenneth Rohde Christiansen. [Qt] Mark QWebFrame::overloadedSlots autotest as expected failure https://bugs.webkit.org/show_bug.cgi?id=37319 * tests/qwebframe/tst_qwebframe.cpp: 2010-04-09 Antonio Gomes Reviewed by Kenneth Christiansen and Tor Arne Vestbø. REGRESSION(r56552): Broken scrollbars size https://bugs.webkit.org/show_bug.cgi?id=36853 The regression was caused by r56552, which introduced a fix to bug webkit.org/b/21300. The bug solved an issue with the resize handle on mac, but did it in a way that affected all Qt platforms and thus broke the behavior on non-mac platforms. This patch makes the mac specific change ifdef'ed and only applied for the mac platform. * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::windowResizerRect): 2010-04-15 Bruno Schmidt Reviewed by Kenneth Rohde Christiansen. [Qt] Null QObjects properties cause Segmentation Fault https://bugs.webkit.org/show_bug.cgi?id=34730 QObjects exported to the QWebkit javascript with properties that are a null "QObject*" cause Segmentation Fault. If an QObject is added to the javascript context and it contains properties of the type QObject* with NULL value, calling the property causes Segmentation Fault. Follow the tests for the corrections done over WebCore. * tests/qwebframe/tst_qwebframe.cpp: (MyQObject::MyQObject): init the field m_objectStar (MyQObject::objectStarProperty): read the Object* prop (MyQObject::setObjectStarProperty): write the Object* prop (tst_QWebFrame::getSetStaticProperty): new tests for the new prop 2010-04-14 Luiz Agostini Reviewed by Kenneth Rohde Christiansen. Changing view mode names due to specification changes https://bugs.webkit.org/show_bug.cgi?id=37615 test: fast/media/media-feature-wgt-view-mode.html specification: http://dev.w3.org/2006/waf/widgets-vmmf/ * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::isWindowed): (WebCore::ChromeClientQt::isFullscreen): (WebCore::ChromeClientQt::isMaximized): (WebCore::ChromeClientQt::isMinimized): * WebCoreSupport/ChromeClientQt.h: 2010-04-14 Luiz Agostini Reviewed by Simon Hausmann. [Qt] Moving setViewMode from DumpRenderTreeSupportQt to qwebpage.cpp https://bugs.webkit.org/show_bug.cgi?id=37622 Method qt_wrt_setViewMode was removed from qwebpage.cpp by mistake in r57433 (bug 35844). Moving it back. * Api/qwebpage.cpp: (qt_wrt_setViewMode): * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::setMediaType): * WebCoreSupport/DumpRenderTreeSupportQt.h: 2010-04-14 Andreas Kling Reviewed by Kenneth Rohde Christiansen. [Qt] Rendering artifacts on Qt plugins when scrolling the page https://bugs.webkit.org/show_bug.cgi?id=37152 Because we no longer repaint the entire viewport on scroll, we must trigger a repaint of QtPluginWidgets when their geometry changes. * WebCoreSupport/FrameLoaderClientQt.cpp: 2010-04-14 Aaron Boodman Reviewed by David Levin. Support relative URLs for notifications on Chromium. They weren't working previously because WebCore was inserting the relative URL into a KURL instance, but when KURL is backed by GURL as it is on Chromium, relative URLs are unsupported. Fixed by resolving the relative URL first. https://bugs.webkit.org/show_bug.cgi?id=36623 Adding tests for this is difficult because we don't currently have DRT support for notifications on Mac, only Windows. * WebCoreSupport/NotificationPresenterClientQt.cpp: (NotificationPresenterClientQt::show): Return type of NotificationContents::iconURL() changed. 2010-04-13 Timothy Hatcher Rename SecurityOrigin::whiteListAccessFromOrigin to addOriginAccessWhitelistEntry. And SecurityOrigin::resetOriginAccessWhiteLists to resetOriginAccessWhitelists. SecurityOrigin needs a way to remove individual OriginAccessEntries https://bugs.webkit.org/show_bug.cgi?id=37449 Reviewed by Dave Hyatt. * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::whiteListAccessFromOrigin): (DumpRenderTreeSupportQt::resetOriginAccessWhiteLists): 2010-04-11 Sheriff Bot Unreviewed, rolling out r57468. http://trac.webkit.org/changeset/57468 https://bugs.webkit.org/show_bug.cgi?id=37433 Broke the world... Must have applied the patch wrong (Requested by abarth on #webkit). * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::finishedLoading): (WebCore::FrameLoaderClientQt::setMainDocumentError): (WebCore::FrameLoaderClientQt::committedLoad): (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 2010-04-11 Adam Barth Reviewed by Eric Seidel. Factor DocumentWriter out of FrameLoader https://bugs.webkit.org/show_bug.cgi?id=37175 Update these callsites because the method moved to DocumentWriter. * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::finishedLoading): (WebCore::FrameLoaderClientQt::setMainDocumentError): (WebCore::FrameLoaderClientQt::committedLoad): (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 2010-04-11 Robert Hogan Reviewed by Simon Hausmann. [Qt] Add setWillSendRequestReturnsNull and setWillSendRequestClearHeader https://bugs.webkit.org/show_bug.cgi?id=37410 * WebCoreSupport/FrameLoaderClientQt.cpp: (qt_set_will_send_request_returns_null): (qt_set_will_send_request_clear_headers): (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 2010-04-10 Robert Hogan Reviewed by Kenneth Rohde Christiansen. Refactor Qt DRT support in QtWebKit Move all QT DRT support functions to a static class. https://bugs.webkit.org/show_bug.cgi?id=35844 * Api/qwebframe.cpp: Remove static functions. * Api/qwebframe.h: Make DumpRenderTreeSupportQt a friend. * Api/qwebpage.cpp: Remove static functions. * Api/qwebpage.h: Make DumpRenderTreeSupportQt a friend. * Api/qwebsecurityorigin.cpp: Remove static functions. * WebCoreSupport/DumpRenderTreeSupportQt.cpp: Added. (DumpRenderTreeSupportQt::DumpRenderTreeSupportQt): (DumpRenderTreeSupportQt::~DumpRenderTreeSupportQt): (DumpRenderTreeSupportQt::overwritePluginDirectories): (DumpRenderTreeSupportQt::workerThreadCount): (DumpRenderTreeSupportQt::setDumpRenderTreeModeEnabled): (DumpRenderTreeSupportQt::setFrameFlatteningEnabled): (DumpRenderTreeSupportQt::webPageSetGroupName): (DumpRenderTreeSupportQt::webPageGroupName): (DumpRenderTreeSupportQt::webInspectorExecuteScript): (DumpRenderTreeSupportQt::webInspectorClose): (DumpRenderTreeSupportQt::webInspectorShow): (DumpRenderTreeSupportQt::setTimelineProfilingEnabled): (DumpRenderTreeSupportQt::hasDocumentElement): (DumpRenderTreeSupportQt::setJavaScriptProfilingEnabled): (DumpRenderTreeSupportQt::pauseAnimation): (DumpRenderTreeSupportQt::pauseTransitionOfProperty): (DumpRenderTreeSupportQt::pauseSVGAnimation): (DumpRenderTreeSupportQt::numberOfActiveAnimations): (DumpRenderTreeSupportQt::clearFrameName): (DumpRenderTreeSupportQt::javaScriptObjectsCount): (DumpRenderTreeSupportQt::garbageCollectorCollect): (DumpRenderTreeSupportQt::garbageCollectorCollectOnAlternateThread): (DumpRenderTreeSupportQt::counterValueForElementById): (DumpRenderTreeSupportQt::pageNumberForElementById): (DumpRenderTreeSupportQt::numberOfPages): (DumpRenderTreeSupportQt::suspendActiveDOMObjects): (DumpRenderTreeSupportQt::resumeActiveDOMObjects): (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld): (DumpRenderTreeSupportQt::whiteListAccessFromOrigin): (DumpRenderTreeSupportQt::resetOriginAccessWhiteLists): (DumpRenderTreeSupportQt::setDomainRelaxationForbiddenForURLScheme): (DumpRenderTreeSupportQt::setCaretBrowsingEnabled): (DumpRenderTreeSupportQt::setMediaType): (DumpRenderTreeSupportQt::setViewMode): * WebCoreSupport/DumpRenderTreeSupportQt.h: Added. * WebCoreSupport/EditorClientQt.h: * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::multiplePageGroupsAndLocalStorage): (tst_QWebPage::inputMethodsTextFormat): (tst_QWebPage::protectBindingsRuntimeObjectsFromCollector): 2010-04-11 Robert Hogan Reviewed by Simon Hausmann. [Qt] Update layoutTestController.DumpResourceLoadCallbacks to match other ports. Unskip http/tests/xmlhttprequest/abort-should-cancel-load.html http/tests/misc/will-send-request-returns-null-on-redirect.html fast/loader/user-style-sheet-resource-load-callbacks.html http/tests/misc/window-dot-stop.html http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-allow.html http/tests/security/XFrameOptions/x-frame-options-deny.html http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow.html http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny.html http/tests/xmlhttprequest/abort-should-cancel-load.html QNetworkReply::OperationCanceledError has a value of 5, so update expected results accordingly. https://bugs.webkit.org/show_bug.cgi?id=37237 * WebCoreSupport/FrameLoaderClientQt.cpp: (qt_set_will_send_request_returns_null_on_redirect): (drtDescriptionSuitableForTestResult): (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading): (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 2010-04-10 Laszlo Gombos Reviewed by Kenneth Rohde Christiansen. [Qt] Implement Desktop Notifications API for QtWebKit https://bugs.webkit.org/show_bug.cgi?id=35503 Map WebKit notifications to Qt's SystemTray API and implement DRT tracing. This patch does not implement the security part of WebKit notifications. * Api/qwebpage.cpp: (QWebPagePrivate::QWebPagePrivate): * Api/qwebpage.h: * Api/qwebpage_p.h: * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::notificationPresenter): * WebCoreSupport/ChromeClientQt.h: * WebCoreSupport/NotificationPresenterClientQt.cpp: Added. (qt_dump_notification): (NotificationPresenterClientQt::NotificationPresenterClientQt): (NotificationPresenterClientQt::show): (NotificationPresenterClientQt::cancel): (NotificationPresenterClientQt::notificationObjectDestroyed): (NotificationPresenterClientQt::requestPermission): (NotificationPresenterClientQt::checkPermission): * WebCoreSupport/NotificationPresenterClientQt.h: Added. 2010-04-09 Tasuku Suzuki Reviewed by Simon Hausmann. [Qt]Fix compile error with QT_NO_IM https://bugs.webkit.org/show_bug.cgi?id=36533 * WebCoreSupport/QtFallbackWebPopup.cpp: (WebCore::QtFallbackWebPopupCombo::hidePopup): 2010-04-09 Yi Shen Reviewed by Kenneth Rohde Christiansen. [Qt] tst_QWebFrame::popupFocus() fails https://bugs.webkit.org/show_bug.cgi?id=37320 The QWebPopup class has been moved & renamed, so tst_QWebFrame::popupFocus() should use the class name "QComboBox", rather than "WebCore::QWebPopup" to find the popup menu. * tests/qwebframe/tst_qwebframe.cpp: 2010-04-09 Antonio Gomes Reviewed by Holger Freyther. Removing the use of topLevelWidget of QWidget class since it is deprecated/obsolete since Qt 4.5. window() method is being used instead now. See http://doc.trolltech.com/4.5/qwidget-obsolete.html#topLevelWidget for more info. * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::windowRect): (WebCore::ChromeClientQt::show): (WebCore::ChromeClientQt::windowResizerRect): 2010-04-09 Tasuku Suzuki Reviewed by Simon Hausmann. [Qt] Fix compile error with QT_NO_ACTION https://bugs.webkit.org/show_bug.cgi?id=36529 Make sure QT_NO_ACTION is not defined to use QAction * Api/qgraphicswebview.cpp: (QGraphicsWebView::pageAction): * Api/qwebpage.cpp: (QWebPagePrivate::updateAction): (QWebPage::updatePositionDependentActions): * Api/qwebpage.h: * Api/qwebview.cpp: * Api/qwebview.h: 2010-04-09 Simon Hausmann Reviewed by Lars Knoll. [Qt] tests/qgraphicswebview fails https://bugs.webkit.org/show_bug.cgi?id=37317 * Api/qwebpage.cpp: (QWebPage::userAgentForUrl): Don't crash if the ownerWidget is null. 2010-04-08 Benjamin Poulain Reviewed by Simon Hausmann. [Qt] Warnings when compiling InspectorClientQt.cpp https://bugs.webkit.org/show_bug.cgi?id=37266 Add a default: for the switch()-case to avoid warnings. * WebCoreSupport/InspectorClientQt.cpp: (WebCore::variantToSetting): 2010-04-01 Antonio Gomes Reviewed by David Hyatt. [Qt] REGRESSION:(r50665) QWebFrame::setScrollBarPolicy(Qt::Vertical,Qt::ScrollBarAlwaysOff) has no effect. https://bugs.webkit.org/show_bug.cgi?id=29431 Make use of the new lock parameter of set{Vertical,Horizontal}ScrollbarMode. Always added a qt auto test for set scrollbar policy feature. * Api/qwebframe.cpp: (QWebFrame::setScrollBarPolicy): * tests/qwebframe/tst_qwebframe.cpp: * WebCoreSupport/FrameLoaderClientQt.cpp: (FrameLoaderClientQt::transitionToCommittedForNewPage): 2010-04-08 Joe Ligman Reviewed by Simon Hausmann. [Qt] WebKit crashes while input text through input method. The formatted text underline painting crashes when painting with invalid indexes. https://bugs.webkit.org/show_bug.cgi?id=36870 * Api/qwebpage.cpp: (QWebPagePrivate::inputMethodEvent): * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::inputMethodsTextFormat_data): (tst_QWebPage::inputMethodsTextFormat): 2010-04-08 Joe Ligman Reviewed by Simon Hausmann. [Qt] qtwebkit_webframe_scrollRecursively scrolls when body.style.overflow="hidden" https://bugs.webkit.org/show_bug.cgi?id=36674 The scrolling check was based on the frameview's scrolloffset, and maximumScrollPosition, which does not acknowledge the overflow properties. I am now basing the scrolling off the scrollbar position. The scrollbars are affected by the overflow properties indicating when not to scroll. The scrollbar positions also continue to work for CSS ::-webkit-scrollbar styles. * Api/qwebframe.cpp: (qtwebkit_webframe_scrollRecursively): 2010-04-07 Andrey Kosyakov Reviewed by Yury Semikhatsky. Removed redundant FrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest() https://bugs.webkit.org/show_bug.cgi?id=36949 * WebCoreSupport/FrameLoaderClientQt.cpp: * WebCoreSupport/FrameLoaderClientQt.h: 2010-04-07 Dawit Alemayehu Reviewed by Simon Hausmann. https://bugs.webkit.org/show_bug.cgi?id=36827 Updated the WebCore::shouldTreatAsAttachement function call with the new more generic replacement WebCore::contentDispositionType. See comments 39-42 in https://bugs.webkit.org/show_bug.cgi?id=36395 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 2010-04-07 Andreas Kling Reviewed by Simon Hausmann. [Qt] When providing a widget for the PDF mime type it will cause a crash m_pluginView may actually be a Widget (for embedded Qt widgets), so always check isPluginView() before calling PluginView specific methods. https://bugs.webkit.org/show_bug.cgi?id=29450 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::finishedLoading): (WebCore::FrameLoaderClientQt::setMainDocumentError): (WebCore::FrameLoaderClientQt::committedLoad): 2010-04-06 Diego Gonzalez Reviewed by Simon Hausmann. [Qt] Add mechanism to detect QtWebKit 2.0 via the preprocessor https://bugs.webkit.org/show_bug.cgi?id=36538 * Api/qwebkitglobal.h: 2010-04-02 Laszlo Gombos Reviewed by Kenneth Rohde Christiansen. [Qt] [Symbian] Rebaseline Symbian def file https://bugs.webkit.org/show_bug.cgi?id=37038 Switch the ordinal numbers for qtwebkit_webframe_scrollRecursively and QWebInspector::closeEvent to match QtWebkit 4.6 branch Fix the signature for qt_drt_setFrameFlatteningEnabled after r56718. Add new QtWebKit API symbols introduced not listed in the file yet. * symbian/eabi/QtWebKitu.def: 2010-03-30 Antonio Gomes Reviewed by Adam Treat. Stored focused frame and document in a vars, instead of querying for them many times. * Api/qwebpage.cpp: (QWebPagePrivate::mousePressEvent(QEvent* ev)): (QWebPagePrivate::mousePressEvent(QGraphicsSceneMouseEvent* ev): 2010-04-02 Tasuku Suzuki Reviewed by Eric Seidel. [Qt]Fix compile error with QT_NO_SETTINGS https://bugs.webkit.org/show_bug.cgi?id=36533 If QT_NO_SETTINGS is defined, QSettings is not available. * WebCoreSupport/InspectorClientQt.cpp: (WebCore::InspectorClientQt::populateSetting): (WebCore::InspectorClientQt::storeSetting): 2010-04-02 Luiz Agostini Reviewed by Kenneth Rohde Christiansen. [Qt] Maemo5 theme - customized popup for