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