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