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