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