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