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