d95cdf4b8d6fd95a32e06cbba41b410c24272bdd
[WebKit-https.git] / Source / WebKit / qt / ChangeLog
1 2011-03-29  Janne Koskinen  <janne.p.koskinen@digia.com>
2
3         Reviewed by Kenneth Rohde Christiansen.
4
5         [Qt] Enterkey to go to Newline does not work in the text area(in HTML form)
6         https://bugs.webkit.org/show_bug.cgi?id=33179
7
8         Fixed newline generation from Qt::Key_Enter when editting text area using InputMethods.
9
10         * WebCoreSupport/EditorClientQt.cpp:
11         (WebCore::EditorClientQt::handleInputMethodKeydown):
12         * tests/qwebpage/tst_qwebpage.cpp:
13         (tst_QWebPage::inputMethods):
14
15 2011-03-29  Andreas Kling  <kling@webkit.org>
16
17         Reviewed by Simon Hausmann.
18
19         [Qt] Fix documentation for QWebPage::repaintRequested()
20
21         This signal is always emitted when the page is dirtied, so remove
22         reference to old behavior where we would only emit the signal for
23         headless QWebPages.
24
25         * Api/qwebpage.cpp:
26
27 2011-03-28  Andreas Kling  <kling@webkit.org>
28
29         Reviewed by Benjamin Poulain.
30
31         [Qt] Pass QString() instead of String() when emitting titleChanged() for new loads.
32
33         * WebCoreSupport/FrameLoaderClientQt.cpp:
34         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
35
36 2011-03-28  Andreas Kling  <kling@webkit.org>
37
38         Reviewed by Benjamin Poulain.
39
40         [Qt] Crash when calling QWebFrame::render() in response to QWebPage::repaintRequested()
41         https://bugs.webkit.org/show_bug.cgi?id=52629
42
43         * WebCoreSupport/ChromeClientQt.cpp:
44         (WebCore::ChromeClientQt::invalidateContentsAndWindow): Make the emission of
45         QWebPage::repaintRequested() use a Qt::QueuedConnection.
46
47         * tests/qwebpage/tst_qwebpage.cpp:
48         (RepaintRequestedRenderer::RepaintRequestedRenderer):
49         (RepaintRequestedRenderer::onRepaintRequested):
50         (tst_QWebPage::renderOnRepaintRequestedShouldNotRecurse): Test that calling
51         QWebFrame::render() in a slot connected to to QWebPage::repaintRequested()
52         doesn't cause recursive signal emissions.
53
54 2011-03-28  Benjamin Poulain  <benjamin.poulain@nokia.com>
55
56         Reviewed by Andreas Kling.
57
58         [Qt] QtWebKit will not compile with QT_ASCII_CAST_WARNINGS enabled
59         https://bugs.webkit.org/show_bug.cgi?id=57087
60
61         * QtWebKit.pro: we can now enable QT_ASCII_CAST_WARNINGS
62         * tests/tests.pri: we do not require QT_ASCII_CAST_WARNINGS for tests
63         since they are applications, not libraries.
64
65 2011-03-28  Andras Becsi  <abecsi@webkit.org>
66
67         Reviewed by Csaba Osztrogonác.
68
69         [Qt] QtWebKit does not link with --3d-canvas using MinGW
70         https://bugs.webkit.org/show_bug.cgi?id=57225
71
72         * QtWebKit.pro: Append the OpenGL libraries on MinGW so it can resolve symbols.
73
74 2011-03-28  Csaba Osztrogonác  <ossy@webkit.org>
75
76         Reviewed by Andreas Kling.
77
78         REGRESSION(r54712): [Qt] Installed QtWebKit header does not compile.
79         https://bugs.webkit.org/show_bug.cgi?id=57183
80
81         Windows buildfix after r82065.
82
83         * Api/DerivedSources.pro: Readding escaping on Windows platforms.
84
85 2011-03-27  Andreas Kling  <kling@webkit.org>
86
87         Fix build warning about IconDatabaseClient.h (wrong path.)
88
89         * QtWebKit.pro:
90
91 2011-03-27  Andreas Kling  <kling@webkit.org>
92
93         Reviewed by Kenneth Rohde Christiansen.
94
95         [Qt] Support for CSS color and background-color properties on select element's dropdown list
96         https://bugs.webkit.org/show_bug.cgi?id=51627
97
98         Extend the QWebSelectData interface with background and foreground colors
99         for the whole menu, as well as per-item. Hook it up to the PopupMenuStyle
100         getters in RenderMenuList.
101
102         * Api/qwebkitplatformplugin.h:
103         * WebCoreSupport/PopupMenuQt.cpp:
104         (SelectData::backgroundColor):
105         (SelectData::foregroundColor):
106         (SelectData::itemBackgroundColor):
107         (SelectData::itemForegroundColor):
108         * WebCoreSupport/QtFallbackWebPopup.cpp:
109         (WebCore::QtFallbackWebPopup::show):
110         (WebCore::QtFallbackWebPopup::populate):
111
112 2011-03-27  Yi Shen  <yi.4.shen@nokia.com>
113
114         Reviewed by Andreas Kling.
115
116         [Qt][Symbian] Fix Api test failure -- microFocusCoordinates
117         https://bugs.webkit.org/show_bug.cgi?id=57108
118
119         Since the canvas is not self-closing tag, we need to add '</canvas>'. 
120
121         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
122         (tst_QGraphicsWebView::microFocusCoordinates):
123         * tests/qwebview/tst_qwebview.cpp:
124         (tst_QWebView::microFocusCoordinates):
125
126 2011-03-27  Kwang Yul Seo  <skyul@company100.net>
127
128         Reviewed by Eric Seidel.
129
130         [Qt] Build fix: Define WTF_USE_TEXTURE_MAPPER=1 when CONFIG contains texmap.
131         https://bugs.webkit.org/show_bug.cgi?id=57143
132
133         Qt WebKit uses USE(TEXTURE_MAPPER) guard. Check texmap in CONFIG and
134         define WTF_USE_TEXTURE_MAPPER=1.
135
136         * QtWebKit.pro:
137
138 2011-03-27  Andreas Kling  <kling@webkit.org>
139
140         Reviewed by Benjamin Poulain.
141
142         REGRESSION(r54712): [Qt] Installed QtWebKit header does not compile.
143         https://bugs.webkit.org/show_bug.cgi?id=57183
144
145         The convenience <QtWebKit> header would include \<QtNetwork/QtNetwork\>
146         which was due to the outputting code previously being wrapped in eval().
147
148         * Api/DerivedSources.pro:
149
150 2011-03-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
151
152         Reviewed by Andreas Kling.
153
154         [Qt] QtWebKit will not compile with QT_ASCII_CAST_WARNINGS enabled
155         https://bugs.webkit.org/show_bug.cgi?id=57087
156
157         Use explicit conversion for string to avoid depending on the default codec
158         installed by the user code.
159
160         * Api/qwebkitversion.cpp:
161         (qWebKitVersion):
162         * Api/qwebpage.cpp:
163         (QWebPagePrivate::dynamicPropertyChangeEvent):
164         (QWebPage::javaScriptConsoleMessage):
165         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
166         (convertToPropertyName):
167         (DumpRenderTreeSupportQt::setEditingBehavior):
168         (DumpRenderTreeSupportQt::plainText):
169         * WebCoreSupport/EditorClientQt.cpp:
170         (dumpRange):
171         * WebCoreSupport/FrameLoaderClientQt.cpp:
172         (drtDescriptionSuitableForTestResult):
173         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
174         * WebCoreSupport/InspectorClientQt.cpp:
175         (WebCore::InspectorClientQt::openInspectorFrontend):
176         * WebCoreSupport/InspectorServerQt.cpp:
177         (WebCore::parseWebSocketChallengeNumber):
178         (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
179
180 2011-03-26  Andreas Kling  <kling@webkit.org>
181
182         Reviewed by Kenneth Rohde Christiansen.
183
184         [Qt] QWebFrame::iconChanged() not emitted when icon is cached but not yet loaded
185         https://bugs.webkit.org/show_bug.cgi?id=57157
186
187         Add an IconDatabaseClient for the Qt port to ensure that QWebFrame::iconChanged()
188         is always emitted when appropriate.
189
190         * QtWebKit.pro: Add new files.
191
192         * WebCoreSupport/IconDatabaseClientQt.h: Added.
193         * WebCoreSupport/IconDatabaseClientQt.cpp: Added.
194         (WebCore::IconDatabaseClientQt::instance):
195         (WebCore::IconDatabaseClientQt::IconDatabaseClientQt):
196         (WebCore::IconDatabaseClientQt::~IconDatabaseClientQt):
197         (WebCore::IconDatabaseClientQt::performImport):
198         (WebCore::IconDatabaseClientQt::didRemoveAllIcons):
199         (WebCore::IconDatabaseClientQt::didImportIconURLForPageURL):
200         (WebCore::IconDatabaseClientQt::didImportIconDataForPageURL):
201         (WebCore::IconDatabaseClientQt::didChangeIconForPageURL):
202         (WebCore::IconDatabaseClientQt::didFinishURLImport):
203
204         * WebCoreSupport/FrameLoaderClientQt.h:
205         * WebCoreSupport/FrameLoaderClientQt.cpp:
206         (WebCore::FrameLoaderClientQt::registerForIconNotification):
207         (WebCore::FrameLoaderClientQt::onIconLoadedForPageURL): New slot connected
208         to the IconDatabaseClientQt::iconLoadedForPageURL() signal. This emits the
209         QWebFrame::iconChanged() signal when the IconDatabases finishes loading
210         a cached favicon for the frame's URL.
211
212         * Api/qwebsettings.cpp:
213         (QWebSettings::setIconDatabasePath): Make sure that IconDatabaseClientQt is
214         instantiated. An IconDatabaseClient has to be registered before the IconDatabase
215         spawns its reader thread.
216
217 2011-03-25  Andy Estes  <aestes@apple.com>
218
219         Reviewed by Adele Peterson.
220
221         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
222         https://bugs.webkit.org/show_bug.cgi?id=49016
223
224         Update objectContentType() implementation to handle the
225         shouldPreferPlugInsForImages flag.
226
227         * WebCoreSupport/FrameLoaderClientQt.cpp:
228         (WebCore::FrameLoaderClientQt::objectContentType):
229         * WebCoreSupport/FrameLoaderClientQt.h:
230
231 2011-03-25  Chang Shu  <cshu@webkit.org>
232
233         Reviewed by Ryosuke Niwa.
234
235         rename Node::isContentEditable and all call sites to rendererIsEditable
236         https://bugs.webkit.org/show_bug.cgi?id=54290
237
238         This is part of the effort to separate JS API HTMLElement isContentEditable from
239         internal Node::rendererIsEditable.
240
241         * WebCoreSupport/EditorClientQt.cpp:
242         (WebCore::EditorClientQt::handleKeyboardEvent):
243
244 2011-03-25  Alexis Menard  <alexis.menard@openbossa.org>
245
246         Reviewed by Andreas Kling.
247
248         [Qt] The keyboard shortcuts during fullscreen playback do not work.
249         https://bugs.webkit.org/show_bug.cgi?id=57095
250
251         We need to explicitely set the focus on the widget in order to receive the keyboard events.
252
253         * WebCoreSupport/FullScreenVideoWidget.cpp:
254         (WebCore::FullScreenVideoWidget::show):
255
256 2011-03-24  Sheriff Bot  <webkit.review.bot@gmail.com>
257
258         Unreviewed, rolling out r81916 and r81917.
259         http://trac.webkit.org/changeset/81916
260         http://trac.webkit.org/changeset/81917
261         https://bugs.webkit.org/show_bug.cgi?id=57071
262
263         broke a test on platforms that do not have QuickTime installed
264         (Requested by estes on #webkit).
265
266         * WebCoreSupport/FrameLoaderClientQt.cpp:
267         (WebCore::FrameLoaderClientQt::objectContentType):
268         * WebCoreSupport/FrameLoaderClientQt.h:
269
270 2011-03-24  Andy Estes  <aestes@apple.com>
271
272         Reviewed by Darin Adler.
273
274         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
275         https://bugs.webkit.org/show_bug.cgi?id=49016
276
277         Update objectContentType() implementation to handle the
278         shouldPreferPlugInsForImages flag.
279
280         * WebCoreSupport/FrameLoaderClientQt.cpp:
281         (WebCore::FrameLoaderClientQt::objectContentType):
282         * WebCoreSupport/FrameLoaderClientQt.h:
283
284 2011-03-24  Benjamin Poulain  <benjamin.poulain@nokia.com>
285
286         Reviewed by Kenneth Rohde Christiansen.
287
288         [Qt] When we render WebGL offscreen, color conversion cost a lot of CPU cycles
289         https://bugs.webkit.org/show_bug.cgi?id=40884
290
291         Add tests and benchmarks for the software fallback of WebGL.
292
293         * tests/benchmarks/webgl/10000_triangles.html: Added.
294         * tests/benchmarks/webgl/tst_webgl.cpp: Added.
295         (GraphicsView::GraphicsView):
296         (GraphicsView::resizeEvent):
297         (tst_WebGlPerformance::init):
298         (tst_WebGlPerformance::cleanup):
299         (tst_WebGlPerformance::benchSoftwareFallbackRgb16):
300         (tst_WebGlPerformance::benchSoftwareFallbackRgb32):
301         (tst_WebGlPerformance::benchSoftwareFallbackArgb32):
302         (tst_WebGlPerformance::benchSoftwareFallbackArgb32Premultiplied):
303         (tst_WebGlPerformance::benchmarkFrameRenderingOnImage):
304         * tests/benchmarks/webgl/tst_webgl.qrc: Added.
305         * tests/benchmarks/webgl/webgl.pro: Added.
306         * tests/qgraphicswebview/qgraphicswebview.pro:
307         * tests/qgraphicswebview/resources/pointing_right.html: Added.
308         * tests/qgraphicswebview/resources/pointing_up.html: Added.
309         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
310         (compareImagesFuzzyPixelCount):
311         (GraphicsView::GraphicsView):
312         (tst_QGraphicsWebView::webglSoftwareFallbackVerticalOrientation):
313         (tst_QGraphicsWebView::webglSoftwareFallbackHorizontalOrientation):
314         (tst_QGraphicsWebView::compareCanvasToImage):
315         * tests/qgraphicswebview/tst_qgraphicswebview.qrc:
316         * tests/tests.pro:
317
318 2011-03-24  Kristian Amlie  <kristian.amlie@nokia.com>
319
320         Reviewed by Benjamin Poulain.
321
322         Avoided ASCII-cast warnings for WebKit.
323
324         Normally they won't be enabled anyway, but if you build webkit from
325         within the Qt mother repository it will pick up Qt's default build
326         settings, which do enable it. We need to disable them because
327         warnings are treated as errors and there are way too many of them in
328         the WebKit code.
329
330         [Qt] Avoid ASCII-cast warnings for WebKit.
331         https://bugs.webkit.org/show_bug.cgi?id=57016
332
333         * QtWebKit.pro:
334
335 2011-03-24  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
336
337         Reviewed by Benjamin Poulain.
338
339         [Qt] Resetting the URL property of a QWebView results in the current directory being set as file::-type URL
340         https://bugs.webkit.org/show_bug.cgi?id=29595
341
342         Qt Designer resets the URL by setting it to QUrl(). The bug was caused by
343         ensureAbsoluteUrl() helper function treating the empty URL as a relative URL, and
344         prepending the current directory.
345
346         By fixing this, now we can pass QUrl() invalid and empty URLs to WebCore layer, which
347         will end up loading "about:blank", but keeping it as a requested URL.
348
349         This patch also simplifies the logic for requestedUrl(), since m_lastRequestedUrl
350         is filled for the loaded URLs as well, we can use it in every case.
351
352         Three new autotests were added, to better cover the expected behavior of setting
353         the QUrl() in a QWebFrame.
354
355         * Api/qwebframe.cpp:
356         (ensureAbsoluteUrl): do not treat invalid URLs (empty included) as relative.
357         (QWebFrame::requestedUrl): always use m_lastRequestedUrl.
358
359         * WebCoreSupport/FrameLoaderClientQt.cpp:
360         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): do not clear m_lastRequestedUrl
361         anymore, since we always rely on it even for loaded frames.
362
363         * tests/qwebframe/tst_qwebframe.cpp:
364         (tst_QWebFrame::setUrlToEmpty): verify the behavior of setting empty URLs. This includes
365         the reduction of the bug report.
366         (tst_QWebFrame::setUrlToInvalid): setting invalid, but not necessarily empty, URLs.
367         (tst_QWebFrame::setUrlHistory): to verify how setting empty URLs affect history.
368
369 2011-03-23  Brady Eidson  <beidson@apple.com>
370
371         Reviewed by Sam Weinig.
372
373         Change IconDatabase opening to allow for arbitrary filenames
374         https://bugs.webkit.org/show_bug.cgi?id=56977
375
376         * Api/qwebsettings.cpp:
377         (QWebSettings::setIconDatabasePath):
378
379 2011-03-23  Aparna Nandyal  <aparna.nand@wipro.com>
380
381         Reviewed by Andreas Kling.
382
383         [Qt] QtWebKit rendering problem when maximizing and doing a back
384         https://bugs.webkit.org/show_bug.cgi?id=56669
385
386         Added an auto test.
387         Patch by Alexis Menard < alexis.menard@nokia.com> on 2011-03-21
388  
389         * tests/qwebview/tst_qwebview.cpp:
390         (tst_QWebView::rendering):
391
392 2011-03-23  Yury Semikhatsky  <yurys@chromium.org>
393
394         Reviewed by Pavel Feldman.
395
396         [V8] Web Inspector: compile DebuggerScript.js into DebuggerScriptSource.h
397         https://bugs.webkit.org/show_bug.cgi?id=56843
398
399         * WebCoreSupport/InspectorClientQt.cpp:
400         (WebCore::InspectorClientQt::openInspectorFrontend):
401
402 2011-03-22  Andrew Wason  <rectalogic@rectalogic.com>
403
404         Reviewed by Benjamin Poulain.
405
406         [Qt] QWebPage with WebGL content crashes when rendering if no QWebView parent
407         https://bugs.webkit.org/show_bug.cgi?id=54138
408
409         * tests/qwebpage/tst_qwebpage.cpp:
410         (webGLScreenshotWithoutView):
411         (tst_QWebPage::acceleratedWebGLScreenshotWithoutView):
412         (tst_QWebPage::unacceleratedWebGLScreenshotWithoutView):
413          Render a QWebPage (with and without accelerated compositing)
414          with a WebGL context that has no owning view.  Shouldn't crash.
415
416 2011-03-21  Chang Shu  <cshu@webkit.org>
417
418         Reviewed by Alexey Proskuryakov.
419
420         REGRESSION (r79953): Can't type in MS Outlook 2011
421         https://bugs.webkit.org/show_bug.cgi?id=56665
422
423         r79953 removed the WebView level editablity which is persistent no matter whether
424         underlying document itself is changed and editability gets lost. The resolution is to
425         set this WebView editable value to WebCore. This avoids the callback from WebCore to
426         WebKit which was the main goal in r79953 to improve performance.
427
428         * Api/qwebpage.cpp:
429         (QWebPage::setContentEditable):
430         (QWebPage::isContentEditable):
431
432 2011-03-19  Andreas Kling  <kling@webkit.org>
433
434         Reviewed by Benjamin Poulain.
435
436         [Qt] Remove support for Qt 4.6
437         https://bugs.webkit.org/show_bug.cgi?id=56712
438
439         * Api/qwebframe.cpp:
440         (QWebFrame::load):
441         * Api/qwebpage.cpp:
442         (QWebPagePrivate::QWebPagePrivate):
443         * Api/qwebsettings.cpp:
444         (QWebSettings::QWebSettings):
445         * WebCoreSupport/GeolocationClientQt.cpp:
446         (WebCore::GeolocationClientQt::positionUpdated):
447
448 2011-03-19  Andreas Kling  <kling@webkit.org>
449
450         Reviewed by Antonio Gomes.
451
452         [Qt][Doc] QWebPage::unsupportedContent() passes ownership of the QNetworkReply
453         https://bugs.webkit.org/show_bug.cgi?id=56711
454
455         Document the fact that when unsupportedContent(QNetworkReply*) is emitted,
456         ownership of the reply is transferred to the receiving slot.
457
458         * Api/qwebpage.cpp:
459
460 2011-03-17  Brady Eidson  <beidson@apple.com>
461
462         Reviewed by Sam Weinig.
463
464         https://bugs.webkit.org/show_bug.cgi?id=56425
465         More groundwork for WebKit2 IconDatabase
466
467         Update already-used function names:
468         * Api/qwebhistory.cpp:
469         (QWebHistoryItem::icon):
470         * Api/qwebsettings.cpp:
471         (QWebSettings::iconForUrl):
472
473 2011-03-18  Alexis Menard  <alexis.menard@openbossa.org>
474
475         Reviewed by Benjamin Poulain.
476
477         [Qt] console.log not being exposed to QmlViewer
478         https://bugs.webkit.org/show_bug.cgi?id=56536
479
480         The documentation is bogus the feature does not exist.
481
482         * declarative/qdeclarativewebview.cpp:
483
484 2011-03-17  Andreas Kling  <kling@webkit.org>
485
486         Reviewed by Kenneth Rohde Christiansen.
487
488         [Qt] QML WebView emits iconChanged() when the page title changes
489         https://bugs.webkit.org/show_bug.cgi?id=56570
490
491         * declarative/qdeclarativewebview.cpp:
492         (QDeclarativeWebView::setPage): Don't forward the frame's titleChanged
493         signal to the view's iconChanged signal.
494
495 2011-03-17  Alexis Menard  <alexis.menard@openbossa.org>
496
497         Reviewed by Benjamin Poulain.
498
499         [Qt] Videos look ugly when using QGraphicsWebView.
500         https://bugs.webkit.org/show_bug.cgi?id=56580
501
502         We need to set QPainter::SmoothPixmapTransform on the painter for a proper rendering of the video.
503         QWebView does it but not QGraphicsWebView because the API does not exist. This patch is fixing it
504         by introducing the same API as QWebView to control the renderHints of the item. Unlike QWebView
505         QGraphicsWebView inherits the painter from QGraphicsScene and those flags are not set. This patch
506         ensure that before rendering the item we add QPainter::SmoothPixmapTransform and QPainter::TextAntialiasing
507         in addition of what could be set on the painter. In order to not break the rendering of all the items in the
508         scene we set back the painter to its original state when QGraphicsWebView is rendered.
509
510         * Api/qgraphicswebview.cpp:
511         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
512         (QGraphicsWebView::paint):
513         (QGraphicsWebView::renderHints):
514         (QGraphicsWebView::setRenderHints):
515         (QGraphicsWebView::setRenderHint):
516         * Api/qgraphicswebview.h:
517         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
518         (tst_QGraphicsWebView::renderHints):
519
520 2011-03-16  Joseph Pecoraro  <joepeck@webkit.org>
521
522         Reviewed by Kenneth Rohde Christiansen.
523
524         Viewport no longer allows an auto value for "user-scalable"
525         https://bugs.webkit.org/show_bug.cgi?id=55416
526
527         Make the default value for userScalable be true.
528
529         * Api/qwebpage.cpp:
530         (QWebPage::viewportAttributesForSize):
531         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
532         (DumpRenderTreeSupportQt::viewportAsText): update test output to include userScalable.
533
534 2011-03-15  Kevin Ollivier  <kevino@theolliviers.com>
535
536         Reviewed by Darin Adler.
537
538         Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
539         info into the headers rather than in export symbol definition files, but disable it on 
540         all platforms initially so we can deal with port build issues one port at a time.
541         
542         https://bugs.webkit.org/show_bug.cgi?id=27551
543
544         * WebCoreSupport/GeolocationClientQt.cpp:
545         * WebCoreSupport/PopupMenuQt.cpp:
546
547 2011-03-14  Brady Eidson  <beidson@apple.com>
548
549         Reviewed by Anders Carlsson.
550
551         https://bugs.webkit.org/show_bug.cgi?id=56320
552         Remove HistoryItem::icon() and the WebCore dependency on "IconDatabaseBase::defaultIcon()"
553
554         * Api/qwebhistory.cpp:
555         (QWebHistoryItem::icon): Use IconDatabase directly.
556
557 2011-03-11  Brady Eidson  <beidson@apple.com>
558
559         Reviewed by attempt at build fix!
560
561         https://bugs.webkit.org/show_bug.cgi?id=56216
562         Fix the Qt build following the same pattern of the patch.
563
564         * Api/qwebsettings.cpp:
565         (QWebSettings::setIconDatabasePath): Call the static method via IconDatabase:: and not via iconDatabase()
566
567 2011-03-11  Alexis Menard  <alexis.menard@openbossa.org>
568
569         Reviewed by Ariya Hidayat.
570
571         [Qt] Entering fullscreen and leaving it may hide the cursor of the application.
572         https://bugs.webkit.org/show_bug.cgi?id=56181
573
574         We need to stop the auto hide cursor timer when closing the widget otherwise the timer
575         might get fired and therefore hide the cursor even when the fullscreen widget is closed.
576
577         * WebCoreSupport/FullScreenVideoWidget.cpp:
578         (WebCore::FullScreenVideoWidget::closeEvent):
579
580 2011-03-10  David Boddie <david.boddie@nokia.com>
581
582         Reviewed by Andreas Kling.
583
584         Fixed a qdoc warning and terminology (WebKit instead of Webkit).
585         https://bugs.webkit.org/show_bug.cgi?id=55756
586
587         * Api/qwebhistoryinterface.cpp:
588
589 2011-03-10  Andreas Kling  <kling@webkit.org>
590
591         Unreviewed build fix after r80774.
592
593         QML property versioning is introduced in Qt 4.7.3, not 4.7.2.
594         See also: http://bugreports.qt.nokia.com/browse/QTBUG-13451
595
596         * declarative/plugin.cpp:
597         (WebKitQmlPlugin::registerTypes):
598         * declarative/qdeclarativewebview.cpp:
599         * declarative/qdeclarativewebview_p.h:
600         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
601
602 2011-03-10  Alexis Menard  <alexis.menard@openbossa.org>
603
604         Reviewed by Andreas Kling.
605
606         [Qt] QtDeclarative Webview element has a fixed white background
607         https://bugs.webkit.org/show_bug.cgi?id=40918
608
609         Implement a way to change the background color of the WebView QML element.
610         This feature is activated for QtWebKit 1.1 version of the plugin.
611
612         * declarative/plugin.cpp:
613         (WebKitQmlPlugin::registerTypes):
614         * declarative/qdeclarativewebview.cpp:
615         (QDeclarativeWebView::backgroundColor):
616         (QDeclarativeWebView::setBackgroundColor):
617         * declarative/qdeclarativewebview_p.h:
618         * tests/qdeclarativewebview/resources/webviewbackgroundcolor.qml: Added.
619         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
620         (tst_QDeclarativeWebView::backgroundColor):
621         * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc:
622
623 2011-03-10  Stanislav Paltis  <Stanislav.Paltis@nokia.com>
624
625         Reviewed by Laszlo Gombos.
626
627         [Qt] MemoryCache deadDecodedDataDeletionInterval is not exposed for client's usage
628         https://bugs.webkit.org/show_bug.cgi?id=55945
629         
630         Added handling of dynamic/runtime property _q_deadDecodedDataDeletionInterval to 
631         set interval used to trigger when decoded data in dead list of object cache will 
632         be purged from object cache. 
633
634         * Api/qwebpage.cpp:
635         (QWebPagePrivate::dynamicPropertyChangeEvent):
636
637 2011-03-10  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
638
639         Reviewed by Antonio Gomes.
640
641         Simplify how QWebFrame::requestedUrl() is obtained
642         https://bugs.webkit.org/show_bug.cgi?id=55842
643
644         When a load starts, store the requested URL until we know that it'll be
645         available for us in the document loader -- after load finished.
646
647         The existing auto tests cover the three different code paths in
648         requestedUrl() and the new code passes the autotests. In each of those
649         cases, we looked for the information in a different place, but in all
650         of them, dispatchDidStartProvisionalLoad was called.
651
652         This simplification will be useful to fix bug 32723. The way requestedUrl()
653         is implementent, we can't use it as a fallback for url() when the setUrl()
654         was called with an invalid URL.
655
656         * Api/qwebframe.cpp:
657         (QWebFrame::requestedUrl):
658         * WebCoreSupport/FrameLoaderClientQt.cpp:
659         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
660         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
661         * WebCoreSupport/FrameLoaderClientQt.h:
662         (WebCore::FrameLoaderClientQt::lastRequestedUrl):
663
664 2011-03-10  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
665
666         Reviewed by Kenneth Rohde Christiansen.
667
668         Tiled backing store's delegated scroll request uses incorrect convention
669         https://bugs.webkit.org/show_bug.cgi?id=56011
670
671         Adapt internal API to match the change from delta to point on the
672         WebCore side, and convert the point to a delta for the public API.
673
674         * WebCoreSupport/ChromeClientQt.cpp:
675         (WebCore::ChromeClientQt::delegatedScrollRequested):
676         * WebCoreSupport/ChromeClientQt.h:
677
678 2011-03-09  Peter Kasting  <pkasting@google.com>
679
680         Reviewed by Mihai Parparita.
681
682         Unify Windows version checks.
683         https://bugs.webkit.org/show_bug.cgi?id=55979
684
685         * Api/qwebpage.cpp:
686         (QWebPage::userAgentForUrl):
687
688 2011-03-07  Sam Weinig  <sam@webkit.org>
689
690         Reviewed by Anders Carlsson.
691
692         Replace WebKit2's decidePolicyForMIMEType with decidePolicyForResponse
693         https://bugs.webkit.org/show_bug.cgi?id=55827
694
695         Renamed FrameLoaderClient::dispatchDecidePolicyForMIMEType to dispatchDecidePolicyForResponse
696         and pass the entire response, instead of just the MIMEType.
697
698         * WebCoreSupport/FrameLoaderClientQt.cpp:
699         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForResponse):
700         * WebCoreSupport/FrameLoaderClientQt.h:
701
702 2011-03-05  Qi Zhang  <qi.2.zhang@nokia.com>
703
704         Reviewed by Laszlo Gombos.
705
706         [Qt] Mobile Devices should include Model and Firmware Version in Webkit Generated User Agent String
707         https://bugs.webkit.org/show_bug.cgi?id=48636
708
709         Add model infomation into user agent string when qtmobility is available, but only for symbian, Maemo and MeeGo.
710
711         * Api/qwebpage.cpp:
712         (QWebPage::userAgentForUrl):
713
714 2011-03-03  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
715
716         Reviewed by Kenneth Rohde Christiansen.
717
718         [QT] Implement mock client-based geolocation for layout testing
719         https://bugs.webkit.org/show_bug.cgi?id=54334
720
721         Implement layout testing for Client-Based geolocation. If drt_run is set 
722         then create mock geolocationClient and update the same with controller.
723
724         * Api/qwebpage.cpp:
725         (QWebPagePrivate::QWebPagePrivate):
726         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
727         (DumpRenderTreeSupportQt::mockGeolocationReset):
728         (DumpRenderTreeSupportQt::setMockGeolocationPermission):
729         (DumpRenderTreeSupportQt::setMockGeolocationPosition):
730         (DumpRenderTreeSupportQt::setMockGeolocationError):
731         * WebCoreSupport/DumpRenderTreeSupportQt.h:
732         * WebCoreSupport/GeolocationClientQt.cpp:
733         (WebCore::GeolocationClientQt::GeolocationClientQt):
734         * WebCoreSupport/GeolocationClientQt.h:
735
736 2011-03-03  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
737
738         Reviewed by Kenneth Rohde Christiansen.
739
740         [Qt] QWebFrame::setUrl works only from second time if url fragment is present
741         https://bugs.webkit.org/show_bug.cgi?id=32723
742
743         Create an auto-test for Qt based on the bug description.
744
745         * tests/qwebframe/tst_qwebframe.cpp: add setUrlWithFragment() test.
746
747 2011-03-03  Brady Eidson  <beidson@apple.com>
748
749         Reviewed by Darin Adler.
750
751         https://bugs.webkit.org/show_bug.cgi?id=55721
752         Global IconDatabase should be returned by reference, not as a pointer
753
754         * Api/qwebsettings.cpp:
755         (QWebSettings::setIconDatabasePath):
756         (QWebSettings::iconDatabasePath):
757         (QWebSettings::clearIconDatabase):
758         (QWebSettings::iconForUrl):
759
760 2011-03-03  Alexey Proskuryakov  <ap@apple.com>
761
762         Removing an include of WebCoreKeyboardUIMode.h that Ive just added. It's already included
763         via ChromeClient.h
764
765         * WebCoreSupport/ChromeClientQt.h:
766
767 2011-03-02  Alexey Proskuryakov  <ap@apple.com>
768
769         Reviewed by Darin Adler.
770
771         REGRESSION (WebKit2): Tab keys no longer observe Full Keyboard Access
772         https://bugs.webkit.org/show_bug.cgi?id=55633
773         <rdar://problem/8963023>
774
775         * WebCoreSupport/ChromeClientQt.cpp (WebCore::ChromeClientQt::keyboardUIMode):
776         * WebCoreSupport/ChromeClientQt.h:
777         Implement keyboardUIMode() instead of tabsToLinks(). No change in functionality, since
778         this platform doesn't observe or have full keyboard access state.
779
780 2011-03-03  Alexis Menard  <alexis.menard@openbossa.org>
781
782         Reviewed by Andreas Kling.
783
784         [Qt] QGraphicsWebView should use updateMicroFocus() of QGraphicsItem
785         https://bugs.webkit.org/show_bug.cgi?id=55568
786
787         We should use updateMicroFocus() from QGraphicsItem rather than the implementation
788         in QGraphicsWebView. _q_updateMicroFocus was added when QGraphicsItem didn't have the feature.
789         In Qt 4.7, updateMicroFocus was added, let's use it, then we can benefit of all bug fixing done
790         in QGraphicsItem.
791
792         * Api/qgraphicswebview.cpp:
793         (QGraphicsWebView::setPage):
794         * Api/qgraphicswebview.h:
795
796 2011-03-03  Peter Kasting  <pkasting@google.com>
797
798         Reviewed by James Robinson.
799
800         Drop redundant "Windows; " from the Windows-specific User Agent string.
801         https://bugs.webkit.org/show_bug.cgi?id=54567
802
803         * Api/qwebpage.cpp:
804         (QWebPage::userAgentForUrl):
805
806 2011-03-01  Brian Weinstein  <bweinstein@apple.com>
807
808         Reviewed by Adam Roben.
809
810         Part of WebKit2: Need a way to send notifications to client when cookies change
811         https://bugs.webkit.org/show_bug.cgi?id=55427
812         <rdar://problem/9056027>
813         
814         Add stubs for CookiesStrategy on Qt WebKit1.
815
816         * WebCoreSupport/WebPlatformStrategies.cpp:
817         (WebPlatformStrategies::createCookiesStrategy):
818         (WebPlatformStrategies::notifyCookiesChanged):
819         * WebCoreSupport/WebPlatformStrategies.h:
820
821 2011-03-01  Joseph Pecoraro  <joepeck@webkit.org>
822
823         Unreviewed. Roll out r80068 and r80073 due to breaking WebKit2 Qt port.
824
825         * Api/qwebpage.cpp:
826         (QWebPage::viewportAttributesForSize):
827         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
828         (DumpRenderTreeSupportQt::viewportAsText):
829
830 2011-03-01  Joseph Pecoraro  <joepeck@webkit.org>
831
832         Reviewed by Kenneth Rohde Christiansen.
833
834         Viewport Warning/Error Messages Are Now Inaccurate
835         https://bugs.webkit.org/show_bug.cgi?id=53707
836
837         * Api/qwebpage.cpp:
838         (QWebPage::viewportAttributesForSize): pass a Document into computeViewportAttributes for warnings to be reported to.
839         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
840         (DumpRenderTreeSupportQt::viewportAsText): pass a Document into computeViewportAttributes for warnings to be reported to.
841
842 2011-03-01  Andras Becsi  <abecsi@webkit.org>
843
844         Reviewed by Csaba Osztrogonác.
845
846         [Qt] Clean up the project files and move common options to WebKit.pri.
847
848         * QtWebKit.pro: Move common options to WebKit.pri.
849
850 2011-03-01  Aparna Nandyal  <aparna.nand@wipro.com>
851
852         Reviewed by Simon Hausmann.
853
854         [Qt]tst_QWebPage::backActionUpdate fails when there is not network connection
855         https://bugs.webkit.org/show_bug.cgi?id=55319
856
857         The test case required internet connection to be able to connect to
858         google.com. Added new html file which refers to local html file.
859
860         * tests/qwebpage/resources/content.html: Added.
861         * tests/qwebpage/resources/frame_c.html: Added.
862         * tests/qwebpage/resources/framedindex.html: Added.
863         * tests/qwebpage/tst_qwebpage.cpp:
864         (tst_QWebPage::backActionUpdate):
865         * tests/qwebpage/tst_qwebpage.qrc:
866
867 2011-02-25 Steve Block <steveblock@google.com>
868
869         Reviewed by Jeremy Orlow.
870
871         Bridge.h should not include BridgeJSC.h
872         https://bugs.webkit.org/show_bug.cgi?id=55212
873
874         Include BridgeJSC.h directly instead.
875
876         * Api/qwebframe.cpp:
877
878 2011-02-28  Chang Shu  <cshu@webkit.org>
879
880         Reviewed by Ryosuke Niwa.
881
882         Remove the support of Frame::isContentEditable and its dependencies.
883         https://bugs.webkit.org/show_bug.cgi?id=54292
884
885         Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode.
886
887         * Api/qwebpage.cpp:
888         (QWebPagePrivate::QWebPagePrivate):
889         (QWebPage::setContentEditable):
890         (QWebPage::isContentEditable):
891         * Api/qwebpage_p.h:
892         * WebCoreSupport/EditorClientQt.cpp:
893         * WebCoreSupport/EditorClientQt.h:
894
895 2011-02-28  Alexis Menard  <alexis.menard@openbossa.org>
896
897         Reviewed by Oliver Hunt.
898
899         Build fix for Qt port after API changes of http://trac.webkit.org/changeset/79904.
900
901         * Api/qwebelement.cpp:
902         (QWebElement::evaluateJavaScript):
903
904 2011-02-28  Alexis Menard  <alexis.menard@openbossa.org>
905
906         Reviewed by Andreas Kling.
907
908         [Qt]tst_QDeclarativeWebView - 8 test cases fail
909         https://bugs.webkit.org/show_bug.cgi?id=55214
910
911         Fix the API tests for the QML WebView element. The default size of the element should be the size of the QGraphicsWebView
912         if no preferred width or height are provided (see http://trac.webkit.org/changeset/79672).
913         I also refactored the tests so we don't use the network but instead a local html file.
914         QML doesn't support qrc loading so I had to workaround by using a property that I update afterwards.
915
916         * tests/qdeclarativewebview/resources/sample.html: Added.
917         * tests/qdeclarativewebview/resources/webviewtest.qml:
918         * tests/qdeclarativewebview/resources/webviewtestdefault.qml:
919         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
920         (tst_QDeclarativeWebView::preferredWidthTest):
921         (tst_QDeclarativeWebView::preferredHeightTest):
922         (tst_QDeclarativeWebView::preferredWidthDefaultTest):
923         (tst_QDeclarativeWebView::preferredHeightDefaultTest):
924         * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc:
925
926 2011-02-28  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
927
928         Reviewed by Andreas Kling.
929
930         [Qt] Add clipped version of QWebElement::render method.
931         Allows faster rendering of web element part.
932         https://bugs.webkit.org/show_bug.cgi?id=50311
933
934         * Api/qwebelement.cpp:
935         (QWebElement::render):
936         * Api/qwebelement.h:
937         * tests/qwebelement/tst_qwebelement.cpp:
938         (tst_QWebElement::render):
939
940 2011-02-28  Kristian Amlie  <kristian.amlie@nokia.com>
941
942         Reviewed by Andreas Kling.
943
944         Added full webkit module profile and a syncqt profile.
945
946         This is for modularized Qt.
947
948         [Qt] WebKit patches required to work with a modularized version of Qt
949         https://bugs.webkit.org/show_bug.cgi?id=53916
950
951         * qt_webkit_version.pri:
952
953 2011-02-27  Aparna Nandyal  <aparna.nand@wipro.com>
954
955         Reviewed by Antonio Gomes.
956
957         [Qt] QtTestBrowser - Horizontal scrollbar disappears on navigating pages using Back/Forward
958         https://bugs.webkit.org/show_bug.cgi?id=53917
959
960         Adding test case to check the scenario to avoid regressions in the
961         future. 
962
963         * tests/qwebframe/tst_qwebframe.cpp:
964
965 2011-02-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
966
967         Reviewed by Andreas Kling.
968
969         [Qt] Reference the documentation of the WebKit bridge from QWebFrame::addToJavaScriptWindowObject()
970         https://bugs.webkit.org/show_bug.cgi?id=55322
971
972         Documentation update, add a reference to the QtWebKit bridge page.
973
974         * Api/qwebframe.cpp:
975
976 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
977
978         Reviewed by Pavel Feldman.
979
980         DumpRenderTree should reset frame opener between tests.
981         https://bugs.webkit.org/show_bug.cgi?id=54874
982
983         Added clearOpener method to DumpRenderTreeSupportQT.
984
985         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
986         (DumpRenderTreeSupportQt::clearOpener):
987         * WebCoreSupport/DumpRenderTreeSupportQt.h:
988
989 2011-02-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
990
991         Reviewed by Andreas Kling.
992
993         Make it possible to test the targetdensity-dpi support
994         https://bugs.webkit.org/show_bug.cgi?id=55142
995
996         Test the viewport meta tag feature targetdensity-dpi by
997         adding extra arguments to dumpConfigurationForViewport
998
999         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1000         (DumpRenderTreeSupportQt::viewportAsText):
1001         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1002
1003 2011-02-26  Sheriff Bot  <webkit.review.bot@gmail.com>
1004
1005         Unreviewed, rolling out r79764.
1006         http://trac.webkit.org/changeset/79764
1007         https://bugs.webkit.org/show_bug.cgi?id=55295
1008
1009         "broke Chromium builds" (Requested by rniwa on #webkit).
1010
1011         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1012         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1013
1014 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
1015
1016         Reviewed by Pavel Feldman.
1017
1018         DumpRenderTree should reset frame opener between tests.
1019         https://bugs.webkit.org/show_bug.cgi?id=54874
1020
1021         Added clearOpener method to DumpRenderTreeSupportQT.
1022
1023         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1024         (DumpRenderTreeSupportQt::clearOpener):
1025         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1026
1027 2011-02-25  Andras Becsi  <abecsi@webkit.org>
1028
1029         Reviewed by Csaba Osztrogonác.
1030
1031         [Qt] Make the WebKit2 build system less confusing for non-Qt developers
1032         https://bugs.webkit.org/show_bug.cgi?id=55213
1033
1034         * QtWebKit.pro: Move the WebKit2 API into a project include file
1035         in the WebKit2 directory and include the pri file here.
1036
1037 2011-02-25  Alexis Menard  <alexis.menard@openbossa.org>
1038
1039         Unreviewed build fix for Intel ICC and MSVC.
1040
1041         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1042         (tst_QGraphicsWebView::setPalette):
1043         * tests/qwebview/tst_qwebview.cpp:
1044         (tst_QWebView::setPalette):
1045
1046 2011-02-25  Alexis Menard  <alexis.menard@openbossa.org>
1047
1048         Reviewed by Kenneth Rohde Christiansen.
1049
1050         [Qt] Properly propagate the palette to QWebPage from QGraphicsWebView
1051         https://bugs.webkit.org/show_bug.cgi?id=31742
1052
1053         Discovered while looking at 31742. When we set a palette on the
1054         QGraphicsWebView we need to propagate it to the page like QWebView.
1055         I have added the same tests as QWebView to be sure to catch potential
1056         regressions as well as two extras QVERIFY to check the palette propagation.
1057
1058         * Api/qgraphicswebview.cpp:
1059         (QGraphicsWebView::event):
1060         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1061         (tst_QGraphicsWebView::setPalette_data):
1062         (tst_QGraphicsWebView::setPalette):
1063
1064 2011-02-25  Csaba Osztrogonác  <ossy@webkit.org>
1065
1066         Unreviewed buildfix after r79672.
1067
1068         [Qt] Build tst_qdeclarativewebview if QT_CONFIG contains declarative.
1069
1070         * tests/tests.pri:
1071         * tests/tests.pro:
1072
1073 2011-02-25  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
1074
1075         Reviewed by Kenneth Rohde Christiansen.
1076
1077         [Qt] QML WebView inside a Flickable shows checkers pattern at startup
1078         https://bugs.webkit.org/show_bug.cgi?id=50222.
1079
1080         This patch fixes the checkerboard visible at startup even if preferredWidth and preferredHeight are not set.
1081
1082         * declarative/qdeclarativewebview.cpp:
1083         (QDeclarativeWebView::init):
1084         * tests/qdeclarativewebview: Added.
1085         * tests/qdeclarativewebview/qdeclarativewebview.pro: Added.
1086         * tests/qdeclarativewebview/resources: Added.
1087         * tests/qdeclarativewebview/resources/webviewtest.qml: Added.
1088         * tests/qdeclarativewebview/resources/webviewtestdefault.qml: Added.
1089         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: Added.
1090         (tst_QDeclarativeWebView::initTestCase):
1091         (tst_QDeclarativeWebView::cleanupTestCase):
1092         (tst_QDeclarativeWebView::init):
1093         (tst_QDeclarativeWebView::cleanup):
1094         (tst_QDeclarativeWebView::preferredWidthTest):
1095         (tst_QDeclarativeWebView::preferredHeightTest):
1096         (tst_QDeclarativeWebView::preferredWidthDefaultTest):
1097         (tst_QDeclarativeWebView::preferredHeightDefaultTest):
1098         (tst_QDeclarativeWebView::checkNoErrors):
1099         * tests/tests.pri:
1100         * tests/tests.pro:
1101
1102 2011-02-24  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1103
1104         Reviewed by Andreas Kling.
1105
1106         [Qt] Revert the support for QNAM affined to a different thread.
1107         https://bugs.webkit.org/show_bug.cgi?id=55149
1108
1109         Qt 4.8 will have QNAM use its own thread internally by default,
1110         no need to keep this complexity in WebKit.
1111
1112         This mainly reverts:
1113         http://trac.webkit.org/changeset/73710
1114         http://trac.webkit.org/changeset/73712
1115
1116         * WebCoreSupport/FrameLoaderClientQt.cpp:
1117         (WebCore::FrameLoaderClientQt::download):
1118         * tests/qwebpage/tst_qwebpage.cpp:
1119
1120 2011-02-24  Sam Weinig  <sam@webkit.org>
1121
1122         Try to fix the Qt build.
1123
1124         * QtWebKit.pro:
1125
1126 2011-02-24  Peter Kasting  <pkasting@google.com>
1127
1128         Reviewed by Eric Seidel.
1129
1130         Drop the "U; " encryption level from the User Agent string.
1131         https://bugs.webkit.org/show_bug.cgi?id=54566
1132
1133         * Api/qwebpage.cpp:
1134         (QWebPage::userAgentForUrl):
1135
1136 2011-02-24  Andrew Wilson  <atwilson@chromium.org>
1137
1138         Unreviewed, rolling out r79570.
1139         http://trac.webkit.org/changeset/79570
1140         https://bugs.webkit.org/show_bug.cgi?id=54874
1141
1142         Breaks chromium build because glue/mocks/mock_web_frame.h/cc
1143         was not updated
1144
1145         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1146         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1147
1148 2011-02-24  Vsevolod Vlasov  <vsevik@chromium.org>
1149
1150         Reviewed by Alexey Proskuryakov.
1151
1152         DumpRenderTree should reset frame opener between tests.
1153         https://bugs.webkit.org/show_bug.cgi?id=54874
1154
1155         Added clearOpener method to DumpRenderTreeSupportQT.
1156
1157         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1158         (DumpRenderTreeSupportQt::clearOpener):
1159         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1160
1161 2011-02-24  Alexis Menard  <alexis.menard@openbossa.org>
1162
1163         Reviewed by Andreas Kling.
1164
1165         [Qt] tst_QWebView::setPalette(activeFG) fails
1166         https://bugs.webkit.org/show_bug.cgi?id=55029
1167
1168         This time it should be the proper fix. The window needs to be shown before we
1169         call activateWindow() otherwise there is no active windows for the application.
1170
1171         * tests/qwebview/tst_qwebview.cpp:
1172         (tst_QWebView::setPalette):
1173
1174 2011-02-24  Andras Becsi  <abecsi@webkit.org>
1175
1176         Reviewed by Laszlo Gombos.
1177
1178         [Qt] MinGW build fails to link
1179         https://bugs.webkit.org/show_bug.cgi?id=55050
1180
1181         Prepend the libraries of subcomponents instead of appending them
1182         to fix the library order according to the dependency of the libraries
1183
1184         * QtWebKit.pro: prepend libraries in the correct order
1185
1186 2011-02-23  Alexis Menard  <alexis.menard@openbossa.org>
1187
1188         Reviewed by Ariya Hidayat.
1189
1190         [Qt] tst_QWebView::setPalette(activeFG) fails
1191         https://bugs.webkit.org/show_bug.cgi?id=55029
1192
1193         Attempt to make the test more robust. By investigating with the bot virtual machine
1194         I discovered that the activation can take some time. In this patch we make sure that
1195         the active window we want to have is the same as the QApplication.
1196
1197         * tests/qwebview/tst_qwebview.cpp:
1198         (tst_QWebView::setPalette):
1199
1200 2011-02-23  Alexis Menard  <alexis.menard@openbossa.org>
1201
1202         Reviewed by Dan Bernstein.
1203
1204         [Qt]REGRESSION(r79167): It broke 3 Qt-API test cases
1205         http://trac.webkit.org/changeset/79167 refactored the way the bound size of
1206         the frame is handled. A new API setBoundsSize was added, we need to call it
1207         in addition to setFrameRect. I could call setBoundSize after setFrameRect but
1208         I thought It would be more elegant to use the resize method.
1209
1210         * Api/qwebpage.cpp:
1211         (QWebPage::setViewportSize):
1212
1213 2011-02-22  Fabrizio Machado  <fabrizio.machado@nokia.com>
1214
1215         Reviewed by Laszlo Gombos.
1216
1217         [Qt] Don't fall through case in variantToSetting() if qvariant.type() is Bool
1218         https://bugs.webkit.org/show_bug.cgi?id=54976
1219
1220         Test not needed.
1221         
1222         * WebCoreSupport/InspectorClientQt.cpp:
1223
1224 2011-02-22  Alexis Menard  <alexis.menard@openbossa.org>
1225
1226         Reviewed by Andreas Kling.
1227
1228         [Qt] QWebView ignores a palette set with QWebView::setPalette()
1229         https://bugs.webkit.org/show_bug.cgi?id=31742
1230
1231         Test case to check that the palette sets on the QWebView is taken
1232         into account.
1233
1234         * tests/qwebview/tst_qwebview.cpp:
1235         (tst_QWebView::setPalette_data):
1236         (tst_QWebView::setPalette):
1237
1238 2011-02-22  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1239
1240         Reviewed by Alexey Proskuryakov.
1241
1242         Drop the language tag part from the User Agent string
1243         https://bugs.webkit.org/show_bug.cgi?id=54560
1244
1245         * Api/qwebpage.cpp:
1246         (QWebPage::userAgentForUrl):
1247
1248         * tests/qwebpage/tst_qwebpage.cpp: Remove the userAgentLocaleChange
1249         test.
1250
1251 2011-02-22  Chang Shu  <cshu@webkit.org>
1252
1253         Reviewed by Csaba Osztrogonác.
1254
1255         [Qt] editing/deleting/5408255.html fails
1256         https://bugs.webkit.org/show_bug.cgi?id=54964
1257
1258         Move WebCore resource file to QtWebKit since they are referred in WebKit.
1259
1260         * QtWebKit.pro:
1261
1262 2011-02-22  Andras Becsi  <abecsi@webkit.org>
1263
1264         Reviewed by Csaba Osztrogonác.
1265
1266         [Qt] Redesign the build system
1267         https://bugs.webkit.org/show_bug.cgi?id=51339
1268
1269         Move inspector's resource files into the final build step to fix the layout test regression.
1270
1271         * QtWebKit.pro: Add inspector's reaource files.
1272
1273 2011-02-22  Andras Becsi  <abecsi@webkit.org>
1274
1275         Reviewed by Laszlo Gombos.
1276         Rubber-stamped by Csaba Osztrogonác.
1277
1278         [Qt] Redesign the build system
1279         https://bugs.webkit.org/show_bug.cgi?id=51339
1280
1281         The patch landed in r79320 didn't contain the cleanup
1282         which was already addressed in the last attachment.
1283
1284         * QtWebKit.pro: Move common LIB and CONFIG options to WebCore.pri.
1285
1286 2011-02-22  Andras Becsi  <abecsi@webkit.org>
1287
1288         Reviewed by Laszlo Gombos.
1289
1290         [Qt] Redesign the build system
1291         https://bugs.webkit.org/show_bug.cgi?id=51339
1292
1293         Part 2.
1294
1295         Build WebCore as a static library, compile the WebKit API and WebKit2 API
1296         in a final step and link to WebKit2, WebCore and JSC libraries to fix
1297         linking issues resulting from stripped away symbols.
1298
1299         * QtWebKit.pro: Added.
1300         Project file for the final build step.
1301
1302 2011-02-17  Ryosuke Niwa  <rniwa@webkit.org>
1303
1304         Reviewed by Kent Tamura.
1305
1306         Rename Position::node() to Position::deprecatedNode()
1307         https://bugs.webkit.org/show_bug.cgi?id=54622
1308
1309         Replaced the call to node() by a call to containerNode() because the returned node is
1310         used to determine whether or not the selected contents are editable and such a check
1311         must be done against the container node.
1312
1313         * WebCoreSupport/EditorClientQt.cpp:
1314         (WebCore::EditorClientQt::handleKeyboardEvent):
1315
1316 2011-02-19  Charlie Reis  <creis@chromium.org>
1317
1318         Reviewed by Mihai Parparita.
1319
1320         Ensure loading has stopped in HistoryController::goToItem
1321         https://bugs.webkit.org/show_bug.cgi?id=54517
1322
1323         Add a FrameLoaderClient callback for whether to stop loading before goToItem.
1324
1325         Test: http/tests/navigation/forward-to-fragment-fires-onload.html
1326
1327         * WebCoreSupport/FrameLoaderClientQt.cpp:
1328         (WebCore::FrameLoaderClientQt::shouldStopLoadingForHistoryItem): Added.
1329         * WebCoreSupport/FrameLoaderClientQt.h:
1330
1331 2011-02-18  Fabrizio Machado  <fabrizio.machado@nokia.com>
1332
1333         Reviewed by Eric Seidel.
1334
1335         Remove reduntant checks.
1336         https://bugs.webkit.org/show_bug.cgi?id=54764
1337         
1338
1339         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1340         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
1341         * WebCoreSupport/NotificationPresenterClientQt.cpp:
1342         (WebCore::NotificationPresenterClientQt::toPage):
1343
1344 2011-02-18  Csaba Osztrogonác  <ossy@webkit.org>
1345
1346         Unreviewed.
1347
1348         [Qt] Buildfix for platforms with geolocation disabled.
1349
1350         * Api/qwebpage.cpp: Add the missing guard.
1351
1352 2011-02-18  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
1353
1354         Reviewed by Kenneth Rohde Christiansen.
1355
1356         [Qt] Implement client based geolocation for qtport
1357         https://bugs.webkit.org/show_bug.cgi?id=42629
1358
1359         Implements client based geolocation for qtwebkit.
1360         New client based geolocation contains permission API's as well,
1361         so removed the implementation from ChromeClientQt.cpp. 
1362
1363         * Api/qwebpage.cpp:
1364         (QWebPagePrivate::QWebPagePrivate):
1365         * WebCoreSupport/ChromeClientQt.cpp:
1366         * WebCoreSupport/ChromeClientQt.h:
1367         (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
1368         (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
1369         * WebCoreSupport/GeolocationClientQt.cpp: Added.
1370         (WebCore::GeolocationClientQt::GeolocationClientQt):
1371         (WebCore::GeolocationClientQt::~GeolocationClientQt):
1372         (WebCore::GeolocationClientQt::geolocationDestroyed):
1373         (WebCore::GeolocationClientQt::positionUpdated):
1374         (WebCore::GeolocationClientQt::startUpdating):
1375         (WebCore::GeolocationClientQt::stopUpdating):
1376         (WebCore::GeolocationClientQt::setEnableHighAccuracy):
1377         (WebCore::GeolocationClientQt::requestPermission):
1378         (WebCore::GeolocationClientQt::cancelPermissionRequest):
1379         * WebCoreSupport/GeolocationClientQt.h: Added.
1380         (WebCore::GeolocationClientQt::lastPosition):
1381
1382 2011-02-10  Luiz Agostini  <luiz.agostini@openbossa.org>
1383
1384         Reviewed by Adam Roben.
1385
1386         HTML5 <details> and <summary>: localized text
1387         https://bugs.webkit.org/show_bug.cgi?id=54260
1388
1389         The method defaultDetailsSummaryText was added to LocalizationStrategy class. It is used to
1390         provide the default label to be used by a <details> tag that has no <summary> child.
1391
1392         * WebCoreSupport/WebPlatformStrategies.cpp:
1393         (WebPlatformStrategies::defaultDetailsSummaryText):
1394         * WebCoreSupport/WebPlatformStrategies.h:
1395
1396 2011-02-17  Hui Huang  <hui.2.huang@nokia.com>
1397
1398         Reviewed by Laszlo Gombos.
1399
1400         The URL of HTML5 Video Element is percent encoded at websites such as youtube.
1401         It is percent encoded again by QUrl constructor QUrl::QUrl(QString). This causes
1402         the HTTP GET request for the video to be rejected by the service provider. 
1403         https://bugs.webkit.org/show_bug.cgi?id=53973.
1404
1405         The bug is fixed by constructing QUrl from the encoded URL in 
1406         MediaPlayerPrivateQt::commitLoad. 
1407
1408         New test function tst_QWebPage::loadHtml5Video() is added to load HTML content with
1409         HTML5 Video element. A new public method DumpRenderTreeSupportQt::mediaContentUrlByElementId
1410         is added to retrieve the URL of the media content from WebCore MediaPlayerPrivateQt.
1411         A new macro ENABLE_QT_MULTIMEDIA is introduced in tests.pri to make sure that the test
1412         is skipped if Qt Multimedia is not available.
1413
1414         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1415         (DumpRenderTreeSupportQt::mediaContentUrlByElementId):
1416         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1417         * tests/qwebpage/tst_qwebpage.cpp:
1418         (tst_QWebPage::loadHtml5Video):
1419         * tests/tests.pri:
1420
1421 2011-02-17  Andreas Kling  <kling@webkit.org>
1422
1423         Reviewed by Antti Koivisto.
1424
1425         [Qt] Crash when calling QWebFrame::setUrl() while a previous load has pending requests
1426         https://bugs.webkit.org/show_bug.cgi?id=49216
1427
1428         * tests/qwebframe/tst_qwebframe.cpp:
1429
1430 == Rolled over to ChangeLog-2011-02-16 ==