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