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