6173cd62c03e70a4f43dbd92e3e79a00ab283167
[WebKit-https.git] / Source / WebKit / qt / ChangeLog
1 2011-08-31  Ryosuke Niwa  <rniwa@webkit.org>
2
3         Move text() and textWithHardLineBreaks() from RenderTextControl to HTMLTextFormControlElement
4         https://bugs.webkit.org/show_bug.cgi?id=67320
5
6         Reviewed by Darin Adler.
7
8         Call HTMLTextFormControlElement::value() instead of RenderText::text()
9
10         * Api/qwebpage.cpp:
11         (QWebPage::inputMethodQuery):
12
13 2011-08-31  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
14
15         [Qt] Unskip API test for load signals order
16         https://bugs.webkit.org/show_bug.cgi?id=67285
17
18         Reviewed by Andreas Kling.
19
20         * tests/qwebpage/tst_qwebpage.cpp:
21         (tst_QWebPage::loadSignalsOrder):
22
23 2011-08-30  Sheriff Bot  <webkit.review.bot@gmail.com>
24
25         Unreviewed, rolling out r94142, r94144, r94145, and r94148.
26         http://trac.webkit.org/changeset/94142
27         http://trac.webkit.org/changeset/94144
28         http://trac.webkit.org/changeset/94145
29         http://trac.webkit.org/changeset/94148
30         https://bugs.webkit.org/show_bug.cgi?id=67262
31
32         Broke isindex element (Requested by rniwa on #webkit).
33
34         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
35         (DumpRenderTreeSupportQt::setAutofilled):
36         (DumpRenderTreeSupportQt::setValueForUser):
37         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
38
39 2011-08-30  Ryosuke Niwa  <rniwa@webkit.org>
40
41         Get rid of toInputElement()
42         https://bugs.webkit.org/show_bug.cgi?id=67175
43
44         Reviewed by Darin Adler.
45
46         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
47         (DumpRenderTreeSupportQt::setAutofilled):
48         (DumpRenderTreeSupportQt::setValueForUser):
49         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
50
51 2011-08-30  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
52
53         Emit last progress notification before calling dispatchDidFinishLoad
54         https://bugs.webkit.org/show_bug.cgi?id=28851
55
56         Reviewed by Adam Barth.
57
58         Add infrastructure to dump progressFinishedNotification callback in DRT.
59
60         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
61         (DumpRenderTreeSupportQt::dumpProgressFinishedCallback):
62         * WebCoreSupport/DumpRenderTreeSupportQt.h:
63         * WebCoreSupport/FrameLoaderClientQt.cpp:
64         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
65         * WebCoreSupport/FrameLoaderClientQt.h:
66
67 2011-08-30  Kaustubh Atrawalkar  <kaustubh@motorola.com>
68
69         The unused ScrollView* argument can and should be removed from
70         scrollRectIntoView.
71         https://bugs.webkit.org/show_bug.cgi?id=67117
72
73         Reviewed by Darin Adler.
74
75         * WebCoreSupport/ChromeClientQt.h:
76         (WebCore::ChromeClientQt::scrollRectIntoView):
77
78 2011-08-25  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
79
80         Unreviewed QtWebKit.pro fix for when building inside Qt
81
82         Patch by Simo Fält <simo.falt@nokia.com>
83
84         The QtWebKit version was being overwritten by a global Qt version when
85         QtWebKit was built inside Qt. Fixed by moving the version
86         definition after the inclusion of qbase.pri.
87
88         * QtWebKit.pro:
89
90 2011-08-25  Sheriff Bot  <webkit.review.bot@gmail.com>
91
92         Unreviewed, rolling out r93783.
93         http://trac.webkit.org/changeset/93783
94         https://bugs.webkit.org/show_bug.cgi?id=66943
95
96         Commited wrong stuff by accident. (Requested by ademar on
97         #webkit).
98
99         * Api/qwebview.cpp:
100         (QWebView::load):
101         (QWebView::setHtml):
102         (QWebView::setContent):
103         (QWebView::setUrl):
104         * QtWebKit.pro:
105
106 2011-08-25  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
107
108         Unreviewed QtWebKit.pro fix for when building inside Qt
109
110         Patch by Simo Fält <simo.falt@nokia.com>
111
112         The QtWebKit version was being overwritten by a global Qt version when
113         QtWebKit was built inside Qt. Fixed by moving the version
114         definition after the inclusion of qbase.pri.
115
116         * QtWebKit.pro:
117
118 2011-08-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
119
120         [Qt] Fix build on Lion
121
122         https://bugs.webkit.org/show_bug.cgi?id=66770
123
124         Reviewed by Andreas Kling.
125
126         We were mistakenly picking up mac/WebCoreSystemInterface.h instead of
127         the Qt one, and building on Lion revealed this when a typedef for
128         IOSurfaceRef was wrapped in PLATFORM(MAC).
129
130         For now we fix this by including WebCoreSystemInterface using
131         brackets, so that we'll pick up the right file based on the
132         include paths. This also means exposing a few missing enums
133         in our own version of the file, so those were added.
134
135         Lasty, we need to link against the right system interface library
136         on Lion.
137
138         * QtWebKit.pro:
139
140 2011-08-21  Lindsay Mathieson  <lindsay.mathieson@gmail.com>
141
142         [Qt] Fixes premature plugin unload bug
143         https://bugs.webkit.org/show_bug.cgi?id=66628
144         
145         Reviewed by Benjamin Poulain.
146
147         The QtPlatformPlugin was allocated on the stack, so its destructor is unloading the
148         plugin at the end of the scope. This patch moves the local creation of QtPlatformPlugin
149         to class member (TextCheckerClientQt::m_platformPlugin), preventing premature unloading
150         of plugin.            
151         
152         * WebCoreSupport/TextCheckerClientQt.cpp:
153         (WebCore::TextCheckerClientQt::loadSpellChecker):
154         * WebCoreSupport/TextCheckerClientQt.h:
155
156 2011-08-17  Adam Roben  <aroben@apple.com>
157
158         Make WebCore keep track of the current device scale factor
159
160         Fixes <http://webkit.org/b/66413> WebCore requires every WebKit port to keep track of the
161         device scale factor
162
163         Reviewed by Darin Adler.
164
165         * Api/qwebpage.cpp:
166         (QWebPagePrivate::QWebPagePrivate): Removed pixelRatio.
167         (QWebPage::viewportAttributesForSize): Now calls Page::setDeviceScaleFactor.
168
169         * Api/qwebpage_p.h: Removed pixelRatio.
170
171         * WebCoreSupport/ChromeClientQt.cpp:
172         * WebCoreSupport/ChromeClientQt.h:
173         Removed deviceScaleFactor.
174
175 2011-08-18  Chang Shu  <cshu@webkit.org>
176
177         Add support of setPasswordEchoEnabled and setPasswordEchoDuration for password echo feature
178         https://bugs.webkit.org/show_bug.cgi?id=66052
179
180         Reviewed by Alexey Proskuryakov.
181
182         Enable password echo under the build flag.
183
184         * Api/qwebsettings.cpp:
185         (QWebSettingsPrivate::apply):
186
187 2011-08-16  Chang Shu  <cshu@webkit.org>
188
189         Support reset in WebCore::Internals
190         https://bugs.webkit.org/show_bug.cgi?id=66307
191
192         Reviewed by Dimitri Glazkov.
193
194         Added framework code in WebKit.
195
196         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
197         (DumpRenderTreeSupportQt::resetInternalsObject):
198         * WebCoreSupport/DumpRenderTreeSupportQt.h:
199
200 2011-08-16  Lindsay Mathieson   <lindsay.mathieson@gmail.com>
201
202         [Qt] Missing spell check support
203         https://bugs.webkit.org/show_bug.cgi?id=44114
204
205         Reviewed by Benjamin Poulain.
206
207         Added a platform plugin to allow spell and grammar check in QtWebKit.
208
209         * Api/qwebkitplatformplugin.h:
210         * QtWebKit.pro:
211         * WebCoreSupport/EditorClientQt.cpp:
212         (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
213         (WebCore::EditorClientQt::isGrammarCheckingEnabled):
214         (WebCore::EditorClientQt::toggleContinuousSpellChecking):
215         (WebCore::EditorClientQt::toggleGrammarChecking):
216         * WebCoreSupport/EditorClientQt.h:
217         (WebCore::EditorClientQt::textChecker):
218         * WebCoreSupport/QtPlatformPlugin.cpp:
219         (WebCore::QtPlatformPlugin::createSpellChecker):
220         * WebCoreSupport/QtPlatformPlugin.h:
221         * WebCoreSupport/TextCheckerClientQt.cpp: Added.
222         (convertToVectorList):
223         (WebCore::TextCheckerClientQt::ignoreWordInSpellDocument):
224         (WebCore::TextCheckerClientQt::learnWord):
225         (WebCore::TextCheckerClientQt::getAutoCorrectSuggestionForMisspelledWord):
226         (WebCore::TextCheckerClientQt::checkSpellingOfString):
227         (WebCore::TextCheckerClientQt::checkGrammarOfString):
228         (WebCore::TextCheckerClientQt::getGuessesForWord):
229         (WebCore::TextCheckerClientQt::isContinousSpellCheckingEnabled):
230         (WebCore::TextCheckerClientQt::toggleContinousSpellChecking):
231         (WebCore::TextCheckerClientQt::isGrammarCheckingEnabled):
232         (WebCore::TextCheckerClientQt::toggleGrammarChecking):
233         (WebCore::TextCheckerClientQt::loadSpellChecker):
234         * WebCoreSupport/TextCheckerClientQt.h: Added.
235         (WebCore::TextCheckerClientQt::requestCheckingOfString):
236
237 2011-08-15  Dmitry Titov  <dimich@chromium.org>
238
239         FrameLoaderClient::transferLoadingResourceFromPage does not have enough parameters
240         https://bugs.webkit.org/show_bug.cgi?id=66165
241
242         Reviewed by Darin Fisher.
243
244         * WebCoreSupport/FrameLoaderClientQt.cpp:
245         (WebCore::FrameLoaderClientQt::transferLoadingResourceFromPage):
246         * WebCoreSupport/FrameLoaderClientQt.h:
247
248 2011-08-10  Adam Roben  <aroben@apple.com>
249
250         Clear up scale factor terminology
251
252         WebKit by and large deals with two scale factors: one intrinsic to the device on which the
253         software is running, and one that is per-Page and can be controlled via API calls. This
254         patch names the former "deviceScaleFactor" and the latter "pageScaleFactor", and makes the
255         code use those names. It should introduce no behavior changes.
256
257         Fixes <http://webkit.org/b/55787> WebKit uses multiple conflicting names to refer to the
258         device scale factor
259
260         Reviewed by Simon Fraser.
261
262         * WebCoreSupport/ChromeClientQt.cpp:
263         * WebCoreSupport/ChromeClientQt.h:
264
265 2011-08-12  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
266
267         [Qt] Add test for correct order of load signals in QWebPage
268         https://bugs.webkit.org/show_bug.cgi?id=66016
269
270         Reviewed by Benjamin Poulain.
271
272         Add API test to ensure the order of load signals: loadStarted() needs to be emitted
273         first, then loadProgress(100), followed by loadFinished().
274
275         The test is skipped since this right now is broken, the bug
276         https://bugs.webkit.org/show_bug.cgi?id=28851 tracks one possible way to fix.
277
278         * tests/qwebpage/tst_qwebpage.cpp:
279         (SpyForLoadSignalsOrder::SpyForLoadSignalsOrder):
280         (SpyForLoadSignalsOrder::isFinished):
281         (SpyForLoadSignalsOrder::onLoadProgress):
282         (tst_QWebPage::loadSignalsOrder_data):
283         (tst_QWebPage::loadSignalsOrder):
284
285 2011-08-12  Alexis Menard  <alexis.menard@openbossa.org>
286
287         [Qt] Make sure QtWebKit correctly compiles when building WebKit2 with Qt5.
288
289         In order to build correctly the QtQuick1 plugin we need to explicitly
290         link to the new library added in Qt5 "qtquick1".
291
292         Reviewed by Simon Hausmann.
293
294         * declarative/declarative.pro:
295
296 2011-08-11  Andrew Wason  <rectalogic@rectalogic.com>
297
298         REGRESSION: Qt JavaScript bridge signal connection fails
299         https://bugs.webkit.org/show_bug.cgi?id=66097
300
301         Reviewed by Gavin Barraclough.
302
303         Unmark tests as expected failures, they pass now.
304
305         * tests/qwebframe/tst_qwebframe.cpp:
306         (tst_QWebFrame::connectAndDisconnect):
307
308 2011-08-09  Sheriff Bot  <webkit.review.bot@gmail.com>
309
310         Unreviewed, rolling out r92683.
311         http://trac.webkit.org/changeset/92683
312         https://bugs.webkit.org/show_bug.cgi?id=65921
313
314          "Breaks Qt --minimal build. Revert pending update of the Qt
315         minimal configuration" (Requested by simathur on #webkit).
316
317         * Api/qwebsettings.cpp:
318         (QWebSettings::enablePersistentStorage):
319
320 2011-08-09  Siddharth Mathur  <siddharth.mathur@nokia.com>
321
322         [Qt] Simplify code by removing QT_NO_DESKTOPSERVICES and QT_NO_NETWORKDISKCACHE
323         https://bugs.webkit.org/show_bug.cgi?id=65880
324
325         Reviewed by Andreas Kling.
326
327         QDesktopServices and QNetworkDiskCache have been around for a while now. Kill flags which 
328         check for their feature flags. Assume that any reasonable Qt build provides them. 
329
330         * Api/qwebsettings.cpp:
331         (QWebSettings::enablePersistentStorage):
332
333 2011-08-05  Dawit Alemayehu  <adawit@kde.org>
334
335         Reviewed by Andreas Kling.
336
337         Reverted commit r87797, http://trac.webkit.org/changeset/87797, because it
338         causes the regression reported under bug# 63582.
339
340         [Qt] REGRESSION(r87797): Broke KDEWebKit's custom QNAM.
341         https://bugs.webkit.org/show_bug.cgi?id=63582
342
343         * WebCoreSupport/FrameLoaderClientQt.cpp:
344         (WebCore::FrameLoaderClientQt::setFrame):
345
346 2011-08-03  Pavel Feldman  <pfeldman@google.com>
347
348         Web Inspector: [Timeline] Hover on paint events and see rect outline around that area.
349         https://bugs.webkit.org/show_bug.cgi?id=65510
350
351         Reviewed by Yury Semikhatsky.
352
353         * Api/qwebframe.cpp:
354         (QWebFramePrivate::renderRelativeCoords):
355
356 2011-08-03  Pavel Feldman  <pfeldman@chromium.org>
357
358         Web Inspector: remove Node parameter from the InspectorClient::highlight
359         https://bugs.webkit.org/show_bug.cgi?id=65549
360
361         Reviewed by Yury Semikhatsky.
362
363         * WebCoreSupport/InspectorClientQt.cpp:
364         (WebCore::InspectorClientQt::highlight):
365         * WebCoreSupport/InspectorClientQt.h:
366
367 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
368
369         [Qt] Fix tst_QDeclarativeWebView::basicProperties() and historyNav() autotests
370         https://bugs.webkit.org/show_bug.cgi?id=61042
371         Remove mark as expected fail where unexpected pass and mark failing test case as expected fail
372
373         Reviewed by Csaba Osztrogonác.
374
375         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
376         (tst_QDeclarativeWebView::basicProperties):
377         (tst_QDeclarativeWebView::historyNav):
378
379 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
380
381         [Qt] Fix tst_QWebPage::viewModes() API test
382         https://bugs.webkit.org/show_bug.cgi?id=65531
383
384         Reviewed by Csaba Osztrogonác.
385
386         * tests/qwebpage/tst_qwebpage.cpp: Mark failing test case as expected fail
387         (tst_QWebPage::viewModes):
388
389 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
390
391         [Qt] Fix tst_QWebFrame::connectAndDisconnect() API test
392         https://bugs.webkit.org/show_bug.cgi?id=65170
393
394         Reviewed by Csaba Osztrogonác.
395
396         * tests/qwebframe/tst_qwebframe.cpp: Mark failing test case as expected fail
397         (tst_QWebFrame::connectAndDisconnect):
398
399 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
400
401         [Qt] Fix tst_QWebElement::render() API test
402         https://bugs.webkit.org/show_bug.cgi?id=65243
403
404         Reviewed by Csaba Osztrogonác.
405
406         * tests/qwebelement/tst_qwebelement.cpp: Mark failing test case as expected fail
407         (tst_QWebElement::render):
408
409 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
410
411         [Qt] tst_QWebElement::style() fails because QWebElement::CascadedStyle doesn't work as expected
412         https://bugs.webkit.org/show_bug.cgi?id=65244
413
414         Reviewed by Csaba Osztrogonác.
415
416         * tests/qwebelement/tst_qwebelement.cpp: Mark failing test case as expected fail
417         (tst_QWebElement::style):
418
419 2011-08-01  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
420
421         [Qt] Fix tst_QWebPage::loadHtml5Video() API test
422         https://bugs.webkit.org/show_bug.cgi?id=65452
423
424         Reviewed by Csaba Osztrogonác.
425
426         * tests/qwebpage/tst_qwebpage.cpp: Mark failing test case as expected fail
427         (tst_QWebPage::loadHtml5Video):
428
429 2011-07-30  Patrick Gansterer  <paroga@webkit.org>
430
431         Remove inclusion of MainThread.h from Threading.h
432         https://bugs.webkit.org/show_bug.cgi?id=65081
433
434         Reviewed by Darin Adler.
435
436         Add missing include statements for MainThread.
437
438         * Api/qwebpage.cpp:
439
440 2011-07-27  Benjamin Poulain  <benjamin@webkit.org>
441
442         [WK2][Qt] Move from QGraphicsView to Qt Scene Graph
443         https://bugs.webkit.org/show_bug.cgi?id=62969
444
445         Reviewed by Andreas Kling.
446
447         Co-authored with Simon Hausmann  <simon.hausmann@nokia.com>
448
449         Add the declarative dependency to link WebKit.
450
451         * QtWebKit.pro:
452
453 2011-07-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
454
455         [Qt] QtWebkit never finishes loading sites when they are loaded after an initial QUrl fails to load.
456         https://bugs.webkit.org/show_bug.cgi?id=61328
457
458         Reviewed by Andreas Kling.
459
460         Change the hooks in FrameLoaderClient we use for emitting signals. Instead of
461         emitting signals in the progress notification functions, we use the
462         dispatchDid{Start,Finish,Fail}* functions. The main reason behind this change is
463         that loading code is prepared to handle load() when inside those functions.
464
465         The crash was being caused by setUrl() (and load()) being called when
466         loadFinished(false) was emitted. The problem here is that when
467         postProgressFinishedNotification the FrameLoader wasn't ready for taking a load()
468         call again, because it was still the ProvisionalLoadState but with the
469         provisionalDocumentLoader already removed.
470
471         To emulate the same behavior that QtWebKit had when using
472         postProgressFinishedNotification, we now keep track of the frame originating the
473         load, and emit the signals when this frame's client is called.
474
475         The patch keeps the existing semantics for QWebPage signals, but we now emit the
476         QWebFrame signals everytime, not only when they are the originating frame for
477         loading.
478
479         * Api/qwebframe.cpp:
480         (clearCoreFrame): Document our assumption that activeDocumentLoader will exist.
481
482         * WebCoreSupport/FrameLoaderClientQt.h: Remove m_loadError, add a boolean to keep
483         track whether the frame is originating the load. Remove the signals from
484         FrameLoaderClientQt since we will emit QWebFrame and QWebPage signals directly.
485
486         * WebCoreSupport/FrameLoaderClientQt.cpp:
487         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Initialize m_isOriginatingLoad.
488
489         (WebCore::FrameLoaderClientQt::setFrame): Do not connect QWebFrame and QWebPage
490         signals to our signals for load/finished, signal emission will be done manually.
491
492         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): Emit
493         loadStarted() signal and make the first notification of estimation change, that
494         Qt API tests expect to exist and notify 10%.
495
496         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): Remove reference to
497         m_loadError and emit loadFinished() signal.
498
499         (WebCore::FrameLoaderClientQt::postProgressStartedNotification): Remove signal
500         emission and mark the originating load as true, since only the originating frame
501         gets this call in its client.
502
503         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): Remove signal
504         emission.
505
506         (WebCore::FrameLoaderClientQt::callErrorPageExtension): Return whether the call
507         was successful or not. This wasn't necessary before because a successful call for
508         error page would lead to a load(), that cleared the m_loadError.
509         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): Remove reference
510         to m_loadError and emit finished signal indicating error if ErrorPage extension
511         doesn't handle it.
512         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): Ditto.
513
514         (WebCore::FrameLoaderClientQt::emitLoadStarted): Emit the loadStarted() signal
515         for the QWebFrame, and if the originating load also do for the QWebPage.
516
517         (WebCore::FrameLoaderClientQt::emitLoadFinished): Same as before but for
518         loadFinished(). Take care to reset the originating load flag before the signals
519         are emitted, since they might want to set it back again.
520
521         * tests/qwebframe/tst_qwebframe.cpp:
522         (URLSetter::URLSetter): Object that sets the url using either load() or setUrl()
523         when a certain signal is emitted in the frame.
524
525         (URLSetter::execute):
526         (tst_QWebFrame::loadInSignalHandlers_data):
527         (tst_QWebFrame::loadInSignalHandlers): New test inspired by the bug test case. This test
528         crashes without this patch applied.
529
530 2011-07-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
531
532         [Qt] Fix build in Qt 5 of QDeclarativeWebView
533         https://bugs.webkit.org/show_bug.cgi?id=65258
534
535         Reviewed by Andreas Kling.
536
537         In Qt 5, the QGraphicsView-based classes for QtQuick are in the
538         qtquick1 module, including QDeclarativeItem and QDeclarativeView.
539
540         * declarative/qdeclarativewebview_p.h:
541         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
542         * tests/tests.pri:
543         * tests/tests.pro:
544
545 2011-07-26  Sadrul Habib Chowdhury  <sadrul@chromium.org>
546
547         Add support for download='filename' attribute in anchors.
548         https://bugs.webkit.org/show_bug.cgi?id=64580
549
550         Reviewed by Adam Barth.
551
552         * WebCoreSupport/FrameLoaderClientQt.cpp:
553         (WebCore::FrameLoaderClientQt::startDownload):
554         * WebCoreSupport/FrameLoaderClientQt.h:
555
556 2011-07-26  Alexis Menard  <alexis.menard@openbossa.org>
557
558         Reviewed by Andreas Kling.
559
560         [Qt] Change default backend to use GStreamer on Linux and QuickTime on Mac.
561         https://bugs.webkit.org/show_bug.cgi?id=63472
562
563         Use the flag WTF_USE_QTKIT=1 rather than USE_QTKIT=1 because that flag doesn't
564         exist anymore, it's the default. Ditto for GStreamer.
565
566         * QtWebKit.pro:
567
568 2011-07-25  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
569
570         [Qt] Add more tests to cover the behavior of loadFinished() signal
571         https://bugs.webkit.org/show_bug.cgi?id=63490
572
573         Reviewed by Benjamin Poulain.
574
575         * tests/qwebframe/tst_qwebframe.cpp:
576         (FakeReply::FakeReply):
577         (FakeNetworkManager::createRequest): Add a fake reply that gives 404 error code.
578
579         (tst_QWebFrame::loadFinishedAfterNotFoundError): Verify that we get loadFinished(false)
580         after a 404 error without contents.
581
582         * tests/qwebpage/tst_qwebpage.cpp:
583         (tst_QWebPage::errorPageExtensionLoadFinished): Verify if the argument of loadFinished()
584         is true when we use error page extension to produce our own error pages.
585
586 2011-07-19  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
587
588         [Qt] Improve documentation of QWebView::setPage()
589         https://bugs.webkit.org/show_bug.cgi?id=64827
590
591         Reviewed by Noam Rosenthal.
592
593         * Api/qwebview.cpp: Use the word 'page' to refer to a QWebPage instead of 'document'.
594
595 2011-07-19  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
596
597         [Qt] Fix leak of QWebPage in errorPageExtension tests
598         https://bugs.webkit.org/show_bug.cgi?id=64814
599
600         Reviewed by Noam Rosenthal.
601
602         QWebView::setPage() doesn't take ownership, so the ErrorPages were leaking. So now
603         allocate them on the stack. This shouldn't change any behavior.
604
605         * tests/qwebpage/tst_qwebpage.cpp:
606         (tst_QWebPage::errorPageExtension):
607         (tst_QWebPage::errorPageExtensionInIFrames):
608         (tst_QWebPage::errorPageExtensionInFrameset):
609
610 2011-07-18  Hui Huang  <hui.2.huang@nokia.com>
611
612         [Qt] Compiling error in Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp with Qt 4.7 or older
613         https://bugs.webkit.org/show_bug.cgi?id=64560
614
615         Reviewed by Noam Rosenthal.
616
617         * tests/qwebelement/tst_qwebelement.cpp:
618         (tst_QWebElement::render):
619
620 2011-07-15  Dan Bernstein  <mitz@apple.com>
621
622         REGRESSION: Mouse cursor doesn’t hide when full screen video HUD hides
623         https://bugs.webkit.org/show_bug.cgi?id=64615
624
625         Reviewed by Anders Carlsson.
626
627         * WebCoreSupport/ChromeClientQt.h:
628         (WebCore::ChromeClientQt::setCursorHiddenUntilMouseMoves): Added this stub.
629
630 2011-07-15  Kenneth Rohde Christiansen  <kenneth@webkit.org>
631
632         REGRESSION(91064): Upstream QtWebKit/N9 changes related tovisibleContentRect
633
634         Reviewed by Antonio Gomes.
635
636         Only set setFixedVisibleContentRect when in resizesToContents mode.
637
638         * WebCoreSupport/FrameLoaderClientQt.cpp:
639         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
640
641 2011-07-15  Kenneth Rohde Christiansen  <kenneth@webkit.org>
642
643         Upstream QtWebKit/N9 changes related to visibleContentRect
644         https://bugs.webkit.org/show_bug.cgi?id=64589
645
646         Reviewed by Simon Hausmann.
647
648         * Api/qwebpage.cpp:
649         (QWebPage::setActualVisibleContentRect):
650         Change to use setFixedVisibleContentRect.
651         * WebCoreSupport/FrameLoaderClientQt.cpp:
652         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
653         Only set fixedVisibleContentRect for the mainframe.
654         * symbian/eabi/QtWebKitu.def:
655
656 2011-07-13  Joseph Pecoraro  <joepeck@webkit.org>
657
658         Improve names of some ApplicationCacheStorage accessor methods
659         https://bugs.webkit.org/show_bug.cgi?id=64433
660
661         Reviewed by Alexey Proskuryakov.
662
663         * WebCoreSupport/ChromeClientQt.cpp:
664         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
665         Renamed method.
666
667 2011-07-12  Joseph Pecoraro  <joepeck@webkit.org>
668
669         ApplicationCache update should not immediately fail when reaching per-origin quota
670         https://bugs.webkit.org/show_bug.cgi?id=64177
671
672         Reviewed by Alexey Proskuryakov.
673
674         * Api/qwebpage.cpp:
675         * Api/qwebpage.h:
676         * WebCoreSupport/ChromeClientQt.cpp:
677         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
678         * WebCoreSupport/ChromeClientQt.h:
679         Pass the spaceNeeded value through to the applicationCacheQuotaExceeded signal.
680
681 2011-07-11  Ryosuke Niwa  <rniwa@webkit.org>
682
683         Move selection related code from RenderTextControl to HTMLTextFormControlElement
684         https://bugs.webkit.org/show_bug.cgi?id=64133
685
686         Reviewed by Dimitri Glazkov.
687
688         Replaced calls to WebCore::setSelectionRange by calls to HTMLTextFormControlElement::setSelectionRange.
689
690         * Api/qwebpage.cpp:
691         (QWebPagePrivate::inputMethodEvent):
692
693 2011-07-08  Adam Barth  <abarth@webkit.org>
694
695         Unreviewed, rolling out r90662.
696         http://trac.webkit.org/changeset/90662
697         https://bugs.webkit.org/show_bug.cgi?id=64210
698
699         Introduced regressions in Chromium browser tests (Requested by
700         rniwa on #webkit).
701
702         * Api/qwebpage.cpp:
703         (QWebPagePrivate::inputMethodEvent):
704
705 2011-07-08  Ryosuke Niwa  <rniwa@webkit.org>
706
707         Move selection related code from RenderTextControl to HTMLTextFormControlElement
708         https://bugs.webkit.org/show_bug.cgi?id=64133
709
710         Reviewed by Dimitri Glazkov.
711
712         Replaced calls to WebCore::setSelectionRange by calls to HTMLTextFormControlElement::setSelectionRange.
713
714         * Api/qwebpage.cpp:
715         (QWebPagePrivate::inputMethodEvent):
716
717 2011-07-05  Rafael Brandao  <rafael.lobo@openbossa.org>
718
719         [Qt] Fix tst_QWebFrame::setHtmlWithResource() API test
720         https://bugs.webkit.org/show_bug.cgi?id=63235
721
722         Modified baseUrl to be a local file in order to get a security origin
723         that is allowed to request local resources. Removed QSignalSpy from it
724         as loadFinished always happens, and the original test was split into two.
725
726         Reviewed by Benjamin Poulain.
727
728         * tests/qwebframe/tst_qwebframe.cpp:
729         (tst_QWebFrame::setHtmlWithImageResource):
730         (tst_QWebFrame::setHtmlWithStylesheetResource):
731         (tst_QWebFrame::setHtmlWithBaseURL):
732
733 2011-04-02  Robert Hogan  <robert@webkit.org>
734
735         Reviewed by Benjamin Poulain.
736
737         [Qt] Support third-party cookie policy for Qt clients
738
739         This adds new API to QWebSettings that allows clients to
740         select one of three third-party cookie blocking policies:
741
742           AlwaysAllowThirdPartyCookies
743           AlwaysBlockThirdPartyCookies
744           AllowThirdPartyWithExistingCookies
745
746         The first two are self-explanatory, the third mimics Safari's
747         default behaviour of permitting third-party cookies when the user
748         already has cookies from the third-party site. This was
749         introduced to allow third-party cookie blocking to play well with
750         facebook sharing etc. AlwaysAllowThirdPartyCookies is the default.
751
752         There is scope for adding an 'exceptions' list API and clients would
753         struggle to implement it themselves given the paucity of information
754         available from setCookiesForUrl().
755
756         See also: http://gitorious.org/qt/qt/merge_requests/1205
757                    (commit 154402f56dcf8303a6ce601a52215226af8d31ba)
758                   http://bugreports.qt.nokia.com/browse/QTBUG-13601
759
760         https://bugs.webkit.org/show_bug.cgi?id=45455
761
762         * Api/qwebsettings.cpp:
763         (QWebSettings::QWebSettings):
764         (QWebSettings::setThirdPartyCookiePolicy):
765         (QWebSettings::thirdPartyCookiePolicy):
766         * Api/qwebsettings.h:
767
768 2011-07-01  Jade Han  <jade.han@nokia.com>
769
770         [Qt][Symbian] Update .def file for Symbian to build Tools
771         https://bugs.webkit.org/show_bug.cgi?id=61200
772
773         Reviewed by Laszlo Gombos.
774
775         Add newly introduced symbols to fix building the Tools directory for Symbian.
776
777         * symbian/eabi/QtWebKitu.def:
778
779 2011-07-01  Jade Han  <jade.han@nokia.com>
780
781         Reviewed by Laszlo Gombos.
782
783         [Qt][Symbian] Update .def file for Symbian
784         https://bugs.webkit.org/show_bug.cgi?id=61200
785
786         Add newly introduced symbols to fix the Symbian build.
787
788         * symbian/eabi/QtWebKitu.def:
789
790 2011-06-30  Rafael Brandao  <rafael.lobo@openbossa.org>
791
792         Reviewed by Benjamin Poulain.
793
794         [Qt] Fix tst_QWebFrame::renderGeometry() API test
795         https://bugs.webkit.org/show_bug.cgi?id=63236
796         
797         This test required a security origin with granted permission to request local resources.
798         By default, only local files can load local resources. So modified baseUrl to be a local file.
799
800         * tests/qwebframe/tst_qwebframe.cpp:
801         (tst_QWebFrame::renderGeometry):
802
803 2011-06-27  Diego Gonzalez  <diegohcg@webkit.org>
804
805         Reviewed by Antonio Gomes.
806
807         [Qt] DRT: Provide LayoutTestController::setDefersLoading and ::goBack support
808         https://bugs.webkit.org/show_bug.cgi?id=63489
809
810         Unskipped:
811             loader/navigation-while-deferring-loads.html
812
813         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
814         (DumpRenderTreeSupportQt::setDefersLoading):
815         (DumpRenderTreeSupportQt::goBack):
816         * WebCoreSupport/DumpRenderTreeSupportQt.h:
817
818 2011-06-30  Fabrizio Machado  <fabrizio.machado@nokia.com>
819
820         Reviewed by Benjamin Poulain.
821         
822         [Qt] QML Webview causes performance drops
823         https://bugs.webkit.org/show_bug.cgi?id=57554
824
825         Remove tiledBackingStoreEnabled from QML WebView.
826         
827         * declarative/qdeclarativewebview.cpp:
828         (QDeclarativeWebView::setPage):
829
830 2011-06-30  Kentaro Hara  <haraken@google.com>
831
832         Reviewed by Kent Tamura.
833
834         Change the label of an HTML5 file chooser button to "Choose Files"
835         https://bugs.webkit.org/show_bug.cgi?id=49245
836
837         We should notify capability of multiple files to users.
838
839         Test: fast/forms/input-file-label.html
840
841         * WebCoreSupport/WebPlatformStrategies.cpp:
842         (WebPlatformStrategies::fileButtonChooseFileLabel): Updated the description for "Choose File".
843         (WebPlatformStrategies::fileButtonChooseMultipleFilesLabel):  Returns a "Choose Files" label.
844         * WebCoreSupport/WebPlatformStrategies.h:
845
846 2011-06-29  Alexis Menard  <alexis.menard@openbossa.org>
847
848         Reviewed by Benjamin Poulain.
849
850         [Qt] Add Qt dependencies in QtWebKit's main pro file.
851         https://bugs.webkit.org/show_bug.cgi?id=63639
852
853         syncqt, the script which generates the headers inside Qt parses
854         the main pro file of QtWebKit to check the Qt dependencies. It used
855         to be WebCore.pro but after the build reorganization QtWebKit.pro is
856         the new main pro file so we need to add the network dependency just like
857         we did in WebCore.pro.
858
859         * QtWebKit.pro:
860
861 2011-06-28  Ilya Sherman  <isherman@chromium.org>
862
863         Reviewed by Adam Barth.
864
865         form.autocomplete="off" does not work
866         https://bugs.webkit.org/show_bug.cgi?id=35823
867
868         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
869         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId): Update callsite.
870
871 2011-06-27  Diego Gonzalez  <diegohcg@webkit.org>
872
873         Reviewed by Kenneth Rohde Christiansen.
874
875         [Qt] DRT support for setInteractiveFormValidationEnabled
876         https://bugs.webkit.org/show_bug.cgi?id=63496
877
878         Unskipped:
879             fast/forms/interactive-validation-prevented.html
880             fast/forms/interactive-validation-attach-assertion.html
881             fast/forms/interactive-validation-assertion-by-validate-twice.html
882             fast/forms/interactive-validation-select-crash.html
883             fast/forms/interactive-validation-crash-by-style-override.html
884
885         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
886         (DumpRenderTreeSupportQt::setInteractiveFormValidationEnabled):
887         * WebCoreSupport/DumpRenderTreeSupportQt.h:
888
889 2011-06-28  Alexis Menard  <alexis.menard@openbossa.org>
890
891         Reviewed by Andreas Kling.
892
893         [Qt] Use <QtX/x.h> style of headers for Qt tests which rely on it.
894         https://bugs.webkit.org/show_bug.cgi?id=63562
895
896         Some Qt auto-tests rely on <QtX/x.h> types of includes.
897
898         * Api/qwebkitplatformplugin.h:
899         * symbian/platformplugin/qwebkitplatformplugin.h:
900
901 2011-06-28  Alexis Menard  <alexis.menard@openbossa.org>
902
903         Reviewed by Andreas Kling.
904
905         [Qt] Use QtQuick imports in Api tests rather than old deprecated Qt 4.x imports.
906         https://bugs.webkit.org/show_bug.cgi?id=63533
907
908         We need to use the new QtQuick 1.x imports rather than the old deprecated
909         version.
910
911         * tests/qdeclarativewebview/resources/webviewbackgroundcolor.qml:
912         * tests/qdeclarativewebview/resources/webviewtest.qml:
913         * tests/qdeclarativewebview/resources/webviewtestdefault.qml:
914
915 2011-06-27  Alexis Menard  <alexis.menard@openbossa.org>
916
917         Reviewed by Darin Adler.
918
919         Use specific headers includes rather than full system headers.
920         https://bugs.webkit.org/show_bug.cgi?id=63475
921
922         Use only needed headers rather than system headers.
923
924         * WebCoreSupport/QTKitFullScreenVideoHandler.mm:
925
926 2011-06-27  Alexis Menard  <alexis.menard@openbossa.org>
927
928         Reviewed by Kenneth Rohde Christiansen.
929
930         [Qt] Remove Phonon MediaPlayer from the tree.
931         https://bugs.webkit.org/show_bug.cgi?id=63448
932
933         Remove Phonon related stuff.
934
935         * docs/qtwebkit.qdocconf:
936         * qt_webkit_version.pri:
937
938 2011-06-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
939
940         Reviewed by Andreas Kling.
941
942         [Qt] tst_QWebFrame::overloadedSlots() fails
943         https://bugs.webkit.org/show_bug.cgi?id=37319
944
945         * tests/qwebframe/tst_qwebframe.cpp:
946         (tst_QWebFrame::overloadedSlots): Remove expected failure and
947         fix the comment.
948
949 2011-06-20  Robert Hogan  <robert@webkit.org>
950
951         Reviewed by Antonio Gomes.
952
953         [Qt] Duplicate entry in context menu
954         https://bugs.webkit.org/show_bug.cgi?id=62139
955
956         contextMenuController()->populate() is called from
957         ContextMenuController::handleContextMenuEvent() so
958         QWebPage::updatePositionDependentActions() does not need
959         to call it independently.
960
961         Related changesets: 
962          http://trac.webkit.org/changeset/73535
963          http://trac.webkit.org/changeset/32389
964
965         * Api/qwebpage.cpp:
966         (QWebPage::updatePositionDependentActions):
967         * tests/qwebpage/tst_qwebpage.cpp:
968         (tst_QWebPage::contextMenuCopy):
969         (tst_QWebPage::contextMenuPopulatedOnce):
970
971 2011-06-24  Dominic Cooney  <dominicc@chromium.org>
972
973         Reviewed by Dimitri Glazkov.
974
975         Convert shadow-DOM related tests to use window.internals
976         https://bugs.webkit.org/show_bug.cgi?id=61671
977
978         Remove shadow-DOM related methods from Qt DRT API. These are not
979         required any more.
980
981         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
982         * WebCoreSupport/DumpRenderTreeSupportQt.h:
983
984 2011-06-23  Joe Wild  <joseph.wild@nokia.com>
985
986         Reviewed by Laszlo Gombos.
987
988         [Qt] The Qt WebKit Symbian .def file needs to be updated so Symbian will build
989         https://bugs.webkit.org/show_bug.cgi?id=61200
990
991         Revert r87060 as it broke compatibility with QtWebKit 2.1 release
992         and add some newly introduce symbols.
993
994         * symbian/eabi/QtWebKitu.def:
995
996 2011-06-23  Alexis Menard  <alexis.menard@openbossa.org>
997
998         Reviewed by Eric Carlson.
999
1000         [Qt] Implement fullscreen support on Mac with the QuickTime backend.
1001         https://bugs.webkit.org/show_bug.cgi?id=61728
1002
1003         Implement fullscreen support for Qt when using the QuickTime backend.
1004         We mostly use what is already done for the Mac port.
1005
1006         * QtWebKit.pro:
1007         * WebCoreSupport/ChromeClientQt.cpp:
1008         (WebCore::ChromeClientQt::ChromeClientQt):
1009         (WebCore::ChromeClientQt::~ChromeClientQt):
1010         * WebCoreSupport/ChromeClientQt.h:
1011         * WebCoreSupport/FullScreenVideoQt.cpp:
1012         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
1013         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
1014         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
1015         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
1016         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
1017         (WebCore::FullScreenVideoQt::isValid):
1018         * WebCoreSupport/FullScreenVideoQt.h:
1019         * WebCoreSupport/QTKitFullScreenVideoHandler.h: Added.
1020         * WebCoreSupport/QTKitFullScreenVideoHandler.mm: Added.
1021         (QTKitFullScreenVideoHandler::QTKitFullScreenVideoHandler):
1022         (QTKitFullScreenVideoHandler::~QTKitFullScreenVideoHandler):
1023         (QTKitFullScreenVideoHandler::enterFullScreen):
1024         (QTKitFullScreenVideoHandler::exitFullScreen):
1025         * WebCoreSupport/WebSystemInterface.mm:
1026         (InitWebCoreSystemInterface):
1027
1028 2011-06-23  Yael Aharon  <yael.aharon@nokia.com>
1029
1030         Reviewed by Andreas Kling.
1031
1032         [Qt] [WK2] Add drag and drop support
1033         https://bugs.webkit.org/show_bug.cgi?id=62838
1034
1035         Call dragEnded from the DragClient to make WebKit1 and WebKit2 consistent.
1036
1037         * WebCoreSupport/DragClientQt.cpp:
1038         (WebCore::DragClientQt::startDrag):
1039
1040 2011-06-23  Joe Wild  <joseph.wild@nokia.com>
1041
1042         Reviewed by Laszlo Gombos.
1043
1044         [Qt] Export files under Symbian Qt WebKit build
1045         https://bugs.webkit.org/show_bug.cgi?id=61207
1046
1047         Export files for the Symbian platform as this is needed by the
1048         production build system.
1049
1050         Janne Koskinen provided the suggestion to use target_predeps,
1051         which is an improvement over the originally suggested patch.
1052
1053         * QtWebKit.pro:
1054
1055 2011-06-23  Csaba Osztrogonác  <ossy@webkit.org>
1056
1057         Rubber-stamped by Andreas Kling.
1058
1059         [Qt] Fix tst_QWebFrame::setHtmlWithResource() API test
1060         https://bugs.webkit.org/show_bug.cgi?id=63235
1061
1062         [Qt] Fix tst_QWebFrame::renderGeometry() API test
1063         https://bugs.webkit.org/show_bug.cgi?id=63236
1064
1065         [Qt] Fix tst_QWebFrame::setUrlWithPendingLoads() API test
1066         https://bugs.webkit.org/show_bug.cgi?id=63237
1067
1068         * tests/qwebframe/tst_qwebframe.cpp: Mark failing test cases as expected fails until real fix.
1069         (tst_QWebFrame::setHtmlWithResource):
1070         (tst_QWebFrame::renderGeometry):
1071
1072 2011-06-23  Csaba Osztrogonác  <ossy@webkit.org>
1073
1074         Rubber-stamped by Andreas Kling.
1075
1076         [Qt] Fix tst_QWebPage::showModalDialog() API test
1077         https://bugs.webkit.org/show_bug.cgi?id=63244
1078
1079         [Qt] Fix tst_QWebPage::testStopScheduledPageRefresh() API test
1080         https://bugs.webkit.org/show_bug.cgi?id=63245
1081
1082         * tests/qwebpage/tst_qwebpage.cpp: Mark failing test cases as expected fails.
1083         (tst_QWebPage::showModalDialog):
1084         (tst_QWebPage::testStopScheduledPageRefresh):
1085
1086 2011-06-22  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
1087
1088         Reviewed by Holger Freyther.
1089
1090         [Qt] Fix Qt namespace on QDeclarativeWebView autotest
1091         https://bugs.webkit.org/show_bug.cgi?id=63147
1092
1093         Applications (such as the test runner) are not supposed to be wrapped
1094         by {QT_BEGIN,QT_END}_NAMESPACE macros, otherwise building Qt (or
1095         QtWebKit) with a specific namespace won't work (will result in main
1096         being undefined).
1097
1098         This was the only test wrapped by these macros, all others are fine.
1099
1100         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: remove
1101         namespace macros.
1102
1103 2011-06-20  Dimitri Glazkov  <dglazkov@chromium.org>
1104
1105         Reviewed by Kent Tamura.
1106
1107         FileChooser should be only created when we need to choose files.
1108         https://bugs.webkit.org/show_bug.cgi?id=63039
1109
1110         * WebCoreSupport/ChromeClientQt.cpp:
1111         (WebCore::ChromeClientQt::runOpenPanel): Changed to use settings.
1112
1113 2011-06-21  Yael Aharon  <yael.aharon@nokia.com>
1114
1115         Reviewed by Andreas Kling.
1116
1117         [Qt] Regression(60942) wrong default action for drag-and-drop.
1118         https://bugs.webkit.org/show_bug.cgi?id=63004
1119
1120         Added special handling for the case that dragOperation is not initialized.
1121         Save the last dropOperation and pass it to the dropEvent, so that it can 
1122         be accepted by QDrag.
1123         Call event->accepted() and not event->acceptProposedAction(), because the
1124         later ignores the dropAction specified in JavaScript.
1125
1126         Tested with the test page attached to https://bugs.webkit.org/show_bug.cgi?id=40401
1127         and did not see any issue.
1128         Also manually tested all combinations of LayoutTests/fast/events/drag-and-drop.html
1129         and they all pass.
1130
1131         * Api/qwebpage.cpp:
1132         (dropActionToDragOp):
1133         (QWebPagePrivate::dragMoveEvent):
1134         (QWebPagePrivate::dropEvent):
1135
1136 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
1137
1138         Reviewed by Yury Semikhatsky.
1139
1140         Web Inspector: remove LayoutTestController::setTimelineProfilingEnabled.
1141         https://bugs.webkit.org/show_bug.cgi?id=62994
1142
1143         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1144         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1145
1146 2011-06-18  Dimitri Glazkov  <dglazkov@chromium.org>
1147
1148         Reviewed by Darin Adler.
1149
1150         Separate concerns of loading file icons and choosing files.
1151         https://bugs.webkit.org/show_bug.cgi?id=62931
1152
1153         * WebCoreSupport/ChromeClientQt.cpp:
1154         (WebCore::ChromeClientQt::loadIconForFiles): Renamed.
1155         * WebCoreSupport/ChromeClientQt.h:
1156
1157 2011-06-17  Alexis Menard  <alexis.menard@openbossa.org>
1158
1159         Reviewed by Andreas Kling.
1160
1161         [Qt] Fix wrong framework generation on MacOS when inside Qt 4.8.
1162         https://bugs.webkit.org/show_bug.cgi?id=62815
1163
1164         Partially revert r85870 which assumed that QtWebKit will never be build inside Qt
1165         anymore. Everything inside !QTDIR_build condition is not needed in the Qt tree because
1166         qbase.pri is doing the job for us, i.e. using includes generated by syncqt to
1167         setup the mac framework. It also use a correct QMAKE_LFLAGS_SONAME making possible
1168         to actually run an application linked against QtWebKit.
1169
1170         * QtWebKit.pro:
1171
1172 2011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
1173
1174         Unreviewed, rolling out r88796.
1175         http://trac.webkit.org/changeset/88796
1176         https://bugs.webkit.org/show_bug.cgi?id=62790
1177
1178         It made fast/dom/nodesFromRect-basic.html time out on Qt,
1179         64-bit, debug mode (Requested by Ossy on #webkit).
1180
1181         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1182         (DumpRenderTreeSupportQt::plainText):
1183         (DumpRenderTreeSupportQt::nodesFromRect):
1184         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1185         * tests/qwebframe/tst_qwebframe.cpp:
1186         (tst_QWebFrame::overloadedSlots):
1187         (tst_QWebFrame::domCycles):
1188
1189 2011-06-15  Diego Gonzalez  <diegohcg@webkit.org>
1190
1191         Reviewed by Kenneth Rohde Christiansen.
1192
1193         [Qt] Inconsistent behavior on a form submit request...
1194         https://bugs.webkit.org/show_bug.cgi?id=45523
1195
1196         The inconsistency occurs when a form submission requests a new window.
1197         Two windows are opened (instead of only one) and the first window is opened
1198         as a blank page.
1199
1200         By default each page is put into their own unique page group, which affects popup windows
1201         and visited links. Page groups (per process only) is a feature making it possible to use
1202         separate settings for each group, so that for instance an integrated browser/email reader
1203         can use different settings for displaying HTML pages and HTML email. To make QtWebKit work
1204         as expected out of the box, we use a default group similar to what other ports are doing.
1205
1206         * Api/qwebpage.cpp:
1207
1208 2011-06-14  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1209
1210         Reviewed by Andreas Kling.
1211
1212         [Qt] tst_QWebFrame::overloadedSlots() fails
1213         https://bugs.webkit.org/show_bug.cgi?id=37319
1214
1215         Since the implicit conversion was removed, change support functions of DRT to
1216         expect a QVariantMap instead of a QWebElement. This matches the exposed function
1217         in the controller, which takes 'document' and not 'document.documentElement'.
1218
1219         And now that Element -> QWebElement is a perfect match, we must use QWebElement
1220         instead of QVariantMap, like in plainText().
1221
1222         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1223         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1224         (DumpRenderTreeSupportQt::plainText): Fix to use QWebElement instead of
1225         QVariantMap when getting the startContainer. Also use QVariantMap directly,
1226         bridge will do conversion for us now.
1227
1228         (getCoreDocumentFromVariantMap): Extracts the WebCore::Document* from the
1229         QVariantMap that Qt bridge gives us when 'document' is passed from JS.
1230
1231         (DumpRenderTreeSupportQt::nodesFromRect): Use helper function.
1232
1233         * tests/qwebframe/tst_qwebframe.cpp: Splitted the test domCycles() into two
1234         different tests. In practice, the original test just checked whether we could
1235         create a QVariantMap representing 'document' without infinite looping due to
1236         cycles in the DOM. This was more evident before since we haven't a conversion
1237         from JSElement to QWebElement, but from JSElement to QVariantMap.
1238
1239         (tst_QWebFrame::documentHasDocumentElement): Evaluates 'document' and extracts
1240         'documentElement' from it. Compares to QWebFrame::documentElement().
1241
1242         (tst_QWebFrame::documentAllHasDocumentElement): Look inside 'document.all' for
1243         the documentElement.
1244
1245         (tst_QWebFrame::overloadedSlots): Remove expected failure and fix wrong comment.
1246
1247 2011-06-14  Andreas Kling  <kling@webkit.org>
1248
1249         Reviewed by Benjamin Poulain.
1250
1251         [Qt] Don't include convenience "QWebFoo" headers in WebKit code.
1252         https://bugs.webkit.org/show_bug.cgi?id=62632
1253
1254         * WebCoreSupport/FrameNetworkingContextQt.cpp:
1255
1256 2011-06-12  Adam Barth  <abarth@webkit.org>
1257
1258         Reviewed by Alexey Proskuryakov.
1259
1260         Rename FrameLoaderClient::interruptForPolicyChangeError to use the past tense
1261         https://bugs.webkit.org/show_bug.cgi?id=62516
1262
1263         * WebCoreSupport/FrameLoaderClientQt.cpp:
1264         (WebCore::FrameLoaderClientQt::interruptedForPolicyChangeError):
1265         * WebCoreSupport/FrameLoaderClientQt.h:
1266
1267 2011-06-12  Adam Barth  <abarth@webkit.org>
1268
1269         Attempt to fix Qt build.
1270
1271         * WebCoreSupport/FrameLoaderClientQt.cpp:
1272         (drtPrintFrameUserGestureStatus):
1273
1274 2011-06-12  Adam Barth  <abarth@webkit.org>
1275
1276         Reviewed by Eric Seidel.
1277
1278         Remove FrameLoader::isProcessingUserGesture
1279         https://bugs.webkit.org/show_bug.cgi?id=62519
1280
1281         * WebCoreSupport/FrameLoaderClientQt.cpp:
1282         (drtPrintFrameUserGestureStatus):
1283
1284 2011-06-10  Andreas Kling  <kling@webkit.org>
1285
1286         Reviewed by Benjamin Poulain.
1287
1288         [Qt] Fix 'headers' autotest when building inside Qt.
1289         https://bugs.webkit.org/show_bug.cgi?id=62449
1290
1291         * Api/qwebkitplatformplugin.h:
1292
1293 2011-06-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1294
1295         Reviewed by Kenneth Rohde Christiansen.
1296
1297         [Qt] Keep ORIENTATION_EVENTS independent from DEVICE_ORIENTATION
1298         https://bugs.webkit.org/show_bug.cgi?id=62420
1299
1300         ORIENTATION_EVENTS and DEVICE_ORIENTATION features are very similar
1301         but they meant to be independent.
1302
1303         * Api/qwebframe.cpp:
1304         (QWebFramePrivate::_q_orientationChanged):
1305         (QWebFrame::QWebFrame):
1306         * Api/qwebframe_p.h:
1307
1308 2011-06-09  Andras Becsi  <abecsi@webkit.org>
1309
1310         Reviewed by Andreas Kling.
1311
1312         [Qt] Fix the in-tree build on Linux
1313         https://bugs.webkit.org/show_bug.cgi?id=62378
1314
1315         In case of an in-tree build qmake generates defect prl dependencies for
1316         the QtWebKit library, because the inclusion of qtbase.pri adds explicitlib to CONFIG.
1317
1318         * QtWebKit.pro: Remove explicitlib and staticlib from CONFIG.
1319
1320 2011-06-09  Robert Hogan  <robert@webkit.org>
1321
1322         Reviewed by Andreas Kling.
1323
1324         Teach Qt about window.internals
1325         https://bugs.webkit.org/show_bug.cgi?id=61074
1326
1327         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1328         (DumpRenderTreeSupportQt::injectInternalsObject):
1329         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1330
1331 2011-06-08  Andreas Kling  <kling@webkit.org>
1332
1333         Reviewed by Benjamin Poulain.
1334
1335         [Qt] FrameLoaderClient: Check Vector::find() return value for WTF::notFound.
1336         https://bugs.webkit.org/show_bug.cgi?id=62274
1337
1338         Vector::find() returns size_t (which is unsigned), so we should check
1339         for WTF::notFound instead of -1.
1340
1341         * WebCoreSupport/FrameLoaderClientQt.cpp:
1342         (WebCore::FrameLoaderClientQt::createPlugin):
1343
1344 2011-06-07  Noam Rosenthal  <noam.rosenthal@nokia.com>
1345
1346         Reviewed by Andreas Kling.
1347
1348         [Texmap][Qt] Enable TextureMapper by default
1349         https://bugs.webkit.org/show_bug.cgi?id=61740
1350
1351         Enable TextureMapper on Windows+Symbian, disabling the direct OpenGL path. This would mean that
1352         for now QtWebKit on Windows/Symbian would use the Qt backend for TextureMapper.
1353
1354         * WebCoreSupport/PageClientQt.cpp:
1355         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
1356
1357 2011-06-07  Aravind Akella  <aravind.akella@nokia.com>
1358
1359         Reviewed by Laszlo Gombos.
1360
1361         [Qt][Symbian] API test failure qdeclarativewebview
1362         https://bugs.webkit.org/show_bug.cgi?id=59481
1363
1364         QML files cannot be loaded on Symbian due to difference 
1365         in capabilities between qmlwebkitplugin.dll and Qtwebkit.dll.  
1366         A PlatSec error that Qtwebkit.dll has "DRM AllFiles" capabilities 
1367         missing is observed when dynamically loading the QML plugin. 
1368
1369         * declarative/declarative.pro: Match capabilities in QtWebKit.pro.
1370         * symbian/platformplugin/platformplugin.pro: Match capabilities with the other 2 DLLs. 
1371         Also remove TARGET.VID from platformplugin, as it's not used in any other Qt WebKit DLL,
1372         and causes build warnings about undefined VENDOR_VID. 
1373         * tests/tests.pri: Add WriteDeviceData capability for API tests. 
1374
1375 2011-06-04  Robert Hogan  <robert@webkit.org>
1376
1377         Reviewed by Andreas Kling.
1378
1379         [Qt] Fix and unskip acid2
1380         https://bugs.webkit.org/show_bug.cgi?id=62089
1381
1382         shouldFallBack() tells the DOM if it should attempt to render
1383         the next nested <object> if its parent fails to load.
1384
1385         This fix is only required for the fast/css version of the ACID2
1386         test, which loads a non-existent file:// url. The HTTP version of the
1387         test already passes because the loader will render fallback content
1388         on a failed HTTP load without delegating the decision to the client
1389         ( see MainResourceLoader::continueAfterContentPolicy).
1390
1391         Some ports also check for WebKitErrorPluginWillHandleLoad when deciding
1392         what to return. This error isn't currently set by Qt so we don't check
1393         it. (Other ports set it when the erring document is a MediaDocument, maybe
1394         we should do that too at some point).
1395
1396         * WebCoreSupport/FrameLoaderClientQt.cpp:
1397         (WebCore::FrameLoaderClientQt::shouldFallBack):
1398
1399 2011-06-03  Rafael Brandao  <rafael.lobo@openbossa.org>
1400
1401         Reviewed by Andreas Kling.
1402
1403         [Qt] It made two Qt API tests fail
1404         https://bugs.webkit.org/show_bug.cgi?id=58847
1405
1406         Modified failing test's base url so it could get a valid origin
1407         and make use of local storage. Also added another test that checks
1408         local storage visibility in both scenarios.
1409
1410         * tests/qwebpage/tst_qwebpage.cpp:
1411         (tst_QWebPage::testOptionalJSObjects):
1412         (checkLocalStorageVisibility):
1413         (tst_QWebPage::testLocalStorageVisibility):
1414
1415 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
1416
1417         Reviewed by Andreas Kling.
1418
1419         [Qt] Warning fixes on comparisons between a signed and an unsigned.
1420
1421         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1422         (DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo):
1423         (DumpRenderTreeSupportQt::nodesFromRect):
1424
1425 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
1426
1427         Reviewed by Andreas Kling.
1428
1429         To support building namespaced Qt, we require that forward-declarations
1430         of Qt classes be wrapped in QT_BEGIN_NAMESPACE and QT_END_NAMESPACE.
1431
1432         * WebCoreSupport/FrameLoaderClientQt.h:
1433
1434 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
1435
1436         Unreviewed build fix after r87902.
1437
1438         To support building namespaced Qt, we require that forward-declarations
1439         of Qt classes be wrapped in QT_BEGIN_NAMESPACE and QT_END_NAMESPACE but
1440         only on classes inside Qt.
1441         
1442         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1443
1444 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
1445
1446         Reviewed by Benjamin Poulain.
1447
1448         Some warning fixes. Values in switch not handled, and
1449         a comparison between a signed and an unsigned.
1450
1451         * Api/qwebpage.cpp:
1452         (QWebPagePrivate::inputMethodEvent):
1453         (QWebPagePrivate::dynamicPropertyChangeEvent):
1454         (QWebPage::action):
1455
1456 2011-06-02  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1457
1458         Reviewed by Andreas Kling.
1459
1460         [Qt] Fix enum order in qwebpage.h public API header
1461         https://bugs.webkit.org/show_bug.cgi?id=61959
1462
1463         Since qwebpage.h is a public header, we can't change the values of
1464         the enumerations. This patch moves the new enumeration to the end
1465         of the list. As a bonus, adds a missing entry in
1466         editorCommandWebActions table.
1467
1468         * Api/qwebpage.cpp:
1469         * Api/qwebpage.h:
1470
1471 2011-06-02  Andreas Kling  <kling@webkit.org>
1472
1473         Rubber-stamped by Simon Hausmann.
1474
1475         Remove Qt's precompiled header hack as it was broken, and was not even
1476         used unless building WebKit inside a Qt tree.
1477
1478         * WebKit_pch.h: Removed.
1479
1480 2011-06-02  Andreas Kling  <kling@webkit.org>
1481
1482         Unreviewed build fix.
1483
1484         To support building namespaced Qt, we require that forward-declarations
1485         of Qt classes be wrapped in QT_BEGIN_NAMESPACE and QT_END_NAMESPACE.
1486
1487         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1488
1489 2011-06-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1490
1491         Reviewed by Kenneth Rohde Christiansen.
1492
1493         [Qt]Fix tst_QWebFrame::setUrlToInvalid() autotest after r84762
1494         https://bugs.webkit.org/show_bug.cgi?id=59345
1495
1496         KURL and QUrl disagree whether certain URLs are valid or not. The regression here
1497         was caused by the fact that now KURL accepts "http:/example.com" (note only one
1498         slash) and our test case used a strange edge case that's transformed into a
1499         "one-slash" URL that now KURL can handle.
1500
1501         QtWebKit approach in this case is to do a best effort and accept the QUrl if KURL
1502         can understand it. So I've updated the test to use a more meaningful example and
1503         show that an invalid URL gets converted to a valid URL if possible.
1504
1505         * tests/qwebframe/tst_qwebframe.cpp:
1506         (tst_QWebFrame::setUrlToInvalid):
1507
1508 2011-06-01  Andreas Kling  <kling@webkit.org>
1509
1510         Reviewed by Benjamin Poulain.
1511
1512         REGRESSION: [Qt] QNetworkReply delivered by the unsupportedContent() signal does not contain downloaded data
1513         https://bugs.webkit.org/show_bug.cgi?id=49650
1514
1515         Defer emission of QWebPage::unsupportedContent() until we're back in the event loop.
1516         This lets the QNAM backend finish with the reply without handing over ownership to the user code.
1517
1518         No new tests since this doesn't fail for qrc:// or file:// URLs and our tests can't depend on http:// URLs.
1519
1520         To correctly solve this issue, we need changes to Qt, tracked here:
1521         http://bugreports.qt.nokia.com/browse/QTBUG-18718
1522
1523         * WebCoreSupport/FrameLoaderClientQt.cpp:
1524         (WebCore::FrameLoaderClientQt::setFrame):
1525         (WebCore::FrameLoaderClientQt::download):
1526         * WebCoreSupport/FrameLoaderClientQt.h:
1527
1528 2011-06-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1529
1530         Reviewed by Tor Arne Vestbø.
1531
1532         [Qt] Rewrite tst_QDeclarativeWebView::multipleWindows() to not depend on Grid internals
1533         https://bugs.webkit.org/show_bug.cgi?id=61739
1534
1535         The skipped test was imported from Qt source repository, and used private headers
1536         to peek in the QML Grid element. This patch changes the QML used to expose the
1537         information we want to test: number of pages opened and the first page opened.
1538
1539         * tests/qdeclarativewebview/resources/newwindows.html:
1540         Added <body> tags. We have no reason to not use them in the test.
1541
1542         * tests/qdeclarativewebview/resources/newwindows.qml:
1543         Moved the timer out of the page component, used anchors for setting webview size,
1544         changed the way we count pages opened. Also changed coding style a bit.
1545
1546         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
1547         (tst_QDeclarativeWebView::multipleWindows):
1548         We now look for properties with the information we want in the rootItem: pagesOpened and
1549         firstPageOpened.
1550
1551 2011-05-31  Rafael Brandao  <rafael.lobo@openbossa.org>
1552
1553         Reviewed by Andreas Kling.
1554
1555         [Qt] tst_QWebFrame::render() failing
1556         https://bugs.webkit.org/show_bug.cgi?id=60893
1557         
1558         The test was expecting the frame contents to be already loaded
1559         before rendering it into a QPicture. Renamed the test to fit
1560         its real purpose more accordingly.
1561
1562         * tests/qwebframe/tst_qwebframe.cpp:
1563         (tst_QWebFrame::renderGeometry):
1564
1565 2011-05-30  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1566
1567         Reviewed by Andreas Kling.
1568
1569         [Qt] Fix unnecessary wait in API autotest tst_QWebFrame::scrollbarsOff
1570         https://bugs.webkit.org/show_bug.cgi?id=61711
1571
1572         The loadFinished() signal was emitted directly inside the call for setHtml, so
1573         the test was waiting the loadFinished() signal with a big timeout. Change this by
1574         a very small timeout and a verification with signal spy.
1575
1576         In practice, setHtml() will either directly call loadFinished() or queue it to
1577         the next event loop run, and test will work for both situations.
1578
1579         * tests/qwebframe/tst_qwebframe.cpp:
1580         (tst_QWebFrame::scrollbarsOff):
1581
1582 2011-05-30  Noam Rosenthal  <noam.rosenthal@nokia.com>
1583
1584         Reviewed by Kenneth Rohde Christiansen.
1585
1586         [Texmap][Qt] Disable accelerated plugins/media in until they're working.
1587         https://bugs.webkit.org/show_bug.cgi?id=61687
1588
1589         Turn off accelerated compositing for media and plugins when in texture-mapper.
1590
1591         * Api/qwebsettings.cpp:
1592         (QWebSettingsPrivate::apply):
1593
1594 2011-05-28  Adam Barth  <abarth@webkit.org>
1595
1596         Reviewed by Alexey Proskuryakov.
1597
1598         Audit all uses of KURL::prettyURL
1599         https://bugs.webkit.org/show_bug.cgi?id=61201
1600
1601         Update callers of prettyURL to just call string.
1602
1603         * WebCoreSupport/ChromeClientQt.cpp:
1604         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
1605         * WebCoreSupport/FrameLoaderClientQt.cpp:
1606         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
1607         (WebCore::FrameLoaderClientQt::cancelledError):
1608         (WebCore::FrameLoaderClientQt::blockedError):
1609         (WebCore::FrameLoaderClientQt::objectContentType):
1610         (WebCore::FrameLoaderClientQt::createPlugin):
1611
1612 2011-05-27  Alexis Menard  <alexis.menard@openbossa.org>
1613
1614         Reviewed by Csaba Osztrogonác.
1615
1616         [Qt] Fix tst_QGraphicsWebView::setPalette(inactiveBG) autotest
1617         https://bugs.webkit.org/show_bug.cgi?id=61044
1618
1619         Make sure to set the active window on the application too.
1620
1621         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1622         (tst_QGraphicsWebView::setPalette):
1623
1624 2011-05-26  Alexis Menard  <alexis.menard@openbossa.org>
1625
1626         Unreviewed build fix for Qt and QuickTime backend.
1627
1628         r87328 added a new system interface, we need to add it too.
1629
1630         * WebCoreSupport/WebSystemInterface.mm:
1631         (InitWebCoreSystemInterface):
1632
1633 2011-05-25  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1634
1635         Reviewed by Andreas Kling.
1636
1637         [Qt] JSC bridge: implement __qt_sender__ without using Scope Chain
1638         https://bugs.webkit.org/show_bug.cgi?id=61343
1639
1640         Create a '__qt_sender__' property in the global object, that returns the top of
1641         the qtSenderStack. This is an alternative implementation for the feature of
1642         providing a way for a function (acting as a Qt 'slot') discover which object
1643         emitted the signal that caused it to be executed.
1644
1645         This reduces the coupling of the Qt bridge and JSC internal implementation. The
1646         patch tries to use as much JSC public API as possible.
1647
1648         This behavior is covered by the tst_QWebFrame::connectAndDisconnect() auto test.
1649
1650         * WebCoreSupport/FrameLoaderClientQt.cpp:
1651         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
1652         Instead of emitting the QWebPage::javaScriptWindowObjectCleared() directly, calls
1653         a QWebPagePrivate function to do it.
1654
1655         * Api/qwebframe_p.h:
1656         * Api/qwebframe.cpp:
1657         (QWebFramePrivate::didClearedWindowObject):
1658         Before emitting the signal mentioned, adds the '__qt_sender__' to the fresh
1659         global object.
1660
1661         (qtSenderCallback):
1662         Returns the JSObjectRef corresponding to the top of qtSenderStack.
1663
1664         (QWebFramePrivate::addQtSenderToGlobalObject):
1665         Create a property with a qtSenderCallback as getter function in the global object.
1666
1667 2011-05-25  Alexis Menard  <alexis.menard@openbossa.org>
1668
1669         Reviewed by Eric Carlson.
1670
1671         [Qt] Enable usage of QuickTime mediaplayer for the Qt port on Mac.
1672         https://bugs.webkit.org/show_bug.cgi?id=61279
1673
1674         Enable the usage of QuickTime backend for the Qt port. It can be enabled by
1675         passing DEFINES+=USE_QTKIT=1 when calling build-webkit.
1676
1677         * Api/qwebpage.cpp:
1678         (QWebPagePrivate::QWebPagePrivate):
1679         * QtWebKit.pro:
1680         * WebCoreSupport/FullScreenVideoQt.cpp:
1681         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
1682         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
1683         (WebCore::FullScreenVideoQt::isValid):
1684         * WebCoreSupport/WebSystemInterface.h: Added.
1685         * WebCoreSupport/WebSystemInterface.mm: Added.
1686         (InitWebCoreSystemInterface):
1687
1688 2011-05-25  Qi Zhang  <qi.2.zhang@nokia.com>
1689
1690         Reviewed by Andreas Kling.
1691
1692         [Qt] fast/css/disabled-author-styles.html failed
1693         https://bugs.webkit.org/show_bug.cgi?id=61438
1694
1695         Provided API setAuthorAndUserStylesEnabled for DumpRenderTree.
1696
1697         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1698         (DumpRenderTreeSupportQt::setAuthorAndUserStylesEnabled):
1699         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1700
1701 2011-05-24  Adam Barth  <abarth@webkit.org>
1702
1703         Reviewed by Eric Seidel.
1704
1705         Add FIXME comments about removing FrameLoader::isProcessingUserGesture
1706         https://bugs.webkit.org/show_bug.cgi?id=61395
1707
1708         * WebCoreSupport/FrameLoaderClientQt.cpp:
1709         (drtPrintFrameUserGestureStatus):
1710
1711 2011-05-23  Luiz Agostini  <luiz.agostini@openbossa.org>
1712
1713         Reviewed by Andreas Kling.
1714
1715         [Qt] When opening a combo-box the popup renders badly.
1716         https://bugs.webkit.org/show_bug.cgi?id=61288
1717
1718         Removing combobox palette changes from QtFallbackWebPopup::show() because they
1719         are causing rendering problems for some styles.
1720
1721         The changes in palette are not needed because the background and foreground
1722         colors are already set by QStandardItem::setBackground() and QStandardItem::setForeground()
1723         in method QtFallbackWebPopup::populate().
1724
1725         * WebCoreSupport/QtFallbackWebPopup.cpp:
1726         (WebCore::QtFallbackWebPopup::show):
1727
1728 2011-05-23  Joe Wild  <joseph.wild@nokia.com>
1729
1730         Reviewed by Andreas Kling.
1731
1732         [Qt] The Qt WebKit Symbian .def file needs to be updated so Symbian will build
1733         https://bugs.webkit.org/show_bug.cgi?id=61200
1734
1735         * symbian/eabi/QtWebKitu.def:
1736
1737 2011-05-22  Hui Huang  <hui.2.huang@nokia.com>, Yi Shen  <yi.4.shen@nokia.com>
1738
1739         Reviewed by Laszlo Gombos.
1740
1741         [Qt] Upstream Symbian platform plugin
1742         https://bugs.webkit.org/show_bug.cgi?id=58435
1743
1744         Upstream Symbian platform plugin with html5 video player.
1745
1746         * symbian/platformplugin/HTML5VideoPlugin.cpp: Added.
1747         (HTML5FullScreenVideoHandler::HTML5FullScreenVideoHandler):
1748         (HTML5FullScreenVideoHandler::enterFullScreen):
1749         (HTML5FullScreenVideoHandler::exitFullScreen):
1750         (HTML5FullScreenVideoHandler::onPlayerError):
1751         (HTML5FullScreenVideoHandler::onPlayerStateChanged):
1752         (HTML5FullScreenVideoHandler::onMediaStatusChanged):
1753         (HTML5VideoPlugin::supportsExtension):
1754         (HTML5VideoPlugin::createExtension):
1755         * symbian/platformplugin/HTML5VideoPlugin.h: Added.
1756         (HTML5FullScreenVideoHandler::requiresFullScreenForVideoPlayback):
1757         (HTML5FullScreenVideoHandler::isFullScreen):
1758         (HTML5FullScreenVideoHandler::updateScreenRect):
1759         * symbian/platformplugin/HTML5VideoWidget.cpp: Added.
1760         (HTML5VideoWidget::HTML5VideoWidget):
1761         (HTML5VideoWidget::setDuration):
1762         (HTML5VideoWidget::mousePressEvent):
1763         (HTML5VideoWidget::onPlayerStopped):
1764         (HTML5VideoWidget::onPlayerError):
1765         (HTML5VideoWidget::onEndOfMedia):
1766         (HTML5VideoWidget::onBufferingMedia):
1767         (HTML5VideoWidget::onBufferedMedia):
1768         (HTML5VideoWidget::onControlClicked):
1769         (HTML5VideoWidget::onPositionChanged):
1770         (HTML5VideoWidget::onSliderMoved):
1771         (HTML5VideoWidget::onCloseClicked):
1772         (HTML5VideoWidget::showFullScreen):
1773         (HTML5VideoWidget::setVolume):
1774         * symbian/platformplugin/HTML5VideoWidget.h: Added.
1775         * symbian/platformplugin/OverlayWidget.cpp: Added.
1776         (OverlayWidget::OverlayWidget):
1777         (OverlayWidget::~OverlayWidget):
1778         (OverlayWidget::setDuration):
1779         (OverlayWidget::setPosition):
1780         (OverlayWidget::setVolume):
1781         (OverlayWidget::mousePressEvent):
1782         (OverlayWidget::onPlayerStopped):
1783         (OverlayWidget::onPlayerError):
1784         (OverlayWidget::onEndOfMedia):
1785         (OverlayWidget::onBufferingMedia):
1786         (OverlayWidget::onBufferedMedia):
1787         (OverlayWidget::timeToString):
1788         (OverlayWidget::applyStyleSheet):
1789         (OverlayWidget::onControlClicked):
1790         (OverlayWidget::onSliderMoved):
1791         (OverlayWidget::onSoundClicked):
1792         (OverlayWidget::onCloseClicked):
1793         (OverlayWidget::onVolumeSliderReleased):
1794         (OverlayWidget::onVolumeSliderMoved):
1795         (OverlayWidget::onTimerTimeout):
1796         (OverlayWidget::showFullScreen):
1797         * symbian/platformplugin/OverlayWidget.h: Added.
1798         * symbian/platformplugin/PlayerButton.cpp: Added.
1799         (PlayerButton::PlayerButton):
1800         (PlayerButton::event):
1801         * symbian/platformplugin/PlayerButton.h: Added.
1802         * symbian/platformplugin/PlayerLabel.cpp: Added.
1803         (PlayerLabel::PlayerLabel):
1804         (PlayerLabel::onPlayerError):
1805         (PlayerLabel::startBufferingAnimation):
1806         (PlayerLabel::stopBufferingAnimation):
1807         (PlayerLabel::onAnimationTimeout):
1808         * symbian/platformplugin/PlayerLabel.h: Added.
1809         * symbian/platformplugin/WebPlugin.cpp:
1810         (WebPlugin::createExtension):
1811         * symbian/platformplugin/images: Added.
1812         * symbian/platformplugin/images/button_cannotplay.png: Added.
1813         * symbian/platformplugin/images/button_close.png: Added.
1814         * symbian/platformplugin/images/button_pause.png: Added.
1815         * symbian/platformplugin/images/button_play.png: Added.
1816         * symbian/platformplugin/images/button_sound_off.png: Added.
1817         * symbian/platformplugin/images/button_sound_on.png: Added.
1818         * symbian/platformplugin/images/loading_buffering_1.png: Added.
1819         * symbian/platformplugin/images/loading_buffering_2.png: Added.
1820         * symbian/platformplugin/images/loading_buffering_3.png: Added.
1821         * symbian/platformplugin/images/loading_buffering_4.png: Added.
1822         * symbian/platformplugin/platformplugin.pro:
1823         * symbian/platformplugin/platformplugin.qrc: Added.
1824         * symbian/platformplugin/qss: Added.
1825         * symbian/platformplugin/qss/OverlayWidget.qss: Added.
1826
1827 2011-05-22  Robert Hogan  <robert@webkit.org>
1828
1829         Reviewed by Kenneth Rohde Christiansen.
1830
1831         Fix policyDelegate in Qt DRT
1832
1833         https://bugs.webkit.org/show_bug.cgi?id=61247
1834         
1835         Use the 'policy delegate' implemented in FrameLoaderClient
1836         for layout tests. The partial implementation in DumpRenderTreeQt
1837         is redundant.
1838
1839         * WebCoreSupport/FrameLoaderClientQt.cpp:
1840         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1841
1842 2011-05-22  Andrew Wason  <rectalogic@rectalogic.com>
1843
1844         Reviewed by Benjamin Poulain.
1845
1846         [Qt] Implement toImageData() in QtWebKit Bridge
1847         https://bugs.webkit.org/show_bug.cgi?id=60897
1848
1849         * docs/qtwebkit-bridge.qdoc:
1850         * docs/webkitsnippets/qtwebkit_bridge_snippets.cpp:
1851         (wrapInFunction):
1852          Document Qt bridge toImageData() feature.
1853         * tests/hybridPixmap/test.html:
1854         * tests/hybridPixmap/widget.cpp:
1855         (Widget::Widget):
1856         (Widget::abcImage):
1857         * tests/hybridPixmap/widget.h:
1858          Add tests for Qt bridge toImageData() feature.
1859
1860 2011-05-20  Simon Fraser  <simon.fraser@apple.com>
1861
1862         Reviewed by Sam Weinig.
1863
1864         numberOfActiveAnimations() can include animations from documents in the page cache
1865         https://bugs.webkit.org/show_bug.cgi?id=53641
1866
1867         Pass the Frame's document as the one to count animations on.
1868
1869         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1870         (DumpRenderTreeSupportQt::numberOfActiveAnimations):
1871
1872 2011-05-20  Csaba Osztrogonác  <ossy@webkit.org>
1873
1874         Reviewed by Benjamin Poulain.
1875
1876         [Qt] tst_QWebElement::style() fails because QWebElement::InlineStyle doesn't work as expected
1877         https://bugs.webkit.org/show_bug.cgi?id=60372
1878
1879         * tests/qwebelement/tst_qwebelement.cpp: Mark failing test case as expected fail.
1880         (tst_QWebElement::style):
1881
1882 2011-05-20  Csaba Osztrogonác  <ossy@webkit.org>
1883
1884         Reviewed by Benjamin Poulain.
1885
1886         [Qt] Fix tst_QDeclarativeWebView::basicProperties() and historyNav() autotests
1887         https://bugs.webkit.org/show_bug.cgi?id=61042
1888
1889         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: Mark failing test cases as expected fails.
1890         (tst_QDeclarativeWebView::basicProperties):
1891         (tst_QDeclarativeWebView::historyNav):
1892
1893 2011-05-20  Csaba Osztrogonác  <ossy@webkit.org>
1894
1895         Reviewed by Benjamin Poulain.
1896
1897         [Qt] Fix tst_QWebPage::testOptionalJSObjects() autotest
1898         https://bugs.webkit.org/show_bug.cgi?id=61045
1899
1900         * tests/qwebpage/tst_qwebpage.cpp:
1901         (tst_QWebPage::testOptionalJSObjects): Mark failing test cases as expected fails.
1902
1903 2011-05-20  Peter Varga  <pvarga@webkit.org>
1904
1905         Reviewed by Simon Hausmann.
1906
1907         [Qt][V8] Use qtscript-staging's shipped version of V8 when building with --v8
1908         https://bugs.webkit.org/show_bug.cgi?id=56649
1909
1910         Use the provided V8 and functionality of
1911         http://qt.gitorious.org/+qt-developers/qt/qtscript-staging to build QtWebKit+V8.
1912         Based on the original patch of Andras Becsi <abecsi@webkit.org>.
1913
1914         * Api/qwebframe.cpp:
1915         (QWebFrame::addToJavaScriptWindowObject): Fix QString deprecated
1916         warning.
1917         * QtWebKit.pro: Adding the V8 library should happen in the final build
1918         step.
1919         * WebCoreSupport/ChromeClientQt.cpp: Add missing head.
1920         * WebCoreSupport/DumpRenderTreeSupportQt.cpp: Ditto.
1921
1922 2011-05-20  Csaba Osztrogonác  <ossy@webkit.org>
1923
1924         Reviewed by Benjamin Poulain.
1925
1926         [Qt]Fix tst_QWebFrame::setUrlToInvalid() autotest after r84762
1927         https://bugs.webkit.org/show_bug.cgi?id=59345
1928
1929         * tests/qwebframe/tst_qwebframe.cpp:
1930         (tst_QWebFrame::setUrlToInvalid): Mark failing test cases as expected fails.
1931
1932 2011-05-19  Zsolt Fehér  <h490267@stud.u-szeged.hu>
1933
1934         Reviewed by Csaba Osztrogonác.
1935
1936         [Qt] Implement eventSender.scalePageBy
1937         https://bugs.webkit.org/show_bug.cgi?id=60015
1938
1939         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1940         (DumpRenderTreeSupportQt::scalePageBy):
1941         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1942
1943 2011-05-18  Yi Shen  <yi.4.shen@nokia.com>
1944
1945         Reviewed by Andreas Kling.
1946
1947         [Qt] Enterkey to go to Newline does not work in the text area(in HTML form)
1948         https://bugs.webkit.org/show_bug.cgi?id=33179
1949
1950         Remove the implementation of the handleInputMethodKeydown, which introduces
1951         a regression(r82243) on Linux. Also, add more Api tests for the EnterKey event.
1952
1953         * WebCoreSupport/EditorClientQt.cpp:
1954         (WebCore::EditorClientQt::handleInputMethodKeydown): Remove implementation.
1955         * tests/qwebpage/tst_qwebpage.cpp:
1956         (tst_QWebPage::inputMethods): Add more tests.
1957
1958 2011-05-18  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
1959
1960         Reviewed by Csaba Osztrogonác.
1961
1962         [Qt] Implement layoutTestController.setValueForUser()
1963         https://bugs.webkit.org/show_bug.cgi?id=60956
1964
1965         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1966         (DumpRenderTreeSupportQt::setValueForUser):
1967         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1968
1969 2011-05-16  Robert Hogan  <robert@webkit.org>
1970
1971         Reviewed by Kenneth Rohde Christiansen.
1972
1973         plugins/invalidate_rect.html fails on linux ports
1974
1975         Add ChromeClientQt::allowsAcceleratedCompositing().
1976
1977         https://bugs.webkit.org/show_bug.cgi?id=54051
1978
1979         * WebCoreSupport/ChromeClientQt.cpp:
1980         (WebCore::ChromeClientQt::allowsAcceleratedCompositing):
1981         * WebCoreSupport/ChromeClientQt.h:
1982
1983 2011-05-17  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1984
1985         Reviewed by Andreas Kling.
1986
1987         [Qt] Simplify syntax in test code to make prepare-ChangeLog less confused
1988         https://bugs.webkit.org/show_bug.cgi?id=60978
1989
1990         Backslash to escape newlines was confusing both prepare-ChangeLog and the
1991         QtCreator highlight system.
1992
1993         * tests/qwebframe/tst_qwebframe.cpp:
1994         (tst_QWebFrame::evalJSV):
1995         Remove usage of backslash to escape newlines in string literal.
1996
1997 2011-05-17  Young Han Lee  <joybro@company100.net>
1998
1999         Reviewed by Csaba Osztrogonác.
2000
2001         [Texmap][Qt] Enable strict PassOwnPtr for Qt with texmap enabled.
2002         https://bugs.webkit.org/show_bug.cgi?id=60947
2003
2004         * WebCoreSupport/PageClientQt.cpp:
2005         (WebCore::PageClientQWidget::setRootGraphicsLayer):
2006
2007 2011-05-16  Jon Lee  <jonlee@apple.com>
2008
2009         Reviewed by Simon Fraser.
2010
2011         Can't horizontally scroll iframes and overflow because wheel events are always accepted
2012         https://bugs.webkit.org/show_bug.cgi?id=60779
2013
2014         * WebCoreSupport/ChromeClientQt.h:
2015         (WebCore::ChromeClientQt::shouldRubberBandInDirection): Default impl of new ChromeClient method
2016         (WebCore::ChromeClientQt::numWheelEventHandlersChanged): Default impl of new ChromeClient method
2017
2018 2011-05-16  Andreas Kling  <kling@webkit.org>
2019
2020         Reviewed by Kenneth Rohde Christiansen.
2021
2022         REGRESSION(r83820): [Qt] Accelerated compositing no longer works in QGraphicsWebView.
2023         https://bugs.webkit.org/show_bug.cgi?id=60892
2024
2025         Don't set the ItemClipsChildrenToShape flag for the root platform layer,
2026         since that is now the overflow controls layer. The clip layer, which was
2027         previously the root platform layer, already gets the flag by way of
2028         the GraphicsLayer mask-to-bounds flag.
2029
2030         * WebCoreSupport/PageClientQt.cpp:
2031         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
2032
2033 2011-05-16  Adam Barth  <abarth@webkit.org>
2034
2035         Partial revert of r86537.  FullScreenVideoQt.h can't depend on OwnPtr.h
2036         because moc_FullScreenVideoQt.cpp fails to include config.h.
2037         Apparently, having moc_FullScreenVideoQt.cpp properly include config.h
2038         is hard, so we're going back to manual new and delete for this class.
2039         Bad times.
2040
2041         * WebCoreSupport/FullScreenVideoQt.cpp:
2042         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
2043         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
2044         * WebCoreSupport/FullScreenVideoQt.h:
2045
2046 2011-05-16  Adam Barth  <abarth@webkit.org>
2047
2048         Sigh.  This code is somewhat crazy.
2049
2050         * WebCoreSupport/InspectorClientQt.cpp:
2051         (WebCore::InspectorClientQt::openInspectorFrontend):
2052
2053 2011-05-16  Adam Barth  <abarth@webkit.org>
2054
2055         Attempt to fix Qt build.  (Strict PassOwnPtr fix.)
2056
2057         This patch requires some slightly fancy footwork.
2058
2059         * WebCoreSupport/InspectorClientQt.cpp:
2060         (WebCore::InspectorClientQt::openInspectorFrontend):
2061         (WebCore::InspectorFrontendClientQt::InspectorFrontendClientQt):
2062
2063 2011-05-16  Adam Barth  <abarth@webkit.org>
2064
2065         Missing include.
2066
2067         * WebCoreSupport/PopupMenuQt.h:
2068
2069 2011-05-16  Adam Barth  <abarth@webkit.org>
2070
2071         [Qt] QtPlatformPlugin create methods should use PassOwnPtr
2072         https://bugs.webkit.org/show_bug.cgi?id=60873
2073
2074         This change is slightly more than a build fix because the patch kind of
2075         spidered a bit while I was trying to fix the build the "right way."
2076         Hopefully nothing here is controversial.
2077
2078         * Api/qwebpage.cpp:
2079         (QWebPagePrivate::adjustPointForClicking):
2080         * WebCoreSupport/ChromeClientQt.cpp:
2081         (WebCore::ChromeClientQt::createSelectPopup):
2082         * WebCoreSupport/FullScreenVideoQt.cpp:
2083         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
2084         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
2085         * WebCoreSupport/FullScreenVideoQt.h:
2086         * WebCoreSupport/NotificationPresenterClientQt.cpp:
2087         (WebCore::NotificationWrapper::NotificationWrapper):
2088         (WebCore::NotificationPresenterClientQt::displayNotification):
2089         * WebCoreSupport/PopupMenuQt.cpp:
2090         (WebCore::PopupMenuQt::PopupMenuQt):
2091         (WebCore::PopupMenuQt::~PopupMenuQt):
2092         (WebCore::PopupMenuQt::show):
2093         * WebCoreSupport/PopupMenuQt.h:
2094         * WebCoreSupport/QtPlatformPlugin.cpp:
2095         (WebCore::QtPlatformPlugin::createSelectInputMethod):
2096         (WebCore::QtPlatformPlugin::createNotificationPresenter):
2097         (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):
2098         (WebCore::QtPlatformPlugin::createTouchModifier):
2099         (WebCore::QtPlatformPlugin::createFullScreenVideoHandler):
2100         * WebCoreSupport/QtPlatformPlugin.h:
2101         (WebCore::QtPlatformPlugin::QtPlatformPlugin):
2102
2103 2011-05-15  Adam Barth  <abarth@webkit.org>
2104
2105         Attempt to fix the Qt build.  (Strict PassOwnPtr fix.)
2106
2107         * Api/qgraphicswebview.cpp:
2108         (QGraphicsWebViewPrivate::detachCurrentPage):
2109         (QGraphicsWebView::setPage):
2110         * Api/qwebpage.cpp:
2111         (QWebPage::setView):
2112
2113 2011-05-15  Sheriff Bot  <webkit.review.bot@gmail.com>
2114
2115         Unreviewed, rolling out r86504.
2116         http://trac.webkit.org/changeset/86504
2117         https://bugs.webkit.org/show_bug.cgi?id=60853
2118
2119         "Broke Qt EventSender in editing/selection tests" (Requested
2120         by mwenge on #webkit).
2121
2122         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2123         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2124
2125 2011-05-12  Robert Hogan  <robert@webkit.org>
2126
2127         Reviewed by Benjamin Poulain.
2128
2129         [Qt] fix http/tests/plugins/plugin-document-has-focus.html
2130         https://bugs.webkit.org/show_bug.cgi?id=60722
2131
2132         QWebPage::setView() will display the browser window, so
2133         implement a private version that does just enough to 
2134         satisfy EventSender's requirement to install an event
2135         filter on a page's web view.
2136
2137         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2138         (DumpRenderTreeSupportQt::setView):
2139         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2140
2141 2011-05-13  Sheriff Bot  <webkit.review.bot@gmail.com>
2142
2143         Unreviewed, rolling out r86447.
2144         http://trac.webkit.org/changeset/86447
2145         https://bugs.webkit.org/show_bug.cgi?id=60809
2146
2147         "Broke some uses of EventSender object on Qt" (Requested by
2148         mwenge on #webkit).
2149
2150         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2151         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2152
2153 2011-05-13  Sam Weinig  <sam@webkit.org>
2154
2155         Reviewed by Anders Carlsson.
2156
2157         Prune #includes from FrameView.h (Part 2)
2158         https://bugs.webkit.org/show_bug.cgi?id=60748
2159
2160         - Update files that were depending on FrameView.h #including Frame.h or
2161           Page.h.
2162
2163         * Api/qgraphicswebview.cpp:
2164         * WebCoreSupport/ChromeClientQt.cpp:
2165
2166 2011-05-13  Robert Hogan  <robert@webkit.org>
2167
2168         Reviewed by Benjamin Poulain.
2169
2170         [Qt] fix http/tests/plugins/plugin-document-has-focus.html
2171         https://bugs.webkit.org/show_bug.cgi?id=60722
2172
2173         QWebPage::setView() will display the browser window, so
2174         implement a private version that does just enough to 
2175         satisfy EventSender's requirement to install an event
2176         filter on a page's web view.
2177
2178         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2179         (DumpRenderTreeSupportQt::setView):
2180         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2181
2182 2011-05-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2183
2184         Reviewed by nobody, build fix.
2185
2186         [Qt] Fix build on MSVC.
2187
2188         qobject_cast<> requires the class to be exported on MSVC,
2189         removing it since the code that needs it is commented out for
2190         the same reason.
2191
2192         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
2193         (tst_QDeclarativeWebView::elementAreaAt):
2194
2195 2011-05-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2196
2197         Reviewed by nobody, build fix.
2198
2199         [Qt] Fix build on MSVC by only enabling tst_MIMESniffing on linux.
2200
2201         * tests/tests.pro:
2202
2203 2011-05-12  Young Han Lee  <joybro@company100.net>
2204
2205         Reviewed by Kenneth Rohde Christiansen.
2206
2207         [Qt] Implement layoutTestController.layerTreeAsText()
2208         https://bugs.webkit.org/show_bug.cgi?id=60367
2209
2210         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2211         (DumpRenderTreeSupportQt::layerTreeAsText):
2212         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2213
2214 2011-05-11  Noam Rosenthal  <noam.rosenthal@nokia.com>
2215
2216         Reviewed by Kenneth Rohde Christiansen.
2217
2218         [Texmap][Qt] Upstream texture-mapper changes from Qt's WebKit2 branch
2219         https://bugs.webkit.org/show_bug.cgi?id=60439
2220
2221         Patch 10/12: Glue the TextureMapper refactoring into Webkit(1).
2222         1. Pass a GraphicsLayer* instead of a PlatformLayer* to the QWebPageClient.
2223         2. Set parameters in TextureMapper/TextureMapperNode instead of passing them in an options argument.
2224         3. Rename PlatformLayerProxyQt to TextureMapperNodeClient
2225
2226         * Api/qwebframe.cpp:
2227         (QWebFramePrivate::renderCompositedLayers):
2228         * Api/qwebframe.h:
2229         * Api/qwebframe_p.h:
2230         (QWebFramePrivate::QWebFramePrivate):
2231         * WebCoreSupport/ChromeClientQt.cpp:
2232         (WebCore::ChromeClientQt::attachRootGraphicsLayer):
2233         * WebCoreSupport/PageClientQt.cpp:
2234         (WebCore::TextureMapperNodeClientQt::TextureMapperNodeClientQt):
2235         (WebCore::TextureMapperNodeClientQt::scroll):
2236         (WebCore::TextureMapperNodeClientQt::setTextureMapper):
2237         (WebCore::TextureMapperNodeClientQt::~TextureMapperNodeClientQt):
2238         (WebCore::TextureMapperNodeClientQt::computeLastModifiedRect):
2239         (WebCore::TextureMapperNodeClientQt::syncRootLayer):
2240         (WebCore::TextureMapperNodeClientQt::rootNode):
2241         (WebCore::PageClientQWidget::setRootGraphicsLayer):
2242         (WebCore::PageClientQWidget::syncLayers):
2243         (WebCore::PageClientQWidget::~PageClientQWidget):
2244         (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
2245         (WebCore::PageClientQGraphicsWidget::update):
2246         (WebCore::PageClientQGraphicsWidget::syncLayers):
2247         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
2248         (WebCore::PageClientQGraphicsWidget::markForSync):
2249         * WebCoreSupport/PageClientQt.h:
2250         (WebCore::PageClientQWidget::PageClientQWidget):
2251         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
2252         (WebCore::PageClientQGraphicsWidget::syncLayersTimeout):
2253
2254
2255 2011-05-11  Noam Rosenthal  <noam.rosenthal@nokia.com>
2256
2257         Reviewed by Kenneth Rohde Christiansen.
2258
2259         [Texmap][Qt] Upstream texture-mapper changes from Qt's WebKit2 branch
2260         https://bugs.webkit.org/show_bug.cgi?id=60439
2261
2262         Patch 4/12: Update the settings to enable accelerated compositing for all the relevant settings
2263         attributes.
2264
2265         * Api/qwebsettings.cpp:
2266         (qt_networkAccessAllowed):
2267         (QWebSettingsPrivate::apply):
2268
2269 2011-05-11  Sam Weinig  <sam@webkit.org>
2270
2271         Reviewed by Eric Seidel.
2272
2273         Stop including Console.h just to get Console enum types
2274         https://bugs.webkit.org/show_bug.cgi?id=60607
2275
2276         Move MessageSource, MessageType and MessageLevel into its own
2277         header and cleanup surrounding classes.
2278
2279         * Api/qwebelement.cpp:
2280
2281 2011-05-10  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
2282
2283         Reviewed by Csaba Osztrogonác.
2284
2285         [Qt] Increment QtWebKit trunk version to 4.10.0
2286         https://bugs.webkit.org/show_bug.cgi?id=60549
2287
2288         QtWebKit-2.2 (branched) will be 4.9.0, so we need to
2289         increase the trunk version by 1.
2290
2291         * qt_webkit_version.pri:
2292
2293 2011-05-10  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
2294
2295         Reviewed by Csaba Osztrogonác.
2296
2297         [Qt] tst_QWebPage creates temporary files in the current working dir
2298         https://bugs.webkit.org/show_bug.cgi?id=60497
2299
2300         tst_QWebPage was using QDir::currentPath when creating temporary dirs
2301         and leaving them after the test was run. I basically borrowed the fix
2302         from tst_QDeclarativeWebView.
2303
2304         * tests/qwebpage/tst_qwebpage.cpp:
2305         (removeRecursive):
2306         (tst_QWebPage::tmpDirPath):
2307         (tst_QWebPage::cleanupFiles):
2308         (tst_QWebPage::database):
2309         (tst_QWebPage::multiplePageGroupsAndLocalStorage):
2310
2311 2011-05-09  Chang Shu  <cshu@webkit.org>
2312
2313         Reviewed by Kenneth Rohde Christiansen.
2314
2315         [Qt] DumpRenderTreeQt needs an implementation of unmarkText
2316         https://bugs.webkit.org/show_bug.cgi?id=60499
2317
2318         The implementation is similar to gtk.
2319
2320         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2321         (DumpRenderTreeSupportQt::confirmComposition):
2322         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2323
2324 2011-05-07  Joe Mason  <jmason@rim.com>
2325
2326         Reviewed by Daniel Bates.
2327
2328         FrameLoader::isProcessingUserGesture is wrong in dispatchWillPerformClientRedirect
2329         https://bugs.webkit.org/show_bug.cgi?id=52211
2330
2331         Dump isUserProcessingGesture in willPerformClientRedirect so that the layout tests can be extended.
2332
2333         * WebCoreSupport/FrameLoaderClientQt.cpp:
2334         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2335
2336 2011-05-06  Kent Tamura  <tkent@chromium.org>
2337
2338         Reviewed by Ryosuke Niwa.
2339
2340         Eliminate WebCore/dom/InputElement.{cpp,h}
2341         https://bugs.webkit.org/show_bug.cgi?id=60262
2342
2343         * Api/qwebpage.cpp:
2344         (QWebPage::inputMethodQuery):
2345           Replace InputElement::s_maximumLength with HTMLInputElement::maximumLength.
2346         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2347         (DumpRenderTreeSupportQt::setAutofilled):
2348           Follow the return type change of Node::toInputElement().
2349
2350 2011-05-04  Philippe Normand  <pnormand@igalia.com>
2351
2352         Reviewed by Dimitri Glazkov.
2353
2354         Implement LayoutTestController::pseudoShadowId()
2355         https://bugs.webkit.org/show_bug.cgi?id=60034
2356
2357         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2358         (DumpRenderTreeSupportQt::shadowPseudoId):
2359         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2360
2361 2011-05-05  Prasanth Ullattil  <prasanth.ullattil@nokia.com>
2362
2363         Reviewed by Simon Hausmann.
2364
2365         Install correct header files for webkit.
2366
2367         Since WebKit is no longer inside Qt, we can remove the detection for
2368         that.
2369
2370         [Qt] Install targets are not working correctly for modularized Qt and QtWebkit
2371         https://bugs.webkit.org/show_bug.cgi?id=57621
2372
2373         * QtWebKit.pro:
2374
2375 2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
2376
2377         Reviewed by Eric Seidel.
2378
2379         Rename SelectionController to FrameSelection
2380         https://bugs.webkit.org/show_bug.cgi?id=60234
2381
2382         * Api/qwebframe.cpp:
2383
2384 2011-05-05  Alexis Menard  <alexis.menard@openbossa.org>
2385
2386         Reviewed by Andreas Kling.
2387
2388         [Qt] RenderThemeQt and DumpRenderTreeSupportQt should use nullptr rather than 0.
2389         https://bugs.webkit.org/show_bug.cgi?id=60224
2390
2391         We should use nullptr rather than 0. nullptr will be added in the new C++ standard
2392         but WebKit already has a nullptr class if there is no c++0x support.
2393
2394         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2395         (DumpRenderTreeSupportQt::addUserStyleSheet):
2396
2397 2011-05-04  Cris Neckar  <cdn@chromium.org>
2398
2399         Reviewed by Adam Barth.
2400
2401         Expose WebView directly through ChromeClient.
2402         https://bugs.webkit.org/show_bug.cgi?id=49902
2403
2404         * WebCoreSupport/ChromeClientQt.h:
2405         (WebCore::ChromeClientQt::webView):
2406
2407 2011-05-04  Alexis Menard  <alexis.menard@openbossa.org>
2408
2409         Unreviewed warning fix.
2410
2411         The variable is just unused.
2412
2413         * tests/qwebpage/tst_qwebpage.cpp:
2414         (tst_QWebPage::inputMethods):
2415
2416 2011-05-04  Tao Bai  <michaelbai@chromium.org>
2417
2418         Reviewed by David Kilzer.
2419
2420         Populate touch-icon url to FrameLoaderClient
2421         https://bugs.webkit.org/show_bug.cgi?id=59143
2422
2423         Respect the interface change in FrameLoaderClient.
2424
2425         * WebCoreSupport/FrameLoaderClientQt.cpp:
2426         (WebCore::FrameLoaderClientQt::dispatchDidChangeIcons):
2427         * WebCoreSupport/FrameLoaderClientQt.h:
2428
2429 2011-03-31  Luiz Agostini  <luiz.agostini@openbossa.org>
2430
2431         Reviewed by Kenneth Rohde Christiansen.
2432
2433         [Qt] Qt WebKit updates view on HTTP 204 response
2434         https://bugs.webkit.org/show_bug.cgi?id=42529
2435
2436         Ignoring http responses which have status code equal to 204 (No Content)
2437         or 205 (Reset Content).
2438
2439         * WebCoreSupport/FrameLoaderClientQt.cpp:
2440         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForResponse):
2441
2442 2011-05-04  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2443
2444         Reviewed by Benjamin Poulain.
2445
2446         [Qt] Fix signals emitted in FakeReply used in autotests
2447         https://bugs.webkit.org/show_bug.cgi?id=60049
2448
2449         The signals emitted for each case of FakeReply were swapped (error case
2450         emitting metaDataChanged() and redirect case emitting error()). Emitting
2451         readyRead() is not necessary.
2452
2453         * tests/qwebframe/tst_qwebframe.cpp:
2454         (FakeReply::FakeReply):
2455         Choose the different continue function for each case of FakeReply. This removes
2456         the need of the if-statement in timeout() and let us replace timeout() with two
2457         simpler functions.
2458
2459         (FakeReply::continueRedirect):
2460         (FakeReply::continueError):
2461         Continuation cases, emitting the minimal set of signals needed for each case.
2462
2463 2011-05-03  Julien Chaffraix  <jchaffraix@codeaurora.org>
2464
2465         Reviewed by Dimitri Glazkov.
2466
2467         Element:shadowRoot & Element::ensureShadowRoot should return ShadowRoot*
2468         https://bugs.webkit.org/show_bug.cgi?id=58703
2469
2470         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2471         (DumpRenderTreeSupportQt::shadowRoot): Added #include for ShadowRoot.h.
2472
2473 2011-05-03  Keith Kyzivat  <keith.kyzivat@nokia.com>
2474
2475         Reviewed by Andreas Kling.
2476
2477         [Qt] QtDeclarative Webview element has a fixed white background
2478         https://bugs.webkit.org/show_bug.cgi?id=40918
2479
2480         QProperty REVISION feature is not present in certain Qt Trunk clones.
2481         These builds report their version as 4.8.0, and therefore break on the
2482         prior #if QT_VERSION >= 0x040704.  The proper fix is to check based on
2483         the existance of Q_REVISION.
2484
2485         * declarative/plugin.cpp:
2486         (WebKitQmlPlugin::registerTypes):
2487         * declarative/qdeclarativewebview.cpp:
2488         * declarative/qdeclarativewebview_p.h:
2489
2490 2011-05-01  Sam Weinig  <sam@webkit.org>
2491
2492         Reviewed by Anders Carlsson.
2493
2494         Prune some unnecessary #includes
2495         https://bugs.webkit.org/show_bug.cgi?id=59895
2496
2497         Start getting rid of unnecessary #includes and forward declares.
2498
2499         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2500
2501 2011-04-29  Csaba Osztrogonác  <ossy@webkit.org>
2502
2503         Reviewed by Adam Barth.
2504
2505         Enable strict OwnPtr for Qt
2506         https://bugs.webkit.org/show_bug.cgi?id=59667
2507
2508         * Api/qwebpage.cpp:
2509         (QWebPagePrivate::QWebPagePrivate):
2510
2511 2011-04-29  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2512
2513         Reviewed by Simon Hausmann.
2514
2515         ENABLE(QT_BEARER) -> USE(QT_BEARER)
2516
2517         * Api/qwebsettings.cpp:
2518
2519 2011-04-29  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2520
2521         Reviewed by Simon Hausmann.
2522
2523         ENABLE(QT_USERAGENT_DEVICEMODEL) -> USE(QT_MOBILITY_SYSTEMINFO)
2524
2525         * Api/qwebpage.cpp:
2526
2527 2011-04-28  Yael Aharon  <yael.aharon@nokia.com>
2528
2529         Reviewed by Andreas Kling.
2530
2531         Remove flag ENABLE_SYMBIAN_DIALOG_PROVIDER
2532         https://bugs.webkit.org/show_bug.cgi?id=59704
2533
2534         * WebCoreSupport/QtFallbackWebPopup.cpp:
2535         (WebCore::QtFallbackWebPopup::show):
2536         * WebCoreSupport/QtFallbackWebPopup.h:
2537
2538 2011-04-27  Yi Shen  <yi.4.shen@nokia.com>
2539
2540         Reviewed by Kenneth Rohde Christiansen.
2541
2542         [Qt] Upstream Symbian platform plugin
2543         https://bugs.webkit.org/show_bug.cgi?id=58435
2544
2545         Upstream Symbian platform plugin.
2546
2547         * QtWebKit.pro: Add platformplugin.dll to the QtWebKit.sis.
2548         * symbian/platformplugin: Added.
2549         * symbian/platformplugin/WebPlugin.cpp: Added.
2550         (ItemListDelegate::ItemListDelegate):
2551         (ItemListDelegate::paint):
2552         (Popup::Popup):
2553         (Popup::resizeEvent):
2554         (Popup::populateList):
2555         (Popup::onItemSelected):
2556         (Popup::updateSelectionsBeforeDialogClosing):
2557         (Popup::updateAndClose):
2558         (WebPopup::WebPopup):
2559         (WebPopup::~WebPopup):
2560         (WebPopup::createSingleSelectionPopup):
2561         (WebPopup::createMultipleSelectionPopup):
2562         (WebPopup::createPopup):
2563         (WebPopup::show):
2564         (WebPopup::hide):
2565         (WebPopup::popupClosed):
2566         (WebPopup::itemClicked):
2567         (SingleSelectionPopup::SingleSelectionPopup):
2568         (MultipleSelectionPopup::MultipleSelectionPopup):
2569         (WebNotificationPresenter::showNotification):
2570         (WebPlugin::supportsExtension):
2571         (WebPlugin::createExtension):
2572         * symbian/platformplugin/WebPlugin.h: Added.
2573         (Popup::preSelectedIndices):
2574         (Popup::listWidget):
2575         (WebNotificationPresenter::WebNotificationPresenter):
2576         (WebNotificationPresenter::~WebNotificationPresenter):
2577         * symbian/platformplugin/platformplugin.pro: Added.
2578         * symbian/platformplugin/qwebkitplatformplugin.h: Copied from WebKit/qt/Api/qwebkitplatformplugin.h.
2579         (QWebSelectData::~QWebSelectData):
2580         (QWebSelectMethod::~QWebSelectMethod):
2581         (QWebNotificationData::~QWebNotificationData):
2582         (QWebNotificationPresenter::QWebNotificationPresenter):
2583         (QWebNotificationPresenter::~QWebNotificationPresenter):
2584         (QWebTouchModifier::~QWebTouchModifier):
2585         (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
2586         (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
2587         (QWebKitPlatformPlugin::~QWebKitPlatformPlugin):
2588
2589 2011-04-26  Yi Shen  <yi.4.shen@nokia.com>
2590
2591         Reviewed by Tor Arne Vestbø.
2592
2593         [Qt][Symbian] Fix Api test failure -- tst_QWebFrame::setHtmlWithBaseURL  
2594         https://bugs.webkit.org/show_bug.cgi?id=56946
2595
2596         Deployed the missing resource for Symbian platform.
2597
2598         * tests/qwebframe/qwebframe.pro:
2599
2600 2011-04-26  Siddharth Mathur  <siddharth.mathur@nokia.com>
2601
2602         Reviewed by Andreas Kling.
2603
2604         [Qt] Build fix: QtDeclarative Webview element has a fixed white background
2605         https://bugs.webkit.org/show_bug.cgi?id=40918
2606
2607         Macro Q_REVISION and associated qdeclarativeitem.h signals are not available in 4.7.3 headers in Nokia Qt SDK.
2608
2609         * declarative/plugin.cpp: Bump up required version to 4.7.4+
2610         (WebKitQmlPlugin::registerTypes):
2611         * declarative/qdeclarativewebview.cpp: ditto
2612         * declarative/qdeclarativewebview_p.h: ditto
2613         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: ditto
2614
2615 2011-04-26  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2616
2617         Reviewed by Csaba Osztrogonác.
2618
2619         [Qt] Implement LayoutTestController::setAutofilled
2620         https://bugs.webkit.org/show_bug.cgi?id=59439
2621
2622         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2623         (DumpRenderTreeSupportQt::setAutofilled):
2624         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2625
2626 2011-04-22  Sheriff Bot  <webkit.review.bot@gmail.com>
2627
2628         Unreviewed, rolling out r84627.
2629         http://trac.webkit.org/changeset/84627
2630         https://bugs.webkit.org/show_bug.cgi?id=59271
2631
2632         It broke Symbian build (Requested by Ossy on #webkit).
2633
2634         * QtWebKit.pro:
2635         * symbian/platformplugin/WebPlugin.cpp: Removed.
2636         * symbian/platformplugin/WebPlugin.h: Removed.
2637         * symbian/platformplugin/platformplugin.pro: Removed.
2638         * symbian/platformplugin/qwebkitplatformplugin.h: Removed.
2639
2640 2011-04-22  Sam Weinig  <sam@webkit.org>
2641
2642         Fix qt build.
2643
2644         * Api/qwebelement.cpp:
2645         (setupScriptContext):
2646
2647 2011-04-22  Yi Shen  <yi.4.shen@nokia.com>
2648
2649         Reviewed by Kenneth Rohde Christiansen.
2650
2651         [Qt] Upstream Symbian platform plugin
2652         https://bugs.webkit.org/show_bug.cgi?id=58435
2653
2654         Upstream Symbian platform plugin.
2655
2656         * QtWebKit.pro: Add platformplugin.dll to the QtWebKit.sis.
2657         * symbian/platformplugin: Added.
2658         * symbian/platformplugin/WebPlugin.cpp: Added.
2659         (ItemListDelegate::ItemListDelegate):
2660         (ItemListDelegate::paint):
2661         (Popup::Popup):
2662         (Popup::resizeEvent):
2663         (Popup::populateList):
2664         (Popup::onItemSelected):
2665         (Popup::updateSelectionsBeforeDialogClosing):
2666         (Popup::updateAndClose):
2667         (WebPopup::WebPopup):
2668         (WebPopup::~WebPopup):
2669         (WebPopup::createSingleSelectionPopup):
2670         (WebPopup::createMultipleSelectionPopup):
2671         (WebPopup::createPopup):
2672         (WebPopup::show):
2673         (WebPopup::hide):
2674         (WebPopup::popupClosed):
2675         (WebPopup::itemClicked):
2676         (SingleSelectionPopup::SingleSelectionPopup):
2677         (MultipleSelectionPopup::MultipleSelectionPopup):
2678         (WebNotificationPresenter::showNotification):
2679         (WebPlugin::supportsExtension):
2680         (WebPlugin::createExtension):
2681         * symbian/platformplugin/WebPlugin.h: Added.
2682         (Popup::preSelectedIndices):
2683         (Popup::listWidget):
2684         (WebNotificationPresenter::WebNotificationPresenter):
2685         (WebNotificationPresenter::~WebNotificationPresenter):
2686         * symbian/platformplugin/platformplugin.pro: Added.
2687         * symbian/platformplugin/qwebkitplatformplugin.h: Copied from WebKit/qt/Api/qwebkitplatformplugin.h.
2688         (QWebSelectData::~QWebSelectData):
2689         (QWebSelectMethod::~QWebSelectMethod):
2690         (QWebNotificationData::~QWebNotificationData):
2691         (QWebNotificationPresenter::QWebNotificationPresenter):
2692         (QWebNotificationPresenter::~QWebNotificationPresenter):
2693         (QWebTouchModifier::~QWebTouchModifier):
2694         (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
2695         (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
2696         (QWebKitPlatformPlugin::~QWebKitPlatformPlugin):
2697
2698 2011-04-21  Ryosuke Niwa  <rniwa@webkit.org>
2699
2700         Reviewed by Sam Weinig.
2701
2702         Add Frame* to the argument lists of canCopyCut and canPaste
2703         https://bugs.webkit.org/show_bug.cgi?id=59153
2704
2705         * WebCoreSupport/EditorClientQt.cpp:
2706         (WebCore::EditorClientQt::canCopyCut):
2707         (WebCore::EditorClientQt::canPaste):
2708         * WebCoreSupport/EditorClientQt.h:
2709
2710 2011-04-21  Yi Shen  <yi.4.shen@nokia.com>
2711
2712         Reviewed by Antonio Gomes.
2713
2714         [Qt] Fix the style issue for Api/qwebkitplatformplugin.h
2715         https://bugs.webkit.org/show_bug.cgi?id=59097
2716
2717         Fix the style issues for Api/qwebkitplatformplugin.h found by the webkit-check-style.
2718
2719         * Api/qwebkitplatformplugin.h:
2720
2721 2011-04-21  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2722
2723         Reviewed by Csaba Osztrogonác.
2724
2725         [Qt] REGRESSION(84057): It made 4 API tests fail
2726         https://bugs.webkit.org/show_bug.cgi?id=58848
2727
2728         After MIME sniffing support was added, some autotests are failing because
2729         the sniffer doesn't recognize our HTML pages.
2730
2731         This fixes tst_QWebPage::backActionUpdate(), tst_QWebPage::errorPageExtensionInFrameset()
2732         and tst_QWebFrame::horizontalScrollAfterBack().
2733
2734         * tests/qwebframe/resources/testiframe.html:
2735         * tests/qwebframe/resources/testiframe2.html:
2736         Remove spurious </html> in beginning of the document.
2737
2738         * tests/qwebpage/resources/framedindex.html:
2739         * tests/qwebpage/resources/index.html:
2740         Add <html> (and </html>) tags, <frameset> is not recognized by the sniffer as a
2741         possible starting tag for HTML document.
2742
2743         * tests/qwebpage/tst_qwebpage.cpp:
2744         (tst_QWebPage::errorPageExtensionInFrameset):
2745         Verify if we do have a main frame and the main frame has the children frames we
2746         expect. This will avoid crashing if for some reason children frames are not
2747         loaded.
2748
2749 2011-04-20  Dominic Cooney  <dominicc@chromium.org>
2750
2751         Reviewed by Dimitri Glazkov.
2752
2753         layoutTestController can create and destroy shadow DOM
2754         https://bugs.webkit.org/show_bug.cgi?id=59058
2755
2756         Support for new methods in Qt DRT.
2757
2758         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2759         (DumpRenderTreeSupportQt::ensureShadowRoot):
2760         (DumpRenderTreeSupportQt::removeShadowRoot):
2761         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2762
2763 2011-04-20  Balazs Kelemen  <kbalazs@webkit.org>
2764
2765         Reviewed by Csaba Osztrogonác.
2766
2767         [Qt] Cleanup includepath adjustment for generated files
2768         https://bugs.webkit.org/show_bug.cgi?id=58869
2769
2770         * QtWebKit.pro: Revert the hacky fix in r84174. Remove
2771         unnecessary logic.
2772
2773 2011-04-19  Yi Shen  <yi.4.shen@nokia.com>
2774
2775         Reviewed by Andreas Kling.
2776
2777         [Qt][Symbian] Fix Api test failure -- tst_QWebView::setPalette()
2778         https://bugs.webkit.org/show_bug.cgi?id=57254
2779
2780         Skip test for setPalette() which doesn't work 
2781         when WTF_USE_QT_MOBILE_THEME is defined.
2782
2783         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2784         * tests/qwebview/tst_qwebview.cpp:
2785         * tests/tests.pri:
2786
2787 2011-04-19  Yi Shen  <yi.4.shen@nokia.com>
2788
2789         Reviewed by Laszlo Gombos.
2790
2791         [Qt][Symbian] Fix Api test failure -- tst_QGraphicsWebView::widgetsRenderingThroughCache
2792         https://bugs.webkit.org/show_bug.cgi?id=58044
2793
2794         Fixing this test by disabling the scrollbars on the graphics view 
2795         since QtWebKit handles scrolling and scrollbar automatically and correctly.
2796
2797         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2798         (tst_QGraphicsWebView::widgetsRenderingThroughCache):
2799
2800 2011-04-19  Igor Oliveira  <igor.oliveira@openbossa.org>
2801
2802         Reviewed by Andreas Kling.
2803
2804         [Qt] X11: Text selection is causing oncopy event to be called
2805         https://bugs.webkit.org/show_bug.cgi?id=58656
2806
2807         Always when text is selected the oncopy event is fired, this behavior does
2808         not exist in Firefox or Chrome. Now, when selecting a text, QtWebKit
2809         is making multi part-copies (with rich text metadata), the multi-part
2810         data can be obtained by data transfer items interface when supported by QtWebKit.
2811         Also, copies to the clipboard of a selected image, is not supported by Chrome and
2812         Firefox and was removed from QtWebKit.
2813
2814
2815         * Api/qwebpage.cpp:
2816         (QWebPagePrivate::handleClipboard):
2817
2818 2011-04-18  Csaba Osztrogonác  <ossy@webkit.org>
2819
2820         [Qt][WK2] Unreviewed buildfix after r84174.
2821
2822         * QtWebKit.pro: Missing includepath added.
2823
2824 2011-04-18  Yi Shen  <yi.4.shen@nokia.com>
2825
2826         Reviewed by Laszlo Gombos.
2827
2828         [Qt][Symbian] Fix Api test failure -- tst_QWebFrame::inputFieldFocus
2829         https://bugs.webkit.org/show_bug.cgi?id=57546
2830
2831         Disable the fullscreen VKB when testing inputFieldFocus().
2832
2833         * tests/qwebframe/tst_qwebframe.cpp:
2834
2835 2011-04-18  Andreas Kling  <kling@webkit.org>
2836
2837         [Qt] DRT: Unreviewed test fix after r84168.
2838         
2839         Dump the original request KURL for blocked access attempts.
2840         Turns out converting it to a QUrl lower-cases the hostname.
2841
2842         * WebCoreSupport/FrameLoaderClientQt.cpp:
2843         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
2844
2845 2011-04-18  Yi Shen  <yi.4.shen@nokia.com>
2846
2847         Reviewed by Laszlo Gombos.
2848
2849         [Qt] Fix Api tests for QWebPage on Symbian
2850         https://bugs.webkit.org/show_bug.cgi?id=56924
2851
2852         Ignores the style attribute that selectedHtml() returns.
2853
2854         * tests/qwebpage/tst_qwebpage.cpp:
2855         (tst_QWebPage::cursorMovements):
2856         (tst_QWebPage::textSelection):
2857         (tst_QWebPage::findText):
2858
2859 2011-04-18  Andreas Kling  <kling@webkit.org>
2860
2861         Reviewed by Adam Barth.
2862
2863         REGRESSION (r84010): [Qt] DRT: Unbreak redirection of http:/ URLs.
2864         https://bugs.webkit.org/show_bug.cgi?id=58779
2865
2866         KURL::host() doesn't return the host part of [broken] http:/ URLs, so use
2867         QUrl instead to match the behavior of other ports.
2868
2869         * WebCoreSupport/FrameLoaderClientQt.cpp:
2870         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
2871
2872 2011-04-18  Dominic Cooney  <dominicc@chromium.org>
2873
2874         Reviewed by Andreas Kling.
2875
2876         Add layoutTestController.shadowRoot to Qt DRT.
2877         https://bugs.webkit.org/show_bug.cgi?id=58759
2878
2879         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2880         (DumpRenderTreeSupportQt::shadowRoot): Added.
2881         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2882
2883 2011-04-16  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2884
2885         Reviewed by Andreas Kling.
2886
2887         [Qt] Autotest got missed in the handover of the QML WebView element
2888         https://bugs.webkit.org/show_bug.cgi?id=41449
2889
2890         Importing WebView QML element test cases from Qt repository. I did some
2891         style modifications and simplifications in the original code but hopefully
2892         without changing the behavior.
2893
2894         Tests that do not pass are marked with QEXPECT_FAIL or QSKIP. The two major
2895         issues currently are:
2896
2897         - pixelCache() test checked the usage of pixel cache by using a subclass of
2898           QDeclarativeWebView. We can't do that right now because this class is not
2899           exported. We may need a Q_AUTOTEST_EXPORT thing for QtWebKit if we want
2900           this kind of test.
2901         - elementAtArea() test uses a function that is not exported. But in this case
2902           I think we should test it's user, the public method "heuristicZoom".
2903
2904         * tests/qdeclarativewebview/resources/basic.html: Added.
2905         * tests/qdeclarativewebview/resources/basic.png: Added.
2906         * tests/qdeclarativewebview/resources/basic.qml: Added.
2907         * tests/qdeclarativewebview/resources/elements.html: Added.
2908         * tests/qdeclarativewebview/resources/elements.qml: Added.
2909         * tests/qdeclarativewebview/resources/forward.html: Added.
2910         * tests/qdeclarativewebview/resources/forward.png: Added.
2911         * tests/qdeclarativewebview/resources/javaScript.html: Added.
2912         * tests/qdeclarativewebview/resources/javaScript.qml: Added.
2913         * tests/qdeclarativewebview/resources/loadError.qml: Added.
2914         * tests/qdeclarativewebview/resources/newwindows.html: Added.
2915         * tests/qdeclarativewebview/resources/newwindows.qml: Added.
2916         * tests/qdeclarativewebview/resources/propertychanges.qml: Added.
2917         * tests/qdeclarativewebview/resources/sethtml.qml: Added.
2918         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
2919         (tst_QDeclarativeWebView::tmpDir):
2920         (strippedHtml):
2921         (fileContents):
2922         (removeRecursive):
2923         (tst_QDeclarativeWebView::cleanupTestCase):
2924         (tst_QDeclarativeWebView::basicProperties):
2925         (tst_QDeclarativeWebView::elementAreaAt):
2926         (tst_QDeclarativeWebView::historyNav):
2927         (callEvaluateJavaScript):
2928         (tst_QDeclarativeWebView::javaScript):
2929         (tst_QDeclarativeWebView::loadError):
2930         (tst_QDeclarativeWebView::multipleWindows):
2931         (tst_QDeclarativeWebView::newWindowComponent):
2932         (tst_QDeclarativeWebView::newWindowParent):
2933         (tst_QDeclarativeWebView::pressGrabTime):
2934         (tst_QDeclarativeWebView::renderingEnabled):
2935         (tst_QDeclarativeWebView::setHtml):
2936         (tst_QDeclarativeWebView::settings):
2937         (tst_QDeclarativeWebView::checkNoErrors):
2938         * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc:
2939
2940 2011-04-08  Luiz Agostini  <luiz.agostini@openbossa.org>
2941
2942         Reviewed by Kenneth Rohde Christiansen.
2943
2944         [Qt] QWebPage MIME type handling inconsistency with other web browsers
2945         https://bugs.webkit.org/show_bug.cgi?id=46968
2946
2947         Implementing mime type sniffing based on
2948         http://tools.ietf.org/html/draft-abarth-mime-sniff-06.
2949
2950         * WebCoreSupport/FrameLoaderClientQt.cpp:
2951         (WebCore::FrameLoaderClientQt::createNetworkingContext):
2952         * WebCoreSupport/FrameNetworkingContextQt.cpp:
2953         (WebCore::FrameNetworkingContextQt::FrameNetworkingContextQt):
2954         (WebCore::FrameNetworkingContextQt::create):
2955         (WebCore::FrameNetworkingContextQt::MIMESniffingEnabled):
2956         * WebCoreSupport/FrameNetworkingContextQt.h:
2957         * tests/MIMESniffing/MIMESniffing.pro: Added.
2958         * tests/MIMESniffing/TestData.h: Added.
2959         * tests/MIMESniffing/resources.qrc: Added.
2960         * tests/MIMESniffing/resources/application_atom+xml: Added.
2961         * tests/MIMESniffing/resources/application_ogg: Added.
2962         * tests/MIMESniffing/resources/application_pdf: Added.
2963         * tests/MIMESniffing/resources/application_postscript: Added.
2964         * tests/MIMESniffing/resources/application_rdf+xml: Added.
2965         * tests/MIMESniffing/resources/application_rss+xml: Added.
2966         * tests/MIMESniffing/resources/application_x-gzip: Added.
2967         * tests/MIMESniffing/resources/application_x-rar-compressed: Added.
2968         * tests/MIMESniffing/resources/application_zip: Added.
2969         * tests/MIMESniffing/resources/audio_x-wave: Added.
2970         * tests/MIMESniffing/resources/image_bmp: Added.
2971         * tests/MIMESniffing/resources/image_gif: Added.
2972         * tests/MIMESniffing/resources/image_jpeg: Added.
2973         * tests/MIMESniffing/resources/image_png: Added.
2974         * tests/MIMESniffing/resources/image_vnd.microsoft.icon: Added.
2975         * tests/MIMESniffing/resources/image_webp: Added.
2976         * tests/MIMESniffing/resources/text_html: Added.
2977         * tests/MIMESniffing/resources/text_xml: Added.
2978         * tests/MIMESniffing/resources/video_webm: Added.
2979         * tests/MIMESniffing/tst_MIMESniffing.cpp: Added.
2980         (tst_MIMESniffing::tst_MIMESniffing):
2981         (errorText):
2982         (tst_MIMESniffing::testCase1):
2983         * tests/tests.pro:
2984
2985 2011-04-15  Andreas Kling  <kling@webkit.org>
2986
2987         Reviewed by Antonio Gomes.
2988
2989         [Qt] DRT: Block access to external URLs.
2990
2991         Implement the "Blocked access to external URL" behavior for Qt's DRT,
2992         based on what other ports are doing.
2993
2994         Fixes <http://webkit.org/b/57306> and <http://webkit.org/b/58523>.
2995
2996         * WebCoreSupport/FrameLoaderClientQt.cpp:
2997         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
2998
2999 2011-01-26  Ragner Magalhaes  <ragner.magalhaes@openbossa.org>
3000
3001         Reviewed by Antonio Gomes.
3002
3003         [Qt] Web Inspector does not highlight elements
3004         https://bugs.webkit.org/show_bug.cgi?id=35125
3005
3006         Adjust Web inspector to highlight elements on the page when the mouse
3007         hovers the element on DOM inspector.
3008
3009         * Api/qwebframe.cpp:
3010         (QWebFramePrivate::renderRelativeCoords):
3011         * WebCoreSupport/InspectorClientQt.cpp:
3012         (WebCore::InspectorClientQt::highlight):
3013         (WebCore::InspectorClientQt::hideHighlight):
3014
3015 2011-04-12  George Guo  <George.Guo@nokia.com>
3016
3017         Reviewed by Laszlo Gombos.
3018
3019         [Qt] On Symbian got "Update Error" when installing QtWebkit.sis
3020         http://bugs.webkit.org/show_bug.cgi?id=58141
3021
3022         If QtWebKit is already in Symbian ROM, we need package to be
3023         both SA and RU type
3024
3025         * QtWebKit.pro:
3026
3027 2011-04-12  Alexis Menard  <alexis.menard@openbossa.org>
3028
3029         Reviewed by Andreas Kling.
3030
3031         [Qt] Private Q_SLOTS void orientationChanged() can't be in qwebframe.h public header file.
3032         https://bugs.webkit.org/show_bug.cgi?id=58251
3033
3034         Fix an issue with slot names after http://trac.webkit.org/changeset/83512.
3035
3036         * Api/qwebframe.cpp:
3037         (QWebFrame::QWebFrame):
3038
3039 2011-04-11  Alexis Menard  <alexis.menard@openbossa.org>
3040
3041         Reviewed by Benjamin Poulain.
3042
3043         [Qt] Private Q_SLOTS void orientationChanged() can't be in qwebframe.h public header file.
3044         https://bugs.webkit.org/show_bug.cgi?id=58251
3045
3046         Qt coding conventions states that private slots should be located in private implementation of
3047         the class. This allows us to rename/delete the slots in the future without breaking anything.
3048
3049         No new tests added, just a simple refactoring.
3050
3051         * Api/qwebframe.cpp:
3052         (QWebFramePrivate::_q_orientationChanged):
3053         * Api/qwebframe.h:
3054         * Api/qwebframe_p.h:
3055
3056 2011-04-11  Alexis Menard  <alexis.menard@openbossa.org>
3057
3058         Reviewed by Kenneth Rohde Christiansen.
3059
3060         [Qt] Sub-Frame content is not updated when scrolling in certain circumstances
3061         https://bugs.webkit.org/show_bug.cgi?id=50373
3062
3063         Make sure that we invalidate the backing store when using TILED_BACKING_STORE
3064         and the page contains sub frames. This bug appears only when frame flattening is
3065         disabled and scrollable subframes.
3066
3067         Original patch from Thomas Thrainer.
3068
3069         * WebCoreSupport/ChromeClientQt.cpp:
3070         (WebCore::ChromeClientQt::invalidateWindow):
3071
3072 2011-04-11  Benjamin Poulain  <benjamin.poulain@nokia.com>
3073
3074         Reviewed by Andreas Kling.
3075
3076         [Qt] HTML5 Drag and Drop demos not working
3077         https://bugs.webkit.org/show_bug.cgi?id=56486
3078
3079         Handling the drop with JavaScript was not working with Qt because if the action is ignored
3080         in response to DragEnter, no further events are sent to the view.
3081
3082         Drag and drop is defined and used differently by webpages. The drag move events are determining
3083         what action should take place. To adopt this behavior for Qt, we always accept drag enter events
3084         on the widget.
3085
3086         * Api/qwebpage.cpp:
3087         (QWebPagePrivate::dragEnterEvent):
3088
3089 2011-04-11  Andras Becsi  <abecsi@webkit.org>
3090
3091         Reviewed by Andreas Kling.
3092
3093         [Qt] REGRESSION(83122): tst_QWebElement::style() fails
3094         https://bugs.webkit.org/show_bug.cgi?id=58032
3095
3096         According to the documentation of QWebElement the styleProperty method should
3097         not respect style inheritance and other CSS rules for the InlineStyle enum.
3098
3099         r83122 fixed this behaviour.
3100
3101         * tests/qwebelement/tst_qwebelement.cpp:
3102         (tst_QWebElement::style): Fix the expected color for QWebElement::InlineStyle.
3103
3104 2011-04-11  Andreas Kling  <andreas.kling@nokia.com>
3105
3106         Build fix after r83436.
3107
3108         * WebCoreSupport/FrameLoaderClientQt.cpp:
3109         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
3110
3111 2011-04-11  Andreas Kling  <andreas.kling@nokia.com>
3112
3113         Reviewed by Benjamin Poulain.
3114
3115         [Qt] dumpResourceResponseMIMETypes shouldn't strip URL query string.
3116
3117         * WebCoreSupport/FrameLoaderClientQt.cpp:
3118         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): Use KURL::lastPathComponent()
3119         for the dumpResourceResponseMIMETypes display string instead of QFileInfo::fileName().
3120         This is in line with the Mac port.
3121
3122 2011-04-08  Sheriff Bot  <webkit.review.bot@gmail.com>
3123
3124         Unreviewed, rolling out r83295.
3125         http://trac.webkit.org/changeset/83295
3126         https://bugs.webkit.org/show_bug.cgi?id=58144
3127
3128         Broke 4 tests in QtWebKit (Requested by tonikitoo on #webkit).
3129
3130         * WebCoreSupport/EditorClientQt.cpp:
3131         (WebCore::EditorClientQt::handleInputMethodKeydown):
3132
3133 2011-04-08  Yi Shen  <yi.4.shen@nokia.com>
3134
3135         Reviewed by Antonio Gomes.
3136
3137         [Qt]REGRESSION(r82243): fast/events/onsearch-enter.html fails
3138         https://bugs.webkit.org/show_bug.cgi?id=57472
3139
3140         Avoid to insert new line for both keydown event & keypress event.
3141
3142         * WebCoreSupport/EditorClientQt.cpp:
3143         (WebCore::EditorClientQt::handleInputMethodKeydown):
3144
3145 2011-04-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3146
3147         Reviewed by Benjamin Poulain.
3148
3149         [Qt] QWebFrame::setUrl works only from second time if url fragment is present
3150         https://bugs.webkit.org/show_bug.cgi?id=32723
3151
3152         When clearing the frame, instead of using the URL passed to QWebFrame::setUrl(),
3153         use an invalid URL (the begin() without arguments). Clearing the document
3154         with the same URL was causing problems when we had a fragment because it assume that
3155         only scrolling was enough and did not loaded the document again.
3156
3157         When setUrl() is called but fails, url() is expected to return the requested value. The
3158         begin(url) guaranteed that before. This patch adds a member to track the URL, which is
3159         updated when the URL changes and also when setUrl() is called.
3160
3161         KURL was used for the member so that when setUrl() is called, and then url() is checked
3162         before the page gets loaded, we perform the same conversion that will be performed by a
3163         successful load, e.g. add trailing '/' to an address. This behavior is checked by
3164         tst_QWebFrame::requestedUrl() test.
3165
3166         For the record: the second QWebPage::setUrl() worked because the load was considered a
3167         FrameLoadTypeSame, and because of that, was not fit for just scrolling, a reload was
3168         needed. See FrameLoader::shouldScrollToAnchor() for details on this classification.
3169
3170         * Api/qwebframe.cpp:
3171         (QWebFramePrivate::emitUrlChanged): update our URL member and emit the signal.
3172         (clearCoreFrame):
3173         (isCoreFrameClear):
3174         (QWebFrame::setUrl):
3175         (QWebFrame::url):
3176         (QWebFrame::baseUrl): look in the document for the baseURL since its contents can change
3177         the baseURL, e.g. by using the <base> tag.
3178         * Api/qwebframe_p.h:
3179
3180         * WebCoreSupport/FrameLoaderClientQt.cpp:
3181         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
3182         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
3183
3184         * tests/qwebframe/tst_qwebframe.cpp:
3185         (tst_QWebFrame::setUrlWithFragment): unskip test.
3186
3187 2011-04-07  Alexis Menard  <alexis.menard@openbossa.org>
3188
3189         Reviewed by Kenneth Rohde Christiansen.
3190
3191         Build fix when using Phonon as a backend for the multimedia support.
3192
3193         * WebCoreSupport/ChromeClientQt.cpp:
3194         (WebCore::ChromeClientQt::ChromeClientQt):
3195         (WebCore::ChromeClientQt::~ChromeClientQt):
3196         * WebCoreSupport/ChromeClientQt.h:
3197
3198 2011-04-06  Benjamin Poulain  <benjamin.poulain@nokia.com>
3199
3200         Reviewed by Kenneth Rohde Christiansen.
3201
3202         [Qt] LayoutTestController needs to implement numberOfPendingGeolocationPermissionRequests
3203         https://bugs.webkit.org/show_bug.cgi?id=56086
3204
3205         Add the accessor numberOfPendingGeolocationPermissionRequests to call GeolocationClientMock::numberOfPendingPermissionRequests()
3206         from the LayoutTestController.
3207
3208         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3209         (DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests):
3210         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3211
3212 2011-04-06  Anders Bakken  <agbakken@gmail.com>
3213
3214         Reviewed by Kenneth Rohde Christiansen.
3215
3216         [Qt] FrameLoaderClientQt.cpp has coding-style errors
3217         https://bugs.webkit.org/show_bug.cgi?id=40254
3218
3219         * WebCoreSupport/FrameLoaderClientQt.cpp:
3220         (drtDescriptionSuitableForTestResult):
3221         (WebCore::FrameLoaderClientQt::hasWebView):
3222         (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
3223         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
3224         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
3225         (WebCore::FrameLoaderClientQt::dispatchDidChangeIcons):
3226         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
3227         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
3228         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
3229         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
3230         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
3231         (WebCore::FrameLoaderClientQt::willChangeTitle):
3232         (WebCore::FrameLoaderClientQt::didChangeTitle):
3233         (WebCore::FrameLoaderClientQt::finishedLoading):
3234         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
3235         (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
3236         (WebCore::FrameLoaderClientQt::didFinishLoad):
3237         (WebCore::FrameLoaderClientQt::setTitle):
3238         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
3239         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
3240         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
3241         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
3242         (WebCore::FrameLoaderClientQt::shouldStopLoadingForHistoryItem):
3243         (WebCore::FrameLoaderClientQt::committedLoad):
3244         (WebCore::FrameLoaderClientQt::download):
3245         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
3246         (WebCore::FrameLoaderClientQt::shouldUseCredentialStorage):
3247         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForResponse):
3248         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3249         (WebCore::FrameLoaderClientQt::createFrame):
3250         (WebCore::FrameLoaderClientQt::objectContentType):
3251         (WebCore::FrameLoaderClientQt::createPlugin):
3252
3253 2011-04-06  Alexis Menard  <alexis.menard@openbossa.org>
3254
3255         Reviewed by Andreas Kling.
3256
3257         [Qt] We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).
3258         https://bugs.webkit.org/show_bug.cgi?id=57974
3259
3260         We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).
3261
3262         No new tests needed, just a config flag rename.
3263
3264         * Api/qwebkitplatformplugin.h:
3265         * WebCoreSupport/ChromeClientQt.cpp:
3266         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3267         (DumpRenderTreeSupportQt::mediaContentUrlByElementId):
3268         * WebCoreSupport/FullScreenVideoQt.cpp:
3269         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
3270         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
3271         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
3272         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
3273         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
3274         (WebCore::FullScreenVideoQt::isValid):
3275         * WebCoreSupport/FullScreenVideoQt.h:
3276         * WebCoreSupport/QtPlatformPlugin.cpp:
3277         * WebCoreSupport/QtPlatformPlugin.h:
3278         * examples/platformplugin/WebPlugin.cpp:
3279         (WebPlugin::supportsExtension):
3280         (WebPlugin::createExtension):
3281         * examples/platformplugin/WebPlugin.h:
3282         * examples/platformplugin/platformplugin.pro:
3283         * examples/platformplugin/qwebkitplatformplugin.h:
3284         * tests/qwebpage/tst_qwebpage.cpp:
3285         (tst_QWebPage::loadHtml5Video):
3286         * tests/tests.pri:
3287
3288 2011-04-06  Alexis Menard  <alexis.menard@openbossa.org>
3289
3290         Reviewed by Andreas Kling.
3291
3292         [Qt] Implement fullscreen playback for the GStreamer backend.
3293         https://bugs.webkit.org/show_bug.cgi?id=56826
3294
3295         Implement support for fullscreen playback when building the
3296         Qt port with the GStreamer backend (DEFINES+=USE_GSTREAMER=1).
3297         The implementation is done in FullScreenVideoQt alongside with
3298         the Qt Multimedia support.
3299
3300         No new tests because layout tests cover it. They are not yet activated
3301         but will be any time soon.
3302
3303         * QtWebKit.pro:
3304         * WebCoreSupport/ChromeClientQt.cpp:
3305         (WebCore::ChromeClientQt::ChromeClientQt):
3306         (WebCore::ChromeClientQt::~ChromeClientQt):
3307         (WebCore::ChromeClientQt::enterFullscreenForNode):
3308         (WebCore::ChromeClientQt::exitFullscreenForNode):
3309         * WebCoreSupport/ChromeClientQt.h:
3310         * WebCoreSupport/FullScreenVideoQt.cpp:
3311         (WebCore::GStreamerFullScreenVideoHandler::GStreamerFullScreenVideoHandler):
3312         (WebCore::GStreamerFullScreenVideoHandler::setVideoElement):
3313         (WebCore::GStreamerFullScreenVideoHandler::enterFullScreen):
3314         (WebCore::GStreamerFullScreenVideoHandler::windowClosed):
3315         (WebCore::GStreamerFullScreenVideoHandler::exitFullScreen):
3316         (WebCore::DefaultFullScreenVideoHandler::DefaultFullScreenVideoHandler):
3317         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
3318         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
3319         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
3320         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
3321         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
3322         (WebCore::FullScreenVideoQt::isValid):
3323         * WebCoreSupport/FullScreenVideoQt.h:
3324         (WebCore::GStreamerFullScreenVideoHandler::~GStreamerFullScreenVideoHandler):
3325
3326 2011-04-06  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3327
3328         Reviewed by Kenneth Rohde Christiansen.
3329
3330         [Qt] Improve tests for QWebFrame::url() and related methods
3331         https://bugs.webkit.org/show_bug.cgi?id=57865
3332
3333         * tests/qwebframe/tst_qwebframe.cpp:
3334         (FakeReply::FakeReply): make more URLs reply HostNotFound. We needed two different URLs in the test.
3335         (tst_QWebFrame::requestedUrlAfterSetAndLoadFailures): check the properties after an setUrl()
3336         that fails and a load() that fails (for a different URL).
3337
3338         (tst_QWebFrame::setUrlWithFragment_data):
3339         (tst_QWebFrame::setUrlWithFragment): add other test cases similar to the original, but changing
3340         the URL in the frame before the test starts.
3341
3342         (tst_QWebFrame::setUrlSameUrl): document existing behavior of calling setUrl() twice with
3343         the same URL as argument.
3344
3345         (extractBaseUrl):
3346         (tst_QWebFrame::setUrlThenLoads_data):
3347         (tst_QWebFrame::setUrlThenLoads): check the URL related properties of the frame after a
3348         sequence of set and loads. Those tests are interesting because the properties
3349         react different to setUrl() and load(): 'requestedUrl' always change, 'url' only when setUrl()
3350         is used or after the load() is committed and baseUrl() is similar to url() but also depends
3351         on the contents of the page when it loads.
3352
3353 2011-04-04  MORITA Hajime  <morrita@google.com>
3354
3355         Reviewed by Ryosuke Niwa.
3356
3357         [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
3358         https://bugs.webkit.org/show_bug.cgi?id=56085
3359         
3360         * WebCoreSupport/EditorClientQt.h:
3361         (WebCore::EditorClientQt::requestCheckingOfString):
3362
3363 2011-04-04  Chang Shu  <cshu@webkit.org>
3364
3365         Reviewed by Ryosuke Niwa.
3366
3367         setContentEditable with true/false/inherit string is not working properly
3368         https://bugs.webkit.org/show_bug.cgi?id=52058
3369
3370         Move isContentEditable from HTMLElement to Node. WebKit should only access isContentEditable
3371         as rendererIsEditable is for WebCore internal use.
3372
3373         * WebCoreSupport/EditorClientQt.cpp:
3374         (WebCore::EditorClientQt::handleKeyboardEvent):
3375
3376 2011-04-01  Carol Szabo  <carol.szabo@nokia.com>
3377
3378         Reviewed by Benjamin Poulain.
3379
3380         Changed QWebFramePrivate::renderFromTiledBackingStore to call directly into
3381         Scrollbar/PanIcon rendering, bypassing the potential relayout in renderRelativeCoords.
3382
3383         Tiled painting still causes synchronous layout when
3384         accelerated compositing and texture mapper are enabled
3385         https://bugs.webkit.org/show_bug.cgi?id=56929
3386
3387         * Api/qwebframe.cpp:
3388         (QWebFramePrivate::renderFromTiledBackingStore):
3389         (QWebFramePrivate::renderRelativeCoords):
3390         (QWebFramePrivate::renderFrameWidgets):
3391         * Api/qwebframe_p.h:
3392
3393 2011-04-01  Nancy Piedra  <nancy.piedra@nokia.com>
3394
3395         Reviewed by Benjamin Poulain.
3396
3397         [Qt] DragClientQt.h has coding-style errors
3398         https://bugs.webkit.org/show_bug.cgi?id=40425
3399
3400         * WebCoreSupport/DragClientQt.h:
3401
3402 2011-03-31  Marius Storm-Olsen  <marius.storm-olsen@nokia.com>
3403
3404         Reviewed by Kenneth Rohde Christiansen.
3405
3406         [Qt] Properly detect phonon include, and avoid double qtLibraryTarget() call
3407         https://bugs.webkit.org/show_bug.cgi?id=57017
3408
3409         Build fix. No new tests.
3410
3411         * QtWebKit.pro:
3412
3413 2011-03-31  Evan Martin  <evan@chromium.org>
3414
3415         Another build fix.
3416
3417         * WebCoreSupport/FrameLoaderClientQt.cpp:
3418         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
3419
3420 2011-03-31  Nancy Piedra  <nancy.piedra@nokia.com>
3421
3422         Reviewed by Benjamin Poulain.
3423
3424         [Qt] ChromeClientQt.h has coding-style errors
3425         https://bugs.webkit.org/show_bug.cgi?id=40239
3426
3427         * WebCoreSupport/ChromeClientQt.h:
3428         (WebCore::ChromeClientQt::scrollbarsModeDidChange):
3429         (WebCore::ChromeClientQt::needTouchEvents):
3430         (WebCore::ChromeClientQt::formStateDidChange):
3431         (WebCore::ChromeClientQt::scrollRectIntoView):
3432         (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
3433         (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
3434
3435 2011-03-31  Evan Martin  <evan@chromium.org>
3436
3437         Build fix from previous change.
3438
3439         * Api/qwebframe.cpp:
3440         (QWebFrame::title):
3441
3442 2011-03-31  Evan Martin  <evan@chromium.org>
3443
3444         Reviewed by Eric Seidel.
3445
3446         <title> should support dir attribute
3447         https://bugs.webkit.org/show_bug.cgi?id=50961
3448
3449         Update to new FrameLoaderClient interface.
3450
3451         * WebCoreSupport/FrameLoaderClientQt.cpp:
3452         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
3453         (WebCore::FrameLoaderClientQt::setTitle):
3454         * WebCoreSupport/FrameLoaderClientQt.h:
3455
3456 2011-03-30  Yi Shen  <yi.4.shen@nokia.com>
3457
3458         Reviewed by Kenneth Rohde Christiansen.
3459
3460         [Qt][Symbian] Fix Api test failure -- tst_QWebView::focusInputTypes
3461         https://bugs.webkit.org/show_bug.cgi?id=57020
3462
3463         Added a macro 'VERIFY_INPUTMETHOD_HINTS' to test inputmethodhints().
3464
3465         * tests/qwebview/tst_qwebview.cpp:
3466         (tst_QWebView::focusInputTypes):
3467
3468 2011-03-30  Robert Hogan  <robert@webkit.org>
3469
3470         Reviewed by Antonio Gomes.
3471
3472         [Qt] Fix LoadHTMLStringItem::invoke() after r75966
3473
3474         Add DRT support for loading an alternate HTML string
3475         for error pages. This allows Qt to unskip
3476         http/tests/navigation/go-back-to-error-page.html.
3477
3478         https://bugs.webkit.org/show_bug.cgi?id=52614
3479
3480         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3481         (DumpRenderTreeSupportQt::setAlternateHtml):
3482         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3483
3484 2011-03-29  Alexis Menard  <alexis.menard@openbossa.org>
3485
3486         Unreviewed build fix for build-webkit -minimal.
3487
3488         Breakage introduced by http://trac.webkit.org/changeset/82238.
3489         The minimal option has no support for shortcuts.
3490
3491         * WebCoreSupport/EditorClientQt.cpp:
3492         (WebCore::EditorClientQt::handleInputMethodKeydown):
3493
3494 2011-03-29  Janne Koskinen  <janne.p.koskinen@digia.com>
3495
3496         Reviewed by Kenneth Rohde Christiansen.
3497
3498         [Qt] Enterkey to go to Newline does not work in the text area(in HTML form)
3499         https://bugs.webkit.org/show_bug.cgi?id=33179
3500
3501         Fixed newline generation from Qt::Key_Enter when editting text area using InputMethods.
3502
3503         * WebCoreSupport/EditorClientQt.cpp:
3504         (WebCore::EditorClientQt::handleInputMethodKeydown):
3505         * tests/qwebpage/tst_qwebpage.cpp:
3506         (tst_QWebPage::inputMethods):
3507
3508 2011-03-29  Andreas Kling  <kling@webkit.org>
3509
3510         Reviewed by Simon Hausmann.
3511
3512         [Qt] Fix documentation for QWebPage::repaintRequested()
3513
3514         This signal is always emitted when the page is dirtied, so remove
3515         reference to old behavior where we would only emit the signal for
3516         headless QWebPages.
3517
3518         * Api/qwebpage.cpp:
3519
3520 2011-03-28  Andreas Kling  <kling@webkit.org>
3521
3522         Reviewed by Benjamin Poulain.
3523
3524         [Qt] Pass QString() instead of String() when emitting titleChanged() for new loads.
3525
3526         * WebCoreSupport/FrameLoaderClientQt.cpp:
3527         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
3528
3529 2011-03-28  Andreas Kling  <kling@webkit.org>
3530
3531         Reviewed by Benjamin Poulain.
3532
3533         [Qt] Crash when calling QWebFrame::render() in response to QWebPage::repaintRequested()
3534         https://bugs.webkit.org/show_bug.cgi?id=52629
3535
3536         * WebCoreSupport/ChromeClientQt.cpp:
3537         (WebCore::ChromeClientQt::invalidateContentsAndWindow): Make the emission of
3538         QWebPage::repaintRequested() use a Qt::QueuedConnection.
3539
3540         * tests/qwebpage/tst_qwebpage.cpp:
3541         (RepaintRequestedRenderer::RepaintRequestedRenderer):
3542         (RepaintRequestedRenderer::onRepaintRequested):
3543         (tst_QWebPage::renderOnRepaintRequestedShouldNotRecurse): Test that calling
3544         QWebFrame::render() in a slot connected to to QWebPage::repaintRequested()
3545         doesn't cause recursive signal emissions.
3546
3547 2011-03-28  Benjamin Poulain  <benjamin.poulain@nokia.com>
3548
3549         Reviewed by Andreas Kling.
3550
3551         [Qt] QtWebKit will not compile with QT_ASCII_CAST_WARNINGS enabled
3552         https://bugs.webkit.org/show_bug.cgi?id=57087
3553
3554         * QtWebKit.pro: we can now enable QT_ASCII_CAST_WARNINGS
3555         * tests/tests.pri: we do not require QT_ASCII_CAST_WARNINGS for tests
3556         since they are applications, not libraries.
3557
3558 2011-03-28  Andras Becsi  <abecsi@webkit.org>
3559
3560         Reviewed by Csaba Osztrogonác.
3561
3562         [Qt] QtWebKit does not link with --3d-canvas using MinGW
3563         https://bugs.webkit.org/show_bug.cgi?id=57225
3564
3565         * QtWebKit.pro: Append the OpenGL libraries on MinGW so it can resolve symbols.
3566
3567 2011-03-28  Csaba Osztrogonác  <ossy@webkit.org>
3568
3569         Reviewed by Andreas Kling.
3570
3571         REGRESSION(r54712): [Qt] Installed QtWebKit header does not compile.
3572         https://bugs.webkit.org/show_bug.cgi?id=57183
3573
3574         Windows buildfix after r82065.
3575
3576         * Api/DerivedSources.pro: Readding escaping on Windows platforms.
3577
3578 2011-03-27  Andreas Kling  <kling@webkit.org>
3579
3580         Fix build warning about IconDatabaseClient.h (wrong path.)
3581
3582         * QtWebKit.pro:
3583
3584 2011-03-27  Andreas Kling  <kling@webkit.org>
3585
3586         Reviewed by Kenneth Rohde Christiansen.
3587
3588         [Qt] Support for CSS color and background-color properties on select element's dropdown list
3589         https://bugs.webkit.org/show_bug.cgi?id=51627
3590
3591         Extend the QWebSelectData interface with background and foreground colors
3592         for the whole menu, as well as per-item. Hook it up to the PopupMenuStyle
3593         getters in RenderMenuList.
3594
3595         * Api/qwebkitplatformplugin.h:
3596         * WebCoreSupport/PopupMenuQt.cpp:
3597         (SelectData::backgroundColor):
3598         (SelectData::foregroundColor):
3599         (SelectData::itemBackgroundColor):
3600         (SelectData::itemForegroundColor):
3601         * WebCoreSupport/QtFallbackWebPopup.cpp:
3602         (WebCore::QtFallbackWebPopup::show):
3603         (WebCore::QtFallbackWebPopup::populate):
3604
3605 2011-03-27  Yi Shen  <yi.4.shen@nokia.com>
3606
3607         Reviewed by Andreas Kling.
3608
3609         [Qt][Symbian] Fix Api test failure -- microFocusCoordinates
3610         https://bugs.webkit.org/show_bug.cgi?id=57108
3611
3612         Since the canvas is not self-closing tag, we need to add '</canvas>'. 
3613
3614         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
3615         (tst_QGraphicsWebView::microFocusCoordinates):
3616         * tests/qwebview/tst_qwebview.cpp:
3617         (tst_QWebView::microFocusCoordinates):
3618
3619 2011-03-27  Kwang Yul Seo  <skyul@company100.net>
3620
3621         Reviewed by Eric Seidel.
3622
3623         [Qt] Build fix: Define WTF_USE_TEXTURE_MAPPER=1 when CONFIG contains texmap.
3624         https://bugs.webkit.org/show_bug.cgi?id=57143
3625
3626         Qt WebKit uses USE(TEXTURE_MAPPER) guard. Check texmap in CONFIG and
3627         define WTF_USE_TEXTURE_MAPPER=1.
3628
3629         * QtWebKit.pro:
3630
3631 2011-03-27  Andreas Kling  <kling@webkit.org>
3632
3633         Reviewed by Benjamin Poulain.
3634
3635         REGRESSION(r54712): [Qt] Installed QtWebKit header does not compile.
3636         https://bugs.webkit.org/show_bug.cgi?id=57183
3637
3638         The convenience <QtWebKit> header would include \<QtNetwork/QtNetwork\>
3639         which was due to the outputting code previously being wrapped in eval().
3640
3641         * Api/DerivedSources.pro:
3642
3643 2011-03-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
3644
3645         Reviewed by Andreas Kling.
3646
3647         [Qt] QtWebKit will not compile with QT_ASCII_CAST_WARNINGS enabled
3648         https://bugs.webkit.org/show_bug.cgi?id=57087
3649
3650         Use explicit conversion for string to avoid depending on the default codec
3651         installed by the user code.
3652
3653         * Api/qwebkitversion.cpp:
3654         (qWebKitVersion):
3655         * Api/qwebpage.cpp:
3656         (QWebPagePrivate::dynamicPropertyChangeEvent):
3657         (QWebPage::javaScriptConsoleMessage):
3658         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3659         (convertToPropertyName):
3660         (DumpRenderTreeSupportQt::setEditingBehavior):
3661         (DumpRenderTreeSupportQt::plainText):
3662         * WebCoreSupport/EditorClientQt.cpp:
3663         (dumpRange):
3664         * WebCoreSupport/FrameLoaderClientQt.cpp:
3665         (drtDescriptionSuitableForTestResult):
3666         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3667         * WebCoreSupport/InspectorClientQt.cpp:
3668         (WebCore::InspectorClientQt::openInspectorFrontend):
3669         * WebCoreSupport/InspectorServerQt.cpp:
3670         (WebCore::parseWebSocketChallengeNumber):
3671         (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
3672
3673 2011-03-26  Andreas Kling  <kling@webkit.org>
3674
3675         Reviewed by Kenneth Rohde Christiansen.
3676
3677         [Qt] QWebFrame::iconChanged() not emitted when icon is cached but not yet loaded
3678         https://bugs.webkit.org/show_bug.cgi?id=57157
3679
3680         Add an IconDatabaseClient for the Qt port to ensure that QWebFrame::iconChanged()
3681         is always emitted when appropriate.
3682
3683         * QtWebKit.pro: Add new files.
3684
3685         * WebCoreSupport/IconDatabaseClientQt.h: Added.
3686         * WebCoreSupport/IconDatabaseClientQt.cpp: Added.
3687         (WebCore::IconDatabaseClientQt::instance):
3688         (WebCore::IconDatabaseClientQt::IconDatabaseClientQt):
3689         (WebCore::IconDatabaseClientQt::~IconDatabaseClientQt):
3690         (WebCore::IconDatabaseClientQt::performImport):
3691         (WebCore::IconDatabaseClientQt::didRemoveAllIcons):
3692         (WebCore::IconDatabaseClientQt::didImportIconURLForPageURL):
3693         (WebCore::IconDatabaseClientQt::didImportIconDataForPageURL):
3694         (WebCore::IconDatabaseClientQt::didChangeIconForPageURL):
3695         (WebCore::IconDatabaseClientQt::didFinishURLImport):
3696
3697         * WebCoreSupport/FrameLoaderClientQt.h:
3698         * WebCoreSupport/FrameLoaderClientQt.cpp:
3699         (WebCore::FrameLoaderClientQt::registerForIconNotification):
3700         (WebCore::FrameLoaderClientQt::onIconLoadedForPageURL): New slot connected
3701         to the IconDatabaseClientQt::iconLoadedForPageURL() signal. This emits the
3702         QWebFrame::iconChanged() signal when the IconDatabases finishes loading
3703         a cached favicon for the frame's URL.
3704
3705         * Api/qwebsettings.cpp:
3706         (QWebSettings::setIconDatabasePath): Make sure that IconDatabaseClientQt is
3707         instantiated. An IconDatabaseClient has to be registered before the IconDatabase
3708         spawns its reader thread.
3709
3710 2011-03-25  Andy Estes  <aestes@apple.com>
3711
3712         Reviewed by Adele Peterson.
3713
3714         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
3715         https://bugs.webkit.org/show_bug.cgi?id=49016
3716
3717         Update objectContentType() implementation to handle the
3718         shouldPreferPlugInsForImages flag.
3719
3720         * WebCoreSupport/FrameLoaderClientQt.cpp:
3721         (WebCore::FrameLoaderClientQt::objectContentType):
3722         * WebCoreSupport/FrameLoaderClientQt.h:
3723
3724 2011-03-25  Chang Shu  <cshu@webkit.org>
3725
3726         Reviewed by Ryosuke Niwa.
3727
3728         rename Node::isContentEditable and all call sites to rendererIsEditable
3729         https://bugs.webkit.org/show_bug.cgi?id=54290
3730
3731         This is part of the effort to separate JS API HTMLElement isContentEditable from
3732         internal Node::rendererIsEditable.
3733
3734         * WebCoreSupport/EditorClientQt.cpp:
3735         (WebCore::EditorClientQt::handleKeyboardEvent):
3736
3737 2011-03-25  Alexis Menard  <alexis.menard@openbossa.org>
3738
3739         Reviewed by Andreas Kling.
3740
3741         [Qt] The keyboard shortcuts during fullscreen playback do not work.
3742         https://bugs.webkit.org/show_bug.cgi?id=57095
3743
3744         We need to explicitely set the focus on the widget in order to receive the keyboard events.
3745
3746         * WebCoreSupport/FullScreenVideoWidget.cpp:
3747         (WebCore::FullScreenVideoWidget::show):
3748
3749 2011-03-24  Sheriff Bot  <webkit.review.bot@gmail.com>
3750
3751         Unreviewed, rolling out r81916 and r81917.
3752         http://trac.webkit.org/changeset/81916
3753         http://trac.webkit.org/changeset/81917
3754         https://bugs.webkit.org/show_bug.cgi?id=57071
3755
3756         broke a test on platforms that do not have QuickTime installed
3757         (Requested by estes on #webkit).
3758
3759         * WebCoreSupport/FrameLoaderClientQt.cpp:
3760         (WebCore::FrameLoaderClientQt::objectContentType):
3761         * WebCoreSupport/FrameLoaderClientQt.h:
3762
3763 2011-03-24  Andy Estes  <aestes@apple.com>
3764
3765         Reviewed by Darin Adler.
3766
3767         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
3768         https://bugs.webkit.org/show_bug.cgi?id=49016
3769
3770         Update objectContentType() implementation to handle the
3771         shouldPreferPlugInsForImages flag.
3772
3773         * WebCoreSupport/FrameLoaderClientQt.cpp:
3774         (WebCore::FrameLoaderClientQt::objectContentType):
3775         * WebCoreSupport/FrameLoaderClientQt.h:
3776
3777 2011-03-24  Benjamin Poulain  <benjamin.poulain@nokia.com>
3778
3779         Reviewed by Kenneth Rohde Christiansen.
3780
3781         [Qt] When we render WebGL offscreen, color conversion cost a lot of CPU cycles
3782         https://bugs.webkit.org/show_bug.cgi?id=40884
3783
3784         Add tests and benchmarks for the software fallback of WebGL.
3785
3786         * tests/benchmarks/webgl/10000_triangles.html: Added.
3787         * tests/benchmarks/webgl/tst_webgl.cpp: Added.
3788         (GraphicsView::GraphicsView):
3789         (GraphicsView::resizeEvent):
3790         (tst_WebGlPerformance::init):
3791         (tst_WebGlPerformance::cleanup):
3792         (tst_WebGlPerformance::benchSoftwareFallbackRgb16):
3793         (tst_WebGlPerformance::benchSoftwareFallbackRgb32):
3794         (tst_WebGlPerformance::benchSoftwareFallbackArgb32):
3795         (tst_WebGlPerformance::benchSoftwareFallbackArgb32Premultiplied):
3796         (tst_WebGlPerformance::benchmarkFrameRenderingOnImage):
3797         * tests/benchmarks/webgl/tst_webgl.qrc: Added.
3798         * tests/benchmarks/webgl/webgl.pro: Added.
3799         * tests/qgraphicswebview/qgraphicswebview.pro:
3800         * tests/qgraphicswebview/resources/pointing_right.html: Added.
3801         * tests/qgraphicswebview/resources/pointing_up.html: Added.
3802         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
3803         (compareImagesFuzzyPixelCount):
3804         (GraphicsView::GraphicsView):
3805         (tst_QGraphicsWebView::webglSoftwareFallbackVerticalOrientation):
3806         (tst_QGraphicsWebView::webglSoftwareFallbackHorizontalOrientation):
3807         (tst_QGraphicsWebView::compareCanvasToImage):
3808         * tests/qgraphicswebview/tst_qgraphicswebview.qrc:
3809         * tests/tests.pro:
3810
3811 2011-03-24  Kristian Amlie  <kristian.amlie@nokia.com>
3812
3813         Reviewed by Benjamin Poulain.
3814
3815         Avoided ASCII-cast warnings for WebKit.
3816
3817         Normally they won't be enabled anyway, but if you build webkit from
3818         within the Qt mother repository it will pick up Qt's default build
3819         settings, which do enable it. We need to disable them because
3820         warnings are treated as errors and there are way too many of them in
3821         the WebKit code.
3822
3823         [Qt] Avoid ASCII-cast warnings for WebKit.
3824         https://bugs.webkit.org/show_bug.cgi?id=57016
3825
3826         * QtWebKit.pro:
3827
3828 2011-03-24  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3829
3830         Reviewed by Benjamin Poulain.
3831
3832         [Qt] Resetting the URL property of a QWebView results in the current directory being set as file::-type URL
3833         https://bugs.webkit.org/show_bug.cgi?id=29595
3834
3835         Qt Designer resets the URL by setting it to QUrl(). The bug was caused by
3836         ensureAbsoluteUrl() helper function treating the empty URL as a relative URL, and
3837         prepending the current directory.
3838
3839         By fixing this, now we can pass QUrl() invalid and empty URLs to WebCore layer, which
3840         will end up loading "about:blank", but keeping it as a requested URL.
3841
3842         This patch also simplifies the logic for requestedUrl(), since m_lastRequestedUrl
3843         is filled for the loaded URLs as well, we can use it in every case.
3844
3845         Three new autotests were added, to better cover the expected behavior of setting
3846         the QUrl() in a QWebFrame.
3847
3848         * Api/qwebframe.cpp:
3849         (ensureAbsoluteUrl): do not treat invalid URLs (empty included) as relative.
3850         (QWebFrame::requestedUrl): always use m_lastRequestedUrl.
3851
3852         * WebCoreSupport/FrameLoaderClientQt.cpp:
3853         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): do not clear m_lastRequestedUrl
3854         anymore, since we always rely on it even for loaded frames.
3855
3856         * tests/qwebframe/tst_qwebframe.cpp:
3857         (tst_QWebFrame::setUrlToEmpty): verify the behavior of setting empty URLs. This includes
3858         the reduction of the bug report.
3859         (tst_QWebFrame::setUrlToInvalid): setting invalid, but not necessarily empty, URLs.
3860         (tst_QWebFrame::setUrlHistory): to verify how setting empty URLs affect history.
3861
3862 2011-03-23  Brady Eidson  <beidson@apple.com>
3863
3864         Reviewed by Sam Weinig.
3865
3866         Change IconDatabase opening to allow for arbitrary filenames
3867         https://bugs.webkit.org/show_bug.cgi?id=56977
3868
3869         * Api/qwebsettings.cpp:
3870         (QWebSettings::setIconDatabasePath):
3871
3872 2011-03-23  Aparna Nandyal  <aparna.nand@wipro.com>
3873
3874         Reviewed by Andreas Kling.
3875
3876         [Qt] QtWebKit rendering problem when maximizing and doing a back
3877         https://bugs.webkit.org/show_bug.cgi?id=56669
3878
3879         Added an auto test.
3880         Patch by Alexis Menard < alexis.menard@nokia.com> on 2011-03-21
3881  
3882         * tests/qwebview/tst_qwebview.cpp:
3883         (tst_QWebView::rendering):
3884
3885 2011-03-23  Yury Semikhatsky  <yurys@chromium.org>
3886
3887         Reviewed by Pavel Feldman.
3888
3889         [V8] Web Inspector: compile DebuggerScript.js into DebuggerScriptSource.h
3890         https://bugs.webkit.org/show_bug.cgi?id=56843
3891
3892         * WebCoreSupport/InspectorClientQt.cpp:
3893         (WebCore::InspectorClientQt::openInspectorFrontend):
3894
3895 2011-03-22  Andrew Wason  <rectalogic@rectalogic.com>
3896
3897         Reviewed by Benjamin Poulain.
3898
3899         [Qt] QWebPage with WebGL content crashes when rendering if no QWebView parent
3900         https://bugs.webkit.org/show_bug.cgi?id=54138
3901
3902         * tests/qwebpage/tst_qwebpage.cpp:
3903         (webGLScreenshotWithoutView):
3904         (tst_QWebPage::acceleratedWebGLScreenshotWithoutView):
3905         (tst_QWebPage::unacceleratedWebGLScreenshotWithoutView):
3906          Render a QWebPage (with and without accelerated compositing)
3907          with a WebGL context that has no owning view.  Shouldn't crash.
3908
3909 2011-03-21  Chang Shu  <cshu@webkit.org>
3910
3911         Reviewed by Alexey Proskuryakov.
3912
3913         REGRESSION (r79953): Can't type in MS Outlook 2011
3914         https://bugs.webkit.org/show_bug.cgi?id=56665
3915
3916         r79953 removed the WebView level editablity which is persistent no matter whether
3917         underlying document itself is changed and editability gets lost. The resolution is to
3918         set this WebView editable value to WebCore. This avoids the callback from WebCore to
3919         WebKit which was the main goal in r79953 to improve performance.
3920
3921         * Api/qwebpage.cpp:
3922         (QWebPage::setContentEditable):
3923         (QWebPage::isContentEditable):
3924
3925 2011-03-19  Andreas Kling  <kling@webkit.org>
3926
3927         Reviewed by Benjamin Poulain.
3928
3929         [Qt] Remove support for Qt 4.6
3930         https://bugs.webkit.org/show_bug.cgi?id=56712
3931
3932         * Api/qwebframe.cpp:
3933         (QWebFrame::load):
3934         * Api/qwebpage.cpp:
3935         (QWebPagePrivate::QWebPagePrivate):
3936         * Api/qwebsettings.cpp:
3937         (QWebSettings::QWebSettings):
3938         * WebCoreSupport/GeolocationClientQt.cpp:
3939         (WebCore::GeolocationClientQt::positionUpdated):
3940
3941 2011-03-19  Andreas Kling  <kling@webkit.org>
3942
3943         Reviewed by Antonio Gomes.
3944
3945         [Qt][Doc] QWebPage::unsupportedContent() passes ownership of the QNetworkReply
3946         https://bugs.webkit.org/show_bug.cgi?id=56711
3947
3948         Document the fact that when unsupportedContent(QNetworkReply*) is emitted,
3949         ownership of the reply is transferred to the receiving slot.
3950
3951         * Api/qwebpage.cpp:
3952
3953 2011-03-17  Brady Eidson  <beidson@apple.com>
3954
3955         Reviewed by Sam Weinig.
3956
3957         https://bugs.webkit.org/show_bug.cgi?id=56425
3958         More groundwork for WebKit2 IconDatabase
3959
3960         Update already-used function names:
3961         * Api/qwebhistory.cpp:
3962         (QWebHistoryItem::icon):
3963         * Api/qwebsettings.cpp:
3964         (QWebSettings::iconForUrl):
3965
3966 2011-03-18  Alexis Menard  <alexis.menard@openbossa.org>
3967
3968         Reviewed by Benjamin Poulain.
3969
3970         [Qt] console.log not being exposed to QmlViewer
3971         https://bugs.webkit.org/show_bug.cgi?id=56536
3972
3973         The documentation is bogus the feature does not exist.
3974
3975         * declarative/qdeclarativewebview.cpp:
3976
3977 2011-03-17  Andreas Kling  <kling@webkit.org>
3978
3979         Reviewed by Kenneth Rohde Christiansen.
3980
3981         [Qt] QML WebView emits iconChanged() when the page title changes
3982         https://bugs.webkit.org/show_bug.cgi?id=56570
3983
3984         * declarative/qdeclarativewebview.cpp:
3985         (QDeclarativeWebView::setPage): Don't forward the frame's titleChanged
3986         signal to the view's iconChanged signal.
3987
3988 2011-03-17  Alexis Menard  <alexis.menard@openbossa.org>
3989
3990         Reviewed by Benjamin Poulain.
3991
3992         [Qt] Videos look ugly when using QGraphicsWebView.
3993         https://bugs.webkit.org/show_bug.cgi?id=56580
3994
3995         We need to set QPainter::SmoothPixmapTransform on the painter for a proper rendering of the video.
3996         QWebView does it but not QGraphicsWebView because the API does not exist. This patch is fixing it
3997         by introducing the same API as QWebView to control the renderHints of the item. Unlike QWebView
3998         QGraphicsWebView inherits the painter from QGraphicsScene and those flags are not set. This patch
3999         ensure that before rendering the item we add QPainter::SmoothPixmapTransform and QPainter::TextAntialiasing
4000         in addition of what could be set on the painter. In order to not break the rendering of all the items in the
4001         scene we set back the painter to its original state when QGraphicsWebView is rendered.
4002
4003         * Api/qgraphicswebview.cpp:
4004         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
4005         (QGraphicsWebView::paint):
4006         (QGraphicsWebView::renderHints):
4007         (QGraphicsWebView::setRenderHints):
4008         (QGraphicsWebView::setRenderHint):
4009         * Api/qgraphicswebview.h:
4010         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
4011         (tst_QGraphicsWebView::renderHints):
4012
4013 2011-03-16  Joseph Pecoraro  <joepeck@webkit.org>
4014
4015         Reviewed by Kenneth Rohde Christiansen.
4016
4017         Viewport no longer allows an auto value for "user-scalable"
4018         https://bugs.webkit.org/show_bug.cgi?id=55416
4019
4020         Make the default value for userScalable be true.
4021
4022         * Api/qwebpage.cpp:
4023         (QWebPage::viewportAttributesForSize):
4024         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4025         (DumpRenderTreeSupportQt::viewportAsText): update test output to include userScalable.
4026
4027 2011-03-15  Kevin Ollivier  <kevino@theolliviers.com>
4028
4029         Reviewed by Darin Adler.
4030
4031         Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
4032         info into the headers rather than in export symbol definition files, but disable it on 
4033         all platforms initially so we can deal with port build issues one port at a time.
4034         
4035         https://bugs.webkit.org/show_bug.cgi?id=27551
4036
4037         * WebCoreSupport/GeolocationClientQt.cpp:
4038         * WebCoreSupport/PopupMenuQt.cpp:
4039
4040 2011-03-14  Brady Eidson  <beidson@apple.com>
4041
4042         Reviewed by Anders Carlsson.
4043
4044         https://bugs.webkit.org/show_bug.cgi?id=56320
4045         Remove HistoryItem::icon() and the WebCore dependency on "IconDatabaseBase::defaultIcon()"
4046
4047         * Api/qwebhistory.cpp:
4048         (QWebHistoryItem::icon): Use IconDatabase directly.
4049
4050 2011-03-11  Brady Eidson  <beidson@apple.com>
4051
4052         Reviewed by attempt at build fix!
4053
4054         https://bugs.webkit.org/show_bug.cgi?id=56216
4055         Fix the Qt build following the same pattern of the patch.
4056
4057         * Api/qwebsettings.cpp:
4058         (QWebSettings::setIconDatabasePath): Call the static method via IconDatabase:: and not via iconDatabase()
4059
4060 2011-03-11  Alexis Menard  <alexis.menard@openbossa.org>
4061
4062         Reviewed by Ariya Hidayat.
4063
4064         [Qt] Entering fullscreen and leaving it may hide the cursor of the application.
4065         https://bugs.webkit.org/show_bug.cgi?id=56181
4066
4067         We need to stop the auto hide cursor timer when closing the widget otherwise the timer
4068         might get fired and therefore hide the cursor even when the fullscreen widget is closed.
4069
4070         * WebCoreSupport/FullScreenVideoWidget.cpp:
4071         (WebCore::FullScreenVideoWidget::closeEvent):
4072
4073 2011-03-10  David Boddie <david.boddie@nokia.com>
4074
4075         Reviewed by Andreas Kling.
4076
4077         Fixed a qdoc warning and terminology (WebKit instead of Webkit).
4078         https://bugs.webkit.org/show_bug.cgi?id=55756
4079
4080         * Api/qwebhistoryinterface.cpp:
4081
4082 2011-03-10  Andreas Kling  <kling@webkit.org>
4083
4084         Unreviewed build fix after r80774.
4085
4086         QML property versioning is introduced in Qt 4.7.3, not 4.7.2.
4087         See also: http://bugreports.qt.nokia.com/browse/QTBUG-13451
4088
4089         * declarative/plugin.cpp:
4090         (WebKitQmlPlugin::registerTypes):
4091         * declarative/qdeclarativewebview.cpp:
4092         * declarative/qdeclarativewebview_p.h:
4093         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
4094
4095 2011-03-10  Alexis Menard  <alexis.menard@openbossa.org>
4096
4097         Reviewed by Andreas Kling.
4098
4099         [Qt] QtDeclarative Webview element has a fixed white background
4100         https://bugs.webkit.org/show_bug.cgi?id=40918
4101
4102         Implement a way to change the background color of the WebView QML element.
4103         This feature is activated for QtWebKit 1.1 version of the plugin.
4104
4105         * declarative/plugin.cpp:
4106         (WebKitQmlPlugin::registerTypes):
4107         * declarative/qdeclarativewebview.cpp:
4108         (QDeclarativeWebView::backgroundColor):
4109         (QDeclarativeWebView::setBackgroundColor):
4110         * declarative/qdeclarativewebview_p.h:
4111         * tests/qdeclarativewebview/resources/webviewbackgroundcolor.qml: Added.
4112         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
4113         (tst_QDeclarativeWebView::backgroundColor):
4114         * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc:
4115
4116 2011-03-10  Stanislav Paltis  <Stanislav.Paltis@nokia.com>
4117
4118         Reviewed by Laszlo Gombos.
4119
4120         [Qt] MemoryCache deadDecodedDataDeletionInterval is not exposed for client's usage
4121         https://bugs.webkit.org/show_bug.cgi?id=55945
4122         
4123         Added handling of dynamic/runtime property _q_deadDecodedDataDeletionInterval to 
4124         set interval used to trigger when decoded data in dead list of object cache will 
4125         be purged from object cache. 
4126
4127         * Api/qwebpage.cpp:
4128         (QWebPagePrivate::dynamicPropertyChangeEvent):
4129
4130 2011-03-10  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
4131
4132         Reviewed by Antonio Gomes.
4133
4134         Simplify how QWebFrame::requestedUrl() is obtained
4135         https://bugs.webkit.org/show_bug.cgi?id=55842
4136
4137         When a load starts, store the requested URL until we know that it'll be
4138         available for us in the document loader -- after load finished.
4139
4140         The existing auto tests cover the three different code paths in
4141         requestedUrl() and the new code passes the autotests. In each of those
4142         cases, we looked for the information in a different place, but in all
4143         of them, dispatchDidStartProvisionalLoad was called.
4144
4145         This simplification will be useful to fix bug 32723. The way requestedUrl()
4146         is implementent, we can't use it as a fallback for url() when the setUrl()
4147         was called with an invalid URL.
4148
4149         * Api/qwebframe.cpp:
4150         (QWebFrame::requestedUrl):
4151         * WebCoreSupport/FrameLoaderClientQt.cpp:
4152         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
4153         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
4154         * WebCoreSupport/FrameLoaderClientQt.h:
4155         (WebCore::FrameLoaderClientQt::lastRequestedUrl):
4156
4157 2011-03-10  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
4158
4159         Reviewed by Kenneth Rohde Christiansen.
4160
4161         Tiled backing store's delegated scroll request uses incorrect convention
4162         https://bugs.webkit.org/show_bug.cgi?id=56011
4163
4164         Adapt internal API to match the change from delta to point on the
4165         WebCore side, and convert the point to a delta for the public API.
4166
4167         * WebCoreSupport/ChromeClientQt.cpp:
4168         (WebCore::ChromeClientQt::delegatedScrollRequested):
4169         * WebCoreSupport/ChromeClientQt.h:
4170
4171 2011-03-09  Peter Kasting  <pkasting@google.com>
4172
4173         Reviewed by Mihai Parparita.
4174
4175         Unify Windows version checks.
4176         https://bugs.webkit.org/show_bug.cgi?id=55979
4177
4178         * Api/qwebpage.cpp:
4179         (QWebPage::userAgentForUrl):
4180
4181 2011-03-07  Sam Weinig  <sam@webkit.org>
4182
4183         Reviewed by Anders Carlsson.
4184
4185         Replace WebKit2's decidePolicyForMIMEType with decidePolicyForResponse
4186         https://bugs.webkit.org/show_bug.cgi?id=55827
4187
4188         Renamed FrameLoaderClient::dispatchDecidePolicyForMIMEType to dispatchDecidePolicyForResponse
4189         and pass the entire response, instead of just the MIMEType.
4190
4191         * WebCoreSupport/FrameLoaderClientQt.cpp:
4192         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForResponse):
4193         * WebCoreSupport/FrameLoaderClientQt.h:
<