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