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