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