2010-10-20 Luiz Agostini Reviewed by Antonio Gomes. [Qt] Wrong null check in PopupMenuQt https://bugs.webkit.org/show_bug.cgi?id=47945 Wrong null check in PopupMenuQt. * WebCoreSupport/PopupMenuQt.cpp: (WebCore::PopupMenuQt::hide): 2010-10-18 Viatcheslav Ostapenko Reviewed by Laszlo Gombos. [Qt] Export QWebPage::ViewportAttributes class. https://bugs.webkit.org/show_bug.cgi?id=47845 * Api/qwebpage.h: * symbian/eabi/QtWebKitu.def: 2010-10-18 Pavel Feldman Reviewed by Simon Fraser. Web Inspector: [crash] when Inspector Open in CSSStyleSelector::loadPendingImages(). https://bugs.webkit.org/show_bug.cgi?id=46224 * WebCoreSupport/InspectorClientQt.cpp: (WebCore::InspectorClientQt::sendMessageToFrontend): 2010-10-18 No'am Rosenthal Reviewed by Andreas Kling. [Qt] AC rendering bugs This fixes a regression that was introduced by making scrolling in accelerated compositing automatic, which made our explicit function to scroll the compositing layers superfluous, making the scrolling behavior when graphics layers are present incorrect. The fix simply removes those redundant functions. https://bugs.webkit.org/show_bug.cgi?id=47571 * WebCoreSupport/PageClientQt.cpp: (WebCore::PageClientQGraphicsWidget::scroll): (WebCore::PageClientQGraphicsWidget::update): (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer): * WebCoreSupport/PageClientQt.h: 2010-10-18 Jocelyn Turcotte Reviewed by nobody, build fix. [Qt] Fix the build with MSVC. Splitting the condition in two to prevent qmake parentheses issues. * Api/DerivedSources.pro: 2010-10-18 Yi Shen Reviewed by Antonio Gomes. [QT] Unable to load pages on QtTestBrowser after canceling a page load. https://bugs.webkit.org/show_bug.cgi?id=43827 * Api/qwebpage.cpp: (QWebPage::triggerAction): 2010-10-15 Qi Zhang Reviewed by Andreas Kling. [Qt] window.close() doesn't work in qt https://bugs.webkit.org/show_bug.cgi?id=46186 Introduce new attribute in QWebSettings to trigger "setAllowScriptsToCloseWindow" * Api/qwebsettings.cpp: (QWebSettingsPrivate::apply): * Api/qwebsettings.h: 2010-10-15 Andreas Kling Reviewed by Kenneth Rohde Christiansen. [Qt] Unbreak scrolling the ContentsLayer with QWebView r69777 broke scrolling the contents layer in QWebView by not restoring the painter clip after painting each part of the dirty region. * Api/qwebframe.cpp: (QWebFramePrivate::renderRelativeCoords): 2010-09-27 Dawit Alemayehu Reviewed by Andreas Kling. [Qt] Added functions for obtaining and checking the supported content types. http://webkit.org/b/37880 * Api/qwebpage.cpp: (extractContentTypeFromHash): (extractContentTypeFromPluginVector): (QWebPage::supportedContentTypes): (QWebPage::supportsContentType): * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::supportedContentType): 2010-10-14 Sheriff Bot Unreviewed, rolling out r69795. http://trac.webkit.org/changeset/69795 https://bugs.webkit.org/show_bug.cgi?id=47687 'See discussion at webkit.org/b/47609' (Requested by mwenge on #webkit). * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::canHandleRequest): (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy): 2010-10-14 Robert Hogan Reviewed by Antonio Gomes. [Qt] Fix http/tests/misc/redirect-to-external-url.html Support the test in FrameLoaderClientQt and unskip. https://bugs.webkit.org/show_bug.cgi?id=47609 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::canHandleRequest): (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy): 2010-10-14 No'am Rosenthal Reviewed by Kenneth Rohde Christiansen. [Texmap] [Qt] Texture mapper initial implementation https://bugs.webkit.org/show_bug.cgi?id=47070 Allow rendering of accelerated-compositing with TextureMapper, inside a QWebFrame. The frame will render the regular content, either normally or through tiled backingstore, then let the TextureMapper layer render itself to the active context, and then render the scrollbar and pan icon. This is different from the current implementation, which uses additional QGraphicsItems for AC and the scrollbar overlay. * Api/qgraphicswebview.cpp: (QGraphicsWebView::paint): * Api/qwebframe.cpp: (QWebFramePrivate::renderFromTiledBackingStore): (QWebFramePrivate::renderRelativeCoords): 2010-10-13 Gavin Barraclough Reviewed by Oliver Hunt. https://bugs.webkit.org/show_bug.cgi?id=43987 Switch XMLHttpRequest, FileReader, and FileReaderSync to use a Stringbuilder to construct their internal result string. Remove ScriptString (this is now redundant). * WebCoreSupport/FrameLoaderClientQt.cpp: 2010-10-13 Dinu Jacob Reviewed by Andreas Kling. [Qt] Update .def file for Symbian https://bugs.webkit.org/show_bug.cgi?id=47540 Updated symbols for Symbian - added viewportAttributesForSize and made viewportConfigurationForSize absent based on the API change in 47325 * symbian/eabi/QtWebKitu.def: 2010-10-12 David Leong Reviewed by Laszlo Gombos. [Qt] Enable Netscape plugin metadata caching on Linux https://bugs.webkit.org/show_bug.cgi?id=46287 QWebSettings::enablePersistentStorage will now store the netscape plugin cache to QDesktopServices::CacheLocation. * Api/qwebsettings.cpp: (QWebSettings::enablePersistentStorage): 2010-10-12 Yael Aharon Reviewed by Antonio Gomes. [Qt] Editing commands should not be executed on non-editable content. https://bugs.webkit.org/show_bug.cgi?id=47426 Remove calls to editor()->command() when we are not in editable content. There is no value in doing that, and in some cases, it prevents scrolling. * WebCoreSupport/EditorClientQt.cpp: (WebCore::EditorClientQt::handleKeyboardEvent): 2010-10-08 Hui Huang Reviewed by Simon Hausmann. ifdef out code that rewrites Flash Plug-in wmode for Symbian build https://bugs.webkit.org/show_bug.cgi?id=43484 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::createPlugin): 2010-10-07 Andreas Kling Reviewed by Simon Hausmann. [Qt] API: ViewportConfiguration => ViewportArguments https://bugs.webkit.org/show_bug.cgi?id=47325 * Api/qwebpage.cpp: (QWebPage::ViewportAttributes::ViewportAttributes): (QWebPage::ViewportAttributes::~ViewportAttributes): (QWebPage::ViewportAttributes::operator=): (QWebPage::viewportAttributesForSize): * Api/qwebpage.h: * Api/qwebpage_p.h: (QtViewportAttributesPrivate::QtViewportAttributesPrivate): 2010-10-07 Luiz Agostini Reviewed by Kenneth Rohde Christiansen. Fixing viewport meta tag user-scalable handling https://bugs.webkit.org/show_bug.cgi?id=47330 user-scalable attribute was not considered in viewport meta tag handling. * Api/qwebpage.cpp: (QWebPage::viewportConfigurationForSize): 2010-10-05 Diego Gonzalez Reviewed by Andreas Kling. [Qt] Hook up accelerometer data via Qt DeviceMotion https://bugs.webkit.org/show_bug.cgi?id=47105 Get accelerometer necessary data via Qt mobility library using a provider class. Enable, also the RotationRate using the current device orientation provider. * WebCoreSupport/DeviceMotionClientQt.cpp: (WebCore::DeviceMotionClientQt::DeviceMotionClientQt): (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt): (WebCore::DeviceMotionClientQt::startUpdating): (WebCore::DeviceMotionClientQt::stopUpdating): (WebCore::DeviceMotionClientQt::currentDeviceMotion): (WebCore::DeviceMotionClientQt::changeDeviceMotion): * WebCoreSupport/DeviceMotionClientQt.h: * WebCoreSupport/DeviceMotionProviderQt.cpp: Added. (WebCore::DeviceMotionProviderQt::DeviceMotionProviderQt): (WebCore::DeviceMotionProviderQt::~DeviceMotionProviderQt): (WebCore::DeviceMotionProviderQt::start): (WebCore::DeviceMotionProviderQt::stop): (WebCore::DeviceMotionProviderQt::filter): * WebCoreSupport/DeviceMotionProviderQt.h: Added. (WebCore::DeviceMotionProviderQt::currentDeviceMotion): 2010-10-07 Luiz Agostini Reviewed by Kenneth Rohde Christiansen. Some viewport meta tag api refactoring https://bugs.webkit.org/show_bug.cgi?id=47334 WebCore::findConfigurationForViewportData renamed to computeViewportAttributes. WebCore::ViewportAttributes::layoutViewport renamed to layoutSize. * Api/qwebpage.cpp: (QWebPage::viewportConfigurationForSize): * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::viewportAsText): 2010-10-07 Keith Kyzivat Reviewed by Simon Hausmann. [Qt] Update .def file for Symbian https://bugs.webkit.org/show_bug.cgi?id=47336 Fix and re-freeze symbols for symbian - viewportConfigurationForSize API changed, allowGeolocationRequest removed from API, several DumpRenderTree support calls added. * symbian/eabi/QtWebKitu.def: 2010-10-06 Ragner Magalhaes Reviewed by Antonio Gomes. [Qt] Duplicated code in QWebPagePrivate https://bugs.webkit.org/show_bug.cgi?id=47195 Remove duplicated code from QWebPagePrivate class for QGraphicsView and QWidget's mouse events. * Api/qwebpage.cpp: (QWebPagePrivate::mouseMoveEvent): (QWebPagePrivate::mousePressEvent): (QWebPagePrivate::mouseDoubleClickEvent): (QWebPagePrivate::mouseTripleClickEvent): (QWebPagePrivate::mouseReleaseEvent): (QWebPagePrivate::wheelEvent): (QWebPagePrivate::dragEnterEvent): (QWebPagePrivate::dragLeaveEvent): (QWebPagePrivate::dragMoveEvent): (QWebPagePrivate::dropEvent): * Api/qwebpage_p.h: 2010-10-06 Luiz Agostini Reviewed by Kenneth Rohde Christiansen. Renaming WebCore::ViewportConfiguration to WebCore::ViewportAttributes https://bugs.webkit.org/show_bug.cgi?id=47268 Renaming WebCore::ViewportConfiguration to WebCore::ViewportAttributes * Api/qwebpage.cpp: (QWebPage::viewportConfigurationForSize): * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::viewportAsText): 2010-10-05 Andrew Wilson Reviewed by Andreas Kling. Notification onclick() events don't act like user gestures https://bugs.webkit.org/show_bug.cgi?id=47137 * WebCoreSupport/NotificationPresenterClientQt.cpp: (WebCore::NotificationPresenterClientQt::notificationClicked): Use UserGestureIndicator to make sure click events are treated like user gestures. 2010-10-05 Robert Hogan Reviewed by Andreas Kling. [Qt] Fix url conversion in QWebHistory Converting from KURL to WFT::String to QUrl does not permit proper percent encoding later. https://bugs.webkit.org/show_bug.cgi?id=47048 * Api/qwebhistory.cpp: (QWebHistoryItem::originalUrl): (QWebHistoryItem::url): 2010-10-05 Jakob Petsovits Reviewed by Andreas Kling. [Qt] Make build work with QT_NO_CURSOR https://bugs.webkit.org/show_bug.cgi?id=46097 Add a missing semicolon. * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::setCursor): 2010-10-05 Simon Hausmann Unreviewed build fix. [Symbian] Fix build issue due to gaps in ordinals in the def file Restore previously removed symbols and mark them absent instead. We must not remove symbols from this file, because it breaks binary compatibility (when re-assigning the ordinals of the following symbols) or it causes build breakage when instead having a gap in the ordinal sequence. Instead removing a symbol is done by marking it as absent. * symbian/eabi/QtWebKitu.def: 2010-10-04 Adam Barth Reviewed by Darin Adler. Rename RedirectScheduler to NavigationScheduler https://bugs.webkit.org/show_bug.cgi?id=47037 Update for name change. * Api/qwebpage.cpp: (QWebPage::triggerAction): 2010-10-04 Diego Gonzalez Reviewed by Kenneth Rohde Christiansen. [Qt] Hook up DeviceOrientation data for Qt support https://bugs.webkit.org/show_bug.cgi?id=47052 Get DeviceOrientation necessary data via Qt mobility library using a provider class. * WebCoreSupport/DeviceOrientationClientQt.cpp: (WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt): (WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt): (WebCore::DeviceOrientationClientQt::startUpdating): (WebCore::DeviceOrientationClientQt::stopUpdating): (WebCore::DeviceOrientationClientQt::lastOrientation): (WebCore::DeviceOrientationClientQt::changeDeviceOrientation): * WebCoreSupport/DeviceOrientationClientQt.h: * WebCoreSupport/DeviceOrientationProviderQt.cpp: Added. (WebCore::DeviceOrientationProviderQt::DeviceOrientationProviderQt): (WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt): (WebCore::DeviceOrientationProviderQt::start): (WebCore::DeviceOrientationProviderQt::stop): (WebCore::DeviceOrientationProviderQt::filter): * WebCoreSupport/DeviceOrientationProviderQt.h: Added. (WebCore::DeviceOrientationProviderQt::isActive): (WebCore::DeviceOrientationProviderQt::orientation): (WebCore::DeviceOrientationProviderQt::hasAlpha): 2010-09-28 Luiz Agostini Reviewed by Kenneth Rohde Christiansen. Viewport data change notifications https://bugs.webkit.org/show_bug.cgi?id=46755 Regarding viewport meta tags, what matters for browser developers is to know when the viewport data has changed and its current value. Viewport data belongs to the document, but it is useful to keep the current viewport data in Page as a reference, to be able to send notifications only when the current viewport has changed. * Api/qwebframe.cpp: * Api/qwebframe_p.h: * Api/qwebpage.cpp: (QWebPagePrivate::viewportArguments): (QWebPage::viewportConfigurationForSize): * Api/qwebpage_p.h: * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::viewportDataChanged): * WebCoreSupport/ChromeClientQt.h: * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::viewportAsText): 2010-10-04 Simon Hausmann Rubber-stamped by Tor Arne Vestbø. [Qt] Fix platform plugin support after r68128 Replaced the qobject_cast from the QObject derived extension to a static_cast. qobject_cast works by comparing pointers to meta-object instances, of which there are two each: one compiled into WebKit and one compiled into the plugin. The platform plugin ensures the validity of the interface contract through its version and the initial safe qobject_cast from QObject to QWebKitPlatformPlugin. After that it is safe to use static_cast, and with the recent changes even required. * WebCoreSupport/QtPlatformPlugin.cpp: (WebCore::QtPlatformPlugin::createSelectInputMethod): (WebCore::QtPlatformPlugin::createNotificationPresenter): (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer): 2010-10-02 Diego Gonzalez Reviewed by Kenneth Rohde Christiansen. [Qt] Provide Qt support for DeviceMotion/Orientation clients https://bugs.webkit.org/show_bug.cgi?id=47051 Dummy implementation of DeviceMotion/Orientation client classes to make possible to hook up motion/orientation data in further implementations. * Api/qwebpage.cpp: (QWebPagePrivate::QWebPagePrivate): * WebCoreSupport/DeviceMotionClientQt.cpp: Added. (WebCore::DeviceMotionClientQt::DeviceMotionClientQt): (WebCore::DeviceMotionClientQt::setController): (WebCore::DeviceMotionClientQt::startUpdating): (WebCore::DeviceMotionClientQt::stopUpdating): (WebCore::DeviceMotionClientQt::currentDeviceMotion): (WebCore::DeviceMotionClientQt::deviceMotionControllerDestroyed): * WebCoreSupport/DeviceMotionClientQt.h: Added. (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt): * WebCoreSupport/DeviceOrientationClientQt.cpp: Added. (WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt): (WebCore::DeviceOrientationClientQt::setController): (WebCore::DeviceOrientationClientQt::startUpdating): (WebCore::DeviceOrientationClientQt::stopUpdating): (WebCore::DeviceOrientationClientQt::lastOrientation): (WebCore::DeviceOrientationClientQt::deviceOrientationControllerDestroyed): * WebCoreSupport/DeviceOrientationClientQt.h: Added. (WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt): 2010-09-30 Robert Hogan Reviewed by Andreas Kling. [Qt] Support for PlainTextController Unskip editing/text-iterator/basic-iteration.html https://bugs.webkit.org/show_bug.cgi?id=38805 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::plainText): * WebCoreSupport/DumpRenderTreeSupportQt.h: 2010-09-30 Andreas Kling Reviewed by Tor Arne Vestbø. [Qt] V8 port: Unbreak build Add missing include. * WebCoreSupport/InspectorServerQt.cpp: 2010-09-30 Benjamin Poulain Reviewed by Andreas Kling. [Qt] Crash if an scene with accelerated compositing layout during the paint event https://bugs.webkit.org/show_bug.cgi?id=46812 Delay the deletion of the overlay after the current event is processed. Removing the overlay can sometimes be done inside the rendering code of the overlay itself. When the rendering code is using the reference after the deletion of the overlay, WebKit crashes. * Api/qgraphicswebview.cpp: (QGraphicsWebViewPrivate::overlay): * WebCoreSupport/PageClientQt.cpp: (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget): (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay): * WebCoreSupport/PageClientQt.h: (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget): 2010-09-30 Benjamin Poulain Reviewed by Andreas Kling. [Qt] Fix tst_QWebPage::geolocationRequestJS() https://bugs.webkit.org/show_bug.cgi?id=46814 Disable the test. This test cannot pass with a standard build of WebKit, it is disabled until the API is finilized. * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::geolocationRequestJS): 2010-09-29 Andreas Kling Reviewed by Ariya Hidayat. [Qt] Don't keep local reference to QGraphicsItemOverlay in QGWVPrivate https://bugs.webkit.org/show_bug.cgi?id=46812 Get the QGraphicsItemOverlay* via the QWebPageClient (d->page->d->client) instead of keeping a local pointer to it. This is cleanup for a follow-up patch. * Api/qgraphicswebview.cpp: (QGraphicsWebViewPrivate::overlay): (QGraphicsWebView::paint): (QGraphicsWebView::setPage): (QGraphicsWebView::updateGeometry): (QGraphicsWebView::setGeometry): 2010-09-28 Jenn Braithwaite Reviewed by Dmitry Titov. Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument. https://bugs.webkit.org/show_bug.cgi?id=46663 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::didTransferChildFrameToNewDocument): * WebCoreSupport/FrameLoaderClientQt.h: 2010-09-28 Andreas Kling Reviewed by Kenneth Rohde Christiansen. [Qt] Clean up QWebPage::ViewportConfiguration API https://bugs.webkit.org/show_bug.cgi?id=46730 - Pass QSize parameter as const-reference - Style fixes * Api/qwebpage.cpp: (QWebPage::viewportConfigurationForSize): * Api/qwebpage.h: 2010-09-28 Andras Becsi Reviewed by Csaba Osztrogonác. Undefined reference errors when linking due to gperf and inlining. webkit.org/b/29244 EFL CMake changes by Leandro Pereira Refactor gperf code generation and usage to fix the debug build with gcc>4.4. Hitherto gperf generated C code, these files were included in multiple C++ files across WebCore to access the functionality provided. This resulted in debug build failure with newer gcc versions because of a behaviour change of gcc, which disables C style inlining in debug mode. The make-hash-tools.pl script lets gperf generate C++ code for all gperf files now, which are compiled in their own compilation unit. The functionality provided by the generated code is wrapped behind HashTools.h, so there is no need for multiple inclusions of generated C files to access these functions. * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::createPlugin): 2010-09-28 Benjamin Poulain Reviewed by Andreas Kling. [Qt] Remove support for Qt 4.5 https://bugs.webkit.org/show_bug.cgi?id=46718 Remove the code for versions of Qt prior to 4.6. * Api/qgraphicswebview.cpp: (QGraphicsWebViewPrivate::updateResizesToContentsForPage): (QGraphicsWebView::QGraphicsWebView): (QGraphicsWebView::sceneEvent): (QGraphicsWebViewPrivate::detachCurrentPage): * Api/qwebframe.cpp: (QWebFrame::load): * Api/qwebpage.cpp: (QWebPagePrivate::QWebPagePrivate): (QWebPagePrivate::handleSoftwareInputPanel): (QWebPagePrivate::inputMethodEvent): (QWebPagePrivate::touchEvent): (QWebPage::inputMethodQuery): (QWebPage::view): (QWebPage::event): * Api/qwebpage_p.h: * Api/qwebview.cpp: (QWebView::QWebView): (QWebViewPrivate::detachCurrentPage): (QWebView::event): * WebCoreSupport/EditorClientQt.cpp: (WebCore::EditorClientQt::setInputMethodState): * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::createPlugin): * WebCoreSupport/PageClientQt.cpp: (WebCore::PageClientQWidget::setInputMethodHints): (WebCore::PageClientQGraphicsWidget::setInputMethodEnabled): (WebCore::PageClientQGraphicsWidget::inputMethodEnabled): (WebCore::PageClientQGraphicsWidget::setInputMethodHints): * WebCoreSupport/PageClientQt.h: (WebCore::QGraphicsItemOverlay::page): * tests/qwebframe/tst_qwebframe.cpp: * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::inputMethods_data): (inputMethodHints): (inputMethodEnabled): (tst_QWebPage::inputMethods): (tst_QWebPage::originatingObjectInNetworkRequests): * tests/qwebview/tst_qwebview.cpp: (tst_QWebView::reusePage): 2010-09-28 Tor Arne Vestbø Reviewed by Simon Hausmann. Clean up QWebPage initialization * Api/qwebpage.cpp: * Api/qwebpage_p.h: 2010-09-28 Benjamin Poulain Reviewed by Kenneth Rohde Christiansen. [Qt] tst_QWebPage::testStopScheduledPageRefresh() fails on MeeGo handset https://bugs.webkit.org/show_bug.cgi?id=46706 The test require the network to succeed or fail in order to work. On MeeGo, the network can simply timeout the because of the netword access management. This patch makes the test use local URLs to avoid the problem. * tests/qwebpage/tst_qwebpage.cpp: (TestNetworkManager::TestNetworkManager): 2010-09-27 Kenneth Rohde Christiansen Reviewed by Antonio Gomes. [Qt] Remove setDeviceSize methods https://bugs.webkit.org/show_bug.cgi?id=46347 Remove our setDeviceHeight() API and obtain it automatically from the system. Also for testing purposes, make it possible to override the values via two newly introduced environment variables. * Api/qgraphicswebview.cpp: * Api/qgraphicswebview.h: * Api/qwebpage.cpp: (getintenv): (queryDeviceSizeForScreenContainingWidget): (QWebPage::viewportConfigurationForSize): * WebCoreSupport/PageClientQt.cpp: (WebCore::PageClientQGraphicsWidget::windowRect): * symbian/eabi/QtWebKitu.def: 2010-09-27 Girish Ramakrishnan Reviewed by Antonio Gomes. Enable local rendering of NPAPI plugins on Maemo6. https://bugs.webkit.org/show_bug.cgi?id=46618 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::createPlugin): 2010-09-27 Benjamin Poulain Reviewed by Andreas Kling. [Qt] tst_QWebFrame::popupFocus() randomly fail on MeeGo handset because the focus is not set on the window https://bugs.webkit.org/show_bug.cgi?id=46617 This patch avoid the race condition by waiting for the window to be mapped on screen before attempting any actions. * tests/qwebframe/tst_qwebframe.cpp: 2010-09-24 Luiz Agostini Reviewed by Kenneth Rohde Christiansen. Keep viewport information in Document https://bugs.webkit.org/show_bug.cgi?id=46385 The viewport meta data (layout viewport, scale) needs to be set again when bringing back a page from the page cache. As the viewport metadata is only retrieved while parsing the document, we need to store it in the Document class. * Api/qwebframe.cpp: (QWebFramePrivate::viewportArguments): * Api/qwebframe_p.h: * Api/qwebpage.cpp: (QWebPage::viewportConfigurationForSize): * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::didReceiveViewportArguments): * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::viewportAsText): * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad): 2010-09-23 Ademar de Souza Reis Jr Reviewed by Kenneth Rohde Christiansen. Fix QWebHapticFeedbackPlayer exposure via QWebKitPlatformPlugin [Qt] QWebHapticFeedbackPlayer needs correct exposure through QWebKitPlatformPlugin https://bugs.webkit.org/show_bug.cgi?id=46402 QWebHapticFeedbackPlayer is exported through QWebKitPlatformPlugin::createExtension(), but createHapticFeedbackPlayer() and the correct inheritage are missing. * Api/qwebkitplatformplugin.h: * WebCoreSupport/QtPlatformPlugin.cpp: (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer): * WebCoreSupport/QtPlatformPlugin.h: 2010-09-23 Nate Chapin Reviewed by Darin Fisher. Add hyperlink auditing settings (i.e., ). https://bugs.webkit.org/show_bug.cgi?id=30458 * Api/qwebsettings.cpp: (QWebSettingsPrivate::apply): (QWebSettings::QWebSettings): * Api/qwebsettings.h: 2010-09-23 Tor Arne Vestbø Reviewed by Simon Hausmann. [Qt] Refactor QtWebKitPlatformPlugin interface Make it easier to keep source-compability for the QtWebKitPlatformPlugin interface, and run qmake on the example (but not build) for convenience. https://bugs.webkit.org/show_bug.cgi?id=46345 * Api/qwebkitplatformplugin.h: * WebCoreSupport/QtPlatformPlugin.cpp: * examples/platformplugin/README: * examples/platformplugin/WebPlugin.cpp: * examples/platformplugin/WebPlugin.h: * examples/platformplugin/qwebkitplatformplugin.h: 2010-09-22 Andras Becsi Speculative build fix for the Qt Windows bots. * Api/DerivedSources.pro: 2010-09-22 Jamey Hicks Reviewed by Kenneth Rohde Christiansen. [Qt] Web Inspector: Remote Web Inspector support for QtWebKit https://bugs.webkit.org/show_bug.cgi?id=43988 Runs a web debug server on port specified by QtTestBrowser argument -remote-inspector-port. Property _q_webInspectorServerPort of the QWebPage instance will be set according to the argument. All pages with that property set will be remotely inspectable. URL for remote inspection of first QWebPage is http://localhost:9222/webkit/inspector/inspector.html?page=1 where 1 is the number of the QWebPage instance. The base URL yields an index page with links to the individual inspectors: http://localhost:9222/ * Api/qwebinspector.cpp: (QWebInspectorPrivate::attachAndReplaceRemoteFrontend): (QWebInspectorPrivate::detachRemoteFrontend): * Api/qwebinspector_p.h: (QWebInspectorPrivate::QWebInspectorPrivate): * Api/qwebpage.cpp: (QWebPagePrivate::dynamicPropertyChangeEvent): (QWebPagePrivate::inspectorServerPort): * Api/qwebpage.h: * Api/qwebpage_p.h: * WebCoreSupport/InspectorClientQt.cpp: (WebCore::InspectorClientQt::InspectorClientQt): (WebCore::InspectorClientQt::inspectorDestroyed): (WebCore::InspectorClientQt::openInspectorFrontend): (WebCore::InspectorClientQt::attachAndReplaceRemoteFrontend): (WebCore::InspectorClientQt::detachRemoteFrontend): (WebCore::InspectorClientQt::sendMessageToFrontend): * WebCoreSupport/InspectorClientQt.h: * WebCoreSupport/InspectorServerQt.cpp: Added. (WebCore::generateWebSocketChallengeResponse): (WebCore::parseWebSocketChallengeNumber): (WebCore::InspectorServerQt::server): (WebCore::InspectorServerQt::InspectorServerQt): (WebCore::InspectorServerQt::~InspectorServerQt): (WebCore::InspectorServerQt::listen): (WebCore::InspectorServerQt::close): (WebCore::InspectorServerQt::inspectorClientForPage): (WebCore::InspectorServerQt::registerClient): (WebCore::InspectorServerQt::unregisterClient): (WebCore::InspectorServerQt::newConnection): (WebCore::InspectorServerRequestHandlerQt::InspectorServerRequestHandlerQt): (WebCore::InspectorServerRequestHandlerQt::~InspectorServerRequestHandlerQt): (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead): (WebCore::InspectorServerRequestHandlerQt::tcpConnectionDisconnected): (WebCore::InspectorServerRequestHandlerQt::webSocketSend): (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead): (WebCore::RemoteFrontendChannel::RemoteFrontendChannel): (WebCore::RemoteFrontendChannel::sendMessageToFrontend): * WebCoreSupport/InspectorServerQt.h: Added. 2010-09-22 Balazs Kelemen Reviewed by Kenneth Rohde Christiansen. [Qt] PluginStrategy implementation is broken https://bugs.webkit.org/show_bug.cgi?id=46078 Remove the QWebPage* member from WebPlatformStrategies. Get the originator QWebPage of the getPluginInfo call via the Page* argument. * Api/qwebpage.cpp: (QWebPagePrivate::QWebPagePrivate): * WebCoreSupport/WebPlatformStrategies.cpp: (WebPlatformStrategies::initialize): (WebPlatformStrategies::WebPlatformStrategies): (WebPlatformStrategies::getPluginInfo): Use the ChromeClient for accessing the originator QWebPage. * WebCoreSupport/WebPlatformStrategies.h: 2010-09-22 İsmail Dönmez Reviewed by Andreas Kling. [Qt] Buildfix for WinCE * Api/DerivedSources.pro: 2010-09-20 Philippe Normand Reviewed by Eric Carlson. [GTK] enhanced context menu for media elements https://bugs.webkit.org/show_bug.cgi?id=45021 * WebCoreSupport/WebPlatformStrategies.cpp: * WebCoreSupport/WebPlatformStrategies.h: (WebPlatformStrategies::contextMenuItemTagOpenVideoInNewWindow): (WebPlatformStrategies::contextMenuItemTagOpenAudioInNewWindow): (WebPlatformStrategies::contextMenuItemTagCopyVideoLinkToClipboard): (WebPlatformStrategies::contextMenuItemTagCopyAudioLinkToClipboard): (WebPlatformStrategies::contextMenuItemTagToggleMediaControls) (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop) (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen) (WebPlatformStrategies::contextMenuItemTagMediaPlay) (WebPlatformStrategies::contextMenuItemTagMediaPause) (WebPlatformStrategies::contextMenuItemTagMediaMute) 2010-09-20 Jacob Dinu Reviewed by Adam Barth. Added a new qwebpage test for loading a cached page https://bugs.webkit.org/show_bug.cgi?id=41155 * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::loadCachedPage): 2010-09-08 Jocelyn Turcotte Reviewed by Simon Hausmann. [Qt] Fix forward includes generation for MSVC when sh is in PATH. MSVC's nmake isn't affected by having sh in PATH. * Api/DerivedSources.pro: 2010-09-18 Ademar de Souza Reis Jr Reviewed by Kenneth Rohde Christiansen. Enable Platform Strategies on Qt [Qt] Turn on PLATFORM_STRATEGIES https://bugs.webkit.org/show_bug.cgi?id=45831 * Api/qwebpage.cpp: (QWebPagePrivate::QWebPagePrivate): Initialize the PlatformStrategy singleton. * WebCoreSupport/WebPlatformStrategies.cpp: Added, code was moved from platform/qt/Localizations.cpp and plugins/qt/PluginDataQt.cpp (WebPlatformStrategies::initialize): create the singleton, following the same "pattern" used by Mac and Win ports. (WebPlatformStrategies::WebPlatformStrategies): (WebPlatformStrategies::createPluginStrategy): (WebPlatformStrategies::createLocalizationStrategy): (WebPlatformStrategies::createVisitedLinkStrategy): (WebPlatformStrategies::refreshPlugins): (WebPlatformStrategies::getPluginInfo): (WebPlatformStrategies::inputElementAltText): (WebPlatformStrategies::resetButtonDefaultLabel): (WebPlatformStrategies::searchableIndexIntroduction): (WebPlatformStrategies::submitButtonDefaultLabel): (WebPlatformStrategies::fileButtonChooseFileLabel): (WebPlatformStrategies::fileButtonNoFileSelectedLabel): (WebPlatformStrategies::contextMenuItemTagOpenLinkInNewWindow): (WebPlatformStrategies::contextMenuItemTagDownloadLinkToDisk): (WebPlatformStrategies::contextMenuItemTagCopyLinkToClipboard): (WebPlatformStrategies::contextMenuItemTagOpenImageInNewWindow): (WebPlatformStrategies::contextMenuItemTagDownloadImageToDisk): (WebPlatformStrategies::contextMenuItemTagCopyImageToClipboard): (WebPlatformStrategies::contextMenuItemTagOpenFrameInNewWindow): (WebPlatformStrategies::contextMenuItemTagCopy): (WebPlatformStrategies::contextMenuItemTagGoBack): (WebPlatformStrategies::contextMenuItemTagGoForward): (WebPlatformStrategies::contextMenuItemTagStop): (WebPlatformStrategies::contextMenuItemTagReload): (WebPlatformStrategies::contextMenuItemTagCut): (WebPlatformStrategies::contextMenuItemTagPaste): (WebPlatformStrategies::contextMenuItemTagNoGuessesFound): (WebPlatformStrategies::contextMenuItemTagIgnoreSpelling): (WebPlatformStrategies::contextMenuItemTagLearnSpelling): (WebPlatformStrategies::contextMenuItemTagSearchWeb): (WebPlatformStrategies::contextMenuItemTagLookUpInDictionary): (WebPlatformStrategies::contextMenuItemTagOpenLink): (WebPlatformStrategies::contextMenuItemTagIgnoreGrammar): (WebPlatformStrategies::contextMenuItemTagSpellingMenu): (WebPlatformStrategies::contextMenuItemTagShowSpellingPanel): (WebPlatformStrategies::contextMenuItemTagCheckSpelling): (WebPlatformStrategies::contextMenuItemTagCheckSpellingWhileTyping): (WebPlatformStrategies::contextMenuItemTagCheckGrammarWithSpelling): (WebPlatformStrategies::contextMenuItemTagFontMenu): (WebPlatformStrategies::contextMenuItemTagBold): (WebPlatformStrategies::contextMenuItemTagItalic): (WebPlatformStrategies::contextMenuItemTagUnderline): (WebPlatformStrategies::contextMenuItemTagOutline): (WebPlatformStrategies::contextMenuItemTagWritingDirectionMenu): (WebPlatformStrategies::contextMenuItemTagTextDirectionMenu): (WebPlatformStrategies::contextMenuItemTagDefaultDirection): (WebPlatformStrategies::contextMenuItemTagLeftToRight): (WebPlatformStrategies::contextMenuItemTagRightToLeft): (WebPlatformStrategies::contextMenuItemTagInspectElement): (WebPlatformStrategies::searchMenuNoRecentSearchesText): (WebPlatformStrategies::searchMenuRecentSearchesText): (WebPlatformStrategies::searchMenuClearRecentSearchesText): (WebPlatformStrategies::AXWebAreaText): (WebPlatformStrategies::AXLinkText): (WebPlatformStrategies::AXListMarkerText): (WebPlatformStrategies::AXImageMapText): (WebPlatformStrategies::AXHeadingText): (WebPlatformStrategies::AXDefinitionListTermText): (WebPlatformStrategies::AXDefinitionListDefinitionText): (WebPlatformStrategies::AXButtonActionVerb): (WebPlatformStrategies::AXRadioButtonActionVerb): (WebPlatformStrategies::AXTextFieldActionVerb): (WebPlatformStrategies::AXCheckedCheckBoxActionVerb): (WebPlatformStrategies::AXUncheckedCheckBoxActionVerb): (WebPlatformStrategies::AXMenuListActionVerb): (WebPlatformStrategies::AXMenuListPopupActionVerb): (WebPlatformStrategies::AXLinkActionVerb): (WebPlatformStrategies::missingPluginText): (WebPlatformStrategies::crashedPluginText): (WebPlatformStrategies::multipleFileUploadText): (WebPlatformStrategies::unknownFileSizeText): (WebPlatformStrategies::imageTitle): (WebPlatformStrategies::mediaElementLoadingStateText): (WebPlatformStrategies::mediaElementLiveBroadcastStateText): (WebPlatformStrategies::localizedMediaControlElementString): (WebPlatformStrategies::localizedMediaControlElementHelpText): (WebPlatformStrategies::localizedMediaTimeDescription): (WebPlatformStrategies::validationMessageValueMissingText): (WebPlatformStrategies::validationMessageTypeMismatchText): (WebPlatformStrategies::validationMessagePatternMismatchText): (WebPlatformStrategies::validationMessageTooLongText): (WebPlatformStrategies::validationMessageRangeUnderflowText): (WebPlatformStrategies::validationMessageRangeOverflowText): (WebPlatformStrategies::validationMessageStepMismatchText): (WebPlatformStrategies::isLinkVisited): (WebPlatformStrategies::addVisitedLink): * WebCoreSupport/WebPlatformStrategies.h: Added, based on Mac and Win versions. 2010-09-18 Andreas Kling Reviewed by Antonio Gomes. [Qt] V8 port: Add FrameLoaderClientQt::allowScriptExtension() https://bugs.webkit.org/show_bug.cgi?id=46034 r67749 added FrameLoaderClient::allowScriptExtension() (V8-specific) Add a stub implementation that simply returns false for now. * WebCoreSupport/FrameLoaderClientQt.h: (WebCore::FrameLoaderClientQt::allowScriptExtension): 2010-09-17 Darin Adler Reviewed by Sam Weinig. REGRESSION (r60104): Zoom level is unexpectedly reset on page reload https://bugs.webkit.org/show_bug.cgi?id=42863 * Api/qwebframe.cpp: (QWebFrame::setTextSizeMultiplier): (QWebFrame::textSizeMultiplier): (QWebFrame::setZoomFactor): (QWebFrame::zoomFactor): Call functions on Frame instead of FrameView. 2010-09-16 Darin Adler Fix build. * WebCoreSupport/EditorClientQt.cpp: (WebCore::EditorClientQt::setInputMethodState): Updated for change in name of isUrlField to isURLField. 2010-09-16 Darin Adler Reviewed by Andreas Kling. Reduce use of HTMLInputElement::inputType so we can remove it later https://bugs.webkit.org/show_bug.cgi?id=45903 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId): Use isPasswordField. 2010-09-16 Robert Hogan Reviewed by Antonio Gomes. [Qt] Support globalhistory tests https://bugs.webkit.org/show_bug.cgi?id=45774 * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::populateVisitedLinks): * WebCoreSupport/ChromeClientQt.h: * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::dumpHistoryCallbacks): (DumpRenderTreeSupportQt::dumpVisitedLinksCallbacks): * WebCoreSupport/DumpRenderTreeSupportQt.h: * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::setTitle): (WebCore::FrameLoaderClientQt::updateGlobalHistory): (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks): * WebCoreSupport/FrameLoaderClientQt.h: 2010-09-16 Diego Gonzalez Reviewed by Kenneth Rohde Christiansen. [Qt] Remove FrameLoaderClientQt::webFrame() to use NetworkingContext to get the WebFrame to avoid layering violations https://bugs.webkit.org/show_bug.cgi?id=42293 * Api/qwebframe.cpp: (QWebFrame::childFrames): (QWebFramePrivate::kit): * Api/qwebpage.cpp: (QWebPage::currentFrame): * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::runJavaScriptAlert): (WebCore::ChromeClientQt::runJavaScriptConfirm): (WebCore::ChromeClientQt::runJavaScriptPrompt): (WebCore::ChromeClientQt::contentsSizeChanged): * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::chooseFile): * WebCoreSupport/FrameLoaderClientQt.h: 2010-09-15 Simon Hausmann [Qt] Update the Symbian def files Re-freeze with the viewport meta tag updates. * symbian/eabi/QtWebKitu.def: 2010-09-14 Andreas Kling Reviewed by Kenneth Rohde Christiansen. [Qt] V8 port: Get inspector up and running https://bugs.webkit.org/show_bug.cgi?id=45771 * WebCoreSupport/InspectorClientQt.cpp: (WebCore::ensureDebuggerScriptLoaded): Added, loads DebuggerScript.js into ScriptDebugServer. (WebCore::InspectorClientQt::openInspectorFrontend): Ensure that DebuggerScript.js is loaded before opening an inspector. 2010-09-14 Enrico Ros Reviewed by Andreas Kling. [Qt] Respect title attribute on option elements https://bugs.webkit.org/show_bug.cgi?id=45084 Set the tooltip in the combo box model, so it's reflected in the view. * WebCoreSupport/QtFallbackWebPopup.cpp: (WebCore::QtFallbackWebPopup::populate): 2010-09-13 Daniel Bates https://bugs.webkit.org/show_bug.cgi?id=45732 Fix the Qt build. I missed this when reviewing the patch for Bug #45732. * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::suspendActiveDOMObjects): Change enum value ActiveDOMObject::JavaScriptPaused to ActiveDOMObject::JavaScriptDebuggerPaused 2010-09-13 Eric Carlson Reviewed by Daniel Bates. [Qt] DumpRenderTreeSupportQt::suspendActiveDOMObjects needs a new parameter https://bugs.webkit.org/show_bug.cgi?id=45732 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::suspendActiveDOMObjects): Pass ActiveDOMObject::JavaScriptPaused to suspendActiveDOMObjects. 2010-09-13 Enrica Casucci Reviewed by Sam Weinig. Paste should be implemented in WebCore like Copy and Cut for Mac also. https://bugs.webkit.org/show_bug.cgi?id=45494 On the Mac platform, the implementation of the paste operation is all done at the WebKit level. In order to support it on WebKit2 it is necessary to refactor the code and move this functionality at the level of WebCore like we already have on Windows. The original code relies on some in AppKit functions that call back into WebKit causing problems in WebKit2. All this functionality has been moved at the level of the editor client where it can be dealt with appropriately. * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::canShowMIMETypeAsHTML): Added stub. * WebCoreSupport/FrameLoaderClientQt.h: 2010-08-27 Kenneth Rohde Christiansen Reviewed by Antti Koivisto. Add a Qt API for the viewport meta tag support based on the following draft spec: http://people.opera.com/rune/TR/ED-css-viewport-20100806/ Add common handling of viewport meta tag based on new Opera spec https://bugs.webkit.org/show_bug.cgi?id=44201 * Api/qwebframe_p.h: (QWebFramePrivate::QWebFramePrivate): * Api/qwebpage.cpp: (QWebPage::ViewportConfiguration::ViewportConfiguration): (QWebPage::ViewportConfiguration::~ViewportConfiguration): (QWebPage::ViewportConfiguration::operator=): (QWebPage::viewportConfigurationForSize): (QWebPage::setPreferredContentsSize): * Api/qwebpage.h: * Api/qwebpage_p.h: (QtViewportConfigurationPrivate::QtViewportConfigurationPrivate): * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::didReceiveViewportArguments): * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::viewportAsText): * WebCoreSupport/DumpRenderTreeSupportQt.h: * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad): (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout): 2010-09-12 Martin Smith Reviewed by Simon Hausmann. doc: Changed the title so lists of contents sort better. * docs/qtwebkit.qdoc: 2010-09-12 David Boddie Reviewed by Simon Hausmann. Doc: More work on the QML documentation. * declarative/qdeclarativewebview.cpp: 2010-09-12 Martin Jones Reviewed by Simon Hausmann. [Qml] Ensure WebView gets focus when an editable node is clicked on. Task-number: QTBUG-13342 * declarative/qdeclarativewebview.cpp: (GraphicsWebView::mousePressEvent): 2010-09-12 David Boddie Reviewed by Simon Hausmann. Doc: qdoc fixes. * declarative/qdeclarativewebview.cpp: 2010-09-12 Oswald Buddenhagen Reviewed by Simon Hausmann. [Qt] let WebKit inject itself into the qt configuration Task-number: QTBUG-12379 * qt_webkit_version.pri: Use the faster + instead of * operator to add webkit to the config. 2010-09-12 Martin Smith Reviewed by Simon Hausmann. [Qt] Fix group of declarative web view in QML docs. * declarative/qdeclarativewebview.cpp: 2010-09-12 Simon Hausmann Reviewed by Andreas Kling. [Qt] Partial implementation of Qt bridge using V8 and QtScript. * Api/qwebelement.cpp: (QWebElement::evaluateJavaScript): Stub it out for now, to compile, until we have a conversion path between v8::Object and QScriptValue. * Api/qwebframe.cpp: (QWebFrame::addToJavaScriptWindowObject): Implemented using few lines of QtScript code. (QWebFrame::evaluateJavaScript): Ditto. 2010-09-12 Simon Hausmann Reviewed by Andreas Kling. Fix the build with V8. This is a temporary kludge until the scriptworld stuff is properly ported, as part of the upcoming DRT work. * Api/qwebscriptworld.cpp: (QWebScriptWorld::QWebScriptWorld): 2010-09-11 Andreas Kling Reviewed by Simon Hausmann. [Qt] V8 port for Qt platform: Qt WebCoreSupport changes https://bugs.webkit.org/show_bug.cgi?id=45149 Original patch by Vlad Burlik Implemented the V8 specifics needed in DumpRenderTreeSupportQt and FrameLoaderClientQt. * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::javaScriptObjectsCount): (DumpRenderTreeSupportQt::garbageCollectorCollect): (DumpRenderTreeSupportQt::garbageCollectorCollectOnAlternateThread): (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld): * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::didCreateScriptContextForFrame): (WebCore::FrameLoaderClientQt::didDestroyScriptContextForFrame): (WebCore::FrameLoaderClientQt::didCreateIsolatedScriptContext): (WebCore::FrameLoaderClientQt::createDocumentLoader): * WebCoreSupport/FrameLoaderClientQt.h: 2010-09-11 Vlad Burlik Reviewed by Andreas Kling. [Qt] V8 port for QT platform: QT API implementation changes https://bugs.webkit.org/show_bug.cgi?id=45148 V8 Implementation of QWebFrame::addToJavaScriptWindowObject() and QWebFrame::evaluateJavaScript() * Api/qwebelement.cpp: (setupScriptContext): JSC and V8 variations (QWebElement::evaluateJavaScript): * Api/qwebelement.h: * Api/qwebframe.cpp: QObject injection to V8 world (QWebFrame::addToJavaScriptWindowObject): (QWebFrame::evaluateJavaScript): * Api/qwebpage.cpp: Use ScriptController type definitions instead of direct references to JSC or V8 (QWebPagePrivate::QWebPagePrivate): 2010-09-10 yi shen Reviewed by Antonio Gomes. [Qt] selected text gets deleted when qgraphicswebview losts focus https://bugs.webkit.org/show_bug.cgi?id=45539 * Api/qwebpage.cpp: (QWebPagePrivate::inputMethodEvent): * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::inputMethods): 2010-09-10 Sam Weinig Fix Qt build. * Api/qwebsettings.cpp: (QWebSettingsPrivate::apply): 2010-09-10 Sam Weinig Reviewed by Darin Adler. Remove unnecessary constraint in WebCore of choosing either text zoom or full page zoom. Precursor to https://bugs.webkit.org/show_bug.cgi?id=45522 * Api/qwebframe.cpp: (QWebFrame::setTextSizeMultiplier): (QWebFrame::textSizeMultiplier): (QWebFrame::setZoomFactor): (QWebFrame::zoomFactor): * Api/qwebframe_p.h: (QWebFramePrivate::QWebFramePrivate): Move tracking of text only zoom here from WebCore. 2010-09-10 Yael Aharon Reviewed by Andreas Kling. [Qt] Support click event for notifications https://bugs.webkit.org/show_bug.cgi?id=44836 Propagate click events to JavaScript from either the platform plugn or from QSystemTrayIcon. Also added the method NotificationWrapper::openerPageUrl so that if the platform plugin can reopen the page that created the notification directly, when the user clicks the notification. Added DumpRenderTreeSupportQt::simulateDesktopNotificationClick for testing purpose. * Api/qwebkitplatformplugin.h: * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::simulateDesktopNotificationClick): * WebCoreSupport/DumpRenderTreeSupportQt.h: * WebCoreSupport/NotificationPresenterClientQt.cpp: (WebCore::NotificationWrapper::openerPageUrl): (WebCore::NotificationWrapper::notificationClicked): (WebCore::NotificationPresenterClientQt::displayNotification): (WebCore::NotificationPresenterClientQt::notificationClicked): * WebCoreSupport/NotificationPresenterClientQt.h: * examples/platformplugin/WebNotificationPresenter.cpp: (WebNotificationWidget::event): * examples/platformplugin/WebNotificationPresenter.h: (WebNotificationPresenter::WebNotificationPresenter): * examples/platformplugin/qwebkitplatformplugin.h: 2010-09-10 Adam Barth Attempt to fix the failign Qt tests. This patch adapts code from Chromium. The long-term fix is to remove the need for this code, but that's a bit too complicated for a buildfix patch. * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): (WebCore::FrameLoaderClientQt::makeRepresentation): (WebCore::FrameLoaderClientQt::revertToProvisionalState): (WebCore::FrameLoaderClientQt::finishedLoading): * WebCoreSupport/FrameLoaderClientQt.h: 2010-09-10 Adam Barth Reviewed by Darin Fisher. Move code from WebKit-layer to DocumentLoader https://bugs.webkit.org/show_bug.cgi?id=45569 This code didn't know that setEncoding can be called multiple times. * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): (WebCore::FrameLoaderClientQt::finishedLoading): (WebCore::FrameLoaderClientQt::setMainDocumentError): (WebCore::FrameLoaderClientQt::committedLoad): (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): * WebCoreSupport/FrameLoaderClientQt.h: 2010-09-10 Adam Barth Reviewed by Eric Seidel. Main resource bytes shouldn't bounce through FrameLoader https://bugs.webkit.org/show_bug.cgi?id=45496 Now return the bytes to the DocumentLoader. * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::committedLoad): 2010-09-08 Darin Adler Reviewed by Adam Barth. Move functions from Frame to Editor as planned https://bugs.webkit.org/show_bug.cgi?id=45218 * Api/qwebpage.cpp: (QWebPage::selectedText): (QWebPage::setContentEditable): * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::firstRectForCharacterRange): Changed call sites to use editor(). 2010-09-08 Peter Kasting Reviewed by David Hyatt. Add smooth scrolling framework, and a Windows implementation. https://bugs.webkit.org/show_bug.cgi?id=32356 * Api/qwebframe.cpp: (QWebFrame::setScrollBarValue): 2010-09-06 Diego Gonzalez Reviewed by Antonio Gomes. [Qt] Update NetworkAccessManager in Qt FrameNetworkingContext https://bugs.webkit.org/show_bug.cgi?id=45231 Make possible to get the current QNAM when NetwokingContext request it. * WebCoreSupport/FrameNetworkingContextQt.cpp: (WebCore::FrameNetworkingContextQt::networkAccessManager): 2010-09-06 Csaba Osztrogonác Reviewed by Antonio Gomes. Web Inspector: Tests crash on Qt bots revealed by r66720 https://bugs.webkit.org/show_bug.cgi?id=45256 * WebCoreSupport/InspectorClientQt.cpp: (WebCore::InspectorClientQt::InspectorClientQt): m_frontendClient must be initialized by constructor 2010-09-06 Yury Semikhatsky Unreviewed. Attempt to fix random test crashes after r66720. * WebCoreSupport/InspectorClientQt.cpp: (WebCore::InspectorFrontendClientQt::~InspectorFrontendClientQt): * WebCoreSupport/InspectorClientQt.h: 2010-09-05 Sheriff Bot Unreviewed, rolling out r66801. http://trac.webkit.org/changeset/66801 https://bugs.webkit.org/show_bug.cgi?id=45242 'breaks editing/pasteboard/onpaste-text-html.html' (Requested by mwenge4 on #webkit). * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::addMessageToConsole): 2010-09-05 Robert Hogan Reviewed by Antonio Gomes. [Qt] utf8 encoding of console() messages http/tests/security/xssAuditor/embed-tag-null-char.html http/tests/security/xssAuditor/object-embed-tag-null-char.html both fail because ChromeClientQt::addMessageToConsole() is casting String to QString rather than String::utf8().data() https://bugs.webkit.org/show_bug.cgi?id=45240 * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::addMessageToConsole): 2010-09-03 Jesus Sanchez-Palencia Reviewed by Darin Adler. Add NetworkingContext to avoid layer violations https://bugs.webkit.org/show_bug.cgi?id=42292 Add Qt's specific implementation of NetworkingContext. * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::setFrame): (WebCore::FrameLoaderClientQt::createNetworkingContext): * WebCoreSupport/FrameLoaderClientQt.h: * WebCoreSupport/FrameNetworkingContextQt.cpp: (WebCore::FrameNetworkingContextQt::FrameNetworkingContextQt): (WebCore::FrameNetworkingContextQt::create): (WebCore::FrameNetworkingContextQt::originatingObject): (WebCore::FrameNetworkingContextQt::networkAccessManager): 2010-09-02 Yury Semikhatsky Reviewed by Pavel Feldman. REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector https://bugs.webkit.org/show_bug.cgi?id=44230 * WebCoreSupport/InspectorClientQt.cpp: (WebCore::InspectorClientQt::inspectorDestroyed): (WebCore::InspectorClientQt::openInspectorFrontend): (WebCore::InspectorClientQt::releaseFrontendPage): (WebCore::InspectorFrontendClientQt::closeWindow): (WebCore::InspectorFrontendClientQt::disconnectFromBackend): (WebCore::InspectorFrontendClientQt::destroyInspectorView): (WebCore::InspectorFrontendClientQt::inspectorClientDestroyed): * WebCoreSupport/InspectorClientQt.h: 2010-09-02 Andreas Kling Rubber-stamped by Simon Hausmann. [Qt] REGRESSION(r62898): tst_QWebFrame crashing https://bugs.webkit.org/show_bug.cgi?id=43039 Rolling out the offending change * tests/qwebframe/tst_qwebframe.cpp: (tst_QWebFrame::evalJSV): 2010-09-01 Mahesh Kulkarni Reviewed by Laszlo Gombos. [Qt] QWebPage::allowGeolocationRequest should be async API https://bugs.webkit.org/show_bug.cgi?id=41364 Provides a new async API for geolocation permission. Using Notification API approach from qtwebkit. GeolocationPermissionClientQt maintains list of pending requests from WebCore and intimates them when client either allowes/denies the request. Also implements ChromeClientQt::cancelGeolocationPermissionRequestForFrame. * Api/qwebpage.cpp: (QWebPage::setUserPermission): * Api/qwebpage.h: * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame): (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame): * WebCoreSupport/ChromeClientQt.h: * WebCoreSupport/GeolocationPermissionClientQt.cpp: Added. (WebCore::GeolocationPermissionClientQt::geolocationPermissionClient): (WebCore::GeolocationPermissionClientQt::GeolocationPermissionClientQt): (WebCore::GeolocationPermissionClientQt::~GeolocationPermissionClientQt): (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame): (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame): (WebCore::GeolocationPermissionClientQt::setPermission): * WebCoreSupport/GeolocationPermissionClientQt.h: Added. * tests/qwebpage/tst_qwebpage.cpp: (JSTestPage::requestPermission): (tst_QWebPage::geolocationRequestJS): 2010-08-31 Dave Hyatt Reviewed by Sam Weinig. https://bugs.webkit.org/show_bug.cgi?id=44863, disentangle style recalc from layout, so that the former can occur in more places without having to do the latter. * Api/qwebelement.cpp: (QWebElement::render): * Api/qwebframe.cpp: (QWebFramePrivate::renderRelativeCoords): 2010-08-31 Benjamin Poulain Reviewed by Kenneth Rohde Christiansen. [Qt] tst_QWebPage::originatingObjectInNetworkRequests() fails on trunk https://bugs.webkit.org/show_bug.cgi?id=45001 Fix the test, we should not use data encoded URL since we are not setting an URL but setting the substituteData directly. * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::originatingObjectInNetworkRequests): 2010-08-31 Benjamin Poulain Reviewed by Kenneth Rohde Christiansen. JSC TimeoutChecker::didTimeOut overflows on ARM https://bugs.webkit.org/show_bug.cgi?id=38538 Re-enabled the test that was skipped for Maemo 5. * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::infiniteLoopJS): 2010-08-30 Sheriff Bot Unreviewed, rolling out r66198. http://trac.webkit.org/changeset/66198 https://bugs.webkit.org/show_bug.cgi?id=44856 It made tests crash on Qt bot (Requested by Ossy_ on #webkit). * WebCoreSupport/InspectorClientQt.cpp: (WebCore::InspectorClientQt::inspectorDestroyed): (WebCore::InspectorClientQt::openInspectorFrontend): (WebCore::InspectorClientQt::releaseFrontendPage): (WebCore::InspectorFrontendClientQt::closeWindow): * WebCoreSupport/InspectorClientQt.h: 2010-08-28 Daniel Bates Attempt to fix the Qt Windows and Qt Linux Release minimal builds after changeset 66297 . * Api/qwebplugindatabase.cpp: (QWebPluginDatabase::plugins): Wrap the call to PluginPackage::ensurePluginLoaded in #if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE). 2010-08-27 Benjamin Poulain Reviewed by Antonio Gomes. [Qt] tst_QWebView::focusInputTypes() fails on MeeGo Handset with WebKit 2.1 https://bugs.webkit.org/show_bug.cgi?id=44761 Make the test more robust to changes in the execution environment. The click are now correctly simulated, and the position are determined from the content. The test also create the view and page on the stack to avoid the leak when the test is failing. * tests/qwebview/tst_qwebview.cpp: (tst_QWebView::focusInputTypes): 2010-08-27 Kimmo Kinnunen Reviewed by Kenneth Rohde Christiansen. [Qt] Cache plugin info to a persistent database https://bugs.webkit.org/show_bug.cgi?id=43179 Implement a cache of NPAPI plugin metadata. Write the metadata to aa file that gets rewritten if any plugin is added / removed. Compilation of the feature is controlled by #if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE) Currently only enabled for Qt UNIX flavors. * Api/qwebplugindatabase.cpp: (QWebPluginDatabase::plugins): Match previous behavior: ensure all returned plugins are loaded. * Api/qwebsettings.cpp: (QWebSettings::enablePersistentStorage): Set plugin cache path. 2010-08-27 Benjamin Poulain Reviewed by Kenneth Rohde Christiansen. [Qt] tst_QWebFrame::inputFieldFocus() fails on MeeGo Handset with QtWebKit 2.1 https://bugs.webkit.org/show_bug.cgi?id=44703 Make the test more robust to changes in the execution environment. The position where the mouse events are sent is now computed from the element geometry, this make the test less dependent on the fonts. The test now also make sure the window manager mapped the window on screen before attempting to send the events. * tests/qwebframe/tst_qwebframe.cpp: 2010-08-27 Benjamin Poulain Reviewed by Kenneth Rohde Christiansen. [Qt] tst_QWebFrame::hitTestContent() fails on Meego Handset https://bugs.webkit.org/show_bug.cgi?id=44701 Make the test more robust. The position of the text is not relying on the size of the fonts anymore. * tests/qwebframe/tst_qwebframe.cpp: 2010-08-26 Antonio Gomes Reviewed by Simon Hausmann. [Qt] Add support for automatically creating new windows in QWebView https://bugs.webkit.org/show_bug.cgi?id=29847 Improved the documentation of createWindow methods of both QWebView and QWebPage by mentioning that for any of them be called, QWebSettings' JavaScriptCanOpenWindows attribute must be set to true. * Api/qwebpage.cpp: * Api/qwebview.cpp: 2010-08-27 Yury Semikhatsky Reviewed by Pavel Feldman. REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector https://bugs.webkit.org/show_bug.cgi?id=44230 * WebCoreSupport/InspectorClientQt.cpp: (WebCore::InspectorClientQt::inspectorDestroyed): (WebCore::InspectorClientQt::openInspectorFrontend): (WebCore::InspectorClientQt::releaseFrontendPage): (WebCore::InspectorFrontendClientQt::closeWindow): (WebCore::InspectorFrontendClientQt::disconnectFromBackend): (WebCore::InspectorFrontendClientQt::destroyInspectorView): (WebCore::InspectorFrontendClientQt::inspectorClientDestroyed): * WebCoreSupport/InspectorClientQt.h: 2010-08-26 Girish Ramakrishnan Reviewed by Antonio Gomes. [Qt] Remove dead code. * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::statusbarVisible): 2010-08-26 Yury Semikhatsky Unreviewed. Revert r66103 since Qt tests are failing. * WebCoreSupport/InspectorClientQt.cpp: (WebCore::InspectorFrontendClientQt::closeWindow): * WebCoreSupport/InspectorClientQt.h: 2010-08-26 Yury Semikhatsky Reviewed by Pavel Feldman. REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector https://bugs.webkit.org/show_bug.cgi?id=44230 * WebCoreSupport/InspectorClientQt.cpp: (WebCore::InspectorFrontendClientQt::closeWindow): (WebCore::InspectorFrontendClientQt::disconnectFromBackend): (WebCore::InspectorFrontendClientQt::destroyInspectorView): * WebCoreSupport/InspectorClientQt.h: 2010-08-26 Benjamin Poulain Reviewed by Simon Hausmann. [Qt] tst_QWebFrame::popupFocus() hardcode the element position https://bugs.webkit.org/show_bug.cgi?id=44674 This patch dynamically find the position of the combo element instead of hardcoding a position to click. * tests/qwebframe/tst_qwebframe.cpp: 2010-08-25 Leo Yang Reviewed by Simon Hausmann. In FrameLoaderClientQt::createFrame we should call loadURLIntoChildFrame with parent frame's loader instead of child frame's loader. https://bugs.webkit.org/show_bug.cgi?id=43930 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::createFrame): 2010-08-25 Gabor Loki Reviewed by Gavin Barraclough. Avoid increasing required alignment of target type warning https://bugs.webkit.org/show_bug.cgi?id=43963 Fix alignment warnings on Qt. * Api/qwebelement.cpp: (QWebElement::evaluateJavaScript): * Api/qwebframe.cpp: (QWebFrame::addToJavaScriptWindowObject): 2010-08-24 Andras Becsi Reviewed by Simon Hausmann. [Qt] Fix predeclared variables for Symbian to be able to build QtWebKit for Symbian on Linux. * Api/DerivedSources.pro: 2010-08-20 Girish Ramakrishnan Reviewed by Ariya Hidayat. [Qt] Allow wmode=transparent in QWebView on Maemo5 after r65775. https://bugs.webkit.org/show_bug.cgi?id=44043 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::createPlugin): 2010-08-22 Marc Mutz Reviewed by Antonio Gomes. [Qt] Actually emit the QWebView::selectionChanged() signal https://bugs.webkit.org/show_bug.cgi?id=44252 * Api/qwebview.cpp: (QWebView::setPage): Connect QWebPage::selectionChanged() to QWebView::selectionChanged() 2010-08-20 Ademar de Souza Reis Jr Reviewed by Ariya Hidayat. [Qt] constify core() and kit() parameters https://bugs.webkit.org/show_bug.cgi?id=44347 * Api/qwebframe.cpp: (QWebFrame::evaluateJavaScript): * Api/qwebframe_p.h: * Api/qwebhistory.cpp: (QWebHistoryItemPrivate::core): * Api/qwebhistory_p.h: * Api/qwebpage.cpp: (QWebPagePrivate::core): * Api/qwebpage_p.h: 2010-08-19 Balazs Kelemen Reviewed by Antonio Gomes. [Qt] Fix cursor change propagation https://bugs.webkit.org/show_bug.cgi?id=44250 * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::setCursor): Implemented. Propagete the callback forward to the PageClient. 2010-08-19 David Kilzer BUILD FIX #3: Fix compilation with NETSCAPE_PLUGIN_API disabled Still trying to make Qt Linux Release minimal buildbot happy. * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::createPlugin): Wrap code that handles Netscape plugins in #if ENABLE(NETSCAPE_PLUGIN_API) and #endif. 2010-08-19 David Kilzer BUILD FIX: FrameLoaderClientQt.h should include ResourceError.h * WebCoreSupport/FrameLoaderClientQt.h: Include ResourceError.h. 2010-08-19 Girish Ramakrishnan Reviewed by Kenneth Christiansen. [Qt] Inject wmode=opaque for both QWebView and QGraphicsWebView on Maemo5 as Flash XEmbed support is flaky. https://bugs.webkit.org/show_bug.cgi?id=44043 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::createPlugin): 2010-08-18 Laszlo Gombos Unreviewed, trivial Symbian build fix. [Qt] Remove unnecessary QtGui include from NotificationPresenterClientQt.cpp * WebCoreSupport/NotificationPresenterClientQt.cpp: 2010-08-17 Laszlo Gombos Reviewed by Ariya Hidayat. [Qt] [Symbian] Consistently use Q_OS_SYMBIAN to guard all Symbian platform dependencies https://bugs.webkit.org/show_bug.cgi?id=44124 Q_WS_S60 is not defined for Symbian^4 devices as Q_WS_S60 used to guard Avkon UI framework dependencies. Use Q_OS_SYMBIAN everywhere to mark Symbian dependencies. * WebCoreSupport/QtFallbackWebPopup.cpp: (WebCore::QtFallbackWebPopup::populate): 2010-08-17 Jesus Sanchez-Palencia Reviewed by Darin Adler. Add NetworkingContext to avoid layer violations https://bugs.webkit.org/show_bug.cgi?id=42292 Preparation: Just add the files to the build system. * WebCoreSupport/FrameNetworkingContextQt.cpp: Added. Empty placeholder for now. * WebCoreSupport/FrameNetworkingContextQt.h: Added. Placeholder with tentative code that might be changed when landing the rest of it. 2010-08-17 Hui Huang Reviewed by Laszlo Gombos. [Qt] Fix ARM5 compiling error in FrameLoaderClientQt.cpp https://bugs.webkit.org/show_bug.cgi?id=43927 In the Symbian build chain QT_USE_FAST_OPERATOR_PLUS is defined, which means that the '+' will automatically be performed as the QStringBuilder '%'. Create a QString explicitly to make sure that toLocal8bit() member is available that the qPrintable Macro uses. * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 2010-08-16 Tor Arne Vestbø Reviewed by Kenneth Christiansen. [Qt] Implement ChromeClient's windowToScreen() and screenToWindow() * WebCoreSupport/ChromeClientQt.cpp: 2010-08-14 Adam Barth Propagate name change to Qt. * Api/qwebelement.cpp: (QWebElement::appendInside): (QWebElement::prependInside): (QWebElement::prependOutside): (QWebElement::appendOutside): (QWebElement::encloseContentsWith): (QWebElement::encloseWith): 2010-08-12 Jeremy Orlow Revert for now https://bugs.webkit.org/show_bug.cgi?id=43794 * Api/qwebsettings.cpp: (QWebSettingsPrivate::apply): 2010-08-11 Jeremy Orlow Reviewed by Adam Barth. Some settings are linked to the PageGroup not the Page. Create a new class for those. https://bugs.webkit.org/show_bug.cgi?id=43794 Change WebSettings to use the new GroupSettings class rather than Settings for the settings that moved. This is sub-optimal since the settings aren't really per-view, but I don't see how we can change the API at this point. * Api/qwebsettings.cpp: (QWebSettingsPrivate::apply): 2010-08-11 Simon Hausmann [Qt] Update the Symbian def files Re-freeze with various QGraphicsWebView and DRT updates. The uppper part of the diff is just whitespace, so diff -w will show the real diff. * symbian/eabi/QtWebKitu.def: 2010-08-10 Anders Bakken Reviewed by Kenneth Rohde Christiansen. [Qt] Don't connect to microFocusChanged() if _q_updateMicroFocus is a noop. https://bugs.webkit.org/show_bug.cgi?id=40580 _q_updateMicroFocus() is a noop unless this ifdef evaluates to true: #if !defined(QT_NO_IM) && (defined(Q_WS_X11) || defined(Q_WS_QWS) || defined(Q_OS_SYMBIAN)) In such cases there's no need to carry the overhead of the extra signal/slot connection. * Api/qgraphicswebview.cpp: (QGraphicsWebViewPrivate::_q_updateMicroFocus): (QGraphicsWebView::setPage): 2010-08-10 Chris Marrin Reviewed by Oliver Hunt. Add suspendAnimations/resumeAnimation API to DRT https://bugs.webkit.org/show_bug.cgi?id=43733 Qt specific API. Missing symbian symbol defines in: WebKit/qt/symbian/bwins/QtWebKitu.def WebKit/qt/symbian/eabi/QtWebKitu.def * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::suspendAnimations): (DumpRenderTreeSupportQt::resumeAnimations): * WebCoreSupport/DumpRenderTreeSupportQt.h: 2010-08-06 Gavin Barraclough Rubber stamped by Sam Weinig Bug 43594 - Add string forwards to Forward.h This allows us to remove forward declarations for these classes from WebCore/WebKit (a step in moving these class from WebCore:: to WTF::). * WebCoreSupport/FrameLoaderClientQt.h: * WebCoreSupport/InspectorClientQt.h: 2010-08-08 Ariya Hidayat Reviewed by Antonio Gomes. Inconsistent Qt version checks https://bugs.webkit.org/show_bug.cgi?id=43695 Use QT_VERSION_CHECK macro instead of encoded hex. * Api/qgraphicswebview.cpp: (QGraphicsWebView::QGraphicsWebView): (QGraphicsWebViewPrivate::detachCurrentPage): * Api/qwebframe.cpp: (QWebFrame::load): * Api/qwebpage.cpp: (QWebPagePrivate::QWebPagePrivate): (QWebPagePrivate::inputMethodEvent): (QWebPage::inputMethodQuery): (QWebPage::view): * Api/qwebview.cpp: (QWebViewPrivate::detachCurrentPage): * WebCoreSupport/EditorClientQt.cpp: (WebCore::EditorClientQt::setInputMethodState): * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::createPlugin): * WebCoreSupport/PageClientQt.cpp: * WebCoreSupport/PageClientQt.h: 2010-08-06 Jessie Berlin Roll out http://trac.webkit.org/changeset/64801, which broke the Safari Windows Build. Unreviewed. * WebCoreSupport/FrameLoaderClientQt.h: * WebCoreSupport/InspectorClientQt.h: 2010-08-06 Luiz Agostini Reviewed by Kenneth Rohde Christiansen. [Qt] Move Qt's popup menu implementation from WebCore to WebKit layer https://bugs.webkit.org/show_bug.cgi?id=43427 After PopupMenu changes in bug 42592 class QtAbstractWebPopup became unecessary and there is no need to keep any Qt specific code for popup menus in WebCore/platform/qt. PopupMenuQt has been moved from WebCore/platform/qt to WebKit/qt/WebCoreSupport and assumed the responsibilities of QtAbstractWebPopup. SearchPopupMenuQt has been moved to WebKit/qt/WebCoreSupport as well. All classes that previously inherited from QtAbstractWebPopup now inherit from QWebSelectMethod and QtPlatformPlugin's method createSelectInputMethod now returns an instance of class QWebSelectMethod instead of QtAbstractWebPopup. * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::createSelectPopup): (WebCore::ChromeClientQt::createPopupMenu): (WebCore::ChromeClientQt::createSearchPopupMenu): * WebCoreSupport/ChromeClientQt.h: * WebCoreSupport/PopupMenuQt.cpp: Added. (SelectData::SelectData): (SelectData::itemText): (SelectData::itemToolTip): (SelectData::itemIsEnabled): (SelectData::itemCount): (SelectData::itemIsSelected): (SelectData::multiple): (SelectData::itemType): (WebCore::PopupMenuQt::PopupMenuQt): (WebCore::PopupMenuQt::~PopupMenuQt): (WebCore::PopupMenuQt::disconnectClient): (WebCore::PopupMenuQt::show): (WebCore::PopupMenuQt::didHide): (WebCore::PopupMenuQt::hide): (WebCore::PopupMenuQt::updateFromElement): (WebCore::PopupMenuQt::selectItem): * WebCoreSupport/PopupMenuQt.h: Added. * WebCoreSupport/QtFallbackWebPopup.cpp: (WebCore::QtFallbackWebPopupCombo::hidePopup): (WebCore::QtFallbackWebPopup::QtFallbackWebPopup): (WebCore::QtFallbackWebPopup::show): (WebCore::QtFallbackWebPopup::populate): (WebCore::QtFallbackWebPopup::activeChanged): (WebCore::QtFallbackWebPopup::pageClient): * WebCoreSupport/QtFallbackWebPopup.h: (WebCore::QtFallbackWebPopup::setGeometry): (WebCore::QtFallbackWebPopup::geometry): (WebCore::QtFallbackWebPopup::setFont): (WebCore::QtFallbackWebPopup::font): * WebCoreSupport/QtMaemoWebPopup.cpp: (WebCore::Maemo5Popup::populateList): (WebCore::QtMaemoWebPopup::QtMaemoWebPopup): (WebCore::QtMaemoWebPopup::createSingleSelectionPopup): (WebCore::QtMaemoWebPopup::createMultipleSelectionPopup): (WebCore::QtMaemoWebPopup::createPopup): (WebCore::QtMaemoWebPopup::show): (WebCore::QtMaemoWebPopup::popupClosed): (WebCore::QtMaemoWebPopup::itemClicked): (WebCore::Maemo5SingleSelectionPopup::Maemo5SingleSelectionPopup): (WebCore::Maemo5MultipleSelectionPopup::Maemo5MultipleSelectionPopup): * WebCoreSupport/QtMaemoWebPopup.h: (WebCore::Maemo5Popup::Maemo5Popup): * WebCoreSupport/QtPlatformPlugin.cpp: (WebCore::QtPlatformPlugin::createSelectInputMethod): * WebCoreSupport/QtPlatformPlugin.h: * WebCoreSupport/SearchPopupMenuQt.cpp: Added. (WebCore::SearchPopupMenuQt::SearchPopupMenuQt): (WebCore::SearchPopupMenuQt::popupMenu): (WebCore::SearchPopupMenuQt::saveRecentSearches): (WebCore::SearchPopupMenuQt::loadRecentSearches): (WebCore::SearchPopupMenuQt::enabled): * WebCoreSupport/SearchPopupMenuQt.h: Added. 2010-08-06 Kenneth Rohde Christiansen Reviewed by Antonio Gomes. [Qt] Add support for the Android viewport meta tag extensions. http://webkit.org/b/43567 * Api/qwebpage.h: * WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::didReceiveViewportArguments): 2010-08-05 Gavin Barraclough Rubber stamped by Sam Weinig Bug 43594 - Add string forwards to Forward.h This allows us to remove forward declarations for these classes from WebCore/WebKit (a step in moving these class from WebCore:: to WTF::). * WebCoreSupport/FrameLoaderClientQt.h: * WebCoreSupport/InspectorClientQt.h: 2010-08-05 Simon Hausmann Reviewed by Tor Arne Vestbø. [Qt] Clean up the input method handling https://bugs.webkit.org/show_bug.cgi?id=43545 Replace the way of individually setting input method hints by many calls to QWidget::setInputMethodHints with one single call. This is more efficient by requiring less updates in the input method hint. * WebCoreSupport/EditorClientQt.cpp: (WebCore::EditorClientQt::setInputMethodState): * WebCoreSupport/PageClientQt.cpp: (WebCore::PageClientQWidget::setInputMethodHints): (WebCore::PageClientQGraphicsWidget::setInputMethodHints): * WebCoreSupport/PageClientQt.h: 2010-08-05 David Leong Reviewed by Simon Hausmann. [Qt] Input mode states are not reset after entering a password field https://bugs.webkit.org/show_bug.cgi?id=43530 Input mode hints are not reset if clicking on password elements then clicking on