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