summaryrefslogtreecommitdiff
path: root/Source/WebKit
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge remote-tracking branch 'origin/release' into stableFrederik Gladhorn2013-05-312-0/+200
|\ \ | |/ | | | | Change-Id: I7ef48469c216c57f048d21887abc5d10619fab4b
| * Add all plugins.qmltypes files and update qmldir filesLiang Qi2013-05-292-0/+200
| | | | | | | | | | | | | | | | | | | | Note: qmlplugindump need to be patched with https://codereview.qt-project.org/55247 Task-number: QTBUG-31388 Change-Id: I6bdcffc978b7a994e624541d949e8906dad08b21 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | Remove Nokia references.Leonard Lee2013-05-302-5/+1
|/ | | | | | | | | | These Nokia references removed as they are not appropriate. Task-number: QTBUG-31400 Change-Id: I3d739e8bf8bfaae1c7bc7ee6e11974aa2dae4f2b Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Crash when calling QWebFrame::evaluateJavaScriptAllan Sandfeld Jensen2013-05-212-15/+23
| | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=113434 Reviewed by Simon Hausmann. Ensure we hold the JSLock when converting JSValue to JSValueRef. * Api/qwebelement.cpp: (setupScriptContext): (QWebElement::evaluateJavaScript): * WebCoreSupport/QWebFrameAdapter.cpp: (QWebFrameAdapter::evaluateJavaScript): Change-Id: I1bcab3ec31d1fbbb55246982a2c69e72ae9d0948 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149671 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt] Animated opacity does not trigger accelerated compositingAllan Sandfeld Jensen2013-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=115107 Reviewed by Simon Fraser. Source/WebCore: Add extra option to also trigger compositing on animated opacity. * page/ChromeClient.h: * rendering/RenderLayerCompositor.cpp: (WebCore::RenderLayerCompositor::requiresCompositingForAnimation): Source/WebKit/qt: We should trigger compositing on animated opacity as it is always faster on Qt. * WebCoreSupport/ChromeClientQt.cpp: VideoTrigger removed because we have already disabled AC for video in qwebsettings. Change-Id: I811a9175d96a57621345d2225d6930669a487aa5 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149123 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt] Add API in QWebSettings for setting the CSS media typeJose Lejin PJ2013-04-124-0/+90
| | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=113853 Reviewed by Jocelyn Turcotte. * Api/qwebsettings.cpp: (QWebSettingsPrivate): (QWebSettingsPrivate::apply): (QWebSettings::setCSSMediaType): (QWebSettings::cssMediaType): * Api/qwebsettings.h: * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::overrideMediaType): * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage): (tst_QWebPage::cssMediaTypeGlobalSetting): (tst_QWebPage::cssMediaTypePageSetting): Change-Id: I56e755998ef4c7f879f8e0629fedfbc36a92372e git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148095 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* [Qt] window.open passes height and width parameters even if not defined in a ↵Allan Sandfeld Jensen2013-04-113-7/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | page https://bugs.webkit.org/show_bug.cgi?id=107705 Reviewed by Kenneth Rohde Christiansen. Source/WebCore: Do not override width or height of 0, as that indicates default size, and not minimum size. Tested by tst_qwebpage. * page/DOMWindow.cpp: (WebCore::DOMWindow::adjustWindowRect): Source/WebKit/efl: Do not resize window when default size is requested. * WebCoreSupport/ChromeClientEfl.cpp: (WebCore::ChromeClientEfl::setWindowRect): Source/WebKit/gtk: Do not resize window when default size is requested. * WebCoreSupport/ChromeClientGtk.cpp: (WebKit::ChromeClient::setWindowRect): Source/WebKit/qt: Test that minimum size is applied only when the requested size is too small, not when default is requested. * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage): (TestPage): (TestPage::TestPage): (TestPage::createWindow): (TestPage::slotGeometryChangeRequested): (tst_QWebPage::openWindowDefaultSize): Change-Id: I4e7f9012a014918a536daac0bfca15c01cd38fab git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142755 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt] docs: Fix module name formatSze Howe Koh2013-04-0511-63/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=113209 Reviewed by Jocelyn Turcotte. Make QDoc-generated documentation follow the conventions at http://qt-project.org/wiki/Spelling_Module_Names_in_Qt_Documentation Source/WebKit/qt: * Api/qwebdatabase.cpp: * Api/qwebkitglobal.cpp: * Api/qwebpluginfactory.cpp: * Api/qwebsettings.cpp: * WidgetApi/qgraphicswebview.cpp: * WidgetApi/qwebframe.cpp: * WidgetApi/qwebpage.cpp: * WidgetApi/qwebview.cpp: * docs/qtwebkit-bridge.qdoc: * docs/qtwebkit-goes-mobile.qdoc: * docs/qtwebkit.qdoc: Source/WebKit2: * UIProcess/API/qt/qquickwebview.cpp: Change-Id: I27927b6a3722f86379fdc538a53f4cc84c68494f git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147637 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* [Qt] Enable kerning by defaultAllan Sandfeld Jensen2013-03-283-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=112704 Reviewed by Jocelyn Turcotte. Source/WebKit/qt: Enable default kerning when fast kerning is available. To support layout tests that depend on kerning being off by default, a method is added to DumpRenderTreeSupportQt to reset the default. * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::resetDefaultTypesettingFeatures): * WebCoreSupport/DumpRenderTreeSupportQt.h: * WebCoreSupport/InitWebCoreQt.cpp: (WebKit::initializeWebKitQt): Tools: Disable kerning by default, since some reference test expectations expect kerning to be default off. * DumpRenderTree/qt/TestRunnerQt.cpp: (TestRunnerQt::reset): * WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp: (WTR::activateFonts): Change-Id: Ifaa02c54aba8e5b113ac34163e967470228e0610 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146340 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt] Support -webkit-font-smoothingAllan Sandfeld Jensen2013-03-282-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=106009 Reviewed by Jocelyn Turcotte. Source/WebCore: Set QFont antialiasing settings based on the font smoothing settings in FontDescription. * platform/graphics/qt/FontPlatformDataQt.cpp: (WebCore::FontPlatformData::FontPlatformData): Source/WebKit/qt: Export an interface so DRT can also disable font-smoothing like WTR does. * WebCoreSupport/DumpRenderTreeSupportQt.cpp: (DumpRenderTreeSupportQt::setShouldUseFontSmoothing): * WebCoreSupport/DumpRenderTreeSupportQt.h: Tools: Set shouldUseFontSmoothing to false to match WebKitTestRunner. * DumpRenderTree/qt/TestRunnerQt.cpp: (TestRunnerQt::reset): Change-Id: I19457407ac310bd5de315943b631dd12dffc7683 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146324 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt] QWebSettings::clearMemoryCaches should clear JS garbageArunprasad Rajkumar2013-03-191-1/+7
| | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=111094 Reviewed by Jocelyn Turcotte. * Api/qwebsettings.cpp: (QWebSettings::clearMemoryCaches): Change-Id: I088556a052ae81159533bdc5991654d80e1f5dcc git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145085 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt] Build error with building with Qt 5.1Allan Sandfeld Jensen2013-03-151-0/+4
| | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=112435 Reviewed by Noam Rosenthal. QAccessibleWidget has moved to private. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145899 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: I9a81337a1765682556af34ac7d4a5b1c0c350216 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Fix build with GStreamer 1.0Allan Sandfeld Jensen2013-03-052-2/+2
| | | | | | | | | | | With GST_API_VERSION_1 the class GStreamerFullScreenVideoHandler was skipped but still used. This patches changes the defines to be consistent. The same issue was solved in trunk as part of http://trac.webkit.org/changeset/141265 for https://bugs.webkit.org/show_bug.cgi?id=106760 Change-Id: I9d5b129509052063892fc0d38d8cf8c6d102bfd8 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt][WK1] Remember denied permission for notificationsAllan Sandfeld Jensen2013-02-066-9/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=107694 Reviewed by Jocelyn Turcotte. Store denied permissions. According to the specification, we should ask the user again if he has already granted or denied permission. * WebCoreSupport/NotificationPresenterClientQt.cpp: (WebCore::NotificationPresenterClientQt::requestPermission): (WebCore::NotificationPresenterClientQt::setNotificationsAllowedForFrame): * WebCoreSupport/NotificationPresenterClientQt.h: (NotificationPresenterClientQt): * WebCoreSupport/QWebPageAdapter.cpp: (QWebPageAdapter::setNotificationsAllowedForFrame): * WebCoreSupport/QWebPageAdapter.h: * WidgetApi/qwebpage.cpp: (QWebPage::setFeaturePermission): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141233 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: I71896cb6e91531aec32e5f55c2224783a391a110 Reviewed-by: jocelyn.turcotte@digia.com Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt][WK1] Permission request callbacks for non-legacy notificationsAllan Sandfeld Jensen2013-02-063-5/+63
| | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=107438 Reviewed by Jocelyn Turcotte. Tracks the new callbacks the same way legacy callbacks are tracked. No test affected yet as we are still lacking support for testing feature permission callbacks. * WebCoreSupport/NotificationPresenterClientQt.cpp: (WebCore::NotificationPresenterClientQt::requestPermission): (WebCore::NotificationPresenterClientQt::allowNotificationForFrame): * WebCoreSupport/NotificationPresenterClientQt.h: (NotificationPresenterClientQt): (CallbacksInfo): Change-Id: Ia01ec54c2d55fac59c6a245757f44ce507a3ef19 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140330 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt] Crash in gmail on enabling desktop notificationsAllan Sandfeld Jensen2013-01-222-3/+17
| | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=106699 Patch by David Rosca. Reviewed by Jocelyn Turcotte. Protect against callback that may be null. This also matches WebKit2 behaviour. * WebCoreSupport/NotificationPresenterClientQt.cpp: (WebCore::NotificationPresenterClientQt::allowNotificationForFrame): Reviewed-by: jocelyn.turcotte@digia.com Change-Id: Icac8f0202c378d129895b47224bfabc9b2a53b3d Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt] Update the documentation about the storage of inspector settingsjocelyn.turcotte@digia.com2013-01-212-5/+22
| | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=106777 Reviewed by Allan Sandfeld Jensen. Since r76770, QSettings isn't queried anymore to persist inspector settings like whether or not the debugger is enabled by default. It still seems to be used for the default attach height. Update the documentation accordingly. * WidgetApi/qwebinspector.cpp: Change-Id: I0f1bacdd628c56771cf74338b5ef8060154993ef git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140326 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* 32-bit build for Qt5 on Mac OS fails ↵Andras Becsi2013-01-182-2/+13
| | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=107094 We need to define NS_BUILD_32_LIKE_64 for 32-bit build for Mac OS. Fixed 32-bit build detection for support Qt5. http://trac.webkit.org/changeset/140029 Patch by Poul Sysolyatin <psytonx@gmail.com> on 2013-01-17 Reviewed by Benjamin Poulain. Change-Id: I2748db966a6dff76add422b791717bce87517e84 Reviewed-by: Andras Becsi <andras.becsi@digia.com> Reviewed-by: Poul Sysolyatin <psytonx@gmail.com>
* [Qt] Use the shared HistoryItem serialization for QWebHistoryjocelyn.turcotte@digia.com2013-01-173-25/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=106671 Reviewed by Allan Sandfeld Jensen. Source/WebCore: This allows a few things missing from the previous serialization code to function while using commonly maintained code: - The itemSequenceNumber and documentSequenceNumber that were needed to properly restore same-document navigations - The form data - The navigation hierarchy mapping the frame tree * history/HistoryItem.h: (HistoryItem): * history/qt/HistoryItemQt.cpp: (QDataStreamCoder): (WebCore): (WebCore::QDataStreamCoder::QDataStreamCoder): (WebCore::QDataStreamCoder::encodeBytes): (WebCore::QDataStreamCoder::encodeBool): (WebCore::QDataStreamCoder::encodeUInt32): (WebCore::QDataStreamCoder::encodeUInt64): (WebCore::QDataStreamCoder::encodeInt32): (WebCore::QDataStreamCoder::encodeInt64): (WebCore::QDataStreamCoder::encodeFloat): (WebCore::QDataStreamCoder::encodeDouble): (WebCore::QDataStreamCoder::encodeString): (WebCore::QDataStreamCoder::decodeBytes): (WebCore::QDataStreamCoder::decodeBool): (WebCore::QDataStreamCoder::decodeUInt32): (WebCore::QDataStreamCoder::decodeUInt64): (WebCore::QDataStreamCoder::decodeInt32): (WebCore::QDataStreamCoder::decodeInt64): (WebCore::QDataStreamCoder::decodeFloat): (WebCore::QDataStreamCoder::decodeDouble): (WebCore::QDataStreamCoder::decodeString): (WebCore::HistoryItem::restoreState): (WebCore::WebCore::HistoryItem::saveState): Source/WebKit/qt: Bump the serialization version and change the code to abort the restore of a previous stream version rather than trying to keep the support of restoring previous versions. This is mainly to simplify things given that HistoryItem itself aborts in that case. * Api/qwebhistory.cpp: (operator<<): (operator>>): * tests/qwebhistory/tst_qwebhistory.cpp: (tst_QWebHistory::serialize_2): Modify the test to cover same-document navigations. (tst_QWebHistory::restoreIncompatibleVersion1): Add a previous version hard-coded stream to verify that the deserialization doesn't hang or crash. Change-Id: Ic3944179b7f1cb490722c38adbcfef88e8aa1c08 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139878 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt] Crash in WebCore::CachedFrame::destroyjocelyn.turcotte@digia.com2013-01-173-5/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=104525 Reviewed by Adam Barth. Source/WebCore: Add an assert to increase the chances of catching this crash early on in the future. * dom/Document.cpp: (WebCore::Document::takeDOMWindowFrom): Source/WebKit/qt: Remove the call to HistoryController::setCurrentItem which is ultimately causing the initial empty document of a page to be added to the page cache. This re-introduce the bug that was fixed by this line, which will be properly fixed in a follow-up patch. * Api/qwebhistory.cpp: (operator>>): * tests/qwebhistory/tst_qwebhistory.cpp: (tst_QWebHistory::saveAndRestore_crash_4): Cover the crash. Change-Id: Ia96ba570231557f8b53bc586410d50875880e1d1 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139876 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt] Apply correct patch for the scrolling issue from bug 105014michael.bruning2013-01-162-1/+15
| | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=106219 Correct the if condition when overwriting the layout direction option with the values from the facade options to only overwrite if the facade direction is not equal to LayoutDirectionAuto. Reviewed by Allan Sandfeld Jensen. * WidgetSupport/QStyleFacadeImp.cpp: (WebKit::initGenericStyleOption): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138946 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: I95c3e73766ae9351ae24be0270054d318c1775f0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com> Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* [Qt] Horizontal scrollbars events are offseted making them difficult to usemichael.bruning2013-01-168-1/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=105014 Reviewed by Allan Sandfeld Jensen. Patch co-authored by Simon Hausmann. Only copy the layout direction from the facade options if the current option is Qt::LayoutDirectionAuto in order to prevent misinterpretations as different layout direction when hit testing. Tests added to tst_qwebview and tst_qgraphicswebview to verify that the view actually is scrolled in the right direction. * WidgetSupport/QStyleFacadeImp.cpp: (WebKit::initGenericStyleOption): * tests/qgraphicswebview/resources/scrolltest_page.html: Added. * tests/qgraphicswebview/tst_qgraphicswebview.cpp: (tst_QGraphicsWebView): (tst_QGraphicsWebView::horizontalScrollbarTest): * tests/qgraphicswebview/tst_qgraphicswebview.qrc: * tests/qwebview/resources/scrolltest_page.html: Added. * tests/qwebview/tst_qwebview.cpp: (tst_QWebView): (tst_QWebView::horizontalScrollbarTest): * tests/qwebview/tst_qwebview.qrc: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138933 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: I3c8190858f4a0fcd0bf394056771f775677ba30e Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Fix a documentation oversightPierre Rossi2012-12-171-2/+2
| | | | | | | We had forgotten a few substitutions in the process it would seem. Change-Id: I8f3cbe54ecdfb572614d9bbb0368189b7162d20c Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* remove some unnecessary CONFIG additionsOswald Buddenhagen2012-12-172-2/+2
| | | | | | | | qt is already added by spec_pre.prf, warn_on and depend_includepath by default_pre.prf. Change-Id: I4f02ef09f19cf0e4c7093f3fe30d5ca34daa194f Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Doc: Fixing Qt WebKit reference documentation.Jerome Pasion2012-12-131-16/+46
| | | | | | | | | | | | | | Fixes: -added \module for C++ classes and \qmlmodule for QML types -added links to the Qt WebKit Examples pages -fixed the qhp settings for Qt Creator Task-number: QTBUG-28583 Task-number: QTBUG-28418 Task-number: QTBUG-27646 Change-Id: I883139f51f457bd6dc7bfe72bb53eb26771d2ccb Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Add unit tests for the CMake config files.Stephen Kelly2012-12-123-0/+35
| | | | | Change-Id: Icd9338cf5e0737e01eb283337443e368b378f289 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Revert "Use non transient scrollbars on Mac"Eike Ziller2012-12-121-22/+0
| | | | | | | | | | | The patch made all checks for m_style->inherits("QMacStyle") in the StyleFacadeImp fail. This reverts commit 08d610737197b47bdfc7f78b0f712c337cc87286. Change-Id: Ie3f4d1cadcf32a71935e87075fbaf48c66c82f5f Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* QWebView uses the mobile style and doesn't follow Qt's stylePierre Rossi2012-12-074-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=104134 Reviewed by Simon Hausmann. Another issue introduced by r136235. Fix the order of initialization of the styleFactory and creation of the WebCore Page. Since the latter has a RenderTheme member and the creation of the appropriate RenderTheme type (QStyle-backed) is dependant on having first initialized the theme factory function, we need to postpone this just a little bit. * WebCoreSupport/QWebPageAdapter.cpp: (QWebPageAdapter::QWebPageAdapter): (QWebPageAdapter::initializeWebCorePage): Added. * WebCoreSupport/QWebPageAdapter.h: * WidgetApi/qwebpage.cpp: (QWebPagePrivate::QWebPagePrivate): call initializeWebCorePage only after having initialized WebKitWidgets related logic (QStyle hooks in this case). Change-Id: I46bb066bbf4f5e4968bfdfb9def9ebcba6e02843 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136842 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* Use non transient scrollbars on MacGabriel de Dietrich2012-12-061-0/+22
| | | | | | | | | The current rendering would display the transient scrollbar on top of an empty background area. To make it look decent, we force non transient scrollbars through a style proxy. Change-Id: I33cdf9b9bb91d635eb40242187f98dd84da1fb9a Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* [Qt][Mac] QWebView disappears when the system tries to hide the scrollbars.v5.0.0-rc1Zeno Albisser2012-12-052-16/+31
| | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=104116 This is a workaround for an issue in Qt that was caused by Change-Id: I2000fa50d46b153e981ceafc12a53932a196382e in qtbase. Since we are drawing the scrollbars by ourselves, there is no widget available that needs to be hidden by the style. Therefore we have to disable transient scrollbar animations on Mac. Patch by: J-P Nurmi <jpnurmi@digia.com> Reviewed by Simon Hausmann. * WidgetSupport/QStyleFacadeImp.cpp: (WebKit::QStyleFacadeImp::paintScrollBar): Change-Id: Ia9ff6d6634aecfe574ba2842258fc003d4a5c665 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Document::initSecurityContext() fails to call ↵Jocelyn Turcotte2012-12-042-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | securityOrigin().grantLoadLocalResources() https://bugs.webkit.org/show_bug.cgi?id=68711 Reviewed by Adam Barth. Source/WebCore: It currently fails since Document::loader() will return 0 until Frame::setDocument is called and we are doing this check before it happens. Delay the check and let the FrameLoader take care of doing grantLoadLocalResources() on the Document along with other header checks in FrameLoader::didBeginDocument. * dom/Document.cpp: (WebCore::Document::initSecurityContext): * loader/FrameLoader.cpp: (WebCore::FrameLoader::didBeginDocument): Source/WebKit/qt: * tests/qwebpage/tst_qwebpage.cpp: (tst_QWebPage::testStopScheduledPageRefresh): Unmark the expected failure. Change-Id: Iec4f0106c42af572a1e4a8d352baa9d1a2fc8a1a git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136404 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Fix links in Qt WebKit and Qt WebKit Widget documentationPaul Olav Tvete2012-12-041-1/+1
| | | | | Change-Id: Ibe7ef6bc1ea6ef42fce09fe6c4b6d64ac9ae2e9a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* [Qt] Yet another unreviewed speculative windows build fix.Pierre Rossi2012-12-042-1/+9
| | | | | | | | | | WebKit2 relies on the QWEBKIT_EXPORT macro from WebKit1 as well. * Api/qwebkitglobal.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136495 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: Iadd377b766f7282688abaa6c51c94d486dbb8edd Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Fix an obvious blunder in the export macros.Pierre Rossi2012-12-041-1/+1
| | | | | | | For good measure, let's clean that up. Change-Id: Ia45bea7701b5dc77979463ea97bdbbb5de8c15df Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* Doc fixesPierre Rossi2012-12-031-3/+1
| | | | | | | Let's try to be compliant with the Qt5 approach. Change-Id: Ib5bc5500a6d8c916f4cc165b637eb493b7409bd0 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* [Qt] Use a separate QWEBKITWIDGETS_EXPORT macro for WebKitWidgetsPierre Rossi2012-12-039-10/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.webkit.org/show_bug.cgi?id=103844 Patch by Pierre Rossi <pierre.rossi@digia.com> on 2012-12-03 Reviewed by Simon Hausmann. Let's follow the common practice and have one export macro per library. We can't rely on BUILDING_WEBKIT anymore in that case, so we use the qmake defines instead. * Api/qwebkitglobal.h: Updated the import/export logic. * WidgetApi/qgraphicswebview.h: s/QWEBKIT/QWEBKITWIDGETS/ * WidgetApi/qwebframe.h: Ditto. * WidgetApi/qwebinspector.h: Ditto. * WidgetApi/qwebpage.h: Ditto. * WidgetApi/qwebview.h: Ditto. * WidgetSupport/InitWebKitQt.cpp: (WebKit::initializeWebKitWidgets): use QWEBKITWIDGETS_EXPORT. * WidgetSupport/InitWebKitQt.h: (WebKit): Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136394 268f45cc-cd09-0410-ab3c-d52691b4dbfc Change-Id: I0030f2f17cddd66aedf24f29323579174e838303 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* Introduce setTextSizeMultiplier in the page adapter as well.Pierre Rossi2012-11-304-3/+22
| | | | | | | | | | | | | | As it turns out it the bots didn't like the previous attempt. * WebCoreSupport/QWebFrameAdapter.cpp: (QWebFrameAdapter::setTextSizeMultiplier): * WebCoreSupport/QWebFrameAdapter.h: * WidgetApi/qwebframe.cpp: (QWebFrame::setTextSizeMultiplier): Change-Id: If8c977b8134e88f3e5c3707ce7d19df8eb279304 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136252 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* Unreviewed build fix.Pierre Rossi2012-11-302-1/+9
| | | | | | | | | | | Include PlatformExportMacros proper. Now it builds on the MIPS Bot ;) * WebCoreSupport/QtPrintContext.h: Change-Id: I0f2d5ccba28c1f40437a792c8a05b6532b9b768d git-svn-id: http://svn.webkit.org/repository/webkit/trunk@136251 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
* Unreviewed prospective MIPS build fix:Simon Hausmann2012-11-302-2/+11
| | | | | | | | | | | Explicitly include PlatformExportMacros for the correct export macro to be find. Not really MIPS specific but rather to a minimal build configuration with less implicit includes. * WebCoreSupport/UndoStepQt.h: Change-Id: I8121b0b4c9396269149404539e03f68f74392263 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Imported WebKit commit 6a4a1d32e1d779548c726c4826cba9d69eb87601 ↵Simon Hausmann2012-11-30119-2855/+5526
| | | | | | | | | | | (http://svn.webkit.org/repository/webkit/trunk@136242) Final import for the Qt 5.x series that implements the QtWebKit / QtWebKitWidgets split Extra fixes will be cherry-picked. Change-Id: I844f1ebb99c6d6b75db31d6538c2acd628e79681 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Imported WebKit commit c60cfe0fc09efd257aa0111d7b133b02deb8a63e ↵Simon Hausmann2012-11-2997-467/+2572
| | | | | | | | | (http://svn.webkit.org/repository/webkit/trunk@136119) New snapshot that includes the fix for installing the QtWebProcess into libexec Change-Id: I01344e079cbdac5678c4cba6ffcc05f4597cf0d7 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Imported WebKit commit 3fb8681126c4ed0f58d5d3656a4d72ae548a0815 ↵Simon Hausmann2012-11-269-15/+90
| | | | | | | | | (http://svn.webkit.org/repository/webkit/trunk@135701) New snapshot with prospective no-widgets build fix Change-Id: I4820c887d991c973cfed023518f41809edeefa83 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Imported WebKit commit 76dac539db7ece7079963adfcfe878d8e2f7d861 ↵Simon Hausmann2012-11-2621-136/+342
| | | | | | | | | (http://svn.webkit.org/repository/webkit/trunk@135696) New snapshot that fixes build after QMacStyle removal Change-Id: Idea95c96c73b49158d52861db2a4b8d2c51766b0 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Imported WebKit commit 8eb048315f36fa33731f28694630fe4a3c2cbc99 ↵Simon Hausmann2012-11-23109-2182/+4614
| | | | | | | | | (http://svn.webkit.org/repository/webkit/trunk@135602) New snapshot that fixes various bugs Change-Id: Icb6ce541a26a9f500d087821ce4b83a8d8a5474a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Imported WebKit commit e89504fa9195b2063b2530961d4b73dd08de3242 ↵Simon Hausmann2012-11-22198-1695/+6320
| | | | | | | (http://svn.webkit.org/repository/webkit/trunk@135485) Change-Id: I03774e5ac79721c13ffa30d152537a74d0b12e66 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Imported WebKit commit e2c32e2f53e02d388e70b9db88b91d8d9d28fc84 ↵Simon Hausmann2012-11-0913-397/+17
| | | | | | (http://svn.webkit.org/repository/webkit/trunk@133952) Revert back to an older snapshot that should build on ARM
* Imported WebKit commit 7bcdfab9a40db7d16b4b95bb77d78b8a59c9e701 ↵Simon Hausmann2012-11-0955-510/+1175
| | | | | | (http://svn.webkit.org/repository/webkit/trunk@134025) New snapshot with numerious build fixes, including MSVC 2012 and ARM Thumb-2.
* Imported WebKit commit 20271caf2e2c016d5cef40184cddeefeac4f1876 ↵Simon Hausmann2012-11-07211-3246/+7954
| | | | | | (http://svn.webkit.org/repository/webkit/trunk@133733) New snapshot that contains all previous fixes as well as build fix for latest QtMultimedia API changes.
* Imported WebKit commit 7136c2962f51f9ea361d9796b069374d0f41c922 ↵Simon Hausmann2012-10-239-21/+65
| | | | | | (http://svn.webkit.org/repository/webkit/trunk@132195) Build fix for Windows when building against Qt that was built without Angle support
* Imported WebKit commit 20434eb8eb95065803473139d8794e98a7672f75 ↵Simon Hausmann2012-10-2313-57/+290
| | | | | | (http://svn.webkit.org/repository/webkit/trunk@132191) New snapshot that should fix build with latest qtbase and the QPlastiqueStyle removal