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