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