2011-04-11 Alexis Menard <alexis.menard@openbossa.org>
[WebKit-https.git] / Source / WebKit / qt / ChangeLog
1 2011-04-11  Alexis Menard  <alexis.menard@openbossa.org>
2
3         Reviewed by Kenneth Rohde Christiansen.
4
5         [Qt] Sub-Frame content is not updated when scrolling in certain circumstances
6         https://bugs.webkit.org/show_bug.cgi?id=50373
7
8         Make sure that we invalidate the backing store when using TILED_BACKING_STORE
9         and the page contains sub frames. This bug appears only when frame flattening is
10         disabled and scrollable subframes.
11
12         Original patch from Thomas Thrainer.
13
14         * WebCoreSupport/ChromeClientQt.cpp:
15         (WebCore::ChromeClientQt::invalidateWindow):
16
17 2011-04-11  Benjamin Poulain  <benjamin.poulain@nokia.com>
18
19         Reviewed by Andreas Kling.
20
21         [Qt] HTML5 Drag and Drop demos not working
22         https://bugs.webkit.org/show_bug.cgi?id=56486
23
24         Handling the drop with JavaScript was not working with Qt because if the action is ignored
25         in response to DragEnter, no further events are sent to the view.
26
27         Drag and drop is defined and used differently by webpages. The drag move events are determining
28         what action should take place. To adopt this behavior for Qt, we always accept drag enter events
29         on the widget.
30
31         * Api/qwebpage.cpp:
32         (QWebPagePrivate::dragEnterEvent):
33
34 2011-04-11  Andras Becsi  <abecsi@webkit.org>
35
36         Reviewed by Andreas Kling.
37
38         [Qt] REGRESSION(83122): tst_QWebElement::style() fails
39         https://bugs.webkit.org/show_bug.cgi?id=58032
40
41         According to the documentation of QWebElement the styleProperty method should
42         not respect style inheritance and other CSS rules for the InlineStyle enum.
43
44         r83122 fixed this behaviour.
45
46         * tests/qwebelement/tst_qwebelement.cpp:
47         (tst_QWebElement::style): Fix the expected color for QWebElement::InlineStyle.
48
49 2011-04-11  Andreas Kling  <andreas.kling@nokia.com>
50
51         Build fix after r83436.
52
53         * WebCoreSupport/FrameLoaderClientQt.cpp:
54         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
55
56 2011-04-11  Andreas Kling  <andreas.kling@nokia.com>
57
58         Reviewed by Benjamin Poulain.
59
60         [Qt] dumpResourceResponseMIMETypes shouldn't strip URL query string.
61
62         * WebCoreSupport/FrameLoaderClientQt.cpp:
63         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): Use KURL::lastPathComponent()
64         for the dumpResourceResponseMIMETypes display string instead of QFileInfo::fileName().
65         This is in line with the Mac port.
66
67 2011-04-08  Sheriff Bot  <webkit.review.bot@gmail.com>
68
69         Unreviewed, rolling out r83295.
70         http://trac.webkit.org/changeset/83295
71         https://bugs.webkit.org/show_bug.cgi?id=58144
72
73         Broke 4 tests in QtWebKit (Requested by tonikitoo on #webkit).
74
75         * WebCoreSupport/EditorClientQt.cpp:
76         (WebCore::EditorClientQt::handleInputMethodKeydown):
77
78 2011-04-08  Yi Shen  <yi.4.shen@nokia.com>
79
80         Reviewed by Antonio Gomes.
81
82         [Qt]REGRESSION(r82243): fast/events/onsearch-enter.html fails
83         https://bugs.webkit.org/show_bug.cgi?id=57472
84
85         Avoid to insert new line for both keydown event & keypress event.
86
87         * WebCoreSupport/EditorClientQt.cpp:
88         (WebCore::EditorClientQt::handleInputMethodKeydown):
89
90 2011-04-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
91
92         Reviewed by Benjamin Poulain.
93
94         [Qt] QWebFrame::setUrl works only from second time if url fragment is present
95         https://bugs.webkit.org/show_bug.cgi?id=32723
96
97         When clearing the frame, instead of using the URL passed to QWebFrame::setUrl(),
98         use an invalid URL (the begin() without arguments). Clearing the document
99         with the same URL was causing problems when we had a fragment because it assume that
100         only scrolling was enough and did not loaded the document again.
101
102         When setUrl() is called but fails, url() is expected to return the requested value. The
103         begin(url) guaranteed that before. This patch adds a member to track the URL, which is
104         updated when the URL changes and also when setUrl() is called.
105
106         KURL was used for the member so that when setUrl() is called, and then url() is checked
107         before the page gets loaded, we perform the same conversion that will be performed by a
108         successful load, e.g. add trailing '/' to an address. This behavior is checked by
109         tst_QWebFrame::requestedUrl() test.
110
111         For the record: the second QWebPage::setUrl() worked because the load was considered a
112         FrameLoadTypeSame, and because of that, was not fit for just scrolling, a reload was
113         needed. See FrameLoader::shouldScrollToAnchor() for details on this classification.
114
115         * Api/qwebframe.cpp:
116         (QWebFramePrivate::emitUrlChanged): update our URL member and emit the signal.
117         (clearCoreFrame):
118         (isCoreFrameClear):
119         (QWebFrame::setUrl):
120         (QWebFrame::url):
121         (QWebFrame::baseUrl): look in the document for the baseURL since its contents can change
122         the baseURL, e.g. by using the <base> tag.
123         * Api/qwebframe_p.h:
124
125         * WebCoreSupport/FrameLoaderClientQt.cpp:
126         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
127         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
128
129         * tests/qwebframe/tst_qwebframe.cpp:
130         (tst_QWebFrame::setUrlWithFragment): unskip test.
131
132 2011-04-07  Alexis Menard  <alexis.menard@openbossa.org>
133
134         Reviewed by Kenneth Rohde Christiansen.
135
136         Build fix when using Phonon as a backend for the multimedia support.
137
138         * WebCoreSupport/ChromeClientQt.cpp:
139         (WebCore::ChromeClientQt::ChromeClientQt):
140         (WebCore::ChromeClientQt::~ChromeClientQt):
141         * WebCoreSupport/ChromeClientQt.h:
142
143 2011-04-06  Benjamin Poulain  <benjamin.poulain@nokia.com>
144
145         Reviewed by Kenneth Rohde Christiansen.
146
147         [Qt] LayoutTestController needs to implement numberOfPendingGeolocationPermissionRequests
148         https://bugs.webkit.org/show_bug.cgi?id=56086
149
150         Add the accessor numberOfPendingGeolocationPermissionRequests to call GeolocationClientMock::numberOfPendingPermissionRequests()
151         from the LayoutTestController.
152
153         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
154         (DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests):
155         * WebCoreSupport/DumpRenderTreeSupportQt.h:
156
157 2011-04-06  Anders Bakken  <agbakken@gmail.com>
158
159         Reviewed by Kenneth Rohde Christiansen.
160
161         [Qt] FrameLoaderClientQt.cpp has coding-style errors
162         https://bugs.webkit.org/show_bug.cgi?id=40254
163
164         * WebCoreSupport/FrameLoaderClientQt.cpp:
165         (drtDescriptionSuitableForTestResult):
166         (WebCore::FrameLoaderClientQt::hasWebView):
167         (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
168         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
169         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
170         (WebCore::FrameLoaderClientQt::dispatchDidChangeIcons):
171         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
172         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
173         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
174         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
175         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
176         (WebCore::FrameLoaderClientQt::willChangeTitle):
177         (WebCore::FrameLoaderClientQt::didChangeTitle):
178         (WebCore::FrameLoaderClientQt::finishedLoading):
179         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
180         (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
181         (WebCore::FrameLoaderClientQt::didFinishLoad):
182         (WebCore::FrameLoaderClientQt::setTitle):
183         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
184         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
185         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
186         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
187         (WebCore::FrameLoaderClientQt::shouldStopLoadingForHistoryItem):
188         (WebCore::FrameLoaderClientQt::committedLoad):
189         (WebCore::FrameLoaderClientQt::download):
190         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
191         (WebCore::FrameLoaderClientQt::shouldUseCredentialStorage):
192         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForResponse):
193         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
194         (WebCore::FrameLoaderClientQt::createFrame):
195         (WebCore::FrameLoaderClientQt::objectContentType):
196         (WebCore::FrameLoaderClientQt::createPlugin):
197
198 2011-04-06  Alexis Menard  <alexis.menard@openbossa.org>
199
200         Reviewed by Andreas Kling.
201
202         [Qt] We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).
203         https://bugs.webkit.org/show_bug.cgi?id=57974
204
205         We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).
206
207         No new tests needed, just a config flag rename.
208
209         * Api/qwebkitplatformplugin.h:
210         * WebCoreSupport/ChromeClientQt.cpp:
211         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
212         (DumpRenderTreeSupportQt::mediaContentUrlByElementId):
213         * WebCoreSupport/FullScreenVideoQt.cpp:
214         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
215         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
216         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
217         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
218         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
219         (WebCore::FullScreenVideoQt::isValid):
220         * WebCoreSupport/FullScreenVideoQt.h:
221         * WebCoreSupport/QtPlatformPlugin.cpp:
222         * WebCoreSupport/QtPlatformPlugin.h:
223         * examples/platformplugin/WebPlugin.cpp:
224         (WebPlugin::supportsExtension):
225         (WebPlugin::createExtension):
226         * examples/platformplugin/WebPlugin.h:
227         * examples/platformplugin/platformplugin.pro:
228         * examples/platformplugin/qwebkitplatformplugin.h:
229         * tests/qwebpage/tst_qwebpage.cpp:
230         (tst_QWebPage::loadHtml5Video):
231         * tests/tests.pri:
232
233 2011-04-06  Alexis Menard  <alexis.menard@openbossa.org>
234
235         Reviewed by Andreas Kling.
236
237         [Qt] Implement fullscreen playback for the GStreamer backend.
238         https://bugs.webkit.org/show_bug.cgi?id=56826
239
240         Implement support for fullscreen playback when building the
241         Qt port with the GStreamer backend (DEFINES+=USE_GSTREAMER=1).
242         The implementation is done in FullScreenVideoQt alongside with
243         the Qt Multimedia support.
244
245         No new tests because layout tests cover it. They are not yet activated
246         but will be any time soon.
247
248         * QtWebKit.pro:
249         * WebCoreSupport/ChromeClientQt.cpp:
250         (WebCore::ChromeClientQt::ChromeClientQt):
251         (WebCore::ChromeClientQt::~ChromeClientQt):
252         (WebCore::ChromeClientQt::enterFullscreenForNode):
253         (WebCore::ChromeClientQt::exitFullscreenForNode):
254         * WebCoreSupport/ChromeClientQt.h:
255         * WebCoreSupport/FullScreenVideoQt.cpp:
256         (WebCore::GStreamerFullScreenVideoHandler::GStreamerFullScreenVideoHandler):
257         (WebCore::GStreamerFullScreenVideoHandler::setVideoElement):
258         (WebCore::GStreamerFullScreenVideoHandler::enterFullScreen):
259         (WebCore::GStreamerFullScreenVideoHandler::windowClosed):
260         (WebCore::GStreamerFullScreenVideoHandler::exitFullScreen):
261         (WebCore::DefaultFullScreenVideoHandler::DefaultFullScreenVideoHandler):
262         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
263         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
264         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
265         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
266         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
267         (WebCore::FullScreenVideoQt::isValid):
268         * WebCoreSupport/FullScreenVideoQt.h:
269         (WebCore::GStreamerFullScreenVideoHandler::~GStreamerFullScreenVideoHandler):
270
271 2011-04-06  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
272
273         Reviewed by Kenneth Rohde Christiansen.
274
275         [Qt] Improve tests for QWebFrame::url() and related methods
276         https://bugs.webkit.org/show_bug.cgi?id=57865
277
278         * tests/qwebframe/tst_qwebframe.cpp:
279         (FakeReply::FakeReply): make more URLs reply HostNotFound. We needed two different URLs in the test.
280         (tst_QWebFrame::requestedUrlAfterSetAndLoadFailures): check the properties after an setUrl()
281         that fails and a load() that fails (for a different URL).
282
283         (tst_QWebFrame::setUrlWithFragment_data):
284         (tst_QWebFrame::setUrlWithFragment): add other test cases similar to the original, but changing
285         the URL in the frame before the test starts.
286
287         (tst_QWebFrame::setUrlSameUrl): document existing behavior of calling setUrl() twice with
288         the same URL as argument.
289
290         (extractBaseUrl):
291         (tst_QWebFrame::setUrlThenLoads_data):
292         (tst_QWebFrame::setUrlThenLoads): check the URL related properties of the frame after a
293         sequence of set and loads. Those tests are interesting because the properties
294         react different to setUrl() and load(): 'requestedUrl' always change, 'url' only when setUrl()
295         is used or after the load() is committed and baseUrl() is similar to url() but also depends
296         on the contents of the page when it loads.
297
298 2011-04-04  MORITA Hajime  <morrita@google.com>
299
300         Reviewed by Ryosuke Niwa.
301
302         [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
303         https://bugs.webkit.org/show_bug.cgi?id=56085
304         
305         * WebCoreSupport/EditorClientQt.h:
306         (WebCore::EditorClientQt::requestCheckingOfString):
307
308 2011-04-04  Chang Shu  <cshu@webkit.org>
309
310         Reviewed by Ryosuke Niwa.
311
312         setContentEditable with true/false/inherit string is not working properly
313         https://bugs.webkit.org/show_bug.cgi?id=52058
314
315         Move isContentEditable from HTMLElement to Node. WebKit should only access isContentEditable
316         as rendererIsEditable is for WebCore internal use.
317
318         * WebCoreSupport/EditorClientQt.cpp:
319         (WebCore::EditorClientQt::handleKeyboardEvent):
320
321 2011-04-01  Carol Szabo  <carol.szabo@nokia.com>
322
323         Reviewed by Benjamin Poulain.
324
325         Changed QWebFramePrivate::renderFromTiledBackingStore to call directly into
326         Scrollbar/PanIcon rendering, bypassing the potential relayout in renderRelativeCoords.
327
328         Tiled painting still causes synchronous layout when
329         accelerated compositing and texture mapper are enabled
330         https://bugs.webkit.org/show_bug.cgi?id=56929
331
332         * Api/qwebframe.cpp:
333         (QWebFramePrivate::renderFromTiledBackingStore):
334         (QWebFramePrivate::renderRelativeCoords):
335         (QWebFramePrivate::renderFrameWidgets):
336         * Api/qwebframe_p.h:
337
338 2011-04-01  Nancy Piedra  <nancy.piedra@nokia.com>
339
340         Reviewed by Benjamin Poulain.
341
342         [Qt] DragClientQt.h has coding-style errors
343         https://bugs.webkit.org/show_bug.cgi?id=40425
344
345         * WebCoreSupport/DragClientQt.h:
346
347 2011-03-31  Marius Storm-Olsen  <marius.storm-olsen@nokia.com>
348
349         Reviewed by Kenneth Rohde Christiansen.
350
351         [Qt] Properly detect phonon include, and avoid double qtLibraryTarget() call
352         https://bugs.webkit.org/show_bug.cgi?id=57017
353
354         Build fix. No new tests.
355
356         * QtWebKit.pro:
357
358 2011-03-31  Evan Martin  <evan@chromium.org>
359
360         Another build fix.
361
362         * WebCoreSupport/FrameLoaderClientQt.cpp:
363         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
364
365 2011-03-31  Nancy Piedra  <nancy.piedra@nokia.com>
366
367         Reviewed by Benjamin Poulain.
368
369         [Qt] ChromeClientQt.h has coding-style errors
370         https://bugs.webkit.org/show_bug.cgi?id=40239
371
372         * WebCoreSupport/ChromeClientQt.h:
373         (WebCore::ChromeClientQt::scrollbarsModeDidChange):
374         (WebCore::ChromeClientQt::needTouchEvents):
375         (WebCore::ChromeClientQt::formStateDidChange):
376         (WebCore::ChromeClientQt::scrollRectIntoView):
377         (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
378         (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
379
380 2011-03-31  Evan Martin  <evan@chromium.org>
381
382         Build fix from previous change.
383
384         * Api/qwebframe.cpp:
385         (QWebFrame::title):
386
387 2011-03-31  Evan Martin  <evan@chromium.org>
388
389         Reviewed by Eric Seidel.
390
391         <title> should support dir attribute
392         https://bugs.webkit.org/show_bug.cgi?id=50961
393
394         Update to new FrameLoaderClient interface.
395
396         * WebCoreSupport/FrameLoaderClientQt.cpp:
397         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
398         (WebCore::FrameLoaderClientQt::setTitle):
399         * WebCoreSupport/FrameLoaderClientQt.h:
400
401 2011-03-30  Yi Shen  <yi.4.shen@nokia.com>
402
403         Reviewed by Kenneth Rohde Christiansen.
404
405         [Qt][Symbian] Fix Api test failure -- tst_QWebView::focusInputTypes
406         https://bugs.webkit.org/show_bug.cgi?id=57020
407
408         Added a macro 'VERIFY_INPUTMETHOD_HINTS' to test inputmethodhints().
409
410         * tests/qwebview/tst_qwebview.cpp:
411         (tst_QWebView::focusInputTypes):
412
413 2011-03-30  Robert Hogan  <robert@webkit.org>
414
415         Reviewed by Antonio Gomes.
416
417         [Qt] Fix LoadHTMLStringItem::invoke() after r75966
418
419         Add DRT support for loading an alternate HTML string
420         for error pages. This allows Qt to unskip
421         http/tests/navigation/go-back-to-error-page.html.
422
423         https://bugs.webkit.org/show_bug.cgi?id=52614
424
425         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
426         (DumpRenderTreeSupportQt::setAlternateHtml):
427         * WebCoreSupport/DumpRenderTreeSupportQt.h:
428
429 2011-03-29  Alexis Menard  <alexis.menard@openbossa.org>
430
431         Unreviewed build fix for build-webkit -minimal.
432
433         Breakage introduced by http://trac.webkit.org/changeset/82238.
434         The minimal option has no support for shortcuts.
435
436         * WebCoreSupport/EditorClientQt.cpp:
437         (WebCore::EditorClientQt::handleInputMethodKeydown):
438
439 2011-03-29  Janne Koskinen  <janne.p.koskinen@digia.com>
440
441         Reviewed by Kenneth Rohde Christiansen.
442
443         [Qt] Enterkey to go to Newline does not work in the text area(in HTML form)
444         https://bugs.webkit.org/show_bug.cgi?id=33179
445
446         Fixed newline generation from Qt::Key_Enter when editting text area using InputMethods.
447
448         * WebCoreSupport/EditorClientQt.cpp:
449         (WebCore::EditorClientQt::handleInputMethodKeydown):
450         * tests/qwebpage/tst_qwebpage.cpp:
451         (tst_QWebPage::inputMethods):
452
453 2011-03-29  Andreas Kling  <kling@webkit.org>
454
455         Reviewed by Simon Hausmann.
456
457         [Qt] Fix documentation for QWebPage::repaintRequested()
458
459         This signal is always emitted when the page is dirtied, so remove
460         reference to old behavior where we would only emit the signal for
461         headless QWebPages.
462
463         * Api/qwebpage.cpp:
464
465 2011-03-28  Andreas Kling  <kling@webkit.org>
466
467         Reviewed by Benjamin Poulain.
468
469         [Qt] Pass QString() instead of String() when emitting titleChanged() for new loads.
470
471         * WebCoreSupport/FrameLoaderClientQt.cpp:
472         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
473
474 2011-03-28  Andreas Kling  <kling@webkit.org>
475
476         Reviewed by Benjamin Poulain.
477
478         [Qt] Crash when calling QWebFrame::render() in response to QWebPage::repaintRequested()
479         https://bugs.webkit.org/show_bug.cgi?id=52629
480
481         * WebCoreSupport/ChromeClientQt.cpp:
482         (WebCore::ChromeClientQt::invalidateContentsAndWindow): Make the emission of
483         QWebPage::repaintRequested() use a Qt::QueuedConnection.
484
485         * tests/qwebpage/tst_qwebpage.cpp:
486         (RepaintRequestedRenderer::RepaintRequestedRenderer):
487         (RepaintRequestedRenderer::onRepaintRequested):
488         (tst_QWebPage::renderOnRepaintRequestedShouldNotRecurse): Test that calling
489         QWebFrame::render() in a slot connected to to QWebPage::repaintRequested()
490         doesn't cause recursive signal emissions.
491
492 2011-03-28  Benjamin Poulain  <benjamin.poulain@nokia.com>
493
494         Reviewed by Andreas Kling.
495
496         [Qt] QtWebKit will not compile with QT_ASCII_CAST_WARNINGS enabled
497         https://bugs.webkit.org/show_bug.cgi?id=57087
498
499         * QtWebKit.pro: we can now enable QT_ASCII_CAST_WARNINGS
500         * tests/tests.pri: we do not require QT_ASCII_CAST_WARNINGS for tests
501         since they are applications, not libraries.
502
503 2011-03-28  Andras Becsi  <abecsi@webkit.org>
504
505         Reviewed by Csaba Osztrogonác.
506
507         [Qt] QtWebKit does not link with --3d-canvas using MinGW
508         https://bugs.webkit.org/show_bug.cgi?id=57225
509
510         * QtWebKit.pro: Append the OpenGL libraries on MinGW so it can resolve symbols.
511
512 2011-03-28  Csaba Osztrogonác  <ossy@webkit.org>
513
514         Reviewed by Andreas Kling.
515
516         REGRESSION(r54712): [Qt] Installed QtWebKit header does not compile.
517         https://bugs.webkit.org/show_bug.cgi?id=57183
518
519         Windows buildfix after r82065.
520
521         * Api/DerivedSources.pro: Readding escaping on Windows platforms.
522
523 2011-03-27  Andreas Kling  <kling@webkit.org>
524
525         Fix build warning about IconDatabaseClient.h (wrong path.)
526
527         * QtWebKit.pro:
528
529 2011-03-27  Andreas Kling  <kling@webkit.org>
530
531         Reviewed by Kenneth Rohde Christiansen.
532
533         [Qt] Support for CSS color and background-color properties on select element's dropdown list
534         https://bugs.webkit.org/show_bug.cgi?id=51627
535
536         Extend the QWebSelectData interface with background and foreground colors
537         for the whole menu, as well as per-item. Hook it up to the PopupMenuStyle
538         getters in RenderMenuList.
539
540         * Api/qwebkitplatformplugin.h:
541         * WebCoreSupport/PopupMenuQt.cpp:
542         (SelectData::backgroundColor):
543         (SelectData::foregroundColor):
544         (SelectData::itemBackgroundColor):
545         (SelectData::itemForegroundColor):
546         * WebCoreSupport/QtFallbackWebPopup.cpp:
547         (WebCore::QtFallbackWebPopup::show):
548         (WebCore::QtFallbackWebPopup::populate):
549
550 2011-03-27  Yi Shen  <yi.4.shen@nokia.com>
551
552         Reviewed by Andreas Kling.
553
554         [Qt][Symbian] Fix Api test failure -- microFocusCoordinates
555         https://bugs.webkit.org/show_bug.cgi?id=57108
556
557         Since the canvas is not self-closing tag, we need to add '</canvas>'. 
558
559         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
560         (tst_QGraphicsWebView::microFocusCoordinates):
561         * tests/qwebview/tst_qwebview.cpp:
562         (tst_QWebView::microFocusCoordinates):
563
564 2011-03-27  Kwang Yul Seo  <skyul@company100.net>
565
566         Reviewed by Eric Seidel.
567
568         [Qt] Build fix: Define WTF_USE_TEXTURE_MAPPER=1 when CONFIG contains texmap.
569         https://bugs.webkit.org/show_bug.cgi?id=57143
570
571         Qt WebKit uses USE(TEXTURE_MAPPER) guard. Check texmap in CONFIG and
572         define WTF_USE_TEXTURE_MAPPER=1.
573
574         * QtWebKit.pro:
575
576 2011-03-27  Andreas Kling  <kling@webkit.org>
577
578         Reviewed by Benjamin Poulain.
579
580         REGRESSION(r54712): [Qt] Installed QtWebKit header does not compile.
581         https://bugs.webkit.org/show_bug.cgi?id=57183
582
583         The convenience <QtWebKit> header would include \<QtNetwork/QtNetwork\>
584         which was due to the outputting code previously being wrapped in eval().
585
586         * Api/DerivedSources.pro:
587
588 2011-03-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
589
590         Reviewed by Andreas Kling.
591
592         [Qt] QtWebKit will not compile with QT_ASCII_CAST_WARNINGS enabled
593         https://bugs.webkit.org/show_bug.cgi?id=57087
594
595         Use explicit conversion for string to avoid depending on the default codec
596         installed by the user code.
597
598         * Api/qwebkitversion.cpp:
599         (qWebKitVersion):
600         * Api/qwebpage.cpp:
601         (QWebPagePrivate::dynamicPropertyChangeEvent):
602         (QWebPage::javaScriptConsoleMessage):
603         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
604         (convertToPropertyName):
605         (DumpRenderTreeSupportQt::setEditingBehavior):
606         (DumpRenderTreeSupportQt::plainText):
607         * WebCoreSupport/EditorClientQt.cpp:
608         (dumpRange):
609         * WebCoreSupport/FrameLoaderClientQt.cpp:
610         (drtDescriptionSuitableForTestResult):
611         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
612         * WebCoreSupport/InspectorClientQt.cpp:
613         (WebCore::InspectorClientQt::openInspectorFrontend):
614         * WebCoreSupport/InspectorServerQt.cpp:
615         (WebCore::parseWebSocketChallengeNumber):
616         (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
617
618 2011-03-26  Andreas Kling  <kling@webkit.org>
619
620         Reviewed by Kenneth Rohde Christiansen.
621
622         [Qt] QWebFrame::iconChanged() not emitted when icon is cached but not yet loaded
623         https://bugs.webkit.org/show_bug.cgi?id=57157
624
625         Add an IconDatabaseClient for the Qt port to ensure that QWebFrame::iconChanged()
626         is always emitted when appropriate.
627
628         * QtWebKit.pro: Add new files.
629
630         * WebCoreSupport/IconDatabaseClientQt.h: Added.
631         * WebCoreSupport/IconDatabaseClientQt.cpp: Added.
632         (WebCore::IconDatabaseClientQt::instance):
633         (WebCore::IconDatabaseClientQt::IconDatabaseClientQt):
634         (WebCore::IconDatabaseClientQt::~IconDatabaseClientQt):
635         (WebCore::IconDatabaseClientQt::performImport):
636         (WebCore::IconDatabaseClientQt::didRemoveAllIcons):
637         (WebCore::IconDatabaseClientQt::didImportIconURLForPageURL):
638         (WebCore::IconDatabaseClientQt::didImportIconDataForPageURL):
639         (WebCore::IconDatabaseClientQt::didChangeIconForPageURL):
640         (WebCore::IconDatabaseClientQt::didFinishURLImport):
641
642         * WebCoreSupport/FrameLoaderClientQt.h:
643         * WebCoreSupport/FrameLoaderClientQt.cpp:
644         (WebCore::FrameLoaderClientQt::registerForIconNotification):
645         (WebCore::FrameLoaderClientQt::onIconLoadedForPageURL): New slot connected
646         to the IconDatabaseClientQt::iconLoadedForPageURL() signal. This emits the
647         QWebFrame::iconChanged() signal when the IconDatabases finishes loading
648         a cached favicon for the frame's URL.
649
650         * Api/qwebsettings.cpp:
651         (QWebSettings::setIconDatabasePath): Make sure that IconDatabaseClientQt is
652         instantiated. An IconDatabaseClient has to be registered before the IconDatabase
653         spawns its reader thread.
654
655 2011-03-25  Andy Estes  <aestes@apple.com>
656
657         Reviewed by Adele Peterson.
658
659         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
660         https://bugs.webkit.org/show_bug.cgi?id=49016
661
662         Update objectContentType() implementation to handle the
663         shouldPreferPlugInsForImages flag.
664
665         * WebCoreSupport/FrameLoaderClientQt.cpp:
666         (WebCore::FrameLoaderClientQt::objectContentType):
667         * WebCoreSupport/FrameLoaderClientQt.h:
668
669 2011-03-25  Chang Shu  <cshu@webkit.org>
670
671         Reviewed by Ryosuke Niwa.
672
673         rename Node::isContentEditable and all call sites to rendererIsEditable
674         https://bugs.webkit.org/show_bug.cgi?id=54290
675
676         This is part of the effort to separate JS API HTMLElement isContentEditable from
677         internal Node::rendererIsEditable.
678
679         * WebCoreSupport/EditorClientQt.cpp:
680         (WebCore::EditorClientQt::handleKeyboardEvent):
681
682 2011-03-25  Alexis Menard  <alexis.menard@openbossa.org>
683
684         Reviewed by Andreas Kling.
685
686         [Qt] The keyboard shortcuts during fullscreen playback do not work.
687         https://bugs.webkit.org/show_bug.cgi?id=57095
688
689         We need to explicitely set the focus on the widget in order to receive the keyboard events.
690
691         * WebCoreSupport/FullScreenVideoWidget.cpp:
692         (WebCore::FullScreenVideoWidget::show):
693
694 2011-03-24  Sheriff Bot  <webkit.review.bot@gmail.com>
695
696         Unreviewed, rolling out r81916 and r81917.
697         http://trac.webkit.org/changeset/81916
698         http://trac.webkit.org/changeset/81917
699         https://bugs.webkit.org/show_bug.cgi?id=57071
700
701         broke a test on platforms that do not have QuickTime installed
702         (Requested by estes on #webkit).
703
704         * WebCoreSupport/FrameLoaderClientQt.cpp:
705         (WebCore::FrameLoaderClientQt::objectContentType):
706         * WebCoreSupport/FrameLoaderClientQt.h:
707
708 2011-03-24  Andy Estes  <aestes@apple.com>
709
710         Reviewed by Darin Adler.
711
712         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
713         https://bugs.webkit.org/show_bug.cgi?id=49016
714
715         Update objectContentType() implementation to handle the
716         shouldPreferPlugInsForImages flag.
717
718         * WebCoreSupport/FrameLoaderClientQt.cpp:
719         (WebCore::FrameLoaderClientQt::objectContentType):
720         * WebCoreSupport/FrameLoaderClientQt.h:
721
722 2011-03-24  Benjamin Poulain  <benjamin.poulain@nokia.com>
723
724         Reviewed by Kenneth Rohde Christiansen.
725
726         [Qt] When we render WebGL offscreen, color conversion cost a lot of CPU cycles
727         https://bugs.webkit.org/show_bug.cgi?id=40884
728
729         Add tests and benchmarks for the software fallback of WebGL.
730
731         * tests/benchmarks/webgl/10000_triangles.html: Added.
732         * tests/benchmarks/webgl/tst_webgl.cpp: Added.
733         (GraphicsView::GraphicsView):
734         (GraphicsView::resizeEvent):
735         (tst_WebGlPerformance::init):
736         (tst_WebGlPerformance::cleanup):
737         (tst_WebGlPerformance::benchSoftwareFallbackRgb16):
738         (tst_WebGlPerformance::benchSoftwareFallbackRgb32):
739         (tst_WebGlPerformance::benchSoftwareFallbackArgb32):
740         (tst_WebGlPerformance::benchSoftwareFallbackArgb32Premultiplied):
741         (tst_WebGlPerformance::benchmarkFrameRenderingOnImage):
742         * tests/benchmarks/webgl/tst_webgl.qrc: Added.
743         * tests/benchmarks/webgl/webgl.pro: Added.
744         * tests/qgraphicswebview/qgraphicswebview.pro:
745         * tests/qgraphicswebview/resources/pointing_right.html: Added.
746         * tests/qgraphicswebview/resources/pointing_up.html: Added.
747         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
748         (compareImagesFuzzyPixelCount):
749         (GraphicsView::GraphicsView):
750         (tst_QGraphicsWebView::webglSoftwareFallbackVerticalOrientation):
751         (tst_QGraphicsWebView::webglSoftwareFallbackHorizontalOrientation):
752         (tst_QGraphicsWebView::compareCanvasToImage):
753         * tests/qgraphicswebview/tst_qgraphicswebview.qrc:
754         * tests/tests.pro:
755
756 2011-03-24  Kristian Amlie  <kristian.amlie@nokia.com>
757
758         Reviewed by Benjamin Poulain.
759
760         Avoided ASCII-cast warnings for WebKit.
761
762         Normally they won't be enabled anyway, but if you build webkit from
763         within the Qt mother repository it will pick up Qt's default build
764         settings, which do enable it. We need to disable them because
765         warnings are treated as errors and there are way too many of them in
766         the WebKit code.
767
768         [Qt] Avoid ASCII-cast warnings for WebKit.
769         https://bugs.webkit.org/show_bug.cgi?id=57016
770
771         * QtWebKit.pro:
772
773 2011-03-24  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
774
775         Reviewed by Benjamin Poulain.
776
777         [Qt] Resetting the URL property of a QWebView results in the current directory being set as file::-type URL
778         https://bugs.webkit.org/show_bug.cgi?id=29595
779
780         Qt Designer resets the URL by setting it to QUrl(). The bug was caused by
781         ensureAbsoluteUrl() helper function treating the empty URL as a relative URL, and
782         prepending the current directory.
783
784         By fixing this, now we can pass QUrl() invalid and empty URLs to WebCore layer, which
785         will end up loading "about:blank", but keeping it as a requested URL.
786
787         This patch also simplifies the logic for requestedUrl(), since m_lastRequestedUrl
788         is filled for the loaded URLs as well, we can use it in every case.
789
790         Three new autotests were added, to better cover the expected behavior of setting
791         the QUrl() in a QWebFrame.
792
793         * Api/qwebframe.cpp:
794         (ensureAbsoluteUrl): do not treat invalid URLs (empty included) as relative.
795         (QWebFrame::requestedUrl): always use m_lastRequestedUrl.
796
797         * WebCoreSupport/FrameLoaderClientQt.cpp:
798         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): do not clear m_lastRequestedUrl
799         anymore, since we always rely on it even for loaded frames.
800
801         * tests/qwebframe/tst_qwebframe.cpp:
802         (tst_QWebFrame::setUrlToEmpty): verify the behavior of setting empty URLs. This includes
803         the reduction of the bug report.
804         (tst_QWebFrame::setUrlToInvalid): setting invalid, but not necessarily empty, URLs.
805         (tst_QWebFrame::setUrlHistory): to verify how setting empty URLs affect history.
806
807 2011-03-23  Brady Eidson  <beidson@apple.com>
808
809         Reviewed by Sam Weinig.
810
811         Change IconDatabase opening to allow for arbitrary filenames
812         https://bugs.webkit.org/show_bug.cgi?id=56977
813
814         * Api/qwebsettings.cpp:
815         (QWebSettings::setIconDatabasePath):
816
817 2011-03-23  Aparna Nandyal  <aparna.nand@wipro.com>
818
819         Reviewed by Andreas Kling.
820
821         [Qt] QtWebKit rendering problem when maximizing and doing a back
822         https://bugs.webkit.org/show_bug.cgi?id=56669
823
824         Added an auto test.
825         Patch by Alexis Menard < alexis.menard@nokia.com> on 2011-03-21
826  
827         * tests/qwebview/tst_qwebview.cpp:
828         (tst_QWebView::rendering):
829
830 2011-03-23  Yury Semikhatsky  <yurys@chromium.org>
831
832         Reviewed by Pavel Feldman.
833
834         [V8] Web Inspector: compile DebuggerScript.js into DebuggerScriptSource.h
835         https://bugs.webkit.org/show_bug.cgi?id=56843
836
837         * WebCoreSupport/InspectorClientQt.cpp:
838         (WebCore::InspectorClientQt::openInspectorFrontend):
839
840 2011-03-22  Andrew Wason  <rectalogic@rectalogic.com>
841
842         Reviewed by Benjamin Poulain.
843
844         [Qt] QWebPage with WebGL content crashes when rendering if no QWebView parent
845         https://bugs.webkit.org/show_bug.cgi?id=54138
846
847         * tests/qwebpage/tst_qwebpage.cpp:
848         (webGLScreenshotWithoutView):
849         (tst_QWebPage::acceleratedWebGLScreenshotWithoutView):
850         (tst_QWebPage::unacceleratedWebGLScreenshotWithoutView):
851          Render a QWebPage (with and without accelerated compositing)
852          with a WebGL context that has no owning view.  Shouldn't crash.
853
854 2011-03-21  Chang Shu  <cshu@webkit.org>
855
856         Reviewed by Alexey Proskuryakov.
857
858         REGRESSION (r79953): Can't type in MS Outlook 2011
859         https://bugs.webkit.org/show_bug.cgi?id=56665
860
861         r79953 removed the WebView level editablity which is persistent no matter whether
862         underlying document itself is changed and editability gets lost. The resolution is to
863         set this WebView editable value to WebCore. This avoids the callback from WebCore to
864         WebKit which was the main goal in r79953 to improve performance.
865
866         * Api/qwebpage.cpp:
867         (QWebPage::setContentEditable):
868         (QWebPage::isContentEditable):
869
870 2011-03-19  Andreas Kling  <kling@webkit.org>
871
872         Reviewed by Benjamin Poulain.
873
874         [Qt] Remove support for Qt 4.6
875         https://bugs.webkit.org/show_bug.cgi?id=56712
876
877         * Api/qwebframe.cpp:
878         (QWebFrame::load):
879         * Api/qwebpage.cpp:
880         (QWebPagePrivate::QWebPagePrivate):
881         * Api/qwebsettings.cpp:
882         (QWebSettings::QWebSettings):
883         * WebCoreSupport/GeolocationClientQt.cpp:
884         (WebCore::GeolocationClientQt::positionUpdated):
885
886 2011-03-19  Andreas Kling  <kling@webkit.org>
887
888         Reviewed by Antonio Gomes.
889
890         [Qt][Doc] QWebPage::unsupportedContent() passes ownership of the QNetworkReply
891         https://bugs.webkit.org/show_bug.cgi?id=56711
892
893         Document the fact that when unsupportedContent(QNetworkReply*) is emitted,
894         ownership of the reply is transferred to the receiving slot.
895
896         * Api/qwebpage.cpp:
897
898 2011-03-17  Brady Eidson  <beidson@apple.com>
899
900         Reviewed by Sam Weinig.
901
902         https://bugs.webkit.org/show_bug.cgi?id=56425
903         More groundwork for WebKit2 IconDatabase
904
905         Update already-used function names:
906         * Api/qwebhistory.cpp:
907         (QWebHistoryItem::icon):
908         * Api/qwebsettings.cpp:
909         (QWebSettings::iconForUrl):
910
911 2011-03-18  Alexis Menard  <alexis.menard@openbossa.org>
912
913         Reviewed by Benjamin Poulain.
914
915         [Qt] console.log not being exposed to QmlViewer
916         https://bugs.webkit.org/show_bug.cgi?id=56536
917
918         The documentation is bogus the feature does not exist.
919
920         * declarative/qdeclarativewebview.cpp:
921
922 2011-03-17  Andreas Kling  <kling@webkit.org>
923
924         Reviewed by Kenneth Rohde Christiansen.
925
926         [Qt] QML WebView emits iconChanged() when the page title changes
927         https://bugs.webkit.org/show_bug.cgi?id=56570
928
929         * declarative/qdeclarativewebview.cpp:
930         (QDeclarativeWebView::setPage): Don't forward the frame's titleChanged
931         signal to the view's iconChanged signal.
932
933 2011-03-17  Alexis Menard  <alexis.menard@openbossa.org>
934
935         Reviewed by Benjamin Poulain.
936
937         [Qt] Videos look ugly when using QGraphicsWebView.
938         https://bugs.webkit.org/show_bug.cgi?id=56580
939
940         We need to set QPainter::SmoothPixmapTransform on the painter for a proper rendering of the video.
941         QWebView does it but not QGraphicsWebView because the API does not exist. This patch is fixing it
942         by introducing the same API as QWebView to control the renderHints of the item. Unlike QWebView
943         QGraphicsWebView inherits the painter from QGraphicsScene and those flags are not set. This patch
944         ensure that before rendering the item we add QPainter::SmoothPixmapTransform and QPainter::TextAntialiasing
945         in addition of what could be set on the painter. In order to not break the rendering of all the items in the
946         scene we set back the painter to its original state when QGraphicsWebView is rendered.
947
948         * Api/qgraphicswebview.cpp:
949         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
950         (QGraphicsWebView::paint):
951         (QGraphicsWebView::renderHints):
952         (QGraphicsWebView::setRenderHints):
953         (QGraphicsWebView::setRenderHint):
954         * Api/qgraphicswebview.h:
955         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
956         (tst_QGraphicsWebView::renderHints):
957
958 2011-03-16  Joseph Pecoraro  <joepeck@webkit.org>
959
960         Reviewed by Kenneth Rohde Christiansen.
961
962         Viewport no longer allows an auto value for "user-scalable"
963         https://bugs.webkit.org/show_bug.cgi?id=55416
964
965         Make the default value for userScalable be true.
966
967         * Api/qwebpage.cpp:
968         (QWebPage::viewportAttributesForSize):
969         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
970         (DumpRenderTreeSupportQt::viewportAsText): update test output to include userScalable.
971
972 2011-03-15  Kevin Ollivier  <kevino@theolliviers.com>
973
974         Reviewed by Darin Adler.
975
976         Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
977         info into the headers rather than in export symbol definition files, but disable it on 
978         all platforms initially so we can deal with port build issues one port at a time.
979         
980         https://bugs.webkit.org/show_bug.cgi?id=27551
981
982         * WebCoreSupport/GeolocationClientQt.cpp:
983         * WebCoreSupport/PopupMenuQt.cpp:
984
985 2011-03-14  Brady Eidson  <beidson@apple.com>
986
987         Reviewed by Anders Carlsson.
988
989         https://bugs.webkit.org/show_bug.cgi?id=56320
990         Remove HistoryItem::icon() and the WebCore dependency on "IconDatabaseBase::defaultIcon()"
991
992         * Api/qwebhistory.cpp:
993         (QWebHistoryItem::icon): Use IconDatabase directly.
994
995 2011-03-11  Brady Eidson  <beidson@apple.com>
996
997         Reviewed by attempt at build fix!
998
999         https://bugs.webkit.org/show_bug.cgi?id=56216
1000         Fix the Qt build following the same pattern of the patch.
1001
1002         * Api/qwebsettings.cpp:
1003         (QWebSettings::setIconDatabasePath): Call the static method via IconDatabase:: and not via iconDatabase()
1004
1005 2011-03-11  Alexis Menard  <alexis.menard@openbossa.org>
1006
1007         Reviewed by Ariya Hidayat.
1008
1009         [Qt] Entering fullscreen and leaving it may hide the cursor of the application.
1010         https://bugs.webkit.org/show_bug.cgi?id=56181
1011
1012         We need to stop the auto hide cursor timer when closing the widget otherwise the timer
1013         might get fired and therefore hide the cursor even when the fullscreen widget is closed.
1014
1015         * WebCoreSupport/FullScreenVideoWidget.cpp:
1016         (WebCore::FullScreenVideoWidget::closeEvent):
1017
1018 2011-03-10  David Boddie <david.boddie@nokia.com>
1019
1020         Reviewed by Andreas Kling.
1021
1022         Fixed a qdoc warning and terminology (WebKit instead of Webkit).
1023         https://bugs.webkit.org/show_bug.cgi?id=55756
1024
1025         * Api/qwebhistoryinterface.cpp:
1026
1027 2011-03-10  Andreas Kling  <kling@webkit.org>
1028
1029         Unreviewed build fix after r80774.
1030
1031         QML property versioning is introduced in Qt 4.7.3, not 4.7.2.
1032         See also: http://bugreports.qt.nokia.com/browse/QTBUG-13451
1033
1034         * declarative/plugin.cpp:
1035         (WebKitQmlPlugin::registerTypes):
1036         * declarative/qdeclarativewebview.cpp:
1037         * declarative/qdeclarativewebview_p.h:
1038         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
1039
1040 2011-03-10  Alexis Menard  <alexis.menard@openbossa.org>
1041
1042         Reviewed by Andreas Kling.
1043
1044         [Qt] QtDeclarative Webview element has a fixed white background
1045         https://bugs.webkit.org/show_bug.cgi?id=40918
1046
1047         Implement a way to change the background color of the WebView QML element.
1048         This feature is activated for QtWebKit 1.1 version of the plugin.
1049
1050         * declarative/plugin.cpp:
1051         (WebKitQmlPlugin::registerTypes):
1052         * declarative/qdeclarativewebview.cpp:
1053         (QDeclarativeWebView::backgroundColor):
1054         (QDeclarativeWebView::setBackgroundColor):
1055         * declarative/qdeclarativewebview_p.h:
1056         * tests/qdeclarativewebview/resources/webviewbackgroundcolor.qml: Added.
1057         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
1058         (tst_QDeclarativeWebView::backgroundColor):
1059         * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc:
1060
1061 2011-03-10  Stanislav Paltis  <Stanislav.Paltis@nokia.com>
1062
1063         Reviewed by Laszlo Gombos.
1064
1065         [Qt] MemoryCache deadDecodedDataDeletionInterval is not exposed for client's usage
1066         https://bugs.webkit.org/show_bug.cgi?id=55945
1067         
1068         Added handling of dynamic/runtime property _q_deadDecodedDataDeletionInterval to 
1069         set interval used to trigger when decoded data in dead list of object cache will 
1070         be purged from object cache. 
1071
1072         * Api/qwebpage.cpp:
1073         (QWebPagePrivate::dynamicPropertyChangeEvent):
1074
1075 2011-03-10  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1076
1077         Reviewed by Antonio Gomes.
1078
1079         Simplify how QWebFrame::requestedUrl() is obtained
1080         https://bugs.webkit.org/show_bug.cgi?id=55842
1081
1082         When a load starts, store the requested URL until we know that it'll be
1083         available for us in the document loader -- after load finished.
1084
1085         The existing auto tests cover the three different code paths in
1086         requestedUrl() and the new code passes the autotests. In each of those
1087         cases, we looked for the information in a different place, but in all
1088         of them, dispatchDidStartProvisionalLoad was called.
1089
1090         This simplification will be useful to fix bug 32723. The way requestedUrl()
1091         is implementent, we can't use it as a fallback for url() when the setUrl()
1092         was called with an invalid URL.
1093
1094         * Api/qwebframe.cpp:
1095         (QWebFrame::requestedUrl):
1096         * WebCoreSupport/FrameLoaderClientQt.cpp:
1097         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
1098         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
1099         * WebCoreSupport/FrameLoaderClientQt.h:
1100         (WebCore::FrameLoaderClientQt::lastRequestedUrl):
1101
1102 2011-03-10  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
1103
1104         Reviewed by Kenneth Rohde Christiansen.
1105
1106         Tiled backing store's delegated scroll request uses incorrect convention
1107         https://bugs.webkit.org/show_bug.cgi?id=56011
1108
1109         Adapt internal API to match the change from delta to point on the
1110         WebCore side, and convert the point to a delta for the public API.
1111
1112         * WebCoreSupport/ChromeClientQt.cpp:
1113         (WebCore::ChromeClientQt::delegatedScrollRequested):
1114         * WebCoreSupport/ChromeClientQt.h:
1115
1116 2011-03-09  Peter Kasting  <pkasting@google.com>
1117
1118         Reviewed by Mihai Parparita.
1119
1120         Unify Windows version checks.
1121         https://bugs.webkit.org/show_bug.cgi?id=55979
1122
1123         * Api/qwebpage.cpp:
1124         (QWebPage::userAgentForUrl):
1125
1126 2011-03-07  Sam Weinig  <sam@webkit.org>
1127
1128         Reviewed by Anders Carlsson.
1129
1130         Replace WebKit2's decidePolicyForMIMEType with decidePolicyForResponse
1131         https://bugs.webkit.org/show_bug.cgi?id=55827
1132
1133         Renamed FrameLoaderClient::dispatchDecidePolicyForMIMEType to dispatchDecidePolicyForResponse
1134         and pass the entire response, instead of just the MIMEType.
1135
1136         * WebCoreSupport/FrameLoaderClientQt.cpp:
1137         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForResponse):
1138         * WebCoreSupport/FrameLoaderClientQt.h:
1139
1140 2011-03-05  Qi Zhang  <qi.2.zhang@nokia.com>
1141
1142         Reviewed by Laszlo Gombos.
1143
1144         [Qt] Mobile Devices should include Model and Firmware Version in Webkit Generated User Agent String
1145         https://bugs.webkit.org/show_bug.cgi?id=48636
1146
1147         Add model infomation into user agent string when qtmobility is available, but only for symbian, Maemo and MeeGo.
1148
1149         * Api/qwebpage.cpp:
1150         (QWebPage::userAgentForUrl):
1151
1152 2011-03-03  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
1153
1154         Reviewed by Kenneth Rohde Christiansen.
1155
1156         [QT] Implement mock client-based geolocation for layout testing
1157         https://bugs.webkit.org/show_bug.cgi?id=54334
1158
1159         Implement layout testing for Client-Based geolocation. If drt_run is set 
1160         then create mock geolocationClient and update the same with controller.
1161
1162         * Api/qwebpage.cpp:
1163         (QWebPagePrivate::QWebPagePrivate):
1164         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1165         (DumpRenderTreeSupportQt::mockGeolocationReset):
1166         (DumpRenderTreeSupportQt::setMockGeolocationPermission):
1167         (DumpRenderTreeSupportQt::setMockGeolocationPosition):
1168         (DumpRenderTreeSupportQt::setMockGeolocationError):
1169         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1170         * WebCoreSupport/GeolocationClientQt.cpp:
1171         (WebCore::GeolocationClientQt::GeolocationClientQt):
1172         * WebCoreSupport/GeolocationClientQt.h:
1173
1174 2011-03-03  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1175
1176         Reviewed by Kenneth Rohde Christiansen.
1177
1178         [Qt] QWebFrame::setUrl works only from second time if url fragment is present
1179         https://bugs.webkit.org/show_bug.cgi?id=32723
1180
1181         Create an auto-test for Qt based on the bug description.
1182
1183         * tests/qwebframe/tst_qwebframe.cpp: add setUrlWithFragment() test.
1184
1185 2011-03-03  Brady Eidson  <beidson@apple.com>
1186
1187         Reviewed by Darin Adler.
1188
1189         https://bugs.webkit.org/show_bug.cgi?id=55721
1190         Global IconDatabase should be returned by reference, not as a pointer
1191
1192         * Api/qwebsettings.cpp:
1193         (QWebSettings::setIconDatabasePath):
1194         (QWebSettings::iconDatabasePath):
1195         (QWebSettings::clearIconDatabase):
1196         (QWebSettings::iconForUrl):
1197
1198 2011-03-03  Alexey Proskuryakov  <ap@apple.com>
1199
1200         Removing an include of WebCoreKeyboardUIMode.h that Ive just added. It's already included
1201         via ChromeClient.h
1202
1203         * WebCoreSupport/ChromeClientQt.h:
1204
1205 2011-03-02  Alexey Proskuryakov  <ap@apple.com>
1206
1207         Reviewed by Darin Adler.
1208
1209         REGRESSION (WebKit2): Tab keys no longer observe Full Keyboard Access
1210         https://bugs.webkit.org/show_bug.cgi?id=55633
1211         <rdar://problem/8963023>
1212
1213         * WebCoreSupport/ChromeClientQt.cpp (WebCore::ChromeClientQt::keyboardUIMode):
1214         * WebCoreSupport/ChromeClientQt.h:
1215         Implement keyboardUIMode() instead of tabsToLinks(). No change in functionality, since
1216         this platform doesn't observe or have full keyboard access state.
1217
1218 2011-03-03  Alexis Menard  <alexis.menard@openbossa.org>
1219
1220         Reviewed by Andreas Kling.
1221
1222         [Qt] QGraphicsWebView should use updateMicroFocus() of QGraphicsItem
1223         https://bugs.webkit.org/show_bug.cgi?id=55568
1224
1225         We should use updateMicroFocus() from QGraphicsItem rather than the implementation
1226         in QGraphicsWebView. _q_updateMicroFocus was added when QGraphicsItem didn't have the feature.
1227         In Qt 4.7, updateMicroFocus was added, let's use it, then we can benefit of all bug fixing done
1228         in QGraphicsItem.
1229
1230         * Api/qgraphicswebview.cpp:
1231         (QGraphicsWebView::setPage):
1232         * Api/qgraphicswebview.h:
1233
1234 2011-03-03  Peter Kasting  <pkasting@google.com>
1235
1236         Reviewed by James Robinson.
1237
1238         Drop redundant "Windows; " from the Windows-specific User Agent string.
1239         https://bugs.webkit.org/show_bug.cgi?id=54567
1240
1241         * Api/qwebpage.cpp:
1242         (QWebPage::userAgentForUrl):
1243
1244 2011-03-01  Brian Weinstein  <bweinstein@apple.com>
1245
1246         Reviewed by Adam Roben.
1247
1248         Part of WebKit2: Need a way to send notifications to client when cookies change
1249         https://bugs.webkit.org/show_bug.cgi?id=55427
1250         <rdar://problem/9056027>
1251         
1252         Add stubs for CookiesStrategy on Qt WebKit1.
1253
1254         * WebCoreSupport/WebPlatformStrategies.cpp:
1255         (WebPlatformStrategies::createCookiesStrategy):
1256         (WebPlatformStrategies::notifyCookiesChanged):
1257         * WebCoreSupport/WebPlatformStrategies.h:
1258
1259 2011-03-01  Joseph Pecoraro  <joepeck@webkit.org>
1260
1261         Unreviewed. Roll out r80068 and r80073 due to breaking WebKit2 Qt port.
1262
1263         * Api/qwebpage.cpp:
1264         (QWebPage::viewportAttributesForSize):
1265         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1266         (DumpRenderTreeSupportQt::viewportAsText):
1267
1268 2011-03-01  Joseph Pecoraro  <joepeck@webkit.org>
1269
1270         Reviewed by Kenneth Rohde Christiansen.
1271
1272         Viewport Warning/Error Messages Are Now Inaccurate
1273         https://bugs.webkit.org/show_bug.cgi?id=53707
1274
1275         * Api/qwebpage.cpp:
1276         (QWebPage::viewportAttributesForSize): pass a Document into computeViewportAttributes for warnings to be reported to.
1277         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1278         (DumpRenderTreeSupportQt::viewportAsText): pass a Document into computeViewportAttributes for warnings to be reported to.
1279
1280 2011-03-01  Andras Becsi  <abecsi@webkit.org>
1281
1282         Reviewed by Csaba Osztrogonác.
1283
1284         [Qt] Clean up the project files and move common options to WebKit.pri.
1285
1286         * QtWebKit.pro: Move common options to WebKit.pri.
1287
1288 2011-03-01  Aparna Nandyal  <aparna.nand@wipro.com>
1289
1290         Reviewed by Simon Hausmann.
1291
1292         [Qt]tst_QWebPage::backActionUpdate fails when there is not network connection
1293         https://bugs.webkit.org/show_bug.cgi?id=55319
1294
1295         The test case required internet connection to be able to connect to
1296         google.com. Added new html file which refers to local html file.
1297
1298         * tests/qwebpage/resources/content.html: Added.
1299         * tests/qwebpage/resources/frame_c.html: Added.
1300         * tests/qwebpage/resources/framedindex.html: Added.
1301         * tests/qwebpage/tst_qwebpage.cpp:
1302         (tst_QWebPage::backActionUpdate):
1303         * tests/qwebpage/tst_qwebpage.qrc:
1304
1305 2011-02-25 Steve Block <steveblock@google.com>
1306
1307         Reviewed by Jeremy Orlow.
1308
1309         Bridge.h should not include BridgeJSC.h
1310         https://bugs.webkit.org/show_bug.cgi?id=55212
1311
1312         Include BridgeJSC.h directly instead.
1313
1314         * Api/qwebframe.cpp:
1315
1316 2011-02-28  Chang Shu  <cshu@webkit.org>
1317
1318         Reviewed by Ryosuke Niwa.
1319
1320         Remove the support of Frame::isContentEditable and its dependencies.
1321         https://bugs.webkit.org/show_bug.cgi?id=54292
1322
1323         Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode.
1324
1325         * Api/qwebpage.cpp:
1326         (QWebPagePrivate::QWebPagePrivate):
1327         (QWebPage::setContentEditable):
1328         (QWebPage::isContentEditable):
1329         * Api/qwebpage_p.h:
1330         * WebCoreSupport/EditorClientQt.cpp:
1331         * WebCoreSupport/EditorClientQt.h:
1332
1333 2011-02-28  Alexis Menard  <alexis.menard@openbossa.org>
1334
1335         Reviewed by Oliver Hunt.
1336
1337         Build fix for Qt port after API changes of http://trac.webkit.org/changeset/79904.
1338
1339         * Api/qwebelement.cpp:
1340         (QWebElement::evaluateJavaScript):
1341
1342 2011-02-28  Alexis Menard  <alexis.menard@openbossa.org>
1343
1344         Reviewed by Andreas Kling.
1345
1346         [Qt]tst_QDeclarativeWebView - 8 test cases fail
1347         https://bugs.webkit.org/show_bug.cgi?id=55214
1348
1349         Fix the API tests for the QML WebView element. The default size of the element should be the size of the QGraphicsWebView
1350         if no preferred width or height are provided (see http://trac.webkit.org/changeset/79672).
1351         I also refactored the tests so we don't use the network but instead a local html file.
1352         QML doesn't support qrc loading so I had to workaround by using a property that I update afterwards.
1353
1354         * tests/qdeclarativewebview/resources/sample.html: Added.
1355         * tests/qdeclarativewebview/resources/webviewtest.qml:
1356         * tests/qdeclarativewebview/resources/webviewtestdefault.qml:
1357         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
1358         (tst_QDeclarativeWebView::preferredWidthTest):
1359         (tst_QDeclarativeWebView::preferredHeightTest):
1360         (tst_QDeclarativeWebView::preferredWidthDefaultTest):
1361         (tst_QDeclarativeWebView::preferredHeightDefaultTest):
1362         * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc:
1363
1364 2011-02-28  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
1365
1366         Reviewed by Andreas Kling.
1367
1368         [Qt] Add clipped version of QWebElement::render method.
1369         Allows faster rendering of web element part.
1370         https://bugs.webkit.org/show_bug.cgi?id=50311
1371
1372         * Api/qwebelement.cpp:
1373         (QWebElement::render):
1374         * Api/qwebelement.h:
1375         * tests/qwebelement/tst_qwebelement.cpp:
1376         (tst_QWebElement::render):
1377
1378 2011-02-28  Kristian Amlie  <kristian.amlie@nokia.com>
1379
1380         Reviewed by Andreas Kling.
1381
1382         Added full webkit module profile and a syncqt profile.
1383
1384         This is for modularized Qt.
1385
1386         [Qt] WebKit patches required to work with a modularized version of Qt
1387         https://bugs.webkit.org/show_bug.cgi?id=53916
1388
1389         * qt_webkit_version.pri:
1390
1391 2011-02-27  Aparna Nandyal  <aparna.nand@wipro.com>
1392
1393         Reviewed by Antonio Gomes.
1394
1395         [Qt] QtTestBrowser - Horizontal scrollbar disappears on navigating pages using Back/Forward
1396         https://bugs.webkit.org/show_bug.cgi?id=53917
1397
1398         Adding test case to check the scenario to avoid regressions in the
1399         future. 
1400
1401         * tests/qwebframe/tst_qwebframe.cpp:
1402
1403 2011-02-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
1404
1405         Reviewed by Andreas Kling.
1406
1407         [Qt] Reference the documentation of the WebKit bridge from QWebFrame::addToJavaScriptWindowObject()
1408         https://bugs.webkit.org/show_bug.cgi?id=55322
1409
1410         Documentation update, add a reference to the QtWebKit bridge page.
1411
1412         * Api/qwebframe.cpp:
1413
1414 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
1415
1416         Reviewed by Pavel Feldman.
1417
1418         DumpRenderTree should reset frame opener between tests.
1419         https://bugs.webkit.org/show_bug.cgi?id=54874
1420
1421         Added clearOpener method to DumpRenderTreeSupportQT.
1422
1423         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1424         (DumpRenderTreeSupportQt::clearOpener):
1425         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1426
1427 2011-02-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1428
1429         Reviewed by Andreas Kling.
1430
1431         Make it possible to test the targetdensity-dpi support
1432         https://bugs.webkit.org/show_bug.cgi?id=55142
1433
1434         Test the viewport meta tag feature targetdensity-dpi by
1435         adding extra arguments to dumpConfigurationForViewport
1436
1437         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1438         (DumpRenderTreeSupportQt::viewportAsText):
1439         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1440
1441 2011-02-26  Sheriff Bot  <webkit.review.bot@gmail.com>
1442
1443         Unreviewed, rolling out r79764.
1444         http://trac.webkit.org/changeset/79764
1445         https://bugs.webkit.org/show_bug.cgi?id=55295
1446
1447         "broke Chromium builds" (Requested by rniwa on #webkit).
1448
1449         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1450         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1451
1452 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
1453
1454         Reviewed by Pavel Feldman.
1455
1456         DumpRenderTree should reset frame opener between tests.
1457         https://bugs.webkit.org/show_bug.cgi?id=54874
1458
1459         Added clearOpener method to DumpRenderTreeSupportQT.
1460
1461         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1462         (DumpRenderTreeSupportQt::clearOpener):
1463         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1464
1465 2011-02-25  Andras Becsi  <abecsi@webkit.org>
1466
1467         Reviewed by Csaba Osztrogonác.
1468
1469         [Qt] Make the WebKit2 build system less confusing for non-Qt developers
1470         https://bugs.webkit.org/show_bug.cgi?id=55213
1471
1472         * QtWebKit.pro: Move the WebKit2 API into a project include file
1473         in the WebKit2 directory and include the pri file here.
1474
1475 2011-02-25  Alexis Menard  <alexis.menard@openbossa.org>
1476
1477         Unreviewed build fix for Intel ICC and MSVC.
1478
1479         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1480         (tst_QGraphicsWebView::setPalette):
1481         * tests/qwebview/tst_qwebview.cpp:
1482         (tst_QWebView::setPalette):
1483
1484 2011-02-25  Alexis Menard  <alexis.menard@openbossa.org>
1485
1486         Reviewed by Kenneth Rohde Christiansen.
1487
1488         [Qt] Properly propagate the palette to QWebPage from QGraphicsWebView
1489         https://bugs.webkit.org/show_bug.cgi?id=31742
1490
1491         Discovered while looking at 31742. When we set a palette on the
1492         QGraphicsWebView we need to propagate it to the page like QWebView.
1493         I have added the same tests as QWebView to be sure to catch potential
1494         regressions as well as two extras QVERIFY to check the palette propagation.
1495
1496         * Api/qgraphicswebview.cpp:
1497         (QGraphicsWebView::event):
1498         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1499         (tst_QGraphicsWebView::setPalette_data):
1500         (tst_QGraphicsWebView::setPalette):
1501
1502 2011-02-25  Csaba Osztrogonác  <ossy@webkit.org>
1503
1504         Unreviewed buildfix after r79672.
1505
1506         [Qt] Build tst_qdeclarativewebview if QT_CONFIG contains declarative.
1507
1508         * tests/tests.pri:
1509         * tests/tests.pro:
1510
1511 2011-02-25  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
1512
1513         Reviewed by Kenneth Rohde Christiansen.
1514
1515         [Qt] QML WebView inside a Flickable shows checkers pattern at startup
1516         https://bugs.webkit.org/show_bug.cgi?id=50222.
1517
1518         This patch fixes the checkerboard visible at startup even if preferredWidth and preferredHeight are not set.
1519
1520         * declarative/qdeclarativewebview.cpp:
1521         (QDeclarativeWebView::init):
1522         * tests/qdeclarativewebview: Added.
1523         * tests/qdeclarativewebview/qdeclarativewebview.pro: Added.
1524         * tests/qdeclarativewebview/resources: Added.
1525         * tests/qdeclarativewebview/resources/webviewtest.qml: Added.
1526         * tests/qdeclarativewebview/resources/webviewtestdefault.qml: Added.
1527         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: Added.
1528         (tst_QDeclarativeWebView::initTestCase):
1529         (tst_QDeclarativeWebView::cleanupTestCase):
1530         (tst_QDeclarativeWebView::init):
1531         (tst_QDeclarativeWebView::cleanup):
1532         (tst_QDeclarativeWebView::preferredWidthTest):
1533         (tst_QDeclarativeWebView::preferredHeightTest):
1534         (tst_QDeclarativeWebView::preferredWidthDefaultTest):
1535         (tst_QDeclarativeWebView::preferredHeightDefaultTest):
1536         (tst_QDeclarativeWebView::checkNoErrors):
1537         * tests/tests.pri:
1538         * tests/tests.pro:
1539
1540 2011-02-24  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1541
1542         Reviewed by Andreas Kling.
1543
1544         [Qt] Revert the support for QNAM affined to a different thread.
1545         https://bugs.webkit.org/show_bug.cgi?id=55149
1546
1547         Qt 4.8 will have QNAM use its own thread internally by default,
1548         no need to keep this complexity in WebKit.
1549
1550         This mainly reverts:
1551         http://trac.webkit.org/changeset/73710
1552         http://trac.webkit.org/changeset/73712
1553
1554         * WebCoreSupport/FrameLoaderClientQt.cpp:
1555         (WebCore::FrameLoaderClientQt::download):
1556         * tests/qwebpage/tst_qwebpage.cpp:
1557
1558 2011-02-24  Sam Weinig  <sam@webkit.org>
1559
1560         Try to fix the Qt build.
1561
1562         * QtWebKit.pro:
1563
1564 2011-02-24  Peter Kasting  <pkasting@google.com>
1565
1566         Reviewed by Eric Seidel.
1567
1568         Drop the "U; " encryption level from the User Agent string.
1569         https://bugs.webkit.org/show_bug.cgi?id=54566
1570
1571         * Api/qwebpage.cpp:
1572         (QWebPage::userAgentForUrl):
1573
1574 2011-02-24  Andrew Wilson  <atwilson@chromium.org>
1575
1576         Unreviewed, rolling out r79570.
1577         http://trac.webkit.org/changeset/79570
1578         https://bugs.webkit.org/show_bug.cgi?id=54874
1579
1580         Breaks chromium build because glue/mocks/mock_web_frame.h/cc
1581         was not updated
1582
1583         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1584         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1585
1586 2011-02-24  Vsevolod Vlasov  <vsevik@chromium.org>
1587
1588         Reviewed by Alexey Proskuryakov.
1589
1590         DumpRenderTree should reset frame opener between tests.
1591         https://bugs.webkit.org/show_bug.cgi?id=54874
1592
1593         Added clearOpener method to DumpRenderTreeSupportQT.
1594
1595         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1596         (DumpRenderTreeSupportQt::clearOpener):
1597         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1598
1599 2011-02-24  Alexis Menard  <alexis.menard@openbossa.org>
1600
1601         Reviewed by Andreas Kling.
1602
1603         [Qt] tst_QWebView::setPalette(activeFG) fails
1604         https://bugs.webkit.org/show_bug.cgi?id=55029
1605
1606         This time it should be the proper fix. The window needs to be shown before we
1607         call activateWindow() otherwise there is no active windows for the application.
1608
1609         * tests/qwebview/tst_qwebview.cpp:
1610         (tst_QWebView::setPalette):
1611
1612 2011-02-24  Andras Becsi  <abecsi@webkit.org>
1613
1614         Reviewed by Laszlo Gombos.
1615
1616         [Qt] MinGW build fails to link
1617         https://bugs.webkit.org/show_bug.cgi?id=55050
1618
1619         Prepend the libraries of subcomponents instead of appending them
1620         to fix the library order according to the dependency of the libraries
1621
1622         * QtWebKit.pro: prepend libraries in the correct order
1623
1624 2011-02-23  Alexis Menard  <alexis.menard@openbossa.org>
1625
1626         Reviewed by Ariya Hidayat.
1627
1628         [Qt] tst_QWebView::setPalette(activeFG) fails
1629         https://bugs.webkit.org/show_bug.cgi?id=55029
1630
1631         Attempt to make the test more robust. By investigating with the bot virtual machine
1632         I discovered that the activation can take some time. In this patch we make sure that
1633         the active window we want to have is the same as the QApplication.
1634
1635         * tests/qwebview/tst_qwebview.cpp:
1636         (tst_QWebView::setPalette):
1637
1638 2011-02-23  Alexis Menard  <alexis.menard@openbossa.org>
1639
1640         Reviewed by Dan Bernstein.
1641
1642         [Qt]REGRESSION(r79167): It broke 3 Qt-API test cases
1643         http://trac.webkit.org/changeset/79167 refactored the way the bound size of
1644         the frame is handled. A new API setBoundsSize was added, we need to call it
1645         in addition to setFrameRect. I could call setBoundSize after setFrameRect but
1646         I thought It would be more elegant to use the resize method.
1647
1648         * Api/qwebpage.cpp:
1649         (QWebPage::setViewportSize):
1650
1651 2011-02-22  Fabrizio Machado  <fabrizio.machado@nokia.com>
1652
1653         Reviewed by Laszlo Gombos.
1654
1655         [Qt] Don't fall through case in variantToSetting() if qvariant.type() is Bool
1656         https://bugs.webkit.org/show_bug.cgi?id=54976
1657
1658         Test not needed.
1659         
1660         * WebCoreSupport/InspectorClientQt.cpp:
1661
1662 2011-02-22  Alexis Menard  <alexis.menard@openbossa.org>
1663
1664         Reviewed by Andreas Kling.
1665
1666         [Qt] QWebView ignores a palette set with QWebView::setPalette()
1667         https://bugs.webkit.org/show_bug.cgi?id=31742
1668
1669         Test case to check that the palette sets on the QWebView is taken
1670         into account.
1671
1672         * tests/qwebview/tst_qwebview.cpp:
1673         (tst_QWebView::setPalette_data):
1674         (tst_QWebView::setPalette):
1675
1676 2011-02-22  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1677
1678         Reviewed by Alexey Proskuryakov.
1679
1680         Drop the language tag part from the User Agent string
1681         https://bugs.webkit.org/show_bug.cgi?id=54560
1682
1683         * Api/qwebpage.cpp:
1684         (QWebPage::userAgentForUrl):
1685
1686         * tests/qwebpage/tst_qwebpage.cpp: Remove the userAgentLocaleChange
1687         test.
1688
1689 2011-02-22  Chang Shu  <cshu@webkit.org>
1690
1691         Reviewed by Csaba Osztrogonác.
1692
1693         [Qt] editing/deleting/5408255.html fails
1694         https://bugs.webkit.org/show_bug.cgi?id=54964
1695
1696         Move WebCore resource file to QtWebKit since they are referred in WebKit.
1697
1698         * QtWebKit.pro:
1699
1700 2011-02-22  Andras Becsi  <abecsi@webkit.org>
1701
1702         Reviewed by Csaba Osztrogonác.
1703
1704         [Qt] Redesign the build system
1705         https://bugs.webkit.org/show_bug.cgi?id=51339
1706
1707         Move inspector's resource files into the final build step to fix the layout test regression.
1708
1709         * QtWebKit.pro: Add inspector's reaource files.
1710
1711 2011-02-22  Andras Becsi  <abecsi@webkit.org>
1712
1713         Reviewed by Laszlo Gombos.
1714         Rubber-stamped by Csaba Osztrogonác.
1715
1716         [Qt] Redesign the build system
1717         https://bugs.webkit.org/show_bug.cgi?id=51339
1718
1719         The patch landed in r79320 didn't contain the cleanup
1720         which was already addressed in the last attachment.
1721
1722         * QtWebKit.pro: Move common LIB and CONFIG options to WebCore.pri.
1723
1724 2011-02-22  Andras Becsi  <abecsi@webkit.org>
1725
1726         Reviewed by Laszlo Gombos.
1727
1728         [Qt] Redesign the build system
1729         https://bugs.webkit.org/show_bug.cgi?id=51339
1730
1731         Part 2.
1732
1733         Build WebCore as a static library, compile the WebKit API and WebKit2 API
1734         in a final step and link to WebKit2, WebCore and JSC libraries to fix
1735         linking issues resulting from stripped away symbols.
1736
1737         * QtWebKit.pro: Added.
1738         Project file for the final build step.
1739
1740 2011-02-17  Ryosuke Niwa  <rniwa@webkit.org>
1741
1742         Reviewed by Kent Tamura.
1743
1744         Rename Position::node() to Position::deprecatedNode()
1745         https://bugs.webkit.org/show_bug.cgi?id=54622
1746
1747         Replaced the call to node() by a call to containerNode() because the returned node is
1748         used to determine whether or not the selected contents are editable and such a check
1749         must be done against the container node.
1750
1751         * WebCoreSupport/EditorClientQt.cpp:
1752         (WebCore::EditorClientQt::handleKeyboardEvent):
1753
1754 2011-02-19  Charlie Reis  <creis@chromium.org>
1755
1756         Reviewed by Mihai Parparita.
1757
1758         Ensure loading has stopped in HistoryController::goToItem
1759         https://bugs.webkit.org/show_bug.cgi?id=54517
1760
1761         Add a FrameLoaderClient callback for whether to stop loading before goToItem.
1762
1763         Test: http/tests/navigation/forward-to-fragment-fires-onload.html
1764
1765         * WebCoreSupport/FrameLoaderClientQt.cpp:
1766         (WebCore::FrameLoaderClientQt::shouldStopLoadingForHistoryItem): Added.
1767         * WebCoreSupport/FrameLoaderClientQt.h:
1768
1769 2011-02-18  Fabrizio Machado  <fabrizio.machado@nokia.com>
1770
1771         Reviewed by Eric Seidel.
1772
1773         Remove reduntant checks.
1774         https://bugs.webkit.org/show_bug.cgi?id=54764
1775         
1776
1777         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1778         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
1779         * WebCoreSupport/NotificationPresenterClientQt.cpp:
1780         (WebCore::NotificationPresenterClientQt::toPage):
1781
1782 2011-02-18  Csaba Osztrogonác  <ossy@webkit.org>
1783
1784         Unreviewed.
1785
1786         [Qt] Buildfix for platforms with geolocation disabled.
1787
1788         * Api/qwebpage.cpp: Add the missing guard.
1789
1790 2011-02-18  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
1791
1792         Reviewed by Kenneth Rohde Christiansen.
1793
1794         [Qt] Implement client based geolocation for qtport
1795         https://bugs.webkit.org/show_bug.cgi?id=42629
1796
1797         Implements client based geolocation for qtwebkit.
1798         New client based geolocation contains permission API's as well,
1799         so removed the implementation from ChromeClientQt.cpp. 
1800
1801         * Api/qwebpage.cpp:
1802         (QWebPagePrivate::QWebPagePrivate):
1803         * WebCoreSupport/ChromeClientQt.cpp:
1804         * WebCoreSupport/ChromeClientQt.h:
1805         (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
1806         (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
1807         * WebCoreSupport/GeolocationClientQt.cpp: Added.
1808         (WebCore::GeolocationClientQt::GeolocationClientQt):
1809         (WebCore::GeolocationClientQt::~GeolocationClientQt):
1810         (WebCore::GeolocationClientQt::geolocationDestroyed):
1811         (WebCore::GeolocationClientQt::positionUpdated):
1812         (WebCore::GeolocationClientQt::startUpdating):
1813         (WebCore::GeolocationClientQt::stopUpdating):
1814         (WebCore::GeolocationClientQt::setEnableHighAccuracy):
1815         (WebCore::GeolocationClientQt::requestPermission):
1816         (WebCore::GeolocationClientQt::cancelPermissionRequest):
1817         * WebCoreSupport/GeolocationClientQt.h: Added.
1818         (WebCore::GeolocationClientQt::lastPosition):
1819
1820 2011-02-10  Luiz Agostini  <luiz.agostini@openbossa.org>
1821
1822         Reviewed by Adam Roben.
1823
1824         HTML5 <details> and <summary>: localized text
1825         https://bugs.webkit.org/show_bug.cgi?id=54260
1826
1827         The method defaultDetailsSummaryText was added to LocalizationStrategy class. It is used to
1828         provide the default label to be used by a <details> tag that has no <summary> child.
1829
1830         * WebCoreSupport/WebPlatformStrategies.cpp:
1831         (WebPlatformStrategies::defaultDetailsSummaryText):
1832         * WebCoreSupport/WebPlatformStrategies.h:
1833
1834 2011-02-17  Hui Huang  <hui.2.huang@nokia.com>
1835
1836         Reviewed by Laszlo Gombos.
1837
1838         The URL of HTML5 Video Element is percent encoded at websites such as youtube.
1839         It is percent encoded again by QUrl constructor QUrl::QUrl(QString). This causes
1840         the HTTP GET request for the video to be rejected by the service provider. 
1841         https://bugs.webkit.org/show_bug.cgi?id=53973.
1842
1843         The bug is fixed by constructing QUrl from the encoded URL in 
1844         MediaPlayerPrivateQt::commitLoad. 
1845
1846         New test function tst_QWebPage::loadHtml5Video() is added to load HTML content with
1847         HTML5 Video element. A new public method DumpRenderTreeSupportQt::mediaContentUrlByElementId
1848         is added to retrieve the URL of the media content from WebCore MediaPlayerPrivateQt.
1849         A new macro ENABLE_QT_MULTIMEDIA is introduced in tests.pri to make sure that the test
1850         is skipped if Qt Multimedia is not available.
1851
1852         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1853         (DumpRenderTreeSupportQt::mediaContentUrlByElementId):
1854         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1855         * tests/qwebpage/tst_qwebpage.cpp:
1856         (tst_QWebPage::loadHtml5Video):
1857         * tests/tests.pri:
1858
1859 2011-02-17  Andreas Kling  <kling@webkit.org>
1860
1861         Reviewed by Antti Koivisto.
1862
1863         [Qt] Crash when calling QWebFrame::setUrl() while a previous load has pending requests
1864         https://bugs.webkit.org/show_bug.cgi?id=49216
1865
1866         * tests/qwebframe/tst_qwebframe.cpp:
1867
1868 == Rolled over to ChangeLog-2011-02-16 ==