[Qt] Doc: Fixing Qt WebKit reference documentation.
[WebKit-https.git] / Source / WebKit / qt / ChangeLog
1 2012-12-13  Jerome Pasion  <jerome.pasion@digia.com>
2
3         [Qt] Doc: Fixing Qt WebKit reference documentation.
4
5         Reviewed by Simon Hausmann.
6
7         Fixes:
8         -added \module for C++ classes and \qmlmodule for QML types
9         -added links to the Qt WebKit Examples pages
10         -fixed the qhp settings for Qt Creator
11
12         Task-number: QTBUG-28583
13         Task-number: QTBUG-28418
14         Task-number: QTBUG-27646
15
16         * docs/qtwebkit.qdoc:
17
18 2012-12-12  Mark Lam  <mark.lam@apple.com>
19
20         Encapsulate externally used webdatabase APIs in DatabaseManager.
21         https://bugs.webkit.org/show_bug.cgi?id=104741.
22
23         Reviewed by Sam Weinig.
24
25         Use DatabaseManager instead of accessing DatabaseTracker, AbstractDatabase,
26         and DatabaseContext directly. This is to prepare for upcoming webkit2
27         refactoring.
28
29         * Api/qwebdatabase.cpp:
30         (QWebDatabase::displayName):
31         (QWebDatabase::expectedSize):
32         (QWebDatabase::size):
33         (QWebDatabase::fileName):
34         (QWebDatabase::removeDatabase):
35         (QWebDatabase::removeAllDatabases):
36         * Api/qwebsecurityorigin.cpp:
37         (QWebSecurityOrigin::databaseUsage):
38         (QWebSecurityOrigin::databaseQuota):
39         (QWebSecurityOrigin::setDatabaseQuota):
40         (QWebSecurityOrigin::allOrigins):
41         (QWebSecurityOrigin::databases):
42         * Api/qwebsettings.cpp:
43         (QWebSettingsPrivate::apply):
44         (QWebSettings::setOfflineStoragePath):
45         (QWebSettings::offlineStoragePath):
46         * WebCoreSupport/ChromeClientQt.cpp:
47
48 2012-12-12  Alexey Proskuryakov  <ap@apple.com>
49
50         Make LOG() work in WebProcess and NetworkProcess
51         https://bugs.webkit.org/show_bug.cgi?id=104718
52
53         Reviewed by Tim Horton.
54
55         * WebCoreSupport/InitWebCoreQt.cpp: Include InitializeLogging.h
56
57 2012-12-11  Mike West  <mkwst@chromium.org>
58
59         Web Inspector: ConsoleTypes should not expose MessageType - it should be private to inspector.
60         https://bugs.webkit.org/show_bug.cgi?id=66371
61
62         Reviewed by Pavel Feldman.
63
64         Drops WebCore::MessageType from the addMessageToConsole method.
65
66         * WebCoreSupport/ChromeClientQt.cpp:
67         (WebCore::ChromeClientQt::addMessageToConsole):
68         * WebCoreSupport/ChromeClientQt.h:
69         (ChromeClientQt):
70
71 2012-12-11  Stephen Kelly  <stephen.kelly@kdab.com>
72
73         WebKit tests for the Qt API should include tests of CMake config files
74         https://bugs.webkit.org/show_bug.cgi?id=104003
75
76         Reviewed by Simon Hausmann.
77
78         The Qt WebKit CI system is not going to run this test, but it can
79         be run locally and to test packages.
80
81         * tests/cmake/CMakeLists.txt: Added.
82         * tests/cmake/cmake.pro: Added.
83
84 2012-12-10  Andy Shaw  <andy.shaw@digia.com>
85         
86         Check that plugin functionality is enabled before querying the database for installed plugins.
87         https://bugs.webkit.org/show_bug.cgi?id=73671
88
89         Reviewed by Jocelyn Turcotte.
90
91         * WebCoreSupport/FrameLoaderClientQt.cpp:
92         (WebCore::FrameLoaderClientQt::objectContentType):
93
94 2012-12-07  Sergio Martins  <sergio.martins@kdab.com>
95
96         [Qt][Qnx] Fix QNX build by adding missing include.
97         https://bugs.webkit.org/show_bug.cgi?id=104359
98
99         Reviewed by Jocelyn Turcotte.
100
101         It's where WEBKIT_EXPORTDATA is defined, so include it. Not sure why other
102         platforms aren't failing.
103
104         * WebCoreSupport/QWebPageAdapter.h:
105
106 2012-12-06  Pierre Rossi  <pierre.rossi@gmail.com>
107
108         [Qt] QWebView uses the mobile style and doesn't follow Qt's style
109         https://bugs.webkit.org/show_bug.cgi?id=104134
110
111         Reviewed by Simon Hausmann.
112
113         Another issue introduced by r136235.
114         Fix the order of initialization of the styleFactory and creation of the
115         WebCore Page. Since the latter has a RenderTheme member and the creation
116         of the appropriate RenderTheme type (QStyle-backed) is dependant on having
117         first initialized the theme factory function, we need to postpone this just
118         a little bit.
119
120         * WebCoreSupport/QWebPageAdapter.cpp:
121         (QWebPageAdapter::QWebPageAdapter):
122         (QWebPageAdapter::initializeWebCorePage): Added.
123         * WebCoreSupport/QWebPageAdapter.h:
124         * WidgetApi/qwebpage.cpp:
125         (QWebPagePrivate::QWebPagePrivate): call initializeWebCorePage only after 
126         having initialized WebKitWidgets related logic (QStyle hooks in this case).
127
128 2012-12-05  Zeno Albisser  <zeno@webkit.org>
129
130         [Qt][Mac] QWebView disappears when the system tries to hide the scrollbars.
131         https://bugs.webkit.org/show_bug.cgi?id=104116
132
133         This is a workaround for an issue in Qt that was
134         caused by Change-Id: I2000fa50d46b153e981ceafc12a53932a196382e
135         in qtbase.
136         Since we are drawing the scrollbars by ourselves, there is no
137         widget available that needs to be hidden by the style.
138         Therefore we have to disable transient scrollbar
139         animations on Mac.
140
141         Patch by: J-P Nurmi <jpnurmi@digia.com>
142
143         Reviewed by Simon Hausmann.
144
145         * WidgetSupport/QStyleFacadeImp.cpp:
146         (WebKit::QStyleFacadeImp::paintScrollBar):
147
148 2012-12-04  Pierre Rossi  <pierre.rossi@digia.com>
149
150         [Qt] Yet another unreviewed speculative windows build fix. 
151
152         WebKit2 relies on the QWEBKIT_EXPORT macro from WebKit1 as well.
153
154         * Api/qwebkitglobal.h:
155
156 2012-12-03  Pierre Rossi  <pierre.rossi@digia.com>
157
158         [Qt] Unreviewed speculative Windows buildfix.
159
160         Somehow it seems messing around with the export macros made some old issues resurface. 
161
162         * Api/qwebsettings.cpp:
163         (qt_networkAccessAllowed):
164         * Api/qwebsettings.h:
165         * Api/qwebkitglobal.h: fix an obvious blunder from r136394.
166
167 2012-12-03  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
168
169         Document::initSecurityContext() fails to call securityOrigin().grantLoadLocalResources()
170         https://bugs.webkit.org/show_bug.cgi?id=68711
171
172         Reviewed by Adam Barth.
173
174         * tests/qwebpage/tst_qwebpage.cpp:
175         (tst_QWebPage::testStopScheduledPageRefresh): Unmark the expected failure.
176
177 2012-12-03  Pierre Rossi  <pierre.rossi@digia.com>
178
179         [Qt] Use a separate QWEBKITWIDGETS_EXPORT macro for WebKitWidgets
180         https://bugs.webkit.org/show_bug.cgi?id=103844
181
182         Reviewed by Simon Hausmann.
183
184         Let's follow the common practice and have one export macro per library.
185         We can't rely on BUILDING_WEBKIT anymore in that case, so we use the
186         qmake defines instead.
187
188         * Api/qwebkitglobal.h: Updated the import/export logic.
189         * WidgetApi/qgraphicswebview.h: s/QWEBKIT/QWEBKITWIDGETS/
190         * WidgetApi/qwebframe.h: Ditto.
191         * WidgetApi/qwebinspector.h: Ditto.
192         * WidgetApi/qwebpage.h: Ditto.
193         * WidgetApi/qwebview.h: Ditto.
194         * WidgetSupport/InitWebKitQt.cpp:
195         (WebKit::initializeWebKitWidgets): use QWEBKITWIDGETS_EXPORT.
196         * WidgetSupport/InitWebKitQt.h:
197         (WebKit): Ditto.
198
199 2012-11-30  Pierre Rossi  <pierre.rossi@gmail.com>
200
201         [Qt] Introduce setTextSizeMultiplier in the page adapter as well.
202
203         Rubber-stamped by Simon Hausmann.
204
205         As it turns out it the bots didn't like the previous attempt.
206
207         * WebCoreSupport/QWebFrameAdapter.cpp:
208         (QWebFrameAdapter::setTextSizeMultiplier):
209         * WebCoreSupport/QWebFrameAdapter.h:
210         * WidgetApi/qwebframe.cpp:
211         (QWebFrame::setTextSizeMultiplier):
212
213 2012-11-30  Pierre Rossi  <pierre.rossi@gmail.com>
214
215         [Qt] Unreviewed build fix.
216
217         In the same vein as r136245. Include PlatformExportMacros proper.
218
219         * WebCoreSupport/QtPrintContext.h:
220
221 2012-11-30  Simon Hausmann  <simon.hausmann@digia.com>
222
223         Unreviewed prospective MIPS build fix:
224
225         Explicitly include PlatformExportMacros for the correct export macro to be find.
226         Not really MIPS specific but rather to a minimal build configuration with less implicit
227         includes.
228
229         * WebCoreSupport/UndoStepQt.h:
230
231 2012-11-30  Pierre Rossi  <pierre.rossi@gmail.com>
232
233         [Qt] Unreviewed build un-break
234
235         Revert r136243 and hope it served its purpose.
236
237         * WidgetApi/qwebpage.cpp:
238         (QWebPagePrivate::QWebPagePrivate):
239
240 2012-11-30  Pierre Rossi  <pierre.rossi@gmail.com>
241
242         [Qt] Unreviewed build break
243
244         Rubber-stamped by Simon Hausmann.
245
246         Poor man's way to trigger a clean build on a bot.
247
248         * WidgetApi/qwebpage.cpp:
249         (QWebPagePrivate::QWebPagePrivate):
250
251 2012-11-30  Simon Hausmann  <simon.hausmann@digia.com>
252
253         [Qt] Fix QML import installation with newer Qt
254
255         Reviewed by Tor Arne Vestbø.
256
257         The import path has been separated between QML1 and QML2. Use
258         QT_INSTALL_QML if it's available.
259
260         * declarative/experimental/experimental.pri:
261         * declarative/public.pri:
262
263 2012-11-30  Simon Hausmann  <simon.hausmann@digia.com>
264
265         Prospective build fix for --minimal build.
266
267         * WebCoreSupport/QWebPageAdapter.cpp:
268         (QWebPageAdapter::triggerAction):
269         (QWebPageAdapter::contextMenuItemTagForAction):
270
271 2012-11-30  Pierre Rossi  <pierre.rossi@gmail.com>
272
273         [Qt] Fix zoomIn/zoomOut related regression.
274
275         Reviewed by Simon Hausmann.
276
277         Following r136235, fix a case of refactoring gone wrong.
278         Implementing setTextSizeMultiplier in terms of
279         setZoomFactor, and not the other way around.
280
281         * WebCoreSupport/QWebFrameAdapter.cpp:
282         (QWebFrameAdapter::setZoomFactor):
283         * WidgetApi/qwebframe.cpp:
284         (QWebFrame::setTextSizeMultiplier):
285
286 2012-11-30  Simon Hausmann  <simon.hausmann@digia.com>, Pierre Rossi  <pierre.rossi@digia.com>
287
288         [Qt] Separate Qt WebKit into Qt WebKit and Qt WebKit Widgets
289         https://bugs.webkit.org/show_bug.cgi?id=99314
290
291         Reviewed by Tor Arne Vestbø.
292
293         This big change separates QtWebKit into QtWebKit and QtWebKitWidgets as
294         shared libraries.
295
296         It's a big refactoring that mostly involves moving WebCore dependent
297         code into QtWebKit and accessing it through exported QWebFrameAdapter
298         and QWebPageAdapter classes.
299
300         The QtWebKit version macros are now generated by syncqt and the version
301         query functions have moved to qwebkitglobal.h, similar to qVersion() in
302         qglobal.h.
303
304         API wise qwebframe sees some small cleanups.
305
306         * Api/qwebelement.h:
307         * Api/qwebframe_p.h: Removed.
308         * Api/qwebhistory.h:
309         * Api/qwebkitglobal.cpp: Renamed from Source/WebKit/qt/Api/qwebkitversion.cpp.
310         (qWebKitVersion):
311         (qWebKitMajorVersion):
312         (qWebKitMinorVersion):
313         * Api/qwebkitglobal.h:
314         * Api/qwebkitversion.h: Removed.
315         * Api/qwebsecurityorigin.h:
316         * WebCoreSupport/ChromeClientQt.cpp:
317         (WebCore::ChromeClientQt::allowsAcceleratedCompositing):
318         * WebCoreSupport/ChromeClientQt.h:
319         (WebCore):
320         (ChromeClientQt):
321         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
322         (DumpRenderTreeSupportQt::frameRenderTreeDump):
323         * WebCoreSupport/DumpRenderTreeSupportQt.h:
324         * WebCoreSupport/InitWebCoreQt.cpp:
325         (WebKit):
326         (WebKit::setWebKitWidgetsInitCallback):
327         (WebKit::createStyleForPage):
328         (WebKit::initializeWebKitQt):
329         * WebCoreSupport/InitWebCoreQt.h:
330         (WebKit):
331         * WebCoreSupport/InspectorServerQt.cpp:
332         * WebCoreSupport/QWebFrameAdapter.cpp:
333         (QWebFrameAdapter::QWebFrameAdapter):
334         (QWebFrameAdapter::hasView):
335         (QWebFrameAdapter::handleGestureEvent):
336         (QWebFrameAdapter::evaluateJavaScript):
337         (QWebFrameAdapter::addToJavaScriptWindowObject):
338         (QWebFrameAdapter::toHtml):
339         (QWebFrameAdapter::toPlainText):
340         (QWebFrameAdapter::setContent):
341         (QWebFrameAdapter::setHtml):
342         (QWebFrameAdapter::metaData):
343         (QWebFrameAdapter::scrollPosition):
344         (QWebFrameAdapter::frameRect):
345         (QWebFrameAdapter::contentsSize):
346         (QWebFrameAdapter::setZoomFactor):
347         (QWebFrameAdapter::zoomFactor):
348         (QWebFrameAdapter::ensureAbsoluteUrl):
349         (QWebFrameAdapter::hitTestContent):
350         (QWebFrameAdapter::documentElement):
351         (QWebFrameAdapter::title):
352         (QWebFrameAdapter::clearCoreFrame):
353         (isCoreFrameClear):
354         (QWebFrameAdapter::baseUrl):
355         (QWebFrameAdapter::renderCompositedLayers):
356         (QWebFrameAdapter::coreFrameUrl):
357         (QWebFrameAdapter::lastRequestedUrl):
358         (QWebFrameAdapter::securityOrigin):
359         (QWebFrameAdapter::uniqueName):
360         (coalesceRectsIfPossible):
361         (QWebFrameAdapter::renderRelativeCoords):
362         (QWebFrameAdapter::renderFrameExtras):
363         (QWebFrameAdapter::setTiledBackingStoreFrozen):
364         (QWebFrameAdapter::tiledBackingStoreFrozen):
365         (QWebFrameAdapter::setTiledBackingStoreContentsScale):
366         (QWebFrameAdapter::renderFromTiledBackingStore):
367         (QWebFrameAdapter::_q_orientationChanged):
368         (QWebFrameAdapter::childFrames):
369         (QWebFrameAdapter::hasFocus):
370         (QWebFrameAdapter::setFocus):
371         (QWebFrameAdapter::setScrollBarPolicy):
372         (QWebFrameAdapter::scrollToAnchor):
373         (QWebFrameAdapter::scrollBy):
374         (QWebFrameAdapter::setScrollBarValue):
375         (QWebFrameAdapter::scrollBarValue):
376         (QWebFrameAdapter::scrollBarMaximum):
377         (QWebFrameAdapter::scrollBarGeometry):
378         (QWebFrameAdapter::horizontalScrollBar):
379         (QWebFrameAdapter::verticalScrollBar):
380         (QWebFrameAdapter::updateBackgroundRecursively):
381         (QWebFrameAdapter::cancelLoad):
382         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
383         (QWebHitTestResultPrivate::operator=):
384         (QWebHitTestResultPrivate::~QWebHitTestResultPrivate):
385         (QWebHitTestResultPrivate::elementForInnerNode):
386         (QWebFrameAdapter::customLayoutSize):
387         (QWebFrameAdapter::setCustomLayoutSize):
388         (QWebFrameAdapter::setFixedVisibleContentRect):
389         (QWebFrameAdapter::setViewportSize):
390         (QWebFrameAdapter::setPaintsEntireContents):
391         (QWebFrameAdapter::setDelegatesScrolling):
392         * WebCoreSupport/QWebFrameAdapter.h:
393         (WebCore):
394         * WebCoreSupport/QWebPageAdapter.cpp:
395         (dropActionToDragOp):
396         (dragOpToDropAction):
397         (frameLoadRequest):
398         (openNewWindow):
399         (QWebPageAdapter::QWebPageAdapter):
400         (QWebPageAdapter::~QWebPageAdapter):
401         (QWebPageAdapter::deletePage):
402         (QWebPageAdapter::viewportArguments):
403         (QWebPageAdapter::hasSelection):
404         (QWebPageAdapter::selectedText):
405         (QWebPageAdapter::selectedHtml):
406         (QWebPageAdapter::isContentEditable):
407         (QWebPageAdapter::setContentEditable):
408         (QWebPageAdapter::findText):
409         (QWebPageAdapter::adjustPointForClicking):
410         (hasMouseListener):
411         (isClickableElement):
412         (isValidFrameOwner):
413         (QWebPageAdapter::TouchAdjuster::TouchAdjuster):
414         (QWebPageAdapter::TouchAdjuster::findCandidatePointForTouch):
415         (QWebPageAdapter::mouseMoveEvent):
416         (QWebPageAdapter::mousePressEvent):
417         (QWebPageAdapter::mouseDoubleClickEvent):
418         (QWebPageAdapter::mouseTripleClickEvent):
419         (QWebPageAdapter::mouseReleaseEvent):
420         (QWebPageAdapter::handleSoftwareInputPanel):
421         (QWebPageAdapter::wheelEvent):
422         (QWebPageAdapter::dragEntered):
423         (QWebPageAdapter::dragLeaveEvent):
424         (QWebPageAdapter::dragUpdated):
425         (QWebPageAdapter::performDrag):
426         (QWebPageAdapter::inputMethodEvent):
427         (QWebPageAdapter::inputMethodQuery):
428         (QWebPageAdapter::dynamicPropertyChangeEvent):
429         (adapterActionForContextMenuAction):
430         (descriptionForPlatformMenu):
431         (QWebPageAdapter::updatePositionDependentMenuActions):
432         (extractContentTypeFromHash):
433         (extractContentTypeFromPluginVector):
434         (QWebPageAdapter::supportedContentTypes):
435         (QWebPageAdapter::_q_cleanupLeakMessages):
436         (QWebPageAdapter::_q_onLoadProgressChanged):
437         (QWebPageAdapter::supportsContentType):
438         (QWebPageAdapter::didShowInspector):
439         (QWebPageAdapter::didCloseInspector):
440         (QWebPageAdapter::updateActionInternal):
441         (QWebPageAdapter::triggerAction):
442         (QWebPageAdapter::contextMenuItemTagForAction):
443         (QWebPageAdapter::allowNotificationsForFrame):
444         (QWebPageAdapter::addNotificationPresenterClient):
445         (QWebPageAdapter::hasSystemTrayIcon):
446         (QWebPageAdapter::setSystemTrayIcon):
447         (QWebPageAdapter::setGeolocationEnabledForFrame):
448         (QWebPageAdapter::defaultUserAgentString):
449         (QWebPageAdapter::treatSchemeAsLocal):
450         (QWebPageAdapter::currentFrame):
451         (QWebPageAdapter::hasFocusedNode):
452         (QWebPageAdapter::viewportAttributesForSize):
453         (QWebPageAdapter::handleKeyEvent):
454         (QWebPageAdapter::handleScrolling):
455         (QWebPageAdapter::focusInEvent):
456         (QWebPageAdapter::focusOutEvent):
457         (QWebPageAdapter::handleShortcutOverrideEvent):
458         (QWebPageAdapter::touchEvent):
459         (QWebPageAdapter::swallowContextMenuEvent):
460         * WebCoreSupport/QWebPageAdapter.h:
461         (WebCore):
462         * WebCoreSupport/QtPluginWidgetAdapter.cpp: Copied from Source/WebKit/qt/WebCoreSupport/InitWebKitQt.h.
463         (QtPluginWidgetAdapter::QtPluginWidgetAdapter):
464         * WebCoreSupport/QtPluginWidgetAdapter.h:
465         * WebCoreSupport/QtPrintContext.cpp: Added.
466         (QtPrintContext::QtPrintContext):
467         (QtPrintContext::~QtPrintContext):
468         (QtPrintContext::pageCount):
469         (QtPrintContext::spoolPage):
470         * WebCoreSupport/QtPrintContext.h: Renamed from Source/WebCore/platform/qt/QStyleFacade.cpp.
471         (WebCore):
472         * WebCoreSupport/TextureMapperLayerClientQt.cpp: Added.
473         (TextureMapperLayerClientQt::TextureMapperLayerClientQt):
474         (TextureMapperLayerClientQt::~TextureMapperLayerClientQt):
475         (TextureMapperLayerClientQt::syncRootLayer):
476         (TextureMapperLayerClientQt::markForSync):
477         (TextureMapperLayerClientQt::rootLayer):
478         (TextureMapperLayerClientQt::setRootGraphicsLayer):
479         (TextureMapperLayerClientQt::syncLayers):
480         (TextureMapperLayerClientQt::renderCompositedLayers):
481         * WebCoreSupport/TextureMapperLayerClientQt.h: Added.
482         (WebCore):
483         (TextureMapperLayerClientQt):
484         * WebCoreSupport/UndoStepQt.h:
485         * WidgetApi/qgraphicswebview.cpp: Renamed from Source/WebKit/qt/Api/qgraphicswebview.cpp.
486         (QGraphicsWebViewPrivate):
487         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
488         (QGraphicsWebViewPrivate::overlay):
489         (QGraphicsWebViewPrivate::pageClient):
490         (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate):
491         (QGraphicsWebViewPrivate::_q_doLoadFinished):
492         (QGraphicsWebViewPrivate::_q_pageDestroyed):
493         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
494         (QGraphicsWebViewPrivate::_q_contentsSizeChanged):
495         (QGraphicsWebViewPrivate::_q_scaleChanged):
496         (QGraphicsWebView::QGraphicsWebView):
497         (QGraphicsWebView::~QGraphicsWebView):
498         (QGraphicsWebView::page):
499         (QGraphicsWebView::paint):
500         (QGraphicsWebView::sceneEvent):
501         (QGraphicsWebView::itemChange):
502         (QGraphicsWebView::sizeHint):
503         (QGraphicsWebView::inputMethodQuery):
504         (QGraphicsWebView::renderHints):
505         (QGraphicsWebView::setRenderHints):
506         (QGraphicsWebView::setRenderHint):
507         (QGraphicsWebView::event):
508         (QGraphicsWebViewPrivate::detachCurrentPage):
509         (QGraphicsWebView::setPage):
510         (QGraphicsWebView::setUrl):
511         (QGraphicsWebView::url):
512         (QGraphicsWebView::title):
513         (QGraphicsWebView::icon):
514         (QGraphicsWebView::setZoomFactor):
515         (QGraphicsWebView::zoomFactor):
516         (QGraphicsWebView::updateGeometry):
517         (QGraphicsWebView::setGeometry):
518         (QGraphicsWebView::stop):
519         (QGraphicsWebView::back):
520         (QGraphicsWebView::forward):
521         (QGraphicsWebView::reload):
522         (QGraphicsWebView::load):
523         (QGraphicsWebView::setHtml):
524         (QGraphicsWebView::setContent):
525         (QGraphicsWebView::history):
526         (QGraphicsWebView::isModified):
527         (QGraphicsWebView::settings):
528         (QGraphicsWebView::pageAction):
529         (QGraphicsWebView::triggerPageAction):
530         (QGraphicsWebView::findText):
531         (QGraphicsWebView::setResizesToContents):
532         (QGraphicsWebView::resizesToContents):
533         (QGraphicsWebView::isTiledBackingStoreFrozen):
534         (QGraphicsWebView::setTiledBackingStoreFrozen):
535         (QGraphicsWebView::hoverMoveEvent):
536         (QGraphicsWebView::hoverLeaveEvent):
537         (QGraphicsWebView::mouseMoveEvent):
538         (QGraphicsWebView::mousePressEvent):
539         (QGraphicsWebView::mouseReleaseEvent):
540         (QGraphicsWebView::mouseDoubleClickEvent):
541         (QGraphicsWebView::keyPressEvent):
542         (QGraphicsWebView::keyReleaseEvent):
543         (QGraphicsWebView::focusInEvent):
544         (QGraphicsWebView::focusOutEvent):
545         (QGraphicsWebView::focusNextPrevChild):
546         (QGraphicsWebView::dragEnterEvent):
547         (QGraphicsWebView::dragLeaveEvent):
548         (QGraphicsWebView::dragMoveEvent):
549         (QGraphicsWebView::dropEvent):
550         (QGraphicsWebView::contextMenuEvent):
551         (QGraphicsWebView::wheelEvent):
552         (QGraphicsWebView::inputMethodEvent):
553         * WidgetApi/qgraphicswebview.h: Renamed from Source/WebKit/qt/Api/qgraphicswebview.h.
554         * WidgetApi/qwebframe.cpp: Renamed from Source/WebKit/qt/Api/qwebframe.cpp.
555         (QWebFramePrivate::setPage):
556         (QWebFramePrivate::emitUrlChanged):
557         (QWebFramePrivate::didStartProvisionalLoad):
558         (QWebFramePrivate::didClearWindowObject):
559         (QWebFramePrivate::handleProgressFinished):
560         (QWebFramePrivate::emitInitialLayoutCompleted):
561         (QWebFramePrivate::emitIconChanged):
562         (QWebFramePrivate::emitLoadStarted):
563         (QWebFramePrivate::emitLoadFinished):
564         (QWebFramePrivate::createChildFrame):
565         (QWebFramePrivate::apiHandle):
566         (QWebFramePrivate::handle):
567         (QWebFramePrivate::contentsSizeDidChange):
568         (QWebFramePrivate::scrollBarPolicy):
569         (QWebFrame::QWebFrame):
570         (QWebFrame::~QWebFrame):
571         (QWebFrame::addToJavaScriptWindowObject):
572         (QWebFrame::toHtml):
573         (QWebFrame::toPlainText):
574         (QWebFrame::title):
575         (QWebFrame::metaData):
576         (QWebFrame::setUrl):
577         (QWebFrame::url):
578         (QWebFrame::requestedUrl):
579         (QWebFrame::baseUrl):
580         (QWebFrame::icon):
581         (QWebFrame::frameName):
582         (QWebFrame::page):
583         (QWebFrame::load):
584         (QWebFrame::setHtml):
585         (QWebFrame::setContent):
586         (QWebFrame::parentFrame):
587         (QWebFrame::childFrames):
588         (QWebFrame::scrollBarPolicy):
589         (QWebFrame::setScrollBarPolicy):
590         (QWebFrame::setScrollBarValue):
591         (QWebFrame::scrollBarValue):
592         (QWebFrame::scrollBarMaximum):
593         (QWebFrame::scrollBarMinimum):
594         (QWebFrame::scrollBarGeometry):
595         (QWebFrame::scroll):
596         (QWebFrame::scrollPosition):
597         (QWebFrame::setScrollPosition):
598         (QWebFrame::scrollToAnchor):
599         (QWebFrame::render):
600         (QWebFrame::setTextSizeMultiplier):
601         (QWebFrame::textSizeMultiplier):
602         (QWebFrame::setZoomFactor):
603         (QWebFrame::zoomFactor):
604         (QWebFrame::hasFocus):
605         (QWebFrame::setFocus):
606         (QWebFrame::pos):
607         (QWebFrame::geometry):
608         (QWebFrame::contentsSize):
609         (QWebFrame::documentElement):
610         (QWebFrame::findAllElements):
611         (QWebFrame::findFirstElement):
612         (QWebFrame::hitTestContent):
613         (QWebFrame::event):
614         (QWebFrame::print):
615         (QWebFrame::evaluateJavaScript):
616         (QWebFrame::securityOrigin):
617         (QWebFramePrivate::kit):
618         (QWebHitTestResult::QWebHitTestResult):
619         (QWebHitTestResult::operator=):
620         (QWebHitTestResult::~QWebHitTestResult):
621         (QWebHitTestResult::isNull):
622         (QWebHitTestResult::pos):
623         (QWebHitTestResult::boundingRect):
624         (QWebHitTestResult::enclosingBlockElement):
625         (QWebHitTestResult::title):
626         (QWebHitTestResult::linkText):
627         (QWebHitTestResult::linkUrl):
628         (QWebHitTestResult::linkTitle):
629         (QWebHitTestResult::linkElement):
630         (QWebHitTestResult::linkTargetFrame):
631         (QWebHitTestResult::alternateText):
632         (QWebHitTestResult::imageUrl):
633         (QWebHitTestResult::pixmap):
634         (QWebHitTestResult::isContentEditable):
635         (QWebHitTestResult::isContentSelected):
636         (QWebHitTestResult::element):
637         (QWebHitTestResult::frame):
638         (QWebFrame::handle):
639         * WidgetApi/qwebframe.h: Renamed from Source/WebKit/qt/Api/qwebframe.h.
640         (WebCore):
641         * WidgetApi/qwebframe_p.h: Added.
642         (WebCore):
643         (QWebFramePrivate):
644         (QWebFramePrivate::QWebFramePrivate):
645         (QWebFramePrivate::parentFrame):
646         * WidgetApi/qwebinspector.cpp: Renamed from Source/WebKit/qt/Api/qwebinspector.cpp.
647         (QWebInspector::QWebInspector):
648         (QWebInspector::~QWebInspector):
649         (QWebInspector::setPage):
650         (QWebInspector::page):
651         (QWebInspector::sizeHint):
652         (QWebInspector::event):
653         (QWebInspector::resizeEvent):
654         (QWebInspector::showEvent):
655         (QWebInspector::hideEvent):
656         (QWebInspector::closeEvent):
657         (QWebInspectorPrivate::setFrontend):
658         (QWebInspectorPrivate::adjustFrontendSize):
659         * WidgetApi/qwebinspector.h: Renamed from Source/WebKit/qt/Api/qwebinspector.h.
660         * WidgetApi/qwebinspector_p.h: Renamed from Source/WebKit/qt/Api/qwebinspector_p.h.
661         (QWebInspectorPrivate):
662         (QWebInspectorPrivate::QWebInspectorPrivate):
663         * WidgetApi/qwebpage.cpp: Renamed from Source/WebKit/qt/Api/qwebpage.cpp.
664         (QWebPagePrivate::QWebPagePrivate):
665         (QWebPagePrivate::~QWebPagePrivate):
666         (QWebPagePrivate::show):
667         (QWebPagePrivate::setFocus):
668         (QWebPagePrivate::unfocus):
669         (QWebPagePrivate::setWindowRect):
670         (QWebPagePrivate::viewportSize):
671         (QWebPagePrivate::createWindow):
672         (QWebPagePrivate::javaScriptConsoleMessage):
673         (QWebPagePrivate::javaScriptAlert):
674         (QWebPagePrivate::javaScriptConfirm):
675         (QWebPagePrivate::javaScriptPrompt):
676         (QWebPagePrivate::shouldInterruptJavaScript):
677         (QWebPagePrivate::printRequested):
678         (QWebPagePrivate::databaseQuotaExceeded):
679         (QWebPagePrivate::applicationCacheQuotaExceeded):
680         (QWebPagePrivate::setToolTip):
681         (QWebPagePrivate::createFullScreenVideoHandler):
682         (QWebPagePrivate::mainFrameAdapter):
683         (QWebPagePrivate::chooseFiles):
684         (QWebPagePrivate::acceptNavigationRequest):
685         (QWebPagePrivate::emitRestoreFrameStateRequested):
686         (QWebPagePrivate::emitSaveFrameStateRequested):
687         (QWebPagePrivate::emitDownloadRequested):
688         (QWebPagePrivate::emitFrameCreated):
689         (QWebPagePrivate::errorPageExtension):
690         (QWebPagePrivate::createPlugin):
691         (QWebPagePrivate::adapterForWidget):
692         (QWebPagePrivate::createMainFrame):
693         (webActionForAdapterMenuAction):
694         (adapterMenuActionForWebAction):
695         (createContextMenu):
696         (QWebPagePrivate::createAndSetCurrentContextMenu):
697         (QWebPagePrivate::_q_webActionTriggered):
698         (QWebPagePrivate::updateAction):
699         (QWebPagePrivate::updateNavigationActions):
700         (QWebPagePrivate::inspectorHandle):
701         (QWebPagePrivate::setInspectorFrontend):
702         (QWebPagePrivate::setInspectorWindowTitle):
703         (QWebPagePrivate::createWebInspector):
704         (iterateContextMenu):
705         (QWebPagePrivate::menuActionsAsText):
706         (QWebPagePrivate::emitViewportChangeRequested):
707         (QWebPagePrivate::updateEditorActions):
708         (QWebPagePrivate::timerEvent):
709         (QWebPagePrivate::requestSoftwareInputPanel):
710         (QWebPagePrivate::contextMenuEvent):
711         (QWebPage::createStandardContextMenu):
712         (QWebPagePrivate::editorActionForKeyEvent):
713         (QWebPagePrivate::keyPressEvent):
714         (QWebPagePrivate::keyReleaseEvent):
715         (QWebPagePrivate::dragEnterEvent):
716         (QWebPagePrivate::dragMoveEvent):
717         (QWebPagePrivate::dropEvent):
718         (QWebPagePrivate::leaveEvent):
719         (QWebPage::setPalette):
720         (QWebPage::palette):
721         (QWebPagePrivate::shortcutOverrideEvent):
722         (QWebPagePrivate::gestureEvent):
723         (QWebPage::inputMethodQuery):
724         (QWebPagePrivate::setInspector):
725         (QWebPagePrivate::getOrCreateInspector):
726         (QWebPage::ViewportAttributes::ViewportAttributes):
727         (QWebPage::ViewportAttributes::~ViewportAttributes):
728         (QWebPage::ViewportAttributes::operator=):
729         (QWebPage::QWebPage):
730         (QWebPage::~QWebPage):
731         (QWebPage::mainFrame):
732         (QWebPage::currentFrame):
733         (QWebPage::frameAt):
734         (QWebPage::history):
735         (QWebPage::setView):
736         (QWebPage::view):
737         (QWebPage::javaScriptConsoleMessage):
738         (QWebPage::javaScriptAlert):
739         (QWebPage::javaScriptConfirm):
740         (QWebPage::javaScriptPrompt):
741         (QWebPage::shouldInterruptJavaScript):
742         (QWebPage::setFeaturePermission):
743         (QWebPage::createWindow):
744         (QWebPage::createPlugin):
745         (QWebPage::supportedContentTypes):
746         (QWebPage::supportsContentType):
747         (collectChildFrames):
748         (QWebPage::triggerAction):
749         (QWebPagePrivate::colorSelectionRequested):
750         (QWebPagePrivate::createSelectPopup):
751         (QWebPagePrivate::viewRectRelativeToWindow):
752         (QWebPagePrivate::geolocationPermissionRequested):
753         (QWebPagePrivate::geolocationPermissionRequestCancelled):
754         (QWebPagePrivate::notificationsPermissionRequested):
755         (QWebPagePrivate::notificationsPermissionRequestCancelled):
756         (QWebPagePrivate::respondToChangedContents):
757         (QWebPagePrivate::respondToChangedSelection):
758         (QWebPagePrivate::microFocusChanged):
759         (QWebPagePrivate::triggerCopyAction):
760         (QWebPagePrivate::triggerActionForKeyEvent):
761         (QWebPagePrivate::clearUndoStack):
762         (QWebPagePrivate::canUndo):
763         (QWebPagePrivate::canRedo):
764         (QWebPagePrivate::undo):
765         (QWebPagePrivate::redo):
766         (QWebPagePrivate::createUndoStep):
767         (QWebPagePrivate::editorCommandForKeyEvent):
768         (QWebPage::viewportSize):
769         (QWebPage::setViewportSize):
770         (getintenv):
771         (queryDeviceSizeForScreenContainingWidget):
772         (QWebPage::viewportAttributesForSize):
773         (QWebPage::preferredContentsSize):
774         (QWebPage::setPreferredContentsSize):
775         (QWebPage::setActualVisibleContentRect):
776         (QWebPage::acceptNavigationRequest):
777         (QWebPage::hasSelection):
778         (QWebPage::selectedText):
779         (QWebPage::selectedHtml):
780         (QWebPage::action):
781         (QWebPage::isModified):
782         (QWebPage::undoStack):
783         (QWebPage::event):
784         (QWebPage::focusNextPrevChild):
785         (QWebPage::setContentEditable):
786         (QWebPage::isContentEditable):
787         (QWebPage::setForwardUnsupportedContent):
788         (QWebPage::forwardUnsupportedContent):
789         (QWebPage::setLinkDelegationPolicy):
790         (QWebPage::linkDelegationPolicy):
791         (QWebPagePrivate::handleScrollbarContextMenuEvent):
792         (QWebPage::swallowContextMenuEvent):
793         (QWebPage::updatePositionDependentActions):
794         (QWebPage::extension):
795         (QWebPage::supportsExtension):
796         (QWebPage::handle):
797         (QWebPage::findText):
798         (QWebPage::settings):
799         (QWebPage::chooseFile):
800         (QWebPage::setNetworkAccessManager):
801         (QWebPage::networkAccessManager):
802         (QWebPage::setPluginFactory):
803         (QWebPage::pluginFactory):
804         (QWebPage::userAgentForUrl):
805         (QWebPage::totalBytes):
806         (QWebPage::bytesReceived):
807         * WidgetApi/qwebpage.h: Renamed from Source/WebKit/qt/Api/qwebpage.h.
808         (WebCore):
809         * WidgetApi/qwebpage_p.h: Renamed from Source/WebKit/qt/Api/qwebpage_p.h.
810         (WebCore):
811         (QtViewportAttributesPrivate):
812         (QtViewportAttributesPrivate::QtViewportAttributesPrivate):
813         (QWebPagePrivate):
814         * WidgetApi/qwebview.cpp: Renamed from Source/WebKit/qt/Api/qwebview.cpp.
815         (QWebViewPrivate):
816         (QWebViewPrivate::QWebViewPrivate):
817         (QWebViewPrivate::~QWebViewPrivate):
818         (QWebViewPrivate::_q_pageDestroyed):
819         (accessibleInterfaceFactory):
820         (QWebView::QWebView):
821         (QWebView::~QWebView):
822         (QWebView::page):
823         (QWebViewPrivate::detachCurrentPage):
824         (QWebView::setPage):
825         (QWebView::load):
826         (QWebView::setHtml):
827         (QWebView::setContent):
828         (QWebView::history):
829         (QWebView::settings):
830         (QWebView::title):
831         (QWebView::setUrl):
832         (QWebView::url):
833         (QWebView::icon):
834         (QWebView::hasSelection):
835         (QWebView::selectedText):
836         (QWebView::selectedHtml):
837         (QWebView::pageAction):
838         (QWebView::triggerPageAction):
839         (QWebView::isModified):
840         (QWebView::sizeHint):
841         (QWebView::setZoomFactor):
842         (QWebView::zoomFactor):
843         (QWebView::setTextSizeMultiplier):
844         (QWebView::textSizeMultiplier):
845         (QWebView::renderHints):
846         (QWebView::setRenderHints):
847         (QWebView::setRenderHint):
848         (QWebView::findText):
849         (QWebView::event):
850         (QWebView::print):
851         (QWebView::stop):
852         (QWebView::back):
853         (QWebView::forward):
854         (QWebView::reload):
855         (QWebView::resizeEvent):
856         (QWebView::paintEvent):
857         (QWebView::createWindow):
858         (QWebView::mouseMoveEvent):
859         (QWebView::mousePressEvent):
860         (QWebView::mouseDoubleClickEvent):
861         (QWebView::mouseReleaseEvent):
862         (QWebView::contextMenuEvent):
863         (QWebView::wheelEvent):
864         (QWebView::keyPressEvent):
865         (QWebView::keyReleaseEvent):
866         (QWebView::focusInEvent):
867         (QWebView::focusOutEvent):
868         (QWebView::dragEnterEvent):
869         (QWebView::dragLeaveEvent):
870         (QWebView::dragMoveEvent):
871         (QWebView::dropEvent):
872         (QWebView::focusNextPrevChild):
873         (QWebView::inputMethodQuery):
874         (QWebView::inputMethodEvent):
875         (QWebView::changeEvent):
876         * WidgetApi/qwebview.h: Renamed from Source/WebKit/qt/Api/qwebview.h.
877         * WidgetApi/qwebviewaccessible.cpp: Renamed from Source/WebKit/qt/Api/qwebviewaccessible.cpp.
878         (QWebFrameAccessible::QWebFrameAccessible):
879         (QWebFrameAccessible::frame):
880         (QWebFrameAccessible::parent):
881         (QWebFrameAccessible::text):
882         (QWebFrameAccessible::childCount):
883         (QWebFrameAccessible::child):
884         (QWebFrameAccessible::indexOfChild):
885         (QWebFrameAccessible::state):
886         (QWebFrameAccessible::role):
887         (QWebFrameAccessible::navigate):
888         (QWebPageAccessible::QWebPageAccessible):
889         (QWebPageAccessible::page):
890         (QWebPageAccessible::text):
891         (QWebPageAccessible::parent):
892         (QWebPageAccessible::child):
893         (QWebPageAccessible::childCount):
894         (QWebPageAccessible::indexOfChild):
895         (QWebPageAccessible::navigate):
896         (QWebPageAccessible::role):
897         (QWebPageAccessible::state):
898         (QWebViewAccessible::QWebViewAccessible):
899         (QWebViewAccessible::view):
900         (QWebViewAccessible::childCount):
901         (QWebViewAccessible::child):
902         * WidgetApi/qwebviewaccessible_p.h: Renamed from Source/WebKit/qt/Api/qwebviewaccessible_p.h.
903         (QWebFrameAccessible):
904         (QWebPageAccessible):
905         (QWebViewAccessible):
906         * WidgetSupport/DefaultFullScreenVideoHandler.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/DefaultFullScreenVideoHandler.cpp.
907         (DefaultFullScreenVideoHandler::DefaultFullScreenVideoHandler):
908         (DefaultFullScreenVideoHandler::~DefaultFullScreenVideoHandler):
909         (DefaultFullScreenVideoHandler::requiresFullScreenForVideoPlayback):
910         (DefaultFullScreenVideoHandler::enterFullScreen):
911         (DefaultFullScreenVideoHandler::exitFullScreen):
912         * WidgetSupport/DefaultFullScreenVideoHandler.h: Renamed from Source/WebKit/qt/WebCoreSupport/DefaultFullScreenVideoHandler.h.
913         (WebKit):
914         (DefaultFullScreenVideoHandler):
915         * WidgetSupport/FullScreenVideoWidget.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/FullScreenVideoWidget.cpp.
916         (WebKit):
917         (WebKit::FullScreenVideoWidget::FullScreenVideoWidget):
918         (WebKit::FullScreenVideoWidget::~FullScreenVideoWidget):
919         (WebKit::FullScreenVideoWidget::show):
920         (WebKit::FullScreenVideoWidget::closeEvent):
921         (WebKit::FullScreenVideoWidget::event):
922         (WebKit::FullScreenVideoWidget::keyPressEvent):
923         (WebKit::FullScreenVideoWidget::hideCursor):
924         (WebKit::FullScreenVideoWidget::showCursor):
925         * WidgetSupport/FullScreenVideoWidget.h: Renamed from Source/WebKit/qt/WebCoreSupport/FullScreenVideoWidget.h.
926         (WebKit):
927         (FullScreenVideoWidget):
928         * WidgetSupport/InitWebKitQt.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/InitWebKitQt.cpp.
929         (WebKit):
930         (WebKit::initializeWebKitWidgets):
931         * WidgetSupport/InitWebKitQt.h: Renamed from Source/WebKit/qt/WebCoreSupport/InitWebKitQt.h.
932         (WebKit):
933         * WidgetSupport/InspectorClientWebPage.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/InspectorClientWebPage.cpp.
934         (InspectorClientWebPage::InspectorClientWebPage):
935         (InspectorClientWebPage::createWindow):
936         (InspectorClientWebPage::javaScriptWindowObjectCleared):
937         * WidgetSupport/InspectorClientWebPage.h: Renamed from Source/WebKit/qt/WebCoreSupport/InspectorClientWebPage.h.
938         (WebKit):
939         (InspectorClientWebPage):
940         * WidgetSupport/PageClientQt.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/PageClientQt.cpp.
941         (QWebPageClient::ownerWindow):
942         (WebCore):
943         (WebCore::PageClientQWidget::scroll):
944         (WebCore::PageClientQWidget::update):
945         (WebCore::PageClientQWidget::repaintViewport):
946         (WebCore::PageClientQWidget::setInputMethodEnabled):
947         (WebCore::PageClientQWidget::inputMethodEnabled):
948         (WebCore::PageClientQWidget::setInputMethodHints):
949         (WebCore::PageClientQWidget::~PageClientQWidget):
950         (WebCore::PageClientQWidget::cursor):
951         (WebCore::PageClientQWidget::updateCursor):
952         (WebCore::PageClientQWidget::palette):
953         (WebCore::PageClientQWidget::screenNumber):
954         (WebCore::PageClientQWidget::ownerWidget):
955         (WebCore::PageClientQWidget::geometryRelativeToOwnerWidget):
956         (WebCore::PageClientQWidget::pluginParent):
957         (WebCore::PageClientQWidget::style):
958         (WebCore::PageClientQWidget::windowRect):
959         (WebCore::PageClientQWidget::setWidgetVisible):
960         (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
961         (WebCore::PageClientQGraphicsWidget::scroll):
962         (WebCore::PageClientQGraphicsWidget::update):
963         (WebCore::PageClientQGraphicsWidget::repaintViewport):
964         (WebCore::PageClientQGraphicsWidget::makeOpenGLContextCurrentIfAvailable):
965         (WebCore::PageClientQGraphicsWidget::setInputMethodEnabled):
966         (WebCore::PageClientQGraphicsWidget::inputMethodEnabled):
967         (WebCore::PageClientQGraphicsWidget::setInputMethodHints):
968         (WebCore::PageClientQGraphicsWidget::cursor):
969         (WebCore::PageClientQGraphicsWidget::updateCursor):
970         (WebCore::PageClientQGraphicsWidget::palette):
971         (WebCore::PageClientQGraphicsWidget::screenNumber):
972         (WebCore::PageClientQGraphicsWidget::ownerWidget):
973         (WebCore::PageClientQGraphicsWidget::geometryRelativeToOwnerWidget):
974         (WebCore::PageClientQGraphicsWidget::graphicsItemVisibleRect):
975         (WebCore::PageClientQGraphicsWidget::pluginParent):
976         (WebCore::PageClientQGraphicsWidget::style):
977         (WebCore::PageClientQGraphicsWidget::setWidgetVisible):
978         (WebCore::PageClientQGraphicsWidget::windowRect):
979         * WidgetSupport/PageClientQt.h: Renamed from Source/WebKit/qt/WebCoreSupport/PageClientQt.h.
980         (WebCore):
981         (PageClientQWidget):
982         (WebCore::PageClientQWidget::PageClientQWidget):
983         (WebCore::PageClientQWidget::isQWidgetClient):
984         (WebCore::PageClientQWidget::viewResizesToContentsEnabled):
985         (QGraphicsItemOverlay):
986         (WebCore::QGraphicsItemOverlay::QGraphicsItemOverlay):
987         (WebCore::QGraphicsItemOverlay::boundingRect):
988         (WebCore::QGraphicsItemOverlay::paint):
989         (WebCore::QGraphicsItemOverlay::prepareGraphicsItemGeometryChange):
990         (PageClientQGraphicsWidget):
991         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
992         (WebCore::PageClientQGraphicsWidget::isQWidgetClient):
993         (WebCore::PageClientQGraphicsWidget::viewResizesToContentsEnabled):
994         * WidgetSupport/QGraphicsWidgetPluginImpl.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/QGraphicsWidgetPluginImpl.cpp.
995         (QGraphicsWidgetPluginImpl::~QGraphicsWidgetPluginImpl):
996         (QGraphicsWidgetPluginImpl::update):
997         (QGraphicsWidgetPluginImpl::setGeometryAndClip):
998         (QGraphicsWidgetPluginImpl::setVisible):
999         (QGraphicsWidgetPluginImpl::setWidgetParent):
1000         (QGraphicsWidgetPluginImpl::handle):
1001         * WidgetSupport/QGraphicsWidgetPluginImpl.h: Renamed from Source/WebKit/qt/WebCoreSupport/QGraphicsWidgetPluginImpl.h.
1002         (QGraphicsWidgetPluginImpl):
1003         (QGraphicsWidgetPluginImpl::QGraphicsWidgetPluginImpl):
1004         * WidgetSupport/QStyleFacadeImp.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/QStyleFacadeImp.cpp.
1005         (WebKit):
1006         (WebKit::convertToQStyleState):
1007         (WebKit::convertToQStyleSubControl):
1008         (WebKit::initGenericStyleOption):
1009         (WebKit::initSpecificStyleOption):
1010         (MappedStyleOption):
1011         (WebKit::MappedStyleOption::MappedStyleOption):
1012         (WebKit::convertPixelMetric):
1013         (WebKit::convertToQStyleFacadeSubControl):
1014         (WebKit::QStyleFacadeImp::QStyleFacadeImp):
1015         (WebKit::QStyleFacadeImp::~QStyleFacadeImp):
1016         (WebKit::QStyleFacadeImp::buttonSubElementRect):
1017         (WebKit::QStyleFacadeImp::findFrameLineWidth):
1018         (WebKit::QStyleFacadeImp::simplePixelMetric):
1019         (WebKit::QStyleFacadeImp::buttonMargin):
1020         (WebKit::QStyleFacadeImp::sliderLength):
1021         (WebKit::QStyleFacadeImp::sliderThickness):
1022         (WebKit::QStyleFacadeImp::progressBarChunkWidth):
1023         (WebKit::QStyleFacadeImp::getButtonMetrics):
1024         (WebKit::QStyleFacadeImp::comboBoxSizeFromContents):
1025         (WebKit::QStyleFacadeImp::pushButtonSizeFromContents):
1026         (WebKit::QStyleFacadeImp::paintButton):
1027         (WebKit::QStyleFacadeImp::paintTextField):
1028         (WebKit::QStyleFacadeImp::paintComboBox):
1029         (WebKit::QStyleFacadeImp::paintComboBoxArrow):
1030         (WebKit::QStyleFacadeImp::paintSliderTrack):
1031         (WebKit::QStyleFacadeImp::paintSliderThumb):
1032         (WebKit::QStyleFacadeImp::paintInnerSpinButton):
1033         (WebKit::QStyleFacadeImp::paintProgressBar):
1034         (WebKit::QStyleFacadeImp::scrollBarExtent):
1035         (WebKit::QStyleFacadeImp::scrollBarMiddleClickAbsolutePositionStyleHint):
1036         (WebKit::QStyleFacadeImp::paintScrollCorner):
1037         (WebKit::QStyleFacadeImp::hitTestScrollBar):
1038         (WebKit::QStyleFacadeImp::scrollBarSubControlRect):
1039         (WebKit::QStyleFacadeImp::paintScrollBar):
1040         (WebKit::QStyleFacadeImp::widgetForPainter):
1041         (WebKit::QStyleFacadeImp::style):
1042         * WidgetSupport/QStyleFacadeImp.h: Renamed from Source/WebKit/qt/WebCoreSupport/QStyleFacadeImp.h.
1043         (WebKit):
1044         (QStyleFacadeImp):
1045         (WebKit::QStyleFacadeImp::create):
1046         (WebKit::QStyleFacadeImp::isValid):
1047         * WidgetSupport/QWebUndoCommand.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/QWebUndoCommand.cpp.
1048         (QWebUndoCommand::QWebUndoCommand):
1049         (QWebUndoCommand::undo):
1050         (QWebUndoCommand::redo):
1051         * WidgetSupport/QWebUndoCommand.h: Renamed from Source/WebKit/qt/WebCoreSupport/QWebUndoCommand.h.
1052         (QWebUndoCommand):
1053         * WidgetSupport/QWidgetPluginImpl.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/QWidgetPluginImpl.cpp.
1054         (QWidgetPluginImpl::~QWidgetPluginImpl):
1055         (QWidgetPluginImpl::update):
1056         (QWidgetPluginImpl::setGeometryAndClip):
1057         (QWidgetPluginImpl::setVisible):
1058         (QWidgetPluginImpl::setStyleSheet):
1059         (QWidgetPluginImpl::setWidgetParent):
1060         (QWidgetPluginImpl::handle):
1061         * WidgetSupport/QWidgetPluginImpl.h: Renamed from Source/WebKit/qt/WebCoreSupport/QWidgetPluginImpl.h.
1062         (QWidgetPluginImpl):
1063         (QWidgetPluginImpl::QWidgetPluginImpl):
1064         * WidgetSupport/QtFallbackWebPopup.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/QtFallbackWebPopup.cpp.
1065         (WebCore):
1066         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
1067         (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
1068         (WebCore::QtFallbackWebPopup::show):
1069         (WebCore::QtFallbackWebPopup::hide):
1070         (WebCore::QtFallbackWebPopup::populate):
1071         (WebCore::QtFallbackWebPopup::activeChanged):
1072         (WebCore::QtFallbackWebPopup::deleteComboBox):
1073         (WebCore::QtFallbackWebPopup::pageClient):
1074         * WidgetSupport/QtFallbackWebPopup.h: Renamed from Source/WebKit/qt/WebCoreSupport/QtFallbackWebPopup.h.
1075         (WebCore):
1076         (QtFallbackWebPopup):
1077         (WebCore::QtFallbackWebPopup::setGeometry):
1078         (WebCore::QtFallbackWebPopup::geometry):
1079         (WebCore::QtFallbackWebPopup::setFont):
1080         (WebCore::QtFallbackWebPopup::font):
1081         * WidgetSupport/QtWebComboBox.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/QtWebComboBox.cpp.
1082         (WebCore):
1083         (WebCore::QtWebComboBox::QtWebComboBox):
1084         (WebCore::QtWebComboBox::showPopupAtCursorPosition):
1085         (WebCore::QtWebComboBox::eventFilter):
1086         * WidgetSupport/QtWebComboBox.h: Renamed from Source/WebKit/qt/WebCoreSupport/QtWebComboBox.h.
1087         (WebCore):
1088         (QtWebComboBox):
1089         * declarative/experimental/experimental.pri:
1090         * declarative/public.pri:
1091         * tests/qwebview/tst_qwebview.cpp:
1092
1093 2012-11-30  Zeno Albisser  <zeno@webkit.org>
1094
1095         [Qt] Enable WebGL by default.
1096         https://bugs.webkit.org/show_bug.cgi?id=103731
1097
1098         Reviewed by Simon Hausmann.
1099
1100         * Api/qwebsettings.cpp:
1101         (QWebSettings::QWebSettings):
1102
1103 2012-11-30  Mihai Maerean  <mmaerean@adobe.com>
1104
1105         [CSSRegions] when WebKit uses V8, there should be a single variable to store if the CSS Regions feature is enabled
1106         https://bugs.webkit.org/show_bug.cgi?id=101192
1107
1108         Reviewed by Hajime Morita.
1109
1110         Removed the CSS Regions flag in Settings and switched to using the new flag I have added in RuntimeEnabledFeatures.
1111
1112         Tests: No new tests because there is no functional change.
1113
1114         * Api/qwebsettings.cpp:
1115         (QWebSettingsPrivate::apply):
1116
1117 2012-11-29  Alexey Proskuryakov  <ap@apple.com>
1118
1119         [WK2] Forward cookie jar calls to NetworkProcess
1120         https://bugs.webkit.org/show_bug.cgi?id=103457
1121
1122         Reviewed by Darin Adler.
1123
1124         * WebCoreSupport/PlatformStrategiesQt.cpp:
1125         (PlatformStrategiesQt::cookiesForDOM):
1126         (PlatformStrategiesQt::setCookiesFromDOM):
1127         (PlatformStrategiesQt::cookiesEnabled):
1128         (PlatformStrategiesQt::cookieRequestHeaderFieldValue):
1129         (PlatformStrategiesQt::getRawCookies):
1130         (PlatformStrategiesQt::deleteCookie):
1131         (PlatformStrategiesQt::getHostnamesWithCookies):
1132         (PlatformStrategiesQt::deleteCookiesForHostname):
1133         (PlatformStrategiesQt::deleteAllCookies):
1134
1135 2012-11-28  Huang Dongsung  <luxtella@company100.net>
1136
1137         [Texmap] REGRESSION(r135620) QtTestBrowser crashes on Google-gravity.
1138         https://bugs.webkit.org/show_bug.cgi?id=103410
1139
1140         Reviewed by Noam Rosenthal.
1141
1142         TextureMapperLayerClientQt::setTextureMapper() must call
1143         flushCompositingStateForThisLayerOnly() of the root layer.
1144
1145         Currently, PageClientQGraphicsWidget::setRootGraphicsLayer does not flush layer
1146         states of the root layer after setting TextureMapper while
1147         PageClientQWidget::setRootGraphicsLayer() flushes them of the root layer.  If
1148         not flushing states, descendant layers can not reach the root layer. It means
1149         descendant layers can not reach the TextureMapper that the root layer has.
1150
1151         This is already the behavior for PageClientQWidget, which should be the case
1152         for PageClientQGraphicsWidget as well.
1153
1154         * WebCoreSupport/PageClientQt.cpp:
1155         (WebCore::TextureMapperLayerClientQt::setTextureMapper):
1156         (WebCore::PageClientQWidget::setRootGraphicsLayer):
1157
1158 2012-11-27  James Simonsen  <simonjam@chromium.org>
1159
1160         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
1161         https://bugs.webkit.org/show_bug.cgi?id=102151
1162
1163         Reviewed by Adam Barth.
1164
1165         * Api/qwebframe.cpp:
1166         (QWebFrame::QWebFrame):
1167         (QWebFrame::load):
1168         (QWebFrame::setHtml):
1169         (QWebFrame::setContent):
1170         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1171         (DumpRenderTreeSupportQt::setAlternateHtml):
1172         (qt_dump_set_accepts_editing):
1173         * WebCoreSupport/FrameLoaderClientQt.cpp:
1174         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
1175
1176 2012-11-27  Sheriff Bot  <webkit.review.bot@gmail.com>
1177
1178         Unreviewed, rolling out r135786.
1179         http://trac.webkit.org/changeset/135786
1180         https://bugs.webkit.org/show_bug.cgi?id=103379
1181
1182         It made 3 plugin tests timeout on several platforms (Requested
1183         by Ossy on #webkit).
1184
1185         * Api/qwebframe.cpp:
1186         (QWebFrame::setHtml):
1187         (QWebFrame::setContent):
1188         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1189         (DumpRenderTreeSupportQt::setAlternateHtml):
1190         * WebCoreSupport/FrameLoaderClientQt.cpp:
1191         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
1192         * WebCoreSupport/QWebFrameAdapter.cpp:
1193         (QWebFrameAdapter::load):
1194
1195 2012-11-26  James Simonsen  <simonjam@chromium.org>
1196
1197         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
1198         https://bugs.webkit.org/show_bug.cgi?id=102151
1199
1200         Reviewed by Adam Barth.
1201
1202         * Api/qwebframe.cpp:
1203         (QWebFrame::QWebFrame):
1204         (QWebFrame::load):
1205         (QWebFrame::setHtml):
1206         (QWebFrame::setContent):
1207         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1208         (DumpRenderTreeSupportQt::setAlternateHtml):
1209         (qt_dump_set_accepts_editing):
1210         * WebCoreSupport/FrameLoaderClientQt.cpp:
1211         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
1212
1213 2012-11-26  Pierre Rossi  <pierre.rossi@gmail.com>
1214
1215         [Qt] REGRESSION(r135575): It made all tests assert
1216         https://bugs.webkit.org/show_bug.cgi?id=103169
1217
1218         Reviewed by Simon Hausmann.
1219
1220         This fixes another regression introduced in r135515:
1221         initializeWebKitQt shouldn't implicitely call initializeWebCoreQt
1222         since it can be called from WebKit2 to initialize QStyle for testing.
1223         This would then lead to things such as PlatformStrategies being
1224         initialized twice.
1225
1226         * Api/qwebpage.cpp: Explicitely call initializeWebCoreQt().
1227         (QWebPagePrivate::QWebPagePrivate):
1228         * WebCoreSupport/InitWebCoreQt.cpp:
1229         (WebKit::initializeWebKitQt):
1230         (WebCore::initializeWebCoreQt):
1231         * WebCoreSupport/InitWebCoreQt.h:
1232         (WebCore):
1233
1234 2012-11-26  Zeno Albisser  <zeno@webkit.org>
1235
1236         [Qt] Make sure the QGLWidget context is current when creating the TextureMapper.
1237         https://bugs.webkit.org/show_bug.cgi?id=103142
1238
1239         When creating the TextureMapperGL for WK1 we have to make sure
1240         that the GL context provided by the QGLWidget is current.
1241         Otherwise the GraphicsContext3DQt created by TextureMapperGL will pick up
1242         the wrong pointer by calling QOpenGLContext::currentContext().
1243
1244         Reviewed by Simon Hausmann.
1245
1246         * WebCoreSupport/PageClientQt.cpp:
1247         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
1248
1249 2012-11-26  Michael Brüning  <michael.bruning@digia.com>
1250
1251         [Qt] QStyleFacadeImp build break with latest Qt 5
1252         https://bugs.webkit.org/show_bug.cgi?id=103198
1253
1254         Reviewed by Simon Hausmann.
1255
1256         Original patch by J-P Nurmi <jpnurmi@digia.com>.
1257
1258         Fixes QtWebKit build by replacing qobject_cast to
1259         QMacStyle with calls to QObject::inherits. Also
1260         replaces Q_WS_MAC preprocesser directives with Q_OS_MAC
1261         for Qt 5 compatibility.
1262
1263         * WebCoreSupport/QStyleFacadeImp.cpp:
1264         (WebKit::QStyleFacadeImp::getButtonMetrics):
1265         (WebKit::QStyleFacadeImp::paintComboBox):
1266         (WebKit::QStyleFacadeImp::paintInnerSpinButton):
1267         (WebKit::QStyleFacadeImp::paintScrollBar):
1268
1269 2012-11-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1270
1271         Unreviewed, rolling out r135648 and r135649.
1272         http://trac.webkit.org/changeset/135648
1273         http://trac.webkit.org/changeset/135649
1274         https://bugs.webkit.org/show_bug.cgi?id=103176
1275
1276         This change cannot be built with a qt-minimal configuration.
1277         (Requested by zalbisser on #webkit).
1278
1279         * WebCoreSupport/PageClientQt.cpp:
1280         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
1281
1282 2012-11-24  Zeno Albisser  <zeno@webkit.org>
1283
1284         Unreviewed Qt build fix:
1285
1286         Make sure QGLWidget definition is available.
1287
1288         * WebCoreSupport/PageClientQt.cpp:
1289
1290 2012-11-24  Zeno Albisser  <zeno@webkit.org>
1291
1292         [Qt] Make sure the QGLWidget context is current when creating the TextureMapper.
1293         https://bugs.webkit.org/show_bug.cgi?id=103142
1294
1295         When creating the TextureMapperGL for WK1 we have to make sure
1296         that the GL context provided by the QGLWidget is current.
1297         Otherwise the GraphicsContext3DQt created by TextureMapperGL will pick up
1298         the wrong pointer by calling QOpenGLContext::currentContext().
1299
1300         Reviewed by Kenneth Rohde Christiansen.
1301
1302         * WebCoreSupport/PageClientQt.cpp:
1303         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
1304
1305 2012-11-23  Sheriff Bot  <webkit.review.bot@gmail.com>
1306
1307         Unreviewed, rolling out r135575.
1308         http://trac.webkit.org/changeset/135575
1309         https://bugs.webkit.org/show_bug.cgi?id=103169
1310
1311         It made all tests assert (Requested by Ossy on #webkit).
1312
1313         * Api/qwebpage.cpp:
1314         (QWebPagePrivate::QWebPagePrivate):
1315         * WebCoreSupport/InitWebCoreQt.cpp:
1316         (WebKit::initializeWebKitQt):
1317
1318 2012-11-23  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1319
1320         tst_qwebpage fails after QMimeDatabase patch
1321         https://bugs.webkit.org/show_bug.cgi?id=103125
1322
1323         Reviewed by Simon Hausmann.
1324
1325         Replace the static extension->mimetype table with a QMimeDatabase lookup
1326
1327         * tests/qwebpage/tst_qwebpage.cpp:
1328         (tst_QWebPage::findText):
1329         (tst_QWebPage::supportedContentType):
1330
1331 2012-11-23  Simon Hausmann  <simon.hausmann@digia.com>
1332
1333         [Qt] Compiling against QtWebkit API requires QT_DLL to be defined
1334         https://bugs.webkit.org/show_bug.cgi?id=102942
1335
1336         Reviewed by Tor Arne Vestbø.
1337
1338         Remove the requirement of having QT_DLL defined in order for the QWEBKIT_EXPORT
1339         macro to be defined as Q_DECL_IMPORT. Instead unify the export macro definition
1340         to follow the same rules as other Qt 5 modules, with the exception that instead of
1341         QT_BUILD_WEBKIT_LIB we continue to use BUILDING_WEBKIT, because that's used also
1342         in other cross-platform header files to determine the correct meaning of export
1343         macros.
1344
1345         * Api/qwebkitglobal.h:
1346
1347 2012-11-23  Simon Hausmann  <simon.hausmann@digia.com>
1348
1349         [Qt] QWebPage::shouldInterruptJavaScript should be virtual in Qt 5
1350         https://bugs.webkit.org/show_bug.cgi?id=103111
1351
1352         Reviewed by Kenneth Rohde Christiansen.
1353
1354         This function was added as a slot during Qt 4.x times because adding
1355         virtual functions breaks binary compatibility. This constraint is gone
1356         with the initial release of WebKit with Qt 5, and therefore we can
1357         make it virtual now.
1358
1359         The change is fully source compatible as existing "re-implementations"
1360         as slots will now be called through it being a virtual function. They
1361         become unused slots.
1362
1363         * Api/qwebpage.cpp:
1364         (QWebPagePrivate::shouldInterruptJavaScript):
1365         * Api/qwebpage.h:
1366         * Api/qwebpage_p.h:
1367         * WebCoreSupport/ChromeClientQt.cpp:
1368         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
1369         * WebCoreSupport/QWebPageAdapter.h:
1370         (QWebPageAdapter):
1371         * tests/qwebpage/tst_qwebpage.cpp:
1372         (JSTestPage::shouldInterruptJavaScript):
1373         (JSTestPage):
1374
1375 2012-11-23  Pierre Rossi  <pierre.rossi@gmail.com>
1376
1377         [Qt] REGRESSION(r135515): 3 appcache tests still failing
1378         https://bugs.webkit.org/show_bug.cgi?id=103073
1379
1380         Rubber-stamped by Simon Hausmann.
1381
1382         Another sneaky typo.
1383
1384         * Api/qwebpage.cpp:
1385         (QWebPagePrivate::applicationCacheQuotaExceeded):
1386
1387 2012-11-22  Pierre Rossi  <pierre.rossi@gmail.com>
1388
1389         [Qt] Avoid initializing PlatformStrategies twice.
1390
1391         Rubber-stamped by Simon Hausmann.
1392
1393         This fixes another regression introduced in r135515:
1394         initializeWebKitQt shouldn't implicitely call initializeWebCoreQt
1395         since it can be called from WebKit2 to initialize QStyle for testing.
1396         This would then lead to things such as PlatformStrategies being
1397         initialized twice.
1398
1399         * Api/qwebpage.cpp: Explicitely call initializeWebCoreQt().
1400         (QWebPagePrivate::QWebPagePrivate):
1401         * WebCoreSupport/InitWebCoreQt.cpp:
1402         (WebKit::initializeWebKitQt):
1403
1404 2012-11-23  Simon Hausmann  <simon.hausmann@digia.com>
1405
1406         Unreviewed trivial Qt/Win build fix:
1407
1408         Include FormState.h/HTMLFormElement.h in the FrameLoaderClient
1409         declaration because MSVC needs it. Also fix Q_DECL_EXPORT declarations
1410         for functions that are supposed to be exported.
1411
1412         * Api/qwebelement.cpp:
1413         * WebCoreSupport/FrameLoaderClientQt.h:
1414         * WebCoreSupport/InitWebCoreQt.h:
1415         (WebKit):
1416         * WebCoreSupport/InitWebKitQt.h:
1417         (WebKit):
1418
1419 2012-11-22  Pierre Rossi  <pierre.rossi@gmail.com>
1420
1421         [Qt] REGRESSION(r135515): It made 3-3 tests fail and crash
1422         https://bugs.webkit.org/show_bug.cgi?id=103073
1423
1424         Rubber-stamped by Simon Hausmann.
1425
1426         Removing the QNetworkAccessManager member in FrameNetworkingContextQt
1427         was right, but we need to be careful as to how we fetch it back.
1428         Since the WebCore Page is not always valid, get the QNAM instance
1429         straight from the frame adapter through its page adapter instead.
1430
1431         * WebCoreSupport/ChromeClientQt.cpp: [Style nit] Remove stray emit.
1432         * WebCoreSupport/FrameNetworkingContextQt.cpp:
1433         (WebCore::FrameNetworkingContextQt::networkAccessManager):
1434
1435 2012-11-22  Simon Hausmann  <simon.hausmann@digia.com>
1436
1437         Unreviewed MSVC Windows build fix: Include header files referenced in RefPtr
1438         instances.
1439
1440         * Api/qwebelement.cpp:
1441
1442 2012-11-22  Simon Hausmann  <simon.hausmann@digia.com>, Pierre Rossi <pierre.rossi@digia.com>
1443
1444         [Qt] Separate QWidget dependant code into separate WebKitWidgets static library
1445         https://bugs.webkit.org/show_bug.cgi?id=102800
1446
1447         Reviewed by Tor Arne Vestbø.
1448
1449         This patch separates code that needs to use QWidget related APIs in
1450         WebKit/qt/WebCoreSupport and Api from code that doesn't. This means for
1451         example FrameLoaderClientQt.cpp remains in the WebKit1 static library,
1452         while qwebpage.cpp and qwebframe.cpp become part of the WebKitWidgets
1453         static library. WebKit1 is compiled without QT += widgets and therefore
1454         any widget related dependency has been moved "up" and out of WebKit1 into
1455         the WebKitWidgets library.
1456
1457         Between the code in WebKit.a and WebKitWidgets.a new adapters and
1458         interfaces have been introduced, such as QWebPageAdapter and
1459         QWebFrameAdapter. QWebPageAdapter, when used from WebKit1, is a way to
1460         call out into the API layer, implemented by QWebPage (QWebPagePrivate).
1461         The other way around if QWebPage wants to access WebCore or
1462         WebCoreSupport related functionality, it will go through
1463         QWebPageAdapater (as base class). The separation in the direction up
1464         into the API layer is complete with this patch, no code in WebKit1
1465         depends on QtWidgets. The separation the other way around, code in the
1466         API layer not using any WebCore types, is not complete yet.
1467
1468         Some classes such as QWebSettings, QWebElement or
1469         DumpRenderTreeSupportQt remain in WebKit1. While they are API layer,
1470         they do not depend on widget related Qt APIs and they make much more
1471         use of WebCore internal APIs and therefore are easier to keep in
1472         WebKit1.
1473
1474         In the future we plan to place a real shared library boundary between
1475         WebKit1 and WebKitWidgets, by keeping the WebKit1 static library as
1476         part of the QtWebKit shared library and by turning the WebKitWidgets
1477         static library into a shared one.
1478
1479
1480         * Api/qgraphicswebview.cpp:
1481         (QGraphicsWebViewPrivate::pageClient):
1482         (QGraphicsWebViewPrivate::detachCurrentPage):
1483         (QGraphicsWebView::setPage):
1484         * Api/qwebelement.cpp:
1485         (QWebElement::webFrame):
1486         * Api/qwebframe.cpp:
1487         (QWebFramePrivate::setPage):
1488         (QWebFramePrivate::didStartProvisionalLoad):
1489         (QWebFramePrivate::handleProgressFinished):
1490         (QWebFramePrivate::emitInitialLayoutCompleted):
1491         (QWebFramePrivate::emitIconChanged):
1492         (QWebFramePrivate::emitLoadStarted):
1493         (QWebFramePrivate::emitLoadFinished):
1494         (QWebFramePrivate::createChildFrame):
1495         (QWebFramePrivate::apiHandle):
1496         (QWebFramePrivate::handle):
1497         (QWebFramePrivate::contentsSizeDidChange):
1498         (QWebFramePrivate::scrollBarPolicy):
1499         (QWebFrame::QWebFrame):
1500         (QWebFrame::~QWebFrame):
1501         (QWebFrame::setUrl):
1502         (QWebFrame::load):
1503         (QWebFrame::scrollPosition):
1504         (QWebFrame::geometry):
1505         (QWebFramePrivate::kit):
1506         (QWebFrame::handle):
1507         * Api/qwebframe.h:
1508         * Api/qwebframe_p.h:
1509         (QWebFramePrivate::QWebFramePrivate):
1510         (QWebFramePrivate):
1511         * Api/qwebhistory.cpp:
1512         (QWebHistoryPrivate::page):
1513         * Api/qwebhistory_p.h:
1514         (QWebHistoryPrivate):
1515         * Api/qwebinspector.cpp:
1516         (QWebInspectorPrivate::setFrontend):
1517         * Api/qwebinspector_p.h:
1518         (QWebInspectorPrivate):
1519         * Api/qwebpage.cpp:
1520         (QWebPagePrivate::QWebPagePrivate):
1521         (QWebPagePrivate::~QWebPagePrivate):
1522         (QWebPagePrivate::core):
1523         (QWebPagePrivate::show):
1524         (QWebPagePrivate::setFocus):
1525         (QWebPagePrivate::unfocus):
1526         (QWebPagePrivate::setWindowRect):
1527         (QWebPagePrivate::viewportSize):
1528         (QWebPagePrivate::createWindow):
1529         (QWebPagePrivate::javaScriptConsoleMessage):
1530         (QWebPagePrivate::javaScriptAlert):
1531         (QWebPagePrivate::javaScriptConfirm):
1532         (QWebPagePrivate::javaScriptPrompt):
1533         (QWebPagePrivate::printRequested):
1534         (QWebPagePrivate::databaseQuotaExceeded):
1535         (QWebPagePrivate::applicationCacheQuotaExceeded):
1536         (QWebPagePrivate::setToolTip):
1537         (QWebPagePrivate::createFullScreenVideoHandler):
1538         (QWebPagePrivate::mainFrameAdapter):
1539         (QWebPagePrivate::chooseFiles):
1540         (QWebPagePrivate::acceptNavigationRequest):
1541         (QWebPagePrivate::emitRestoreFrameStateRequested):
1542         (QWebPagePrivate::emitSaveFrameStateRequested):
1543         (QWebPagePrivate::emitDownloadRequested):
1544         (QWebPagePrivate::emitFrameCreated):
1545         (QWebPagePrivate::errorPageExtension):
1546         (QWebPagePrivate::createPlugin):
1547         (QWebPagePrivate::adapterForWidget):
1548         (QWebPagePrivate::createMainFrame):
1549         (QWebPagePrivate::createContextMenu):
1550         (QWebPagePrivate::inspectorHandle):
1551         (QWebPagePrivate::setInspectorFrontend):
1552         (QWebPagePrivate::setInspectorWindowTitle):
1553         (QWebPagePrivate::createWebInspector):
1554         (iterateContextMenu):
1555         (QWebPagePrivate::menuActionsAsText):
1556         (QWebPagePrivate::emitViewportChangeRequested):
1557         (QWebPagePrivate::mouseMoveEvent):
1558         (QWebPagePrivate::mousePressEvent):
1559         (QWebPagePrivate::mouseDoubleClickEvent):
1560         (QWebPagePrivate::mouseTripleClickEvent):
1561         (QWebPagePrivate::mouseReleaseEvent):
1562         (QWebPagePrivate::handleSoftwareInputPanel):
1563         (QWebPagePrivate::wheelEvent):
1564         (QWebPagePrivate::gestureEvent):
1565         (QWebPage::setView):
1566         (QWebPage::javaScriptConsoleMessage):
1567         (QWebPage::javaScriptAlert):
1568         (QWebPage::javaScriptConfirm):
1569         (QWebPage::javaScriptPrompt):
1570         (QWebPage::shouldInterruptJavaScript):
1571         (QWebPage::setFeaturePermission):
1572         (QWebPagePrivate::colorSelectionRequested):
1573         (QWebPagePrivate::createSelectPopup):
1574         (QWebPagePrivate::viewRectRelativeToWindow):
1575         (QWebPagePrivate::geolocationPermissionRequested):
1576         (QWebPagePrivate::geolocationPermissionRequestCancelled):
1577         (QWebPagePrivate::notificationsPermissionRequested):
1578         (QWebPagePrivate::notificationsPermissionRequestCancelled):
1579         (QWebPagePrivate::respondToChangedContents):
1580         (QWebPagePrivate::respondToChangedSelection):
1581         (QWebPagePrivate::microFocusChanged):
1582         (QWebPagePrivate::triggerCopyAction):
1583         (QWebPagePrivate::triggerActionForKeyEvent):
1584         (QWebPagePrivate::clearUndoStack):
1585         (QWebPagePrivate::canUndo):
1586         (QWebPagePrivate::canRedo):
1587         (QWebPagePrivate::undo):
1588         (QWebPagePrivate::redo):
1589         (QWebPagePrivate::createUndoStep):
1590         (QWebPagePrivate::editorCommandForKeyEvent):
1591         (QWebPage::viewportSize):
1592         (QWebPage::setViewportSize):
1593         (QWebPage::viewportAttributesForSize):
1594         (QWebPage::event):
1595         (QWebPage::extension):
1596         (QWebPage::handle):
1597         (QWebPage::chooseFile):
1598         (QWebPage::setNetworkAccessManager):
1599         (QWebPage::networkAccessManager):
1600         * Api/qwebpage.h:
1601         * Api/qwebpage_p.h:
1602         (WebCore):
1603         (QWebPagePrivate):
1604         * Api/qwebsettings.cpp:
1605         * Api/qwebsettings.h:
1606         * Api/qwebview.cpp:
1607         (QWebViewPrivate::detachCurrentPage):
1608         * WebCoreSupport/ChromeClientQt.cpp:
1609         (WebCore::ChromeClientQt::ChromeClientQt):
1610         (WebCore::ChromeClientQt::setWindowRect):
1611         (WebCore::ChromeClientQt::focus):
1612         (WebCore::ChromeClientQt::unfocus):
1613         (WebCore::ChromeClientQt::createWindow):
1614         (WebCore::ChromeClientQt::show):
1615         (WebCore::ChromeClientQt::setToolbarsVisible):
1616         (WebCore::ChromeClientQt::setStatusbarVisible):
1617         (WebCore::ChromeClientQt::setMenubarVisible):
1618         (WebCore::ChromeClientQt::addMessageToConsole):
1619         (WebCore::ChromeClientQt::closeWindowSoon):
1620         (WebCore::ChromeClientQt::runJavaScriptAlert):
1621         (WebCore::ChromeClientQt::runJavaScriptConfirm):
1622         (WebCore::ChromeClientQt::runJavaScriptPrompt):
1623         (WebCore::ChromeClientQt::setStatusbarText):
1624         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
1625         (WebCore::ChromeClientQt::keyboardUIMode):
1626         (WebCore::ChromeClientQt::windowResizerRect):
1627         * WebCoreSupport/ChromeClientQt.h:
1628         (ChromeClientQt):
1629         * WebCoreSupport/ContextMenuClientQt.cpp:
1630         * WebCoreSupport/ContextMenuClientQt.h:
1631         (ContextMenuClientQt):
1632         * WebCoreSupport/DefaultFullScreenVideoHandler.cpp: Added.
1633         (DefaultFullScreenVideoHandler::DefaultFullScreenVideoHandler):
1634         (DefaultFullScreenVideoHandler::~DefaultFullScreenVideoHandler):
1635         (DefaultFullScreenVideoHandler::requiresFullScreenForVideoPlayback):
1636         (DefaultFullScreenVideoHandler::enterFullScreen):
1637         (DefaultFullScreenVideoHandler::exitFullScreen):
1638         * WebCoreSupport/DefaultFullScreenVideoHandler.h: Copied from Source/WebKit/qt/WebCoreSupport/QtWebComboBox.h.
1639         (WebKit):
1640         (DefaultFullScreenVideoHandler):
1641         * WebCoreSupport/DragClientQt.cpp:
1642         (WebCore::DragClientQt::startDrag):
1643         * WebCoreSupport/DragClientQt.h:
1644         (WebCore):
1645         (WebCore::DragClientQt::DragClientQt):
1646         (DragClientQt):
1647         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1648         (toGeolocationClientMock):
1649         (toDeviceOrientationClientMock):
1650         (DumpRenderTreeSupportQt::initialize):
1651         (DumpRenderTreeSupportQt::setDumpRenderTreeModeEnabled):
1652         (DumpRenderTreeSupportQt::setFrameFlatteningEnabled):
1653         (DumpRenderTreeSupportQt::webPageSetGroupName):
1654         (DumpRenderTreeSupportQt::webPageGroupName):
1655         (DumpRenderTreeSupportQt::webInspectorExecuteScript):
1656         (DumpRenderTreeSupportQt::webInspectorShow):
1657         (DumpRenderTreeSupportQt::webInspectorClose):
1658         (DumpRenderTreeSupportQt::hasDocumentElement):
1659         (DumpRenderTreeSupportQt::pauseAnimation):
1660         (DumpRenderTreeSupportQt::pauseTransitionOfProperty):
1661         (DumpRenderTreeSupportQt::numberOfActiveAnimations):
1662         (DumpRenderTreeSupportQt::clearFrameName):
1663         (DumpRenderTreeSupportQt::setCaretBrowsingEnabled):
1664         (DumpRenderTreeSupportQt::setAuthorAndUserStylesEnabled):
1665         (DumpRenderTreeSupportQt::setSmartInsertDeleteEnabled):
1666         (DumpRenderTreeSupportQt::setSelectTrailingWhitespaceEnabled):
1667         (DumpRenderTreeSupportQt::executeCoreCommandByName):
1668         (DumpRenderTreeSupportQt::isCommandEnabled):
1669         (DumpRenderTreeSupportQt::findString):
1670         (DumpRenderTreeSupportQt::selectedRange):
1671         (DumpRenderTreeSupportQt::firstRectForCharacterRange):
1672         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
1673         (DumpRenderTreeSupportQt::setWindowsBehaviorAsEditingBehavior):
1674         (DumpRenderTreeSupportQt::viewportAsText):
1675         (DumpRenderTreeSupportQt::scalePageBy):
1676         (DumpRenderTreeSupportQt::setMockDeviceOrientation):
1677         (DumpRenderTreeSupportQt::resetGeolocationMock):
1678         (DumpRenderTreeSupportQt::setMockGeolocationPermission):
1679         (DumpRenderTreeSupportQt::setMockGeolocationPosition):
1680         (DumpRenderTreeSupportQt::setMockGeolocationPositionUnavailableError):
1681         (DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests):
1682         (DumpRenderTreeSupportQt::shouldClose):
1683         (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
1684         (DumpRenderTreeSupportQt::addUserStyleSheet):
1685         (DumpRenderTreeSupportQt::removeUserStyleSheets):
1686         (DumpRenderTreeSupportQt::setDefersLoading):
1687         (DumpRenderTreeSupportQt::goBack):
1688         (DumpRenderTreeSupportQt::responseMimeType):
1689         (DumpRenderTreeSupportQt::clearOpener):
1690         (DumpRenderTreeSupportQt::setInteractiveFormValidationEnabled):
1691         (DumpRenderTreeSupportQt::contextMenu):
1692         (DumpRenderTreeSupportQt::setMinimumTimerInterval):
1693         (DumpRenderTreeSupportQt::thirdPartyCookiePolicyAllows):
1694         (DumpRenderTreeSupportQt::mediaContentUrlByElementId):
1695         (DumpRenderTreeSupportQt::setAlternateHtml):
1696         (DumpRenderTreeSupportQt::confirmComposition):
1697         (DumpRenderTreeSupportQt::injectInternalsObject):
1698         (DumpRenderTreeSupportQt::resetInternalsObject):
1699         (DumpRenderTreeSupportQt::paintPagesWithBoundaries):
1700         (DumpRenderTreeSupportQt::setTrackRepaintRects):
1701         (DumpRenderTreeSupportQt::trackRepaintRects):
1702         (DumpRenderTreeSupportQt::getTrackedRepaintRects):
1703         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1704         * WebCoreSupport/EditorClientQt.cpp:
1705         (dumpRange):
1706         (WebCore::EditorClientQt::shouldShowDeleteInterface):
1707         (WebCore::EditorClientQt::shouldInsertText):
1708         (WebCore::EditorClientQt::shouldChangeSelectedRange):
1709         (WebCore::EditorClientQt::shouldApplyStyle):
1710         (WebCore::EditorClientQt::respondToChangedContents):
1711         (WebCore::EditorClientQt::respondToChangedSelection):
1712         (WebCore::EditorClientQt::registerUndoStep):
1713         (WebCore::EditorClientQt::clearUndoRedoOperations):
1714         (WebCore::EditorClientQt::canUndo):
1715         (WebCore::EditorClientQt::canRedo):
1716         (WebCore::EditorClientQt::undo):
1717         (WebCore::EditorClientQt::redo):
1718         (WebCore::EditorClientQt::shouldInsertNode):
1719         (WebCore::EditorClientQt::smartInsertDeleteEnabled):
1720         (WebCore::EditorClientQt::toggleSmartInsertDelete):
1721         (WebCore::EditorClientQt::isSelectTrailingWhitespaceEnabled):
1722         (WebCore::EditorClientQt::handleKeyboardEvent):
1723         (WebCore::EditorClientQt::EditorClientQt):
1724         (WebCore::EditorClientQt::setInputMethodState):
1725         * WebCoreSupport/EditorClientQt.h:
1726         (EditorClientQt):
1727         (WebCore::EditorClientQt::setSmartInsertDeleteEnabled):
1728         (WebCore::EditorClientQt::setSelectTrailingWhitespaceEnabled):
1729         * WebCoreSupport/FrameLoaderClientQt.cpp:
1730         (drtDescriptionSuitableForTestResult):
1731         (WebCore::FrameLoaderClientQt::setFrame):
1732         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1733         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
1734         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
1735         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
1736         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
1737         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
1738         (WebCore::FrameLoaderClientQt::dispatchDidLayout):
1739         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
1740         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
1741         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
1742         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
1743         (WebCore::FrameLoaderClientQt::restoreViewState):
1744         (WebCore::FrameLoaderClientQt::userAgent):
1745         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
1746         (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
1747         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
1748         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
1749         (WebCore::FrameLoaderClientQt::onIconLoadedForPageURL):
1750         (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
1751         (WebCore::FrameLoaderClientQt::saveViewStateToItem):
1752         (WebCore::FrameLoaderClientQt::cancelledError):
1753         (WebCore::FrameLoaderClientQt::blockedError):
1754         (WebCore::FrameLoaderClientQt::cannotShowURLError):
1755         (WebCore::FrameLoaderClientQt::interruptedForPolicyChangeError):
1756         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
1757         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
1758         (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
1759         (WebCore::FrameLoaderClientQt::download):
1760         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
1761         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
1762         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
1763         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
1764         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
1765         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
1766         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1767         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1768         (WebCore::FrameLoaderClientQt::startDownload):
1769         (WebCore::FrameLoaderClientQt::createFrame):
1770         (WebCore::FrameLoaderClientQt::createPlugin):
1771         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
1772         (WebCore::FrameLoaderClientQt::chooseFile):
1773         (WebCore::FrameLoaderClientQt::createNetworkingContext):
1774         (WebCore):
1775         (WebCore::FrameLoaderClientQt::webFrame):
1776         (WebCore::FrameLoaderClientQt::emitLoadStarted):
1777         (WebCore::FrameLoaderClientQt::emitLoadFinished):
1778         * WebCoreSupport/FrameLoaderClientQt.h:
1779         (FrameLoaderClientQt):
1780         * WebCoreSupport/FrameNetworkingContextQt.cpp:
1781         (WebCore::FrameNetworkingContextQt::FrameNetworkingContextQt):
1782         (WebCore::FrameNetworkingContextQt::create):
1783         (WebCore::FrameNetworkingContextQt::networkAccessManager):
1784         * WebCoreSupport/FrameNetworkingContextQt.h:
1785         (FrameNetworkingContextQt):
1786         * WebCoreSupport/FullScreenVideoQt.cpp:
1787         (WebCore):
1788         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
1789         * WebCoreSupport/FullScreenVideoQt.h:
1790         (WebCore):
1791         * WebCoreSupport/FullScreenVideoWidget.cpp:
1792         * WebCoreSupport/FullScreenVideoWidget.h:
1793         * WebCoreSupport/GeolocationClientQt.cpp:
1794         (WebCore::GeolocationClientQt::GeolocationClientQt):
1795         (WebCore::GeolocationClientQt::positionUpdated):
1796         (WebCore::GeolocationClientQt::startUpdating):
1797         (WebCore::GeolocationClientQt::requestPermission):
1798         (WebCore::GeolocationClientQt::cancelPermissionRequest):
1799         * WebCoreSupport/GeolocationClientQt.h:
1800         (GeolocationClientQt):
1801         * WebCoreSupport/GeolocationPermissionClientQt.cpp:
1802         (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
1803         (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
1804         (WebCore::GeolocationPermissionClientQt::setPermission):
1805         * WebCoreSupport/GeolocationPermissionClientQt.h:
1806         (GeolocationPermissionClientQt):
1807         * WebCoreSupport/InitWebCoreQt.cpp:
1808         (WebKit):
1809         (WebKit::setWebKitWidgetsInitCallback):
1810         (WebKit::initializeWebKitQt):
1811         (WebKit::setImagePlatformResource):
1812         (WebCore::initializeWebCoreQt):
1813         * WebCoreSupport/InitWebCoreQt.h:
1814         (WebCore):
1815         (WebKit):
1816         * WebCoreSupport/InitWebKitQt.cpp: Added.
1817         (WebKit):
1818         (WebKit::initializeWebKitWidgets):
1819         * WebCoreSupport/InitWebKitQt.h: Copied from Source/WebKit/qt/WebCoreSupport/QtWebComboBox.h.
1820         (WebKit):
1821         * WebCoreSupport/InspectorClientQt.cpp:
1822         (WebCore):
1823         (WebCore::InspectorClientQt::InspectorClientQt):
1824         (WebCore::InspectorClientQt::openInspectorFrontend):
1825         (WebCore::InspectorClientQt::attachAndReplaceRemoteFrontend):
1826         (WebCore::InspectorClientQt::detachRemoteFrontend):
1827         (WebCore::InspectorClientQt::hideHighlight):
1828         (WebCore::InspectorClientQt::sendMessageToFrontend):
1829         (WebCore::InspectorFrontendClientQt::InspectorFrontendClientQt):
1830         (WebCore::InspectorFrontendClientQt::updateWindowTitle):
1831         (WebCore::InspectorFrontendClientQt::destroyInspectorView):
1832         * WebCoreSupport/InspectorClientQt.h:
1833         (InspectorClientQt):
1834         (InspectorFrontendClientQt):
1835         * WebCoreSupport/InspectorClientWebPage.cpp: Added.
1836         (InspectorClientWebPage::InspectorClientWebPage):
1837         (InspectorClientWebPage::createWindow):
1838         (InspectorClientWebPage::javaScriptWindowObjectCleared):
1839         * WebCoreSupport/InspectorClientWebPage.h: Copied from Source/WebKit/qt/WebCoreSupport/WebSystemInterface.h.
1840         (WebKit):
1841         (InspectorClientWebPage):
1842         * WebCoreSupport/InspectorServerQt.cpp:
1843         (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
1844         (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
1845         * WebCoreSupport/InspectorServerQt.h:
1846         (InspectorServerQt):
1847         (InspectorServerRequestHandlerQt):
1848         * WebCoreSupport/NotificationPresenterClientQt.cpp:
1849         (WebCore::NotificationWrapper::NotificationWrapper):
1850         (WebCore::NotificationPresenterClientQt::displayNotification):
1851         (WebCore::NotificationPresenterClientQt::requestPermission):
1852         (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
1853         (WebCore::NotificationPresenterClientQt::dumpShowText):
1854         (WebCore::NotificationPresenterClientQt::toPage):
1855         (WebCore::NotificationPresenterClientQt::toFrame):
1856         * WebCoreSupport/NotificationPresenterClientQt.h:
1857         (WebCore::NotificationWrapper::~NotificationWrapper):
1858         (NotificationWrapper):
1859         (NotificationPresenterClientQt):
1860         (WebCore::NotificationPresenterClientQt::hasSystemTrayIcon):
1861         (WebCore::NotificationPresenterClientQt::setSystemTrayIcon):
1862         (CallbacksInfo):
1863         (WebCore):
1864         * WebCoreSupport/PageClientQt.cpp:
1865         (createPlatformGraphicsContext3DFromWidget):
1866         (QWebPageClient::ownerWindow):
1867         (WebCore::PageClientQWidget::ownerWidget):
1868         (WebCore::PageClientQWidget::createPlatformGraphicsContext3D):
1869         (WebCore::PageClientQGraphicsWidget::ownerWidget):
1870         (WebCore::PageClientQGraphicsWidget::createPlatformGraphicsContext3D):
1871         * WebCoreSupport/PageClientQt.h:
1872         (PageClientQWidget):
1873         (WebCore::QGraphicsItemOverlay::QGraphicsItemOverlay):
1874         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
1875         (PageClientQGraphicsWidget):
1876         * WebCoreSupport/PlatformStrategiesQt.cpp:
1877         (PlatformStrategiesQt::getPluginInfo):
1878         * WebCoreSupport/PopupMenuQt.cpp:
1879         (SelectData::SelectData):
1880         * WebCoreSupport/QGraphicsWidgetPluginImpl.cpp: Added.
1881         (QGraphicsWidgetPluginImpl::~QGraphicsWidgetPluginImpl):
1882         (QGraphicsWidgetPluginImpl::update):
1883         (QGraphicsWidgetPluginImpl::setGeometryAndClip):
1884         (QGraphicsWidgetPluginImpl::setVisible):
1885         (QGraphicsWidgetPluginImpl::setWidgetParent):
1886         (QGraphicsWidgetPluginImpl::handle):
1887         * WebCoreSupport/QGraphicsWidgetPluginImpl.h: Added.
1888         (QGraphicsWidgetPluginImpl):
1889         (QGraphicsWidgetPluginImpl::QGraphicsWidgetPluginImpl):
1890         * WebCoreSupport/QWebFrameAdapter.cpp: Added.
1891         (cacheLoadControlToCachePolicy):
1892         (QWebFrameData::QWebFrameData):
1893         (QWebFrameAdapter::QWebFrameAdapter):
1894         (QWebFrameAdapter::~QWebFrameAdapter):
1895         (QWebFrameAdapter::load):
1896         (QWebFrameAdapter::handleGestureEvent):
1897         (QWebFrameAdapter::scrollPosition):
1898         (QWebFrameAdapter::frameRect):
1899         (QWebFrameAdapter::init):
1900         (QWebFrameAdapter::kit):
1901         (QWebFrameAdapter::ensureAbsoluteUrl):
1902         * WebCoreSupport/QWebFrameAdapter.h: Added.
1903         (WebCore):
1904         (QWebFrameData):
1905         (QWebFrameAdapter):
1906         (QWebFrameAdapter::hasView):
1907         * WebCoreSupport/QWebPageAdapter.cpp: Added.
1908         (QWebPageAdapter::QWebPageAdapter):
1909         (QWebPageAdapter::~QWebPageAdapter):
1910         (QWebPageAdapter::init):
1911         (QWebPageAdapter::deletePage):
1912         (QWebPageAdapter::kit):
1913         (QWebPageAdapter::viewportArguments):
1914         (QWebPageAdapter::registerUndoStep):
1915         (QWebPageAdapter::setNetworkAccessManager):
1916         (QWebPageAdapter::networkAccessManager):
1917         * WebCoreSupport/QWebPageAdapter.h: Added.
1918         (WebCore):
1919         (QWebPageAdapter):
1920         (ErrorPageOption):
1921         (ErrorPageReturn):
1922         * WebCoreSupport/QWebUndoCommand.cpp: Copied from Source/WebKit/qt/WebCoreSupport/QtWebComboBox.h.
1923         (QWebUndoCommand::QWebUndoCommand):
1924         (QWebUndoCommand::undo):
1925         (QWebUndoCommand::redo):
1926         * WebCoreSupport/QWebUndoCommand.h: Copied from Source/WebKit/qt/WebCoreSupport/QtWebComboBox.h.
1927         (QWebUndoCommand):
1928         * WebCoreSupport/QWidgetPluginImpl.cpp: Added.
1929         (QWidgetPluginImpl::~QWidgetPluginImpl):
1930         (QWidgetPluginImpl::update):
1931         (QWidgetPluginImpl::setGeometryAndClip):
1932         (QWidgetPluginImpl::setVisible):
1933         (QWidgetPluginImpl::setStyleSheet):
1934         (QWidgetPluginImpl::setWidgetParent):
1935         (QWidgetPluginImpl::handle):
1936         * WebCoreSupport/QWidgetPluginImpl.h: Copied from Source/WebKit/qt/WebCoreSupport/QtWebComboBox.h.
1937         (QWidgetPluginImpl):
1938         (QWidgetPluginImpl::QWidgetPluginImpl):
1939         * WebCoreSupport/QtFallbackWebPopup.cpp:
1940         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
1941         (WebCore::QtFallbackWebPopup::show):
1942         (WebCore::QtFallbackWebPopup::pageClient):
1943         * WebCoreSupport/QtFallbackWebPopup.h:
1944         (QtFallbackWebPopup):
1945         * WebCoreSupport/QtPluginWidgetAdapter.h: Copied from Source/WebKit/qt/WebCoreSupport/QtWebComboBox.h.
1946         (QtPluginWidgetAdapter):
1947         * WebCoreSupport/QtWebComboBox.cpp:
1948         (WebCore::QtWebComboBox::showPopupAtCursorPosition):
1949         * WebCoreSupport/QtWebComboBox.h:
1950         * WebCoreSupport/SearchPopupMenuQt.h:
1951         (SearchPopupMenuQt):
1952         * WebCoreSupport/UndoStepQt.cpp:
1953         (UndoStepQt::UndoStepQt):
1954         (UndoStepQt::text):
1955         * WebCoreSupport/UndoStepQt.h:
1956         (UndoStepQt):
1957         * WebCoreSupport/WebEventConversion.cpp:
1958         (WebCore::mouseEventTypeAndMouseButtonFromQEvent):
1959         (WebKitPlatformWheelEvent):
1960         (WebCore::WebKitPlatformWheelEvent::applyDelta):
1961         (WebCore::WebKitPlatformWheelEvent::WebKitPlatformWheelEvent):
1962         (WebKitPlatformGestureEvent):
1963         (WebCore::toPlatformEventType):
1964         (WebCore::WebKitPlatformGestureEvent::WebKitPlatformGestureEvent):
1965         (WebCore):
1966         (WebCore::convertWheelEvent):
1967         (WebCore::convertGesture):
1968         * WebCoreSupport/WebEventConversion.h:
1969         (QGestureEventFacade):
1970         (WebCore):
1971         * WebCoreSupport/WebSystemInterface.h:
1972         * tests/qwebpage/tst_qwebpage.cpp:
1973         (tst_QWebPage::loadHtml5Video):
1974         (tst_QWebPage::multiplePageGroupsAndLocalStorage):
1975         (tst_QWebPage::thirdPartyCookiePolicy):
1976
1977 2012-11-21  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1978
1979         Position in QWebHitTestResult does not match documentation
1980         https://bugs.webkit.org/show_bug.cgi?id=102909
1981
1982         Reviewed by Simon Hausmann.
1983
1984         Correct documentation and simplify using the new innerNodeFrame method.
1985
1986         * Api/qwebframe.cpp:
1987         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1988
1989 2012-11-21  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1990
1991         Disambiguate innerNodeFramePoint and mainFramePoint
1992         https://bugs.webkit.org/show_bug.cgi?id=98139
1993
1994         Reviewed by Julien Chaffraix.
1995
1996         * Api/qwebframe.cpp:
1997         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1998         * Api/qwebpage.cpp:
1999         (QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch):
2000
2001 2012-11-20  Sheriff Bot  <webkit.review.bot@gmail.com>
2002
2003         Unreviewed, rolling out r135295.
2004         http://trac.webkit.org/changeset/135295
2005         https://bugs.webkit.org/show_bug.cgi?id=102834
2006
2007         This patch causes assertion to some layout tests on chromium
2008         (Requested by jianli on #webkit).
2009
2010         * Api/qwebframe.cpp:
2011         (QWebFrame::QWebFrame):
2012         (QWebFrame::load):
2013         (QWebFrame::setHtml):
2014         (QWebFrame::setContent):
2015         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2016         (DumpRenderTreeSupportQt::setAlternateHtml):
2017         * WebCoreSupport/FrameLoaderClientQt.cpp:
2018         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2019
2020 2012-11-20  James Simonsen  <simonjam@chromium.org>
2021
2022         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
2023         https://bugs.webkit.org/show_bug.cgi?id=102151
2024
2025         Reviewed by Adam Barth.
2026
2027         * Api/qwebframe.cpp:
2028         (QWebFrame::QWebFrame):
2029         (QWebFrame::load):
2030         (QWebFrame::setHtml):
2031         (QWebFrame::setContent):
2032         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2033         (DumpRenderTreeSupportQt::setAlternateHtml):
2034         (qt_dump_set_accepts_editing):
2035         * WebCoreSupport/FrameLoaderClientQt.cpp:
2036         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2037
2038 2012-11-18  Laszlo Gombos  <l.gombos@samsung.com>
2039
2040         [Qt] Remove remaining traces of symbian
2041         https://bugs.webkit.org/show_bug.cgi?id=102634
2042
2043         Reviewed by Kenneth Rohde Christiansen.
2044
2045         Remove symbian related part from the API documentation.
2046
2047         * Api/qgraphicswebview.cpp:
2048         * Api/qwebview.cpp:
2049
2050 2012-11-16  Kihong Kwon  <kihong.kwon@samsung.com>
2051
2052         Add DeviceController base-class to remove duplication of DeviceXXXControler
2053         https://bugs.webkit.org/show_bug.cgi?id=96894
2054
2055         Reviewed by Hajime Morita.
2056
2057         Change client() to deviceOrientationClient() to get DeviceOrientationClient*.
2058
2059         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2060         (DumpRenderTreeSupportQt::setMockDeviceOrientation):
2061
2062 2012-11-14  Csaba Osztrogonác  <ossy@webkit.org>
2063
2064         [Qt] Fix tst_QWebFrame::setUrlWithPendingLoads() API test
2065         https://bugs.webkit.org/show_bug.cgi?id=63237
2066
2067         Reviewed by Jocelyn Turcotte.
2068
2069         Uncomment this API test, because it works fine now.
2070
2071         * tests/qwebframe/tst_qwebframe.cpp:
2072         (tst_QWebFrame):
2073         (tst_QWebFrame::setUrlWithPendingLoads):
2074
2075 2012-11-14  Andras Becsi  <andras.becsi@digia.com>
2076
2077         [Qt] QStyleFacadeImp should use a QPointer to store the application style
2078         https://bugs.webkit.org/show_bug.cgi?id=102084
2079
2080         Reviewed by Simon Hausmann.
2081
2082         QStyleFacadeImp implicitly creates a default style during the first
2083         call to QApplication::style() in QStyleFacadeImp::style() but this
2084         style is deleted when a custom style is set, thus the stored m_style
2085         raw pointer in QStyleFacadeImp becomes dangling.
2086         Use a QPointer to cache the style instead of a raw pointer.
2087
2088         This fixes the start-up crash in the anomaly example.
2089         (https://bugreports.qt-project.org/browse/QTBUG-27924)
2090
2091         * WebCoreSupport/QStyleFacadeImp.h:
2092         (QStyleFacadeImp):
2093
2094 2012-11-13  Andreas Kling  <kling@webkit.org>
2095
2096         Move inline style logic from ElementAttributeData to StyledElement.
2097         <http://webkit.org/b/102120>
2098
2099         Reviewed by Antti Koivisto.
2100
2101         * Api/qwebelement.cpp:
2102         (QWebElement::styleProperty):
2103
2104 2012-11-09  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2105
2106         [Qt] Fix tst_QWebPage::findText
2107
2108         Reviewed by Simon Hausmann.
2109
2110         Details of the failure:
2111         FAIL!  : tst_QWebPage::findText() Compared values are not the same
2112            Actual   (m_page->selectedHtml().trimmed().replace(regExp, "")): <span>foo</span>
2113            Expected (subString): foo
2114            Loc: [/home/joce/dev/webkit/Source/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp(2964)]
2115
2116         The format returned by selectedHtml changed.
2117         Make the test a bit more robust by just checking that the HTML
2118         contains our search value.
2119
2120         * tests/qwebpage/tst_qwebpage.cpp:
2121         (tst_QWebPage::findText):
2122
2123 2012-11-09  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2124
2125         [Qt] Fix tst_QWebPage::testLocalStorageVisibility
2126
2127         Reviewed by Simon Hausmann.
2128
2129         window.localStorage is expected to work for file URLs.
2130         I'm not sure why it did work when this test was written,
2131         but I believe that it had the wrong expected value.
2132
2133         * tests/qwebpage/tst_qwebpage.cpp:
2134
2135 2012-11-08  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2136
2137         [Qt] Fix tst_QObjectBridge::callQtInvokable
2138
2139         Reviewed by Simon Hausmann.
2140
2141         Q_DECLARE_METATYPE now calls qRegisterMetaType so just prevent
2142         the value from being wrapped by QVariant since this code shouldn't
2143         be reached anyway.
2144
2145         * tests/qobjectbridge/tst_qobjectbridge.cpp:
2146         (MyQObject::myInvokableWithBrushStyleArg):
2147
2148 2012-11-08  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2149
2150         [Qt] Fix tst_QWebPage::inputMethods
2151
2152         Reviewed by Simon Hausmann.
2153
2154         Details of the failure:
2155         FAIL!  : tst_QWebPage::inputMethods(QWebView) Compared values are not the same
2156            Actual (page->settings()->fontFamily(QWebSettings::SerifFont)): FooSerifFont
2157            Expected (font.family()): Helvetica
2158            Loc: [Source/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp(1691)]
2159
2160         The issue was that WebCore wouldn't find FooSerifFont and would have
2161         RenderStyle::font() return the fallback font it used instead.
2162
2163         * tests/qwebpage/tst_qwebpage.cpp:
2164         (tst_QWebPage::inputMethods):
2165
2166 2012-11-09  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2167
2168         [Qt] Fix tst_QWebPage::showModalDialog() API test
2169         https://bugs.webkit.org/show_bug.cgi?id=63244
2170
2171         Reviewed by Simon Hausmann.
2172
2173         * tests/qwebpage/tst_qwebpage.cpp:
2174
2175 2012-11-09  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2176
2177         [Qt] tst_QWebElement::style() fails because QWebElement::InlineStyle now works as expected
2178         https://bugs.webkit.org/show_bug.cgi?id=60372
2179
2180         Reviewed by Simon Hausmann.
2181
2182         Update the expected value to follow this comment in StylePropertySet::addParsedProperty:
2183         "Only add properties that have no !important counterpart present"
2184
2185         * tests/qwebelement/tst_qwebelement.cpp:
2186         (tst_QWebElement::style):
2187
2188 2012-11-09  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2189
2190         [Qt] tst_QWebElement::style() fails because QWebElement::CascadedStyle doesn't work as expected
2191         https://bugs.webkit.org/show_bug.cgi?id=65244
2192
2193         Reviewed by Kenneth Rohde Christiansen.
2194
2195         StyleResolver::styleRulesForElement now takes flags as parameter instead of a bool to specify
2196         that we want to exclude UI and user style sheets.
2197
2198         * Api/qwebelement.cpp:
2199         (QWebElement::styleProperty):
2200         * tests/qwebelement/tst_qwebelement.cpp:
2201         (tst_QWebElement::style):
2202
2203 2012-11-09  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2204
2205         [Qt] Appending "!important" to the property value of QWebElement::setStyleProperty isn't working
2206         https://bugs.webkit.org/show_bug.cgi?id=101763
2207
2208         Reviewed by Kenneth Rohde Christiansen.
2209
2210         In the pastWebCore have been considering the important token of a CSS
2211         property value if it was followed by !important as well as the
2212         important parameter of setInlineStyleProperty, but not anymore.
2213
2214         Since we need to keep the behavior compatible, do the parsing of the
2215         value and extract the token if present. Ideally this would be passed
2216         as a parameter to the function but I think it's not worth deprecating
2217         the old mechanism.
2218         The parsing is pretty dumb, so this will break applications that
2219         passed a value with spaces between the "!" and "important".
2220
2221         This fixes part of tst_QWebElement::style
2222
2223         * Api/qwebelement.cpp:
2224         (QWebElement::setStyleProperty):
2225
2226 2012-11-09  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2227
2228         [Qt] Fix URL issues in tst_qwebframe
2229         https://bugs.webkit.org/show_bug.cgi?id=101741
2230
2231         Reviewed by Simon Hausmann.
2232
2233         * tests/qwebframe/tst_qwebframe.cpp:
2234         (FakeReply::FakeReply):
2235         Properly forward the request URL to our custom reply.
2236         This would cause redirections not to occur. The requestedUrl and setUrlSameUrl tests
2237         would fail because of this.
2238
2239         (tst_QWebFrame::setUrlToInvalid):
2240         - http:/example.com is a valid URL, but not a valid HTTP URL, so remove this check.
2241         - QCOMPARE uses testlib's toString on the QUrls to compare them and it now
2242         also output the error description. Since we want to compare the resulting
2243         URL instead, compare their toEncoded() value.
2244
2245 2012-11-08  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2246
2247         [Qt] Fix a crash in tst_QWebInspector::attachAndDestroy
2248         https://bugs.webkit.org/show_bug.cgi?id=101575
2249
2250         Reviewed by Simon Hausmann.
2251
2252         It can now happen that destroyInspectorView is called when the Page
2253         is destroyed. This would call getOrCreateInspector and re-create a
2254         QWebInspector.
2255
2256         Since the new instance is created after our setInspector(0) cleanup
2257         in ~QWebPagePrivate, this runs into the same crash that this line was
2258         protecting us against.
2259
2260         * WebCoreSupport/InspectorClientQt.cpp:
2261         (WebCore::InspectorFrontendClientQt::destroyInspectorView):
2262
2263 2012-11-08  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2264
2265         [Qt] Fix tst_QWebPage::inputMethods on Qt5
2266         https://bugs.webkit.org/show_bug.cgi?id=101571
2267
2268         Reviewed by Simon Hausmann.
2269
2270         QEvent::RequestSoftwareInputPanel isn't passed through event filters anymore.
2271         Use QInputMethodPrivate::testContext instead to capture input method events,
2272         the same way as qtbase tests like tst_QTextEdit are doing.
2273
2274         * tests/qwebpage/tst_qwebpage.cpp:
2275         (TestInputContext::TestInputContext):
2276         (TestInputContext::~TestInputContext):
2277         (TestInputContext):
2278         (TestInputContext::showInputPanel):
2279         (TestInputContext::hideInputPanel):
2280         (TestInputContext::isInputPanelVisible):
2281         (tst_QWebPage::inputMethods):
2282
2283 2012-11-09  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2284
2285         [Qt] Unmark now passing tests
2286         https://bugs.webkit.org/show_bug.cgi?id=65531
2287
2288         Reviewed by Csaba Osztrogonác.
2289
2290         * tests/qwebpage/tst_qwebpage.cpp:
2291         (tst_QWebPage::viewModes):
2292
2293 2012-11-07  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2294
2295         [Qt] API test tst_qwebinspector crashes
2296         https://bugs.webkit.org/show_bug.cgi?id=101599
2297
2298         Reviewed by Simon Hausmann.
2299
2300         Delete the internal inspector from QWebPage destructor, instead of causing recursions
2301         between QWebPagePrivate::setInspector and QWebInspector::setPage.
2302
2303         Also separate the three tests in tst_QWebInspector to better tell which one is failing.
2304
2305         * Api/qwebpage.cpp:
2306         (QWebPagePrivate::~QWebPagePrivate):
2307         (QWebPagePrivate::setInspector):
2308         * tests/qwebinspector/tst_qwebinspector.cpp:
2309         (tst_QWebInspector):
2310         (tst_QWebInspector::attachAndDestroyPageFirst):
2311         (tst_QWebInspector::attachAndDestroyInspectorFirst):
2312         (tst_QWebInspector::attachAndDestroyInternalInspector):
2313
2314 2012-11-08  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2315
2316         [Qt] Open link in this window action
2317         https://bugs.webkit.org/show_bug.cgi?id=101226
2318
2319         Reviewed by Csaba Osztrogonác.
2320
2321         * Api/qwebpage.cpp: Fix after r133763, move the initialization of OpenLinkInThisWindow to the proper place.
2322
2323 2012-11-07  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2324
2325         [Qt] Open link in this window action
2326         https://bugs.webkit.org/show_bug.cgi?id=101226
2327
2328         Reviewed by Simon Hausmann.
2329
2330         Adds the action to QtWebKit.
2331
2332         * Api/qwebpage.cpp:
2333         (webActionForContextMenuAction):
2334         (QWebPage::triggerAction):
2335         (QWebPage::action):
2336         * Api/qwebpage.h:
2337
2338 2012-11-01  Stephen White  <senorblanco@chromium.org>
2339
2340         Unreviewed, rolling out r133143.
2341         http://trac.webkit.org/changeset/133143
2342         https://bugs.webkit.org/show_bug.cgi?id=96894
2343
2344         Causing content_browsertests failures
2345
2346         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2347         (DumpRenderTreeSupportQt::setMockDeviceOrientation):
2348
2349 2012-11-01  Kihong Kwon  <kihong.kwon@samsung.com>
2350
2351         Add DeviceController base-class to remove duplication of DeviceXXXControler
2352         https://bugs.webkit.org/show_bug.cgi?id=96894
2353
2354         Reviewed by Hajime Morita.
2355
2356         Change client() to deviceOrientationClient() to get DeviceOrientationClient*.
2357
2358         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2359         (DumpRenderTreeSupportQt::setMockDeviceOrientation):
2360
2361 2012-10-31  Sheriff Bot  <webkit.review.bot@gmail.com>
2362
2363         Unreviewed, rolling out r133016.
2364         http://trac.webkit.org/changeset/133016
2365         https://bugs.webkit.org/show_bug.cgi?id=100856
2366
2367         broke compile-webkit on several bots (Requested by podivilov
2368         on #webkit).
2369
2370         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2371         (DumpRenderTreeSupportQt::setMockDeviceOrientation):
2372
2373 2012-10-31  Kihong Kwon  <kihong.kwon@samsung.com>
2374
2375         Add DeviceController base-class to remove duplication of DeviceXXXControler
2376         https://bugs.webkit.org/show_bug.cgi?id=96894
2377
2378         Reviewed by Hajime Morita.
2379
2380         Change client() to deviceOrientationClient() to get DeviceOrientationClient*.
2381
2382         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2383         (DumpRenderTreeSupportQt::setMockDeviceOrientation):
2384
2385 2012-10-30  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2386
2387         [QT][DRT] Remove unneeded testRunner.setMediaType() implementation
2388         https://bugs.webkit.org/show_bug.cgi?id=100740
2389
2390         Reviewed by Kenneth Rohde Christiansen.
2391
2392         Removed unneeded testRunner.setMediaType() implementation, as tests use
2393         cross-platform window.internals.settings.setMediaTypeOverride instead.
2394
2395         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2396         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2397
2398 2012-10-24  Brady Eidson  <beidson@apple.com>
2399
2400         Add a strategy for loader customization.
2401         https://bugs.webkit.org/show_bug.cgi?id=100278
2402
2403         Reviewed by Alexey Proskuryakov.
2404
2405         * WebCoreSupport/PlatformStrategiesQt.cpp:
2406         (PlatformStrategiesQt::createLoaderStrategy):
2407         * WebCoreSupport/PlatformStrategiesQt.h:
2408         (PlatformStrategiesQt):
2409
2410 2012-10-23  Alexey Proskuryakov  <ap@apple.com>
2411
2412         Add a strategy for shared workers
2413         https://bugs.webkit.org/show_bug.cgi?id=100165
2414
2415         Reviewed by Brady Eidson.
2416
2417         * WebCoreSupport/PlatformStrategiesQt.cpp:
2418         (PlatformStrategiesQt::createPasteboardStrategy):
2419         (PlatformStrategiesQt::createSharedWorkerStrategy):
2420         (PlatformStrategiesQt::createVisitedLinkStrategy):
2421         * WebCoreSupport/PlatformStrategiesQt.h:
2422
2423 2012-10-24  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2424
2425         [Qt] Expose useful WebCore::Settings
2426         https://bugs.webkit.org/show_bug.cgi?id=100239
2427
2428         Reviewed by Kenneth Rohde Christiansen.
2429
2430         Expose the two settings CaretBrowsingEnabled and NotificationsEnabled.
2431
2432         * Api/qwebsettings.cpp:
2433         (QWebSettingsPrivate::apply):
2434         (QWebSettings::QWebSettings):
2435         * Api/qwebsettings.h:
2436
2437 2012-10-23  Andras Becsi  <andras.becsi@digia.com>
2438
2439         Remove devicePixelRatio from ViewportAttributes
2440         https://bugs.webkit.org/show_bug.cgi?id=99845
2441
2442         Reviewed by Adam Barth.
2443
2444         Pass the device pixel ratio as a function argument to
2445         match the new API.
2446
2447         * Api/qwebpage.cpp:
2448         (QWebPage::viewportAttributesForSize):
2449         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2450         (DumpRenderTreeSupportQt::viewportAsText):
2451
2452 2012-10-23  Simon Hausmann  <simon.hausmann@digia.com>
2453
2454         Unreviewed build fix with newer Qt 5.
2455
2456         QPlastiqueStyle has been removed, but as pointed out by Jens it's also not
2457         maintained anymore and hence safe to remove. We can do tweaks with the new
2458         fusion style if required.
2459
2460         * WebCoreSupport/QStyleFacadeImp.cpp:
2461         (WebKit::QStyleFacadeImp::paintInnerSpinButton):
2462
2463 2012-10-22  Simon Hausmann  <simon.hausmann@digia.com>
2464
2465         [Qt] Fix build without QtWidgets
2466         https://bugs.webkit.org/show_bug.cgi?id=99981
2467
2468         Reviewed by Tor Arne Vestbø.
2469
2470         Remove dependency to QtWidgets that is not needed here anymore since
2471         the removal of the QtQuick1 code.
2472
2473         * declarative/experimental/experimental.pri:
2474         * declarative/public.pri:
2475
2476 2012-10-22  Jocelyn Turcotte  <jocelyn.turcotte@digia.com>
2477
2478         [Qt] Fix "ASSERTION FAILED: !document->inPageCache()" when loading a page
2479         https://bugs.webkit.org/show_bug.cgi?id=98514
2480
2481         Reviewed by Kenneth Rohde Christiansen.
2482
2483         * WebCoreSupport/FrameLoaderClientQt.cpp:
2484         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): Use FrameView::fixedVisibleContentRect
2485         instead of FrameView::visibleContentRect as the source to always keep the correct state.
2486
2487 2012-10-22  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2488
2489         [Qt] Basic gesture event handling
2490         https://bugs.webkit.org/show_bug.cgi?id=66173
2491
2492         Reviewed by Simon Hausmann.
2493
2494         Implement basic handling of QGestureEvent converting and forwarding
2495         Tap and TapAndHold gestures to WebCore.
2496
2497         * Api/qwebpage.cpp:
2498         (QWebPagePrivate::gestureEvent):
2499         (QWebPage::event):
2500         * Api/qwebpage_p.h:
2501         (QWebPagePrivate):
2502         * WebCoreSupport/WebEventConversion.cpp:
2503         (WebKitPlatformGestureEvent):
2504         (WebCore::WebKitPlatformGestureEvent::WebKitPlatformGestureEvent):
2505         (WebCore::convertGesture):
2506         * WebCoreSupport/WebEventConversion.h:
2507
2508 2012-10-17  Tor Arne Vestbø  <tor.arne.vestbo@digia.com>
2509
2510         [Qt] Modularize documentation for QtWebKit
2511
2512         Running 'make docs' would fail unless 'make qmake_all' was ran first,
2513         but qmake_all involved generating all the derived sources, which seems
2514         overly complex just for building documentation.
2515
2516         We solve this by preventing all subdirs except QtWebKit from having a
2517         docs target. This would normally work fine on its own, but since we
2518         use CONFIG += ordered, there's now a missing doc target for the
2519         immediate dependency of the QtWebKit subdir. We solve this by adding
2520         a dummy-target ourselves.
2521
2522         Finally, we clean up the qdocconf file to match the rest of the Qt
2523         documentation modularization efforts.
2524
2525         Reviewed by Simon Hausmann.
2526
2527         * docs/docs.pri: Removed.
2528         * docs/qtwebkit.qdocconf: Removed.
2529
2530 2012-10-15  Simon Hausmann  <simon.hausmann@digia.com>
2531
2532         [Qt] Separate Qt WebKit into Qt WebKit and Qt WebKit Widgets
2533         https://bugs.webkit.org/show_bug.cgi?id=88162
2534
2535         Reviewed by Kenneth Rohde Christiansen.
2536
2537         Rename the QtWebKit module to QtWebKitWidgets.
2538
2539         * declarative/experimental/experimental.pri:
2540         * declarative/public.pri:
2541         * docs/webkitsnippets/simple/simple.pro:
2542         * docs/webkitsnippets/webpage/webpage.pro:
2543         * tests/tests.pri:
2544
2545 2012-10-10  Jon Lee  <jonlee@apple.com>
2546
2547         [WK2] Activate plugins when user clicks on snapshot
2548         https://bugs.webkit.org/show_bug.cgi?id=98328
2549         <rdar://problem/12426681>
2550
2551         Reviewed by Brady Eidson.
2552
2553         * WebCoreSupport/FrameLoaderClientQt.h:
2554         (WebCore::FrameLoaderClientQt::recreatePlugin): Stub implementation of recreatePlugin().
2555
2556 2012-10-10  Balazs Kelemen  <kbalazs@webkit.org>
2557
2558         [Qt] Test drivers should handle repaint rects
2559         https://bugs.webkit.org/show_bug.cgi?id=68870
2560
2561         Reviewed by Zoltan Herczeg.
2562
2563         Added helpers to enable and get the repaint rects.
2564
2565         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2566         (DumpRenderTreeSupportQt::setTrackRepaintRects):
2567         (DumpRenderTreeSupportQt::trackRepaintRects):
2568         (DumpRenderTreeSupportQt::getTrackedRepaintRects):
2569         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2570
2571 2012-10-08  Simon Hausmann  <simon.hausmann@digia.com>
2572
2573         [Qt] Make RenderThemeQStyle/ScrollbarThemeQStyle compile without QStyle/QtWidgets
2574         https://bugs.webkit.org/show_bug.cgi?id=98268
2575
2576         Reviewed by Tor Arne Vestbø.
2577
2578         Extracted QStyle/QWidget related code into a QWebStyle class that implements the QStyleFacade interface.
2579
2580         QStyleFacade is a pure interface that lives in WebCore/platform/qt
2581         (next to RenderThemeQStyle and ScrollbarThemeQStyle) and provides a
2582         minimal interface of what we need to draw with QStyle as well as basic
2583         hit testing and metric retrieval. It also provides a
2584         QStyleFacadeOption class that aggregates common meta-data for
2585         rendering primitives, such as direction, rectangle, state (sunken,
2586         enabled, etc.) or palette. It also provides some more slider/scrollbar
2587         specific fields in a slider sub-structure.
2588
2589         RenderThemeQStyle/ScrollbarThemeQStyle used to instantiate specific QStyleOption sub-classes and populate
2590         them with state information from render objects, before calling straight to QStyle. Most of the common code
2591         was encapsulated in StylePainterQStyle.
2592
2593         The new RenderThemeQStyle/ScrolllbarThemeQStyle uses common code in
2594         StylePainterQStyle to populate state into QStyleFacadeOption before
2595         calling into QStyleFacade.
2596
2597         The style facade is then implemented by QStyleFacadeImp, which extracts
2598         meta-data from QStyleFacadeOption arguments, populates style
2599         primitive specific QStyleOption objects and then calls on QStyle.
2600
2601         RenderThemeQStyle/ScrollbarThemeQStyle can only use interface methods
2602         from QStyleFacade. QStyleFacadeImp on the other hand will live in the
2603         separate QtWebKitWidgets library in the future and therefore cannot use
2604         any WebCore types.
2605
2606         * WebCoreSupport/InitWebCoreQt.cpp:
2607         (WebCore::initializeWebCoreQt):
2608         * WebCoreSupport/QStyleFacadeImp.cpp: Added.
2609         (WebKit):
2610         (WebKit::convertToQStyleState):
2611         (WebKit::convertToQStyleSubControl):
2612         (WebKit::initGenericStyleOption):
2613         (WebKit::initSpecificStyleOption):
2614         (MappedStyleOption):
2615         (WebKit::MappedStyleOption::MappedStyleOption):
2616         (WebKit::convertPixelMetric):
2617         (WebKit::convertToQStyleFacadeSubControl):
2618         (WebKit::QStyleFacadeImp::QStyleFacadeImp):
2619         (WebKit::QStyleFacadeImp::~QStyleFacadeImp):
2620         (WebKit::QStyleFacadeImp::buttonSubElementRect):
2621         (WebKit::QStyleFacadeImp::findFrameLineWidth):
2622         (WebKit::QStyleFacadeImp::simplePixelMetric):
2623         (WebKit::QStyleFacadeImp::buttonMargin):
2624         (WebKit::QStyleFacadeImp::sliderLength):
2625         (WebKit::QStyleFacadeImp::sliderThickness):
2626         (WebKit::QStyleFacadeImp::progressBarChunkWidth):
2627         (WebKit::QStyleFacadeImp::getButtonMetrics):
2628         (WebKit::QStyleFacadeImp::sizeFromContents):
2629         (WebKit::QStyleFacadeImp::paintButton):
2630         (WebKit::QStyleFacadeImp::paintTextField):
2631         (WebKit::QStyleFacadeImp::paintComboBox):
2632         (WebKit::QStyleFacadeImp::paintComboBoxArrow):
2633         (WebKit::QStyleFacadeImp::paintSliderTrack):
2634         (WebKit::QStyleFacadeImp::paintSliderThumb):
2635         (WebKit::QStyleFacadeImp::paintInnerSpinButton):
2636         (WebKit::QStyleFacadeImp::paintProgressBar):
2637         (WebKit::QStyleFacadeImp::scrollBarExtent):
2638         (WebKit::QStyleFacadeImp::scrollBarMiddleClickAbsolutePositionStyleHint):
2639         (WebKit::QStyleFacadeImp::paintScrollCorner):
2640         (WebKit::QStyleFacadeImp::hitTestScrollBar):
2641         (WebKit::QStyleFacadeImp::scrollBarSubControlRect):
2642         (WebKit::QStyleFacadeImp::paintScrollBar):
2643         (WebKit::QStyleFacadeImp::widgetForPainter):
2644         (WebKit::QStyleFacadeImp::style):
2645         * WebCoreSupport/QStyleFacadeImp.h: Added.
2646         (WebCore):
2647         (WebKit):
2648         (QStyleFacadeImp):
2649         (WebKit::QStyleFacadeImp::create):
2650         (WebKit::QStyleFacadeImp::isValid):
2651
2652 2012-10-08  Zoltan Horvath  <zoltan@webkit.org>
2653
2654         [Qt] r122720 causes performance regression with DirectFB on ARMv7
2655         https://bugs.webkit.org/show_bug.cgi?id=97548
2656
2657         Reviewed by Jocelyn Turcotte.
2658
2659         Revert the rest of r122720. This change modifies the NativeImagePtr from QImage* to QPixmap*.
2660
2661         Covered by existing tests.
2662
2663         * Api/qwebframe.cpp:
2664         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
2665         * Api/qwebhistory.cpp:
2666         (QWebHistoryItem::icon):
2667         * Api/qwebsettings.cpp:
2668         (QWebSettings::iconForUrl):
2669         (QWebSettings::setWebGraphic):
2670         (QWebSettings::webGraphic):
2671         * WebCoreSupport/DragClientQt.cpp:
2672         (WebCore::DragClientQt::startDrag):
2673         * WebCoreSupport/InitWebCoreQt.cpp:
2674         (WebCore::initializeWebCoreQt):
2675
2676 2012-10-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2677
2678         Rename first/second to key/value in HashMap iterators
2679         https://bugs.webkit.org/show_bug.cgi?id=82784
2680
2681         Reviewed by Eric Seidel.
2682
2683         * Api/qwebpage.cpp:
2684         (extractContentTypeFromPluginVector):
2685         * Api/qwebplugindatabase.cpp:
2686         (QWebPluginInfo::mimeTypes):
2687         * WebCoreSupport/PlatformStrategiesQt.cpp:
2688         (PlatformStrategiesQt::getPluginInfo):
2689
2690 2012-10-05  Simon Hausmann  <simon.hausmann@digia.com>
2691
2692         Unreviewed, rolling out r130495.
2693         http://trac.webkit.org/changeset/130495
2694         https://bugs.webkit.org/show_bug.cgi?id=98268
2695
2696         Made WK2 tests crash.
2697
2698         * WebCoreSupport/InitWebCoreQt.cpp:
2699         (WebCore::initializeWebCoreQt):
2700         * WebCoreSupport/QStyleFacadeImp.cpp: Removed.
2701         * WebCoreSupport/QStyleFacadeImp.h: Removed.
2702         * WebCoreSupport/RenderThemeQStyle.cpp: Renamed from Source/WebCore/platform/qt/RenderThemeQStyle.cpp.
2703         (WebCore):
2704         (WebCore::initStyleOption):
2705         (WebCore::RenderThemeQStyle::getStylePainter):
2706         (WebCore::StylePainterQStyle::StylePainterQStyle):
2707         (WebCore::StylePainterQStyle::init):
2708         (WebCore::RenderThemeQStyle::create):
2709         (WebCore::RenderThemeQStyle::RenderThemeQStyle):
2710         (WebCore::RenderThemeQStyle::~RenderThemeQStyle):
2711         (WebCore::RenderThemeQStyle::fallbackStyle):
2712         (WebCore::RenderThemeQStyle::setPaletteFromPageClientIfExists):
2713         (WebCore::RenderThemeQStyle::qStyle):
2714         (WebCore::RenderThemeQStyle::findFrameLineWidth):
2715         (WebCore::RenderThemeQStyle::inflateButtonRect):
2716         (WebCore::RenderThemeQStyle::computeSizeBasedOnStyle):
2717         (WebCore::RenderThemeQStyle::adjustButtonStyle):
2718         (WebCore::RenderThemeQStyle::setButtonPadding):
2719         (WebCore::RenderThemeQStyle::paintButton):
2720         (WebCore::RenderThemeQStyle::paintTextField):
2721         (WebCore::RenderThemeQStyle::adjustTextAreaStyle):
2722         (WebCore::RenderThemeQStyle::paintTextArea):
2723         (WebCore::RenderThemeQStyle::setPopupPadding):
2724         (WebCore::RenderThemeQStyle::colorPalette):
2725         (WebCore::RenderThemeQStyle::paintMenuList):
2726         (WebCore::RenderThemeQStyle::adjustMenuListButtonStyle):
2727         (WebCore::RenderThemeQStyle::paintMenuListButton):
2728         (WebCore::RenderThemeQStyle::animationDurationForProgressBar):
2729         (WebCore::RenderThemeQStyle::paintProgressBar):
2730         (WebCore::RenderThemeQStyle::paintSliderTrack):
2731         (WebCore::RenderThemeQStyle::adjustSliderTrackStyle):
2732         (WebCore::RenderThemeQStyle::paintSliderThumb):
2733         (WebCore::RenderThemeQStyle::adjustSliderThumbStyle):
2734         (WebCore::RenderThemeQStyle::paintSearchField):
2735         (WebCore::RenderThemeQStyle::adjustSearchFieldDecorationStyle):
2736         (WebCore::RenderThemeQStyle::paintSearchFieldDecoration):
2737         (WebCore::RenderThemeQStyle::adjustSearchFieldResultsDecorationStyle):
2738         (WebCore::RenderThemeQStyle::paintSearchFieldResultsDecoration):
2739         (WebCore::RenderThemeQStyle::paintInnerSpinButton):
2740         (WebCore::RenderThemeQStyle::initializeCommonQStyleOptions):
2741         (WebCore::RenderThemeQStyle::adjustSliderThumbSize):
2742         * WebCoreSupport/RenderThemeQStyle.h: Renamed from Source/WebCore/platform/qt/RenderThemeQStyle.h.
2743         (WebCore):
2744         (RenderThemeQStyle):
2745         (StylePainterQStyle):
2746         (WebCore::StylePainterQStyle::isValid):
2747         (WebCore::StylePainterQStyle::drawPrimitive):
2748         (WebCore::StylePainterQStyle::drawControl):
2749         (WebCore::StylePainterQStyle::drawComplexControl):
2750         * WebCoreSupport/ScrollbarThemeQStyle.cpp: Renamed from Source/WebCore/platform/qt/ScrollbarThemeQStyle.cpp.
2751         (WebCore):
2752         (WebCore::ScrollbarThemeQStyle::~ScrollbarThemeQStyle):
2753         (WebCore::scPart):
2754         (WebCore::scrollbarPart):
2755         (WebCore::styleOptionSlider):
2756         (WebCore::ScrollbarThemeQStyle::paint):
2757         (WebCore::ScrollbarThemeQStyle::hitTest):
2758         (WebCore::ScrollbarThemeQStyle::shouldCenterOnThumb):
2759         (WebCore::ScrollbarThemeQStyle::invalidatePart):
2760         (WebCore::ScrollbarThemeQStyle::scrollbarThickness):
2761         (WebCore::ScrollbarThemeQStyle::thumbPosition):
2762         (WebCore::ScrollbarThemeQStyle::thumbLength):
2763         (WebCore::ScrollbarThemeQStyle::trackPosition):
2764         (WebCore::ScrollbarThemeQStyle::trackLength):
2765         (WebCore::ScrollbarThemeQStyle::paintScrollCorner):
2766         (WebCore::ScrollbarThemeQStyle::style):
2767         * WebCoreSupport/ScrollbarThemeQStyle.h: Renamed from Source/WebCore/platform/qt/ScrollbarThemeQStyle.h.
2768         (WebCore):
2769         (ScrollbarThemeQStyle):
2770
2771 2012-10-05  Simon Hausmann  <simon.hausmann@digia.com>
2772
2773         [Qt] Make RenderThemeQStyle/ScrollbarThemeQStyle compile without QStyle/QtWidgets
2774         https://bugs.webkit.org/show_bug.cgi?id=98268
2775
2776         Reviewed by Tor Arne Vestbø.
2777
2778         Extracted QStyle/QWidget related code into a QWebStyle class that implements the QStyleFacade interface.
2779
2780         QStyleFacade is a pure interface that lives in WebCore/platform/qt
2781         (next to RenderThemeQStyle and ScrollbarThemeQStyle) and provides a
2782         minimal interface of what we need to draw with QStyle as well as basic
2783         hit testing and metric retrieval. It also provides a
2784         QStyleFacadeOption class that aggregates common meta-data for
2785         rendering primitives, such as direction, rectangle, state (sunken,
2786         enabled, etc.) or palette. It also provides some more slider/scrollbar
2787         specific fields in a slider sub-structure.
2788
2789         RenderThemeQStyle/ScrollbarThemeQStyle used to instantiate specific QStyleOption sub-classes and populate
2790         them with state information from render objects, before calling straight to QStyle. Most of the common code
2791         was encapsulated in StylePainterQStyle.
2792
2793         The new RenderThemeQStyle/ScrolllbarThemeQStyle uses common code in
2794         StylePainterQStyle to populate state into QStyleFacadeOption before
2795         calling into QStyleFacade.
2796
2797         The style facade is then implemented by QStyleFacadeImp, which extracts
2798         meta-data from QStyleFacadeOption arguments, populates style
2799         primitive specific QStyleOption objects and then calls on QStyle.
2800
2801         RenderThemeQStyle/ScrollbarThemeQStyle can only use interface methods
2802         from QStyleFacade. QStyleFacadeImp on the other hand will live in the
2803         separate QtWebKitWidgets library in the future and therefore cannot use
2804         any WebCore types.
2805
2806         * WebCoreSupport/InitWebCoreQt.cpp:
2807         (WebCore::initializeWebCoreQt):
2808         * WebCoreSupport/QStyleFacadeImp.cpp: Added.
2809         (WebKit):
2810         (WebKit::convertToQStyleState):
2811         (WebKit::convertToQStyleSubControl):
2812         (WebKit::initGenericStyleOption):
2813         (WebKit::initSpecificStyleOption):
2814         (MappedStyleOption):
2815         (WebKit::MappedStyleOption::MappedStyleOption):
2816         (WebKit::convertPixelMetric):
2817         (WebKit::convertToQStyleFacadeSubControl):
2818         (WebKit::QStyleFacadeImp::QStyleFacadeImp):
2819         (WebKit::QStyleFacadeImp::~QStyleFacadeImp):
2820         (WebKit::QStyleFacadeImp::buttonSubElementRect):
2821         (WebKit::QStyleFacadeImp::findFrameLineWidth):
2822         (WebKit::QStyleFacadeImp::simplePixelMetric):
2823         (WebKit::QStyleFacadeImp::buttonMargin):
2824         (WebKit::QStyleFacadeImp::sliderLength):
2825         (WebKit::QStyleFacadeImp::sliderThickness):
2826         (WebKit::QStyleFacadeImp::progressBarChunkWidth):
2827         (WebKit::QStyleFacadeImp::getButtonMetrics):
2828         (WebKit::QStyleFacadeImp::sizeFromContents):
2829         (WebKit::QStyleFacadeImp::paintButton):
2830         (WebKit::QStyleFacadeImp::paintTextField):
2831         (WebKit::QStyleFacadeImp::paintComboBox):
2832         (WebKit::QStyleFacadeImp::paintComboBoxArrow):
2833         (WebKit::QStyleFacadeImp::paintSliderTrack):
2834         (WebKit::QStyleFacadeImp::paintSliderThumb):
2835         (WebKit::QStyleFacadeImp::paintInnerSpinButton):
2836         (WebKit::QStyleFacadeImp::paintProgressBar):
2837         (WebKit::QStyleFacadeImp::scrollBarExtent):
2838         (WebKit::QStyleFacadeImp::scrollBarMiddleClickAbsolutePositionStyleHint):
2839         (WebKit::QStyleFacadeImp::paintScrollCorner):
2840         (WebKit::QStyleFacadeImp::hitTestScrollBar):
2841         (WebKit::QStyleFacadeImp::scrollBarSubControlRect):
2842         (WebKit::QStyleFacadeImp::paintScrollBar):
2843         (WebKit::QStyleFacadeImp::widgetForPainter):
2844         (WebKit::QStyleFacadeImp::style):
2845         * WebCoreSupport/QStyleFacadeImp.h: Added.
2846         (WebCore):
2847         (WebKit):
2848         (QStyleFacadeImp):
2849         (WebKit::QStyleFacadeImp::create):
2850         (WebKit::QStyleFacadeImp::isValid):
2851
2852 2012-10-05  Simon Hausmann  <simon.hausmann@digia.com>
2853
2854         [Qt] Remove dead code
2855         https://bugs.webkit.org/show_bug.cgi?id=98491
2856
2857         Reviewed by Jocelyn Turcotte.
2858
2859         This code was added long time ago for a Symbian related project and is
2860         not needed anymore.
2861
2862         * Api/qwebframe.cpp:
2863
2864 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
2865
2866         Final part of "sync" to "flush" renaming
2867         https://bugs.webkit.org/show_bug.cgi?id=98430
2868
2869         Reviewed by Tim Horton.
2870
2871         Change method names on GraphicsLayer and GraphicsLayerClient that
2872         refer to "sync" to use the term "flush" instead, to be consistent
2873         with the rest of the code.
2874
2875         * WebCoreSupport/PageClientQt.cpp:
2876         (WebCore::TextureMapperLayerClientQt::syncRootLayer):
2877
2878 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
2879
2880         Standardize on "flush" terminology for compositing layer flushing/syncing
2881         https://bugs.webkit.org/show_bug.cgi?id=98321
2882
2883         Reviewed by Simon Fraser.
2884
2885         Rename compositing-related methods that refer to "syncing" to instead
2886         refer to "flushing".
2887
2888         * WebCoreSupport/ChromeClientQt.cpp:
2889         (WebCore::ChromeClientQt::scheduleCompositingLayerFlush):
2890         * WebCoreSupport/ChromeClientQt.h:
2891         (ChromeClientQt):
2892         * WebCoreSupport/PageClientQt.cpp:
2893         (WebCore::PageClientQGraphicsWidget::syncLayers):
2894
2895 2012-10-03  Balazs Kelemen  <kbalazs@webkit.org>
2896
2897         [Qt] Enable mock scrollbars
2898         https://bugs.webkit.org/show_bug.cgi?id=98011
2899
2900         Reviewed by Csaba Osztrogonác.
2901
2902         Added helper to enable mock scrollbars.
2903
2904         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2905         (DumpRenderTreeSupportQt::enableMockScrollbars):
2906         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2907
2908 2012-10-01  Brady Eidson  <beidson@apple.com>
2909
2910         Remove the Safari 2 -> Safari 3 icon database import code.
2911         https://bugs.webkit.org/show_bug.cgi?id=98113
2912
2913         Reviewed by Maciej Stachowiak.
2914
2915         Nuke the performImport() IconDatabaseClient method.
2916
2917         * WebCoreSupport/IconDatabaseClientQt.cpp:
2918         * WebCoreSupport/IconDatabaseClientQt.h:
2919         (IconDatabaseClientQt):
2920
2921 2012-09-28  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2922
2923         Code inside FrameLoaderClient::canShowMIMEType() implementations can be shared among different WK ports
2924         https://bugs.webkit.org/show_bug.cgi?id=97547
2925
2926         Reviewed by Adam Barth.
2927
2928         Newly added WebCore::MIMETypeRegistry::canShowMIMEType() function is used
2929         inside WebCore::FrameLoaderClientQt::canShowMIMEType().
2930
2931         * WebCoreSupport/FrameLoaderClientQt.cpp:
2932         (WebCore::FrameLoaderClientQt::canShowMIMEType):
2933
2934 2012-09-27  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2935
2936         Unify event handling of middle mouse button.
2937         https://bugs.webkit.org/show_bug.cgi?id=97690
2938
2939         Reviewed by Tony Chang.
2940
2941         Remove port specific handling of middle mouse button press.
2942
2943         * Api/qwebpage.cpp:
2944         (QWebPagePrivate::mouseReleaseEvent):
2945         * Api/qwebpage_p.h:
2946         (QWebPagePrivate):
2947
2948 2012-09-26  Simon Hausmann  <simon.hausmann@digia.com>
2949
2950         [Qt] Remove Qt Quick 1 support
2951
2952         Reviewed by Kenneth Rohde Christiansen.
2953
2954         It is being moved to the Qt5 QtQuick1 module.
2955
2956         A circular dependency exists otherwise in Qt, where QtWebKit would depend on QtQuick1,
2957         which in turn depends on QtTools (for designer plugin), which in turn depends on QtWebKit
2958         (for assistant help html rendering).
2959
2960         * declarative/plugin.cpp:
2961         (WebKitQmlPlugin::registerTypes):
2962         * declarative/public.pri:
2963         * declarative/qdeclarativewebview.cpp: Removed.
2964         * declarative/qdeclarativewebview_p.h: Removed.
2965         * tests/qdeclarativewebview/qdeclarativewebview.pro: Removed.
2966         * tests/qdeclarativewebview/resources/basic.html: Removed.
2967         * tests/qdeclarativewebview/resources/basic.png: Removed.
2968         * tests/qdeclarativewebview/resources/basic.qml: Removed.
2969         * tests/qdeclarativewebview/resources/elements.html: Removed.
2970         * tests/qdeclarativewebview/resources/elements.qml: Removed.
2971         * tests/qdeclarativewebview/resources/forward.html: Removed.
2972         * tests/qdeclarativewebview/resources/forward.png: Removed.
2973         * tests/qdeclarativewebview/resources/javaScript.html: Removed.
2974         * tests/qdeclarativewebview/resources/javaScript.qml: Removed.
2975         * tests/qdeclarativewebview/resources/loadError.qml: Removed.
2976         * tests/qdeclarativewebview/resources/newwindows.html: Removed.
2977         * tests/qdeclarativewebview/resources/newwindows.qml: Removed.
2978         * tests/qdeclarativewebview/resources/propertychanges.qml: Removed.
2979         * tests/qdeclarativewebview/resources/sample.html: Removed.
2980         * tests/qdeclarativewebview/resources/sethtml.qml: Removed.
2981         * tests/qdeclarativewebview/resources/webviewbackgroundcolor.qml: Removed.
2982         * tests/qdeclarativewebview/resources/webviewtest.qml: Removed.
2983         * tests/qdeclarativewebview/resources/webviewtestdefault.qml: Removed.
2984         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: Removed.
2985         * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc: Removed.
2986
2987 2012-09-25  Beth Dakin  <bdakin@apple.com>
2988
2989         https://bugs.webkit.org/show_bug.cgi?id=95397
2990         Need to merge didFirstVisuallyNonEmptyLayout and 
2991         didNewFirstVisuallyNonEmptyLayout
2992         -and corresponding-
2993         <rdar://problem/10791680>
2994
2995         Reviewed by Sam Weinig.
2996
2997         Remove dispatchDidFirstLayout, 
2998         dispatchDidFirstVisuallyNonEmptyLayout, and 
2999         dispatchDidNewFirstVisuallyNonEmptyLayout. Their functionality 
3000         is now replaced by dispatchDidLayout(LayoutMilestoneOptions)
3001         * WebCoreSupport/FrameLoaderClientQt.cpp:
3002         (WebCore::FrameLoaderClientQt::dispatchDidLayout):
3003         * WebCoreSupport/FrameLoaderClientQt.h:
3004         (FrameLoaderClientQt):
3005
3006         It is now necessary to opt into getting any of the 
3007         "layout milestone" notifications.
3008         * Api/qwebpage.cpp:
3009         (QWebPagePrivate::QWebPagePrivate):
3010
3011 2012-09-25  Simon Hausmann  <simon.hausmann@digia.com>
3012
3013         [Qt] Fix failing assertion when calling QWebSettings::setIconDatabasePath multiple times
3014
3015         Reviewed by Jocelyn Turcotte.
3016
3017         This happens in various auto-tests. We can implement this by closing the database before
3018         opening it with the new path.
3019
3020         * Api/qwebsettings.cpp:
3021         (QWebSettings::setIconDatabasePath):
3022
3023 2012-09-24  Benjamin Poulain  <bpoulain@apple.com>
3024
3025         Fix Geolocation error reporting in the test support
3026         https://bugs.webkit.org/show_bug.cgi?id=97386
3027
3028         Reviewed by Sam Weinig.
3029
3030         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3031         (DumpRenderTreeSupportQt::setMockGeolocationPositionUnavailableError):
3032         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3033
3034 2012-09-20  Csaba Osztrogonác  <ossy@webkit.org>
3035
3036         [Qt] Enable CSS regions by default
3037         https://bugs.webkit.org/show_bug.cgi?id=97196
3038
3039         Reviewed by Dirk Schulze.
3040
3041         * Api/qwebsettings.cpp:
3042         (QWebSettings::QWebSettings):
3043
3044 2012-09-17  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3045
3046         [Qt] Use UndoStep::editingAction() to set the text of undo/redo actions
3047         https://bugs.webkit.org/show_bug.cgi?id=96921
3048
3049         Reviewed by Ryosuke Niwa.
3050
3051         Set the text of QUndoCommands we create for undo/redo actions based on the
3052         editing action from UndoStep.
3053
3054         This change is visible using QtTestBrowser, and looking at the Edit menu after
3055         doing HTML editing changes. I've used http://simple-rte.rniwa.com for testing.
3056
3057         * WebCoreSupport/UndoStepQt.cpp:
3058         (undoNameForEditAction): This function returns a localized name of the action.
3059         (UndoStepQt::UndoStepQt): Set the text based on UndoStep::editingAction.
3060         * tests/qwebpage/tst_qwebpage.cpp:
3061         (tst_QWebPage):
3062         (tst_QWebPage::undoActionHaveCustomText): Create a new test to verify that the text
3063         describing the undo action after inserting a text and indenting the text is different.
3064
3065 2012-09-17  Leo Franchi  <lfranchi@kde.org>
3066
3067         [Qt] Inspector WebSocket backend protocol update
3068         https://bugs.webkit.org/show_bug.cgi?id=77031
3069
3070         Also adds support for multi-frame messages and non-text messages.
3071         Thanks to Jocelyn Turcotte for most of the WebSocket update code!
3072
3073         Reviewed by Simon Hausmann.
3074
3075         * WebCoreSupport/InspectorServerQt.cpp:
3076         (WebCore):
3077         (WebCore::generateWebSocketChallengeResponse):
3078         (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
3079         (WebCore::InspectorServerRequestHandlerQt::webSocketSend):
3080         (WebCore::applyMask):
3081         (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
3082         * WebCoreSupport/InspectorServerQt.h:
3083         (InspectorServerRequestHandlerQt):
3084
3085 2012-09-15  Pierre Rossi  <pierre.rossi@gmail.com>
3086
3087         [Qt] QDoc fixes for Qt 5 documentation
3088         https://bugs.webkit.org/show_bug.cgi?id=96796
3089
3090         Reviewed by Simon Hausmann.
3091
3092         Produce fewer warnings and a better documentation.
3093         Having two QML modules providing a WebView component is a bit too much for poor old qdoc to
3094         cope with (or would require a lot of painful disambiguation by hand). Since the plan is to have
3095         QDeclarativeWebView living in the qtquick1 module, we can already take it out of the 
3096         documentation generation for now.
3097
3098         * declarative/qdeclarativewebview.cpp: s/qmlclass/qmltype/ out of principle
3099         * docs/qtwebkit.qdocconf: Remove the \i alias that caused a warning. Use *.h as headers suffix, not sources.
3100         Also remove QDeclarativeWebView from the documentation.
3101
3102 2012-09-13  Lauro Neto  <lauro.neto@openbossa.org>
3103
3104         [Qt][WK2] fast/forms/access-key-for-all-elements.html fails
3105         https://bugs.webkit.org/show_bug.cgi?id=73917
3106
3107         Reviewed by Simon Hausmann.
3108
3109         Access-key tests were failing due to hardcoded Mac OS X in the
3110         Qt WK2 user agent string. This commit moves the WK1 implementation
3111         to a shared one to be used by both versions.
3112
3113         Change QWebPage to use the shared user agent implementation.
3114
3115         * Api/qwebpage.cpp:
3116         (QWebPage::userAgentForUrl):
3117
3118 2012-09-13  Oswald Buddenhagen  <oswald.buddenhagen@nokia.com>
3119
3120         [Qt] Fix qdoc executable preparation
3121
3122         Reviewed by Tor Arne Vestbø.
3123
3124         * docs/docs.pri:
3125
3126 2012-09-12  Sheriff Bot  <webkit.review.bot@gmail.com>
3127
3128         Unreviewed, rolling out r127876.
3129         http://trac.webkit.org/changeset/127876
3130         https://bugs.webkit.org/show_bug.cgi?id=96600
3131
3132         mouse click doesn't work for spin button if spin button in
3133         iframe (Requested by yosin on #webkit).
3134
3135         * Api/qwebframe.cpp:
3136         (QWebFrame::hitTestContent):
3137         * Api/qwebpage.cpp:
3138         (QWebPagePrivate::handleSoftwareInputPanel):
3139         (QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch):
3140         (QWebPage::updatePositionDependentActions):
3141         * WebCoreSupport/FrameLoaderClientQt.cpp:
3142         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3143
3144 2012-09-12  Roland Takacs  <rtakacs@inf.u-szeged.hu>
3145
3146         [Qt] Segmentation fault when closing QtTestBrowser
3147         https://bugs.webkit.org/show_bug.cgi?id=95003
3148
3149         Reviewed by Simon Hausmann.
3150
3151         Defined a new QObject* variable that points to the QGLWidget that was created
3152         in 'createPlatformGraphicsContext3DFromWidget'.
3153         It is neccessary for deallocating it.
3154
3155         * WebCoreSupport/PageClientQt.cpp:
3156         (createPlatformGraphicsContext3DFromWidget):
3157         (WebCore::PageClientQWidget::createPlatformGraphicsContext3D):
3158         (WebCore::PageClientQGraphicsWidget::createPlatformGraphicsContext3D):
3159         * WebCoreSupport/PageClientQt.h:
3160         (PageClientQWidget):
3161         (PageClientQGraphicsWidget):
3162
3163 2012-09-12  Andras Becsi  <andras.becsi@nokia.com>
3164
3165         [Qt] Add module identifier directive to the qmldir files
3166         https://bugs.webkit.org/show_bug.cgi?id=96406
3167
3168         Reviewed by Simon Hausmann.
3169
3170         Qt5 QML modules need to be identified. Type registrations are only permitted
3171         into the namespace identified in the qmldir file's module identifier directive.
3172         Additionally this also facilitates the protection against external registrations.
3173         This patch suppresses a warning when importing the QtWebKit module.
3174
3175         * declarative/experimental/qmldir:
3176         * declarative/qmldir:
3177
3178 2012-09-11  Marcelo Lira  <marcelo.lira@openbossa.org>
3179
3180         Restore original value of mock scrollbars enabled in InternalSettings
3181         https://bugs.webkit.org/show_bug.cgi?id=87680
3182
3183         Reviewed by Adam Barth.
3184
3185         Added backup support for mock scrollbars state in
3186         InternalSettings::Backup, and removed support for these
3187         from Qt's DumpRenderTree.
3188
3189         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3190         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3191
3192 2012-09-11  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3193
3194         [Qt] Add a configure step to the Qt build system
3195
3196         This allows building the Qt port using just 'qmake WebKit.pro'. Using
3197         the build-webkit script is still supported, and will add slightly more
3198         logic to the build, such as detecting the need for clean or incremental
3199         builds.
3200
3201         Internally, the build system now uses a new variable, WEBKIT_CONFIG, for
3202         all things related to configuring the build, such as use/have/enable flags,
3203         and these are translated to defines in default_post. Project files should
3204         no longer check contains(DEFINES,...) to detect features, but use the new
3205         enable?(), use?(), and have?() functions. The no_webkit1 and no_webkit2
3206         options have been translated into WEBKIT_CONFIG options as well, and can
3207         be checked using build?().
3208
3209         Reviewed by Simon Hausmann.
3210
3211         * declarative/declarative.pro:
3212         * declarative/public.pri:
3213         * tests/qgraphicswebview/qgraphicswebview.pro:
3214
3215 2012-09-11  Andras Becsi  <andras.becsi@nokia.com>
3216
3217         [Qt][WK2] Fix the build with recent Qt5
3218         https://bugs.webkit.org/show_bug.cgi?id=96283
3219
3220         Reviewed by Simon Hausmann.
3221
3222         We should not use deprecated Qt API because doing that results
3223         in build failure since all the deprecated API was disabled
3224         in qtbase (https://codereview.qt-project.org/#change,24890).
3225
3226         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
3227         (tst_QGraphicsWebView::widgetsRenderingThroughCache):
3228         (tst_QGraphicsWebView::setPalette):
3229         (tst_QGraphicsWebView::compareCanvasToImage):
3230         * tests/qobjectbridge/tst_qobjectbridge.cpp:
3231         (tst_QObjectBridge::ownership):
3232         * tests/qwebframe/tst_qwebframe.cpp:
3233         (tst_QWebFrame::popupFocus):
3234         (tst_QWebFrame::inputFieldFocus):
3235         (tst_QWebFrame::evaluateWillCauseRepaint):
3236         * tests/qwebpage/tst_qwebpage.cpp:
3237         (Navigation):
3238         (PluginCounterPage):
3239         * tests/qwebview/tst_qwebview.cpp:
3240         (tst_QWebView::reusePage):
3241         (tst_QWebView::focusInputTypes):
3242         (tst_QWebView::setPalette):
3243         (tst_QWebView::renderingAfterMaxAndBack):
3244
3245 2012-09-09  Emil A Eklund  <eae@chromium.org>
3246
3247         Rename Node::getRect/getPixelSnappedRect and remove ContainerNode::getRect
3248         https://bugs.webkit.org/show_bug.cgi?id=81413
3249
3250         Reviewed by David Hyatt.
3251
3252         Update qwebelement and qwebpage to call pixelSnappedBoundingBox.
3253
3254         * Api/qwebelement.cpp:
3255         (QWebElement::geometry):
3256         (QWebElement::render):
3257         * Api/qwebpage.cpp:
3258         (QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch):
3259
3260 2012-09-07  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
3261
3262         Simplify hitTestResultAtPoint and nodesFromRect APIs
3263         https://bugs.webkit.org/show_bug.cgi?id=95720
3264
3265         Reviewed by Antonio Gomes.
3266
3267         Update calls to new API.
3268
3269         * Api/qwebframe.cpp:
3270         (QWebFrame::hitTestContent):
3271         * Api/qwebpage.cpp:
3272         (QWebPagePrivate::handleSoftwareInputPanel):
3273         (QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch):
3274         (QWebPage::updatePositionDependentActions):
3275         * WebCoreSupport/FrameLoaderClientQt.cpp:
3276         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3277
3278 2012-09-07  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
3279
3280         X11 Global Selection
3281         https://bugs.webkit.org/show_bug.cgi?id=88238
3282
3283         Reviewed by Tony Chang.
3284
3285         Use new editor command for pasting global selection, and update it using
3286         the respondToChangedSelection callback.
3287
3288         * Api/qwebpage.cpp:
3289         (QWebPagePrivate::handleClipboard):
3290         * WebCoreSupport/EditorClientQt.cpp:
3291         (WebCore::EditorClientQt::respondToChangedSelection):
3292         (WebCore::EditorClientQt::supportsGlobalSelection):
3293         * WebCoreSupport/EditorClientQt.h:
3294         (EditorClientQt):
3295
3296 2012-09-05  Sam Weinig  <sam@webkit.org>
3297
3298         Part 2 of removing PlatformString.h, remove PlatformString.h
3299         https://bugs.webkit.org/show_bug.cgi?id=95931
3300
3301         Reviewed by Adam Barth.
3302
3303         Remove PlatformString.h
3304
3305         * Api/qwebdatabase_p.h:
3306         * Api/qwebframe_p.h:
3307         * Api/qwebhistory.cpp:
3308         * Api/qwebhistoryinterface.cpp:
3309         * Api/qwebpage_p.h:
3310         * Api/qwebsettings.cpp:
3311         * WebCoreSupport/ChromeClientQt.h:
3312         * WebCoreSupport/InspectorClientQt.cpp:
3313
3314 2012-09-05  Kaustubh Atrawalkar  <kaustubh@motorola.com>
3315
3316         [DRT] LTC:: Move printing related APIs from LayoutTestController to Internals
3317         https://bugs.webkit.org/show_bug.cgi?id=92735
3318
3319         Reviewed by Hajime Morita.
3320
3321         Move numberOfPages, pageProperty & pageSizeAndMarginsInPixels in Internals and remove duplicated code from DumprenderTree & WebkitTestRunner.
3322
3323         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3324         (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
3325         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3326
3327 2012-09-04  Jon Lee  <jonlee@apple.com>
3328
3329         [Qt] REGRESSION(r127321): It made 3 notification test timeout
3330         https://bugs.webkit.org/show_bug.cgi?id=95638
3331
3332         Reviewed by Csaba Osztrogonác.
3333
3334         Dispatch show event instead of display after r127321.
3335
3336         * WebCoreSupport/NotificationPresenterClientQt.cpp:
3337         (WebCore::NotificationPresenterClientQt::sendDisplayEvent):
3338
3339 2012-08-31  Simon Hausmann  <simon.hausmann@nokia.com>
3340
3341         [Qt] Port convertValueToQVariant to use the JSC C API
3342         https://bugs.webkit.org/show_bug.cgi?id=94695
3343
3344         Reviewed by Kenneth Rohde Christiansen.
3345
3346         Minor adaptations are needed here to accomodate the changed signature of
3347         convertValueToQVariant.
3348
3349         * Api/qwebelement.cpp:
3350         (QWebElement::evaluateJavaScript):
3351         (convertJSValueToWebElementVariant):
3352         * Api/qwebframe.cpp:
3353         (QWebFrame::evaluateJavaScript):
3354         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3355         (convertJSValueToNodeVariant):
3356
3357 2012-08-30  Geoffrey Garen  <ggaren@apple.com>
3358
3359         Use one object instead of two for closures, eliminating ScopeChainNode
3360         https://bugs.webkit.org/show_bug.cgi?id=95501
3361
3362         Reviewed by Filip Pizlo.
3363
3364         Mechanical change to update for JSC interface change.
3365
3366         * Api/qwebelement.cpp:
3367         (QWebElement::evaluateJavaScript):
3368
3369 2012-08-30  Benjamin Poulain  <bpoulain@apple.com>
3370
3371         Replace JSC::UString by WTF::String
3372         https://bugs.webkit.org/show_bug.cgi?id=95271
3373
3374         Reviewed by Geoffrey Garen.
3375
3376         Replace UString by String.
3377
3378         * Api/qwebelement.cpp:
3379         (QWebElement::evaluateJavaScript):
3380
3381 2012-08-29  Simon Hausmann  <simon.hausmann@nokia.com>
3382
3383         [Qt] Fix doc generation with make docs
3384         https://bugs.webkit.org/show_bug.cgi?id=95340
3385
3386         Reviewed by Kenneth Rohde Christiansen.
3387
3388         Fix doc target, similar to what the other Qt 5 modules are using and comment out the indexes
3389         line, because cross-referencing doesn't work right now and the use of the QTDIR environment
3390         is wrong, too.
3391
3392         * docs/docs.pri:
3393         * docs/qtwebkit.qdocconf:
3394
3395 2012-08-22  Simon Hausmann  <simon.hausmann@nokia.com>
3396
3397         [Qt] REGRESSION(r125428): fast/profiler/nested-start-and-stop-profiler.html fails
3398         https://bugs.webkit.org/show_bug.cgi?id=93897
3399
3400         Reviewed by Kenneth Rohde Christiansen.
3401
3402         Fixed some test expectations.
3403
3404         * tests/qobjectbridge/tst_qobjectbridge.cpp:
3405         (tst_QObjectBridge::objectDeleted): Since runtime methods are real function objects again, we
3406         can go back to testing Function.prototype.call, as it was done before r125428.
3407         (tst_QObjectBridge::introspectQtMethods_data): Removed tests for the length property.
3408         (tst_QObjectBridge::introspectQtMethods): Changed test expectation of the properties of
3409         run-time methods back to being non-configurable, as before r125428.
3410
3411 2012-08-28  Sheriff Bot  <webkit.review.bot@gmail.com>
3412
3413         Unreviewed, rolling out r126914.
3414         http://trac.webkit.org/changeset/126914
3415         https://bugs.webkit.org/show_bug.cgi?id=95239
3416
3417         it breaks everything and fixes nothing (Requested by pizlo on
3418         #webkit).
3419
3420         * Api/qwebpage.cpp:
3421         (extractContentTypeFromPluginVector):
3422         * Api/qwebplugindatabase.cpp:
3423         (QWebPluginInfo::mimeTypes):
3424         * WebCoreSupport/PlatformStrategiesQt.cpp:
3425         (PlatformStrategiesQt::getPluginInfo):
3426
3427 2012-08-28  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3428
3429         Rename first/second to key/value in HashMap iterators
3430         https://bugs.webkit.org/show_bug.cgi?id=82784
3431
3432         Reviewed by Eric Seidel.
3433
3434         * Api/qwebpage.cpp:
3435         (extractContentTypeFromPluginVector):
3436         * Api/qwebplugindatabase.cpp:
3437         (QWebPluginInfo::mimeTypes):
3438         * WebCoreSupport/PlatformStrategiesQt.cpp:
3439         (PlatformStrategiesQt::getPluginInfo):
3440
3441 2012-08-27  Sheriff Bot  <webkit.review.bot@gmail.com>
3442
3443         Unreviewed, rolling out r126836.
3444         http://trac.webkit.org/changeset/126836
3445         https://bugs.webkit.org/show_bug.cgi?id=95163
3446
3447         Broke all Apple ports, EFL, and Qt. (Requested by tkent on
3448         #webkit).
3449
3450         * Api/qwebpage.cpp:
3451         (extractContentTypeFromPluginVector):
3452         * Api/qwebplugindatabase.cpp:
3453         (QWebPluginInfo::mimeTypes):
3454         * WebCoreSupport/PlatformStrategiesQt.cpp:
3455         (PlatformStrategiesQt::getPluginInfo):
3456
3457 2012-08-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3458
3459         Rename first/second to key/value in HashMap iterators
3460         https://bugs.webkit.org/show_bug.cgi?id=82784
3461
3462         Reviewed by Eric Seidel.
3463
3464         * Api/qwebpage.cpp:
3465         (extractContentTypeFromPluginVector):
3466         * Api/qwebplugindatabase.cpp:
3467         (QWebPluginInfo::mimeTypes):
3468         * WebCoreSupport/PlatformStrategiesQt.cpp:
3469         (PlatformStrategiesQt::getPluginInfo):
3470
3471 2012-08-22  Sheriff Bot  <webkit.review.bot@gmail.com>
3472
3473         Unreviewed, rolling out r126287.
3474         http://trac.webkit.org/changeset/126287
3475         https://bugs.webkit.org/show_bug.cgi?id=94708
3476
3477         It made WK1 layout testing 3.7x slower (>1hours) (Requested by
3478         ossy on #webkit).
3479
3480         * tests/qobjectbridge/tst_qobjectbridge.cpp:
3481         (tst_QObjectBridge::objectDeleted):
3482         (tst_QObjectBridge::introspectQtMethods_data):
3483         (tst_QObjectBridge::introspectQtMethods):
3484
3485 2012-08-22  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
3486
3487         [Qt] Optionally support smooth-scrolling on all platforms
3488         https://bugs.webkit.org/show_bug.cgi?id=74926
3489
3490         Reviewed by Simon Hausmann.
3491
3492         Expose the enable scroll animator setting.
3493
3494         * Api/qwebsettings.cpp:
3495         (QWebSettingsPrivate::apply):
3496         (QWebSettings::QWebSettings):
3497         * Api/qwebsettings.h:
3498
3499 2012-08-22  Simon Hausmann  <simon.hausmann@nokia.com>
3500
3501         [Qt] REGRESSION(r125428): fast/profiler/nested-start-and-stop-profiler.html fails
3502         https://bugs.webkit.org/show_bug.cgi?id=93897
3503