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