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