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