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