tizen beta release
[profile/ivi/webkit-efl.git] / Source / WebKit / qt / ChangeLog
1 2011-11-30  Simon Hausmann  <simon.hausmann@nokia.com>
2
3         [Qt] Fix crash when using Qt DRT with V8.
4
5         Reviewed by Csaba Osztrogonác.
6
7         Add missing handle scopes for the handles returned by mainWorldContext.
8
9         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
10         (DumpRenderTreeSupportQt::injectInternalsObject):
11         (DumpRenderTreeSupportQt::resetInternalsObject):
12
13 2011-11-30  Simon Hausmann  <simon.hausmann@nokia.com>
14
15         [Qt] Fix crashing layout tests
16
17         Reviewed by Kenneth Rohde Christiansen.
18
19         Fix ASSERTION FAILED: m_key != PTHREAD_KEYS_MAX in ThreadIdentifierDataPthreads.cpp(65)
20         static WTF::ThreadIdentifier WTF::ThreadIdentifierData::identifier()
21
22         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
23         (DumpRenderTreeSupportQt::initialize): Add missing WebCore::initializeWebCoreQt().
24
25 2011-11-30  Andrew Wason  <rectalogic@rectalogic.com>
26
27         Replace Qt QThread threading back-end with pthread/Win32 threading back-ends
28         https://bugs.webkit.org/show_bug.cgi?id=72155
29
30         Reviewed by Simon Hausmann.
31
32         Extract WebCore initialization out of QWebPagePrivate into a
33         separate initialization function. This also needs to be called
34         from public static QWebSettings methods that call into WebCore,
35         since those can be used before a QWebPage has been constructed.
36
37         * Api/qwebpage.cpp:
38         (QWebPagePrivate::QWebPagePrivate):
39         * Api/qwebsettings.cpp:
40         (QWebSettings::globalSettings):
41         (QWebSettings::setIconDatabasePath):
42         (QWebSettings::iconDatabasePath):
43         (QWebSettings::clearIconDatabase):
44         (QWebSettings::iconForUrl):
45         (QWebSettings::setWebGraphic):
46         (QWebSettings::webGraphic):
47         (QWebSettings::clearMemoryCaches):
48         (QWebSettings::maximumPagesInCache):
49         (QWebSettings::setObjectCacheCapacities):
50         (QWebSettings::setOfflineStoragePath):
51         (QWebSettings::offlineStoragePath):
52         (QWebSettings::setOfflineWebApplicationCachePath):
53         (QWebSettings::offlineWebApplicationCachePath):
54         (QWebSettings::setOfflineWebApplicationCacheQuota):
55         (QWebSettings::offlineWebApplicationCacheQuota):
56         (QWebSettings::enablePersistentStorage):
57         * WebCoreSupport/InitWebCoreQt.cpp: Added.
58         (WebCore::initializeWebCoreQt):
59         * WebCoreSupport/InitWebCoreQt.h: Added.
60
61 2011-11-30  Adenilson Cavalcanti  <adenilson.silva@openbossa.org>
62
63         [Qt][WK2] Implement permission API for Qt port
64         https://bugs.webkit.org/show_bug.cgi?id=59200
65
66         Permission API hookup for Geolocation, it allows to receive in WebView
67         a signal when a permission request is done (e.g. to grant permission
68         for accessing geolocation information) and set it accordingly.
69
70         Reviewed by Simon Hausmann.
71
72         * declarative/plugin.cpp:
73         (WebKitQmlPlugin::registerTypes):
74
75 2011-11-29  Simon Hausmann  <simon.hausmann@nokia.com>
76
77         [Qt] Make WebKit/qt build with V8 and Qt 5
78         https://bugs.webkit.org/show_bug.cgi?id=73315
79
80         Reviewed by Kenneth Rohde Christiansen.
81
82         * Api/qwebelement.cpp:
83         (QtWebElementRuntime::initialize): #ifdef JSC code
84         properly. There's no V8 equivalent just yet.
85         * Api/qwebelement.h: Get rid of old V8 cruft.
86         * Api/qwebframe.cpp:
87         (QWebFrame::addToJavaScriptWindowObject): QScriptEngine -> QJSEngine.
88         (QWebFrame::evaluateJavaScript): Ditto.
89         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
90         (QtDRTNodeRuntime::initialize): #ifdef JSC code.
91         * WebCoreSupport/FrameLoaderClientQt.cpp:
92         (WebCore::FrameLoaderClientQt::didCreateScriptContext): Adapt to FrameLoaderClient
93         V8 API changes that happened long time ago.
94         (WebCore::FrameLoaderClientQt::willReleaseScriptContext): Ditto.
95         * WebCoreSupport/FrameLoaderClientQt.h: Ditto.
96         * WebCoreSupport/InspectorClientQt.cpp: Add missing include for V8 build.
97
98 2011-11-28  Jon Lee  <jonlee@apple.com>
99
100         Create skeleton framework for notifications support in WK2
101         https://bugs.webkit.org/show_bug.cgi?id=73253
102         <rdar://problem/10356943>
103
104         Reviewed by Sam Weinig.
105
106         * Api/qwebpage.cpp: Add notification client to pageClients.
107         (QWebPagePrivate::QWebPagePrivate):
108         * WebCoreSupport/ChromeClientQt.cpp: Remove notification client from ChromeClient implementation.
109         * WebCoreSupport/ChromeClientQt.h:
110         * WebCoreSupport/NotificationPresenterClientQt.cpp: Refactor with change of NotificationContents to struct
111         (WebCore::NotificationWrapper::title):
112         (WebCore::NotificationWrapper::message):
113         (WebCore::NotificationPresenterClientQt::displayNotification):
114         (WebCore::NotificationPresenterClientQt::cancel):
115         (WebCore::NotificationPresenterClientQt::notificationClicked):
116         (WebCore::NotificationPresenterClientQt::dumpReplacedIdText):
117         (WebCore::NotificationPresenterClientQt::dumpShowText):
118
119 2011-11-28  Simon Hausmann  <simon.hausmann@nokia.com>
120
121         [Qt] Build system fixes against V8.
122
123         Reviewed by Tor Arne Vestbø.
124
125         Add forwarding headers for building against Qt's v8 with
126         v8 include style.
127
128         * v8/ForwardingHeaders/v8-debug.h: Added.
129         * v8/ForwardingHeaders/v8-preparser.h: Added.
130         * v8/ForwardingHeaders/v8-profiler.h: Added.
131         * v8/ForwardingHeaders/v8-testing.h: Added.
132         * v8/ForwardingHeaders/v8.h: Added.
133         * v8/ForwardingHeaders/v8stdint.h: Added.
134
135 2011-11-26  Pavel Feldman  <pfeldman@google.com>
136
137         Web Inspector: remove disconnectFromBackend from the protocol.
138         https://bugs.webkit.org/show_bug.cgi?id=73127
139
140         Reviewed by Yury Semikhatsky.
141
142         * WebCoreSupport/InspectorClientQt.cpp:
143         (WebCore::InspectorClientQt::inspectorDestroyed):
144         (WebCore::InspectorClientQt::closeInspectorFrontend):
145         (WebCore::InspectorFrontendClientQt::inspectorClientDestroyed):
146         * WebCoreSupport/InspectorClientQt.h:
147
148 2011-11-26  Sheriff Bot  <webkit.review.bot@gmail.com>
149
150         Unreviewed, rolling out r101193.
151         http://trac.webkit.org/changeset/101193
152         https://bugs.webkit.org/show_bug.cgi?id=73158
153
154         Breaks Windows and Qt minimal. (Requested by pfeldman on
155         #webkit).
156
157         * WebCoreSupport/InspectorClientQt.cpp:
158         (WebCore::InspectorClientQt::inspectorDestroyed):
159         (WebCore::InspectorFrontendClientQt::disconnectFromBackend):
160         (WebCore::InspectorFrontendClientQt::inspectorClientDestroyed):
161         * WebCoreSupport/InspectorClientQt.h:
162
163 2011-11-26  Pavel Feldman  <pfeldman@google.com>
164
165         Web Inspector: remove disconnectFromBackend from the protocol.
166         https://bugs.webkit.org/show_bug.cgi?id=73127
167
168         Reviewed by Yury Semikhatsky.
169
170         * WebCoreSupport/InspectorClientQt.cpp:
171         (WebCore::InspectorClientQt::inspectorDestroyed):
172         (WebCore::InspectorClientQt::closeInspectorFrontend):
173         (WebCore::InspectorFrontendClientQt::inspectorClientDestroyed):
174         * WebCoreSupport/InspectorClientQt.h:
175
176 2011-11-25  Alexis Menard  <alexis.menard@openbossa.org>
177
178         [Qt][WK2] QWebDownloadItem should be registered in the experimental plugin.
179         https://bugs.webkit.org/show_bug.cgi?id=73132
180
181         Reviewed by Simon Hausmann.
182
183         Make sure QWebDownloadItem is registered in the right plugin.
184
185         * declarative/experimental/plugin.cpp:
186         * declarative/plugin.cpp:
187         (WebKitQmlPlugin::registerTypes):
188
189 2011-11-22  Pavel Feldman  <pfeldman@google.com>
190
191         Web Inspector: remove Inspector::bringToFront from the protocol.
192         https://bugs.webkit.org/show_bug.cgi?id=72937
193
194         Reviewed by Yury Semikhatsky.
195
196         * WebCoreSupport/InspectorClientQt.cpp:
197         (WebCore::InspectorClientQt::bringFrontendToFront):
198         * WebCoreSupport/InspectorClientQt.h:
199
200 2011-10-17  Antonio Gomes  <agomes@rim.com>
201
202         Pass a Frame* parameter in EditorClient::respondToChangedSelection
203         https://bugs.webkit.org/show_bug.cgi?id=70248
204
205         Reviewed by Ryosuke Niwa.
206
207         * WebCoreSupport/EditorClientQt.cpp: Make use of the newly added Frame* parameter.
208         (WebCore::EditorClientQt::respondToChangedSelection):
209         * WebCoreSupport/EditorClientQt.h:
210
211 2011-11-18  Yuta Kitamura  <yutak@chromium.org>
212
213         [Qt] Enable WebSocket hybi tests
214         https://bugs.webkit.org/show_bug.cgi?id=72687
215
216         Reviewed by Simon Hausmann.
217
218         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
219         (DumpRenderTreeSupportQt::defaultHixie76WebSocketProtocolEnabled):
220         (DumpRenderTreeSupportQt::setHixie76WebSocketProtocolEnabled):
221         Call WebCore::Settings::setUseHixie76WebSocketProtocol() to switch WebSocket protocols.
222         * WebCoreSupport/DumpRenderTreeSupportQt.h:
223
224 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
225
226         [Qt] Layer violation: ThirdPartyCookiesQt.cpp uses QWebSettings in two places
227         https://bugs.webkit.org/show_bug.cgi?id=72597
228
229         Reviewed by Kenneth Rohde Christiansen.
230
231         Implemented NetworkingContext::thirdPartyCookiePolicyPermission, which queries
232         the global QWebSettings.
233
234         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
235         (DumpRenderTreeSupportQt::thirdPartyCookiePolicyAllows): Adapt to the
236         changed thirdPartyCookiePolicyPermits WebCore API that operates on a networking context.
237         * WebCoreSupport/DumpRenderTreeSupportQt.h:
238         * WebCoreSupport/FrameLoaderClientQt.cpp:
239         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): Pass networking
240         context to ResourceRequest::toNetworkRequest.
241         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): Ditto.
242         (WebCore::FrameLoaderClientQt::startDownload): Ditto.
243         * WebCoreSupport/FrameNetworkingContextQt.cpp:
244         (WebCore::FrameNetworkingContextQt::thirdPartyCookiePolicyPermission): Implement.
245         * WebCoreSupport/FrameNetworkingContextQt.h:
246         * tests/qwebpage/tst_qwebpage.cpp:
247         (tst_QWebPage::thirdPartyCookiePolicy): Adapt to QtDRTSupport API change.
248
249 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
250
251         [Qt] Layer violation: qt_runtime.cpp accesses QWebElement and QTDRTNode
252         https://bugs.webkit.org/show_bug.cgi?id=72595
253
254         Reviewed by Noam Rosenthal.
255
256         Move QWebElement and QtDRTNode JS bindings from WebCore to WebKit/qt.
257
258         * Api/qwebelement.cpp: Add QWebElement to JSValue and JSValue to QWebElement
259         conversion through intermediate QVariant.
260         (QtWebElementRuntime::create):
261         (QtWebElementRuntime::get):
262         (convertJSValueToWebElementVariant):
263         (convertWebElementVariantToJSValue):
264         (QtWebElementRuntime::initialize): Register conversion functions for QWebElement.
265         * Api/qwebelement.h:
266         * Api/qwebelement_p.h: Added.
267         * Api/qwebpage.cpp:
268         (QWebPagePrivate::QWebPagePrivate): Initialize QWebElement conversion functions for
269         the JS runtime.
270         * WebCoreSupport/DumpRenderTreeSupportQt.cpp: Add QtDRTNode to JSValue and JSValue to
271         QtDRTNode conversion through intermediate QVariant.
272         (QtDRTNodeRuntime::create):
273         (QtDRTNodeRuntime::get):
274         (convertJSValueToNodeVariant):
275         (convertNodeVariantToJSValue):
276         (QtDRTNodeRuntime::initialize):
277         (DumpRenderTreeSupportQt::initialize): Register conversion functions for QtDRTNode.
278         * WebCoreSupport/DumpRenderTreeSupportQt.h:
279
280 2011-11-17  Alexis Menard  <alexis.menard@openbossa.org>
281
282         [Qt] The experimental plugin doesn't work after being renamed.
283
284         Reviewed by Tor Arne Vestbø.
285
286         It was renamed from private to experimental but the qmldir file
287         was forgotten.
288
289         * declarative/experimental/qmldir:
290
291 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
292
293         [Qt] Layer violation: WebCore::dnsPrefetch uses QWebSettings::globalSettings()
294         https://bugs.webkit.org/show_bug.cgi?id=72596
295
296         Reviewed by Kenneth Rohde Christiansen.
297
298         * Api/qwebsettings.cpp:
299         (QWebSettingsPrivate::apply): Propagate the DNS prefetch setting to WebCore::Settings.
300
301 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
302
303         [Qt] Layer violation: Image::loadPlatformResource uses QWebSettings::webGraphic
304         https://bugs.webkit.org/show_bug.cgi?id=72594
305
306         Reviewed by Kenneth Rohde Christiansen.
307
308         Move resource pixmap cache into ImageQt.cpp.
309
310         * Api/qwebsettings.cpp:
311         (resourceNameForWebGraphic): Helper function to translate between public API enums and
312         resource names.
313         (QWebSettings::setWebGraphic): Call the new ImageQt::setPlatformResource setter.
314         (QWebSettings::webGraphic): Call Image::loadPlatformResource to read from the cache
315         in WebCore.
316
317 2011-11-17  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
318
319         [Qt] Move WebKit2 C++ APIs to private API and build QML extension plugin on top of that
320
321         A new extension object has been added to QQuickWebView (the same approach should be used
322         for other API classes that need experimental APIs). The QML extension mechanism is then
323         built on top of the experimental object.
324
325         https://bugs.webkit.org/show_bug.cgi?id=72522
326
327         Reviewed by Simon Hausmann.
328
329         * declarative/declarative.pro:
330         * declarative/experimental/experimental.pri: Renamed from Source/WebKit/qt/declarative/private/private.pro.
331         * declarative/experimental/plugin.cpp: Renamed from Source/WebKit/qt/declarative/private/plugin.cpp.
332         (QQuickWebViewExperimentalExtension::QQuickWebViewExperimentalExtension):
333         (QQuickWebViewExperimentalExtension::experimental):
334         * declarative/experimental/qmldir: Renamed from Source/WebKit/qt/declarative/private/qmldir.
335         * declarative/plugin.cpp:
336         * declarative/public.pri: Copied from Source/WebKit/qt/declarative/declarative.pro.
337
338 2011-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
339
340         Unreviewed, rolling out r100448.
341         http://trac.webkit.org/changeset/100448
342         https://bugs.webkit.org/show_bug.cgi?id=72512
343
344         It caused a regression breaking LayoutTests/http/tests/loading
345         /text-content-type-with-binary-extension.html (Requested by
346         jeez_ on #webkit).
347
348         * WebCoreSupport/FrameLoaderClientQt.cpp:
349         (WebCore::FrameLoaderClientQt::canShowMIMEType):
350
351 2011-11-16  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
352
353         [Qt] FrameLoaderClientQt::canShowMIMEType should always return true
354         https://bugs.webkit.org/show_bug.cgi?id=72169
355
356         Reviewed by Simon Hausmann.
357
358         Currently FrameLoaderClientQt::canShowMIMEType is called after
359         dispatchDecidePolicyForResponse. If decidePolicyForResponse returns
360         PolicyUse and canShowMIMEType returns false, then we have a bug.
361         Therefore, FrameLoaderClientQt::canShowMIMEType now will always
362         return true, following the implemenation of WebKit2.
363
364         * WebCoreSupport/FrameLoaderClientQt.cpp:
365         (WebCore::FrameLoaderClientQt::canShowMIMEType):
366
367 2011-11-15  Huang Dongsung  <luxtella@company100.net>
368
369         [TexMap][Qt] Start PageClientQ[Graphics]Widget::syncTimer only when the syncTimer
370         is inactive.
371         https://bugs.webkit.org/show_bug.cgi?id=70407
372
373         Make sure we only activate the synchronization timer in
374         PageClientQWidget/PageClientQGraphicsWidget if it's not already active,
375         otherwise syncLayers may be called redundantly.
376
377         Reviewed by Noam Rosenthal.
378
379         * WebCoreSupport/PageClientQt.cpp:
380         (WebCore::PageClientQWidget::markForSync):
381         (WebCore::PageClientQWidget::syncLayers):
382         (WebCore::PageClientQGraphicsWidget::syncLayers):
383         (WebCore::PageClientQGraphicsWidget::markForSync):
384         * WebCoreSupport/PageClientQt.h:
385         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
386
387 2011-11-15  Jochen Eisinger  <jochen@chromium.org>
388
389         Rename ReferrerPolicy to clarify its meaning
390         https://bugs.webkit.org/show_bug.cgi?id=72420
391
392         Reviewed by Nate Chapin.
393
394         * Api/qwebpage.cpp:
395         (openNewWindow):
396         (QWebPage::triggerAction):
397
398 2011-11-15  Anders Carlsson  <andersca@apple.com>
399
400         HostWindow screenToWindow/windowToScreen should be screenToRootView/rootViewToScreen
401         https://bugs.webkit.org/show_bug.cgi?id=72397
402
403         Reviewed by Dan Bernstein.
404
405         * WebCoreSupport/ChromeClientQt.cpp:
406         (WebCore::ChromeClientQt::rootViewToScreen):
407         (WebCore::ChromeClientQt::screenToRootView):
408         * WebCoreSupport/ChromeClientQt.h:
409
410 2011-11-14  Anders Carlsson  <andersca@apple.com>
411
412         HostWindow invalidation functions should use root view coordinates
413         https://bugs.webkit.org/show_bug.cgi?id=72338
414
415         Reviewed by Dan Bernstein.
416
417         * WebCoreSupport/ChromeClientQt.cpp:
418         (WebCore::ChromeClientQt::invalidateRootView):
419         (WebCore::ChromeClientQt::invalidateContentsAndRootView):
420         (WebCore::ChromeClientQt::invalidateContentsForSlowScroll):
421         * WebCoreSupport/ChromeClientQt.h:
422
423 2011-11-11  Pierre Rossi  <pierre.rossi@gmail.com>
424
425         [Qt] Remove the QStyle dependency in Qt's mobile theme
426         https://bugs.webkit.org/show_bug.cgi?id=67773
427
428         This refactoring splits up RenderThemeQt with two
429         subclasses, a QStyle-backed one, and a Mobile version
430         that uses the old mobile theme for now.
431
432         QStyle availability is detected at compile time, and
433         its use is determined by the QT_WEBKIT_USE_MOBILE_THEME
434         environment variable.
435
436         Reviewed by Simon Hausmann.
437
438         * Api/qwebpage.cpp:
439         (QWebPage::swallowContextMenuEvent):
440         * tests/tests.pri:
441
442 2011-11-11  Luiz Agostini  <luiz.agostini@palm.com>
443
444         [Qt] Removing unneeded #ifdef from PopupMenuQt.cpp
445         https://bugs.webkit.org/show_bug.cgi?id=72193
446
447         Reviewed by Noam Rosenthal.
448
449         Part of PopupMenuQt.cpp code is guarded by #ifndef QT_NO_COMBOBOX although that
450         code is not related to the class QComboBox.
451
452         * WebCoreSupport/PopupMenuQt.cpp:
453         (WebCore::PopupMenuQt::show):
454
455 2011-11-11  Bruno de Oliveira Abinader  <bruno.abinader@basyskom.com>
456
457         [Qt] Skip tests when no network is present
458         https://bugs.webkit.org/show_bug.cgi?id=72031
459
460         Reviewed by Simon Hausmann.
461
462         Some benchmark tests requires network connection (they fetch data from
463         external URL's) and so they fail if no network is present. These tests
464         should be skipped instead.
465
466         * tests/benchmarks/loading/tst_loading.cpp:
467         (tst_Loading::load): Skip test if no network is present.
468         * tests/benchmarks/painting/tst_painting.cpp:
469         (tst_Painting::paint): Skip test if no network is present.
470
471 2011-11-11  Sheriff Bot  <webkit.review.bot@gmail.com>
472
473         Unreviewed, rolling out r99964.
474         http://trac.webkit.org/changeset/99964
475         https://bugs.webkit.org/show_bug.cgi?id=72124
476
477         Broke too many Qt tests (Requested by tronical_ on #webkit).
478
479         * Api/qwebpage.cpp:
480         (QWebPage::swallowContextMenuEvent):
481         * tests/tests.pri:
482
483 2011-11-11  Pierre Rossi  <pierre.rossi@gmail.com>
484
485         [Qt] Remove the QStyle dependency in Qt's mobile theme
486         https://bugs.webkit.org/show_bug.cgi?id=67773
487
488         This refactoring splits up RenderThemeQt with two
489         subclasses, a QStyle-backed one, and a Mobile version
490         that uses the old mobile theme for now.
491
492         QStyle availability is detected at compile time, and
493         its use is determined by the QT_WEBKIT_USE_MOBILE_THEME
494         environment variable.
495
496         Reviewed by Simon Hausmann.
497
498         * Api/qwebpage.cpp:
499         (QWebPage::swallowContextMenuEvent):
500         * tests/tests.pri:
501
502 2011-11-11  Alexis Menard  <alexis.menard@openbossa.org>
503
504         [Qt] Add a way to have experimental features in WebKit2
505         https://bugs.webkit.org/show_bug.cgi?id=67707
506
507         Reviewed by Kenneth Rohde Christiansen.
508
509         This patch is adding a new module for accessing private
510         method and property from the view. It requires an import
511         QtWebKit.private in QML to be used.
512
513         * declarative/private/plugin.cpp: Added.
514         (WebKitQmlPluginPrivate::registerTypes):
515         * declarative/private/private.pro: Added.
516         * declarative/private/qmldir: Added.
517
518 2011-11-11  Simon Hausmann  <simon.hausmann@nokia.com>
519
520         [Qt][WK2] Remove QWebNavigationController
521         https://bugs.webkit.org/show_bug.cgi?id=72113
522
523         Reviewed by Andreas Kling.
524
525         * declarative/plugin.cpp:
526         (WebKitQmlPlugin::registerTypes): Don't register QWebNavigationController with qml.
527
528 2011-11-03  Luiz Agostini  <luiz.agostini@palm.com>
529
530         [Qt] Adding methods setGeometry and setFont to QWebSelectMethod class.
531         https://bugs.webkit.org/show_bug.cgi?id=71530
532
533         Reviewed by Simon Hausmann.
534
535         Adding methods setGeometry and setFont so that users of platform plugin may show the
536         popup menus in proper position and using proper font.
537
538         * Api/qwebkitplatformplugin.h:
539         * WebCoreSupport/PopupMenuQt.cpp:
540         (WebCore::PopupMenuQt::show):
541         * examples/platformplugin/WebPlugin.h:
542         (WebPopup::setGeometry):
543         (WebPopup::setFont):
544         * examples/platformplugin/qwebkitplatformplugin.h:
545
546 2011-11-10  Alexis Menard  <alexis.menard@openbossa.org>
547
548         [Qt] Merge QTouchWebView and QDesktopWebView into one class
549         https://bugs.webkit.org/show_bug.cgi?id=71355
550
551         Reviewed by Kenneth Rohde Christiansen.
552
553         Register only QQuickWebView and QQuickWebPage in the plugin.
554
555         * declarative/plugin.cpp:
556         (WebKitQmlPlugin::registerTypes):
557
558 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
559
560         [Qt] Enable exports and constructor functions in static libs
561
562         Reviewed by Tor Arne Vestbø.
563
564         * Api/qwebpage.cpp:
565         (QWebPagePrivate::QWebPagePrivate): Remove unnecessary manual Qt resource
566         initialization.
567
568 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
569
570         Unreviewed, rolling out r99701.
571         http://trac.webkit.org/changeset/99701
572
573         Breaks Qt mac build
574
575         * Api/qwebpage.cpp:
576         (initResources):
577         (QWebPagePrivate::QWebPagePrivate):
578
579 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
580
581         [Qt] Enable exports and constructor functions in static libs
582
583         Reviewed by Tor Arne Vestbø.
584
585         * Api/qwebpage.cpp:
586         (QWebPagePrivate::QWebPagePrivate): Remove unnecessary manual Qt resource
587         initialization.
588
589 2011-11-09  Deepak Sherveghar  <bpwv64@motorola.com>
590
591         [Qt] 4 Layout test fail due to network error constant values clash with WebkitError enum values in FrameloaderclientQt
592         https://bugs.webkit.org/show_bug.cgi?id=71554
593
594         Reviewed by Simon Hausmann.
595
596         We should check the error domain when checking the error code in shouldFallBack()
597
598         * WebCoreSupport/FrameLoaderClientQt.cpp:
599         (WebCore::FrameLoaderClientQt::shouldFallBack): added error domain check
600
601 2011-11-08  Simon Hausmann  <simon.hausmann@nokia.com>
602
603         [Qt] Replace use of QApplication with QGuiApplication
604         https://bugs.webkit.org/show_bug.cgi?id=71794
605
606         Reviewed by Andreas Kling.
607
608         * WebCoreSupport/QtWebComboBox.cpp:
609         (WebCore::QtWebComboBox::showPopupAtCursorPosition): Replace use of QApplication
610         with QCoreApplication.
611
612 2011-11-07  Adam Barth  <abarth@webkit.org>
613
614         Move static "policy" state from SecurityOrigin.cpp to SecurityPolicy.cpp
615         https://bugs.webkit.org/show_bug.cgi?id=71755
616
617         Reviewed by Eric Seidel.
618
619         * Api/qwebpage.cpp:
620         (QWebPagePrivate::QWebPagePrivate):
621         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
622         (DumpRenderTreeSupportQt::whiteListAccessFromOrigin):
623         (DumpRenderTreeSupportQt::removeWhiteListAccessFromOrigin):
624         (DumpRenderTreeSupportQt::resetOriginAccessWhiteLists):
625
626 2011-11-08  Luiz Agostini  <luiz.agostini@palm.com>
627
628         [Qt] Removing qwebkitglobal.h inclusion from qwebkitplatformplugin.h
629         https://bugs.webkit.org/show_bug.cgi?id=71759
630
631         Reviewed by Simon Hausmann.
632
633         qwebkitplatformplugin.h must not depend on qwebkitglobal.h.
634
635         * Api/qwebkitplatformplugin.h:
636
637         Updating the copy of qwebkitplatformplugin.h that is used by the example plugin. The previous
638         one was very outdated.
639
640         * examples/platformplugin/qwebkitplatformplugin.h:
641
642 2011-11-07  Adam Barth  <abarth@webkit.org>
643
644         Move DomainRelaxationForbidden scheme registry to SchemeRegistry
645         https://bugs.webkit.org/show_bug.cgi?id=71750
646
647         Reviewed by Eric Seidel.
648
649         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
650         (DumpRenderTreeSupportQt::setDomainRelaxationForbiddenForURLScheme):
651
652 2011-11-07  Michael Saboff  <msaboff@apple.com>
653
654         Towards 8 Bit Strings: Templatize JSC::Lexer class by character type
655         https://bugs.webkit.org/show_bug.cgi?id=71331
656
657         Changed Identifier() constructor to use JSGlobalData*.
658
659         Reviewed by Darin Adler.
660
661         * Api/qwebframe.cpp:
662         (QWebFrame::addToJavaScriptWindowObject):
663
664 2011-11-07  Simon Hausmann  <simon.hausmann@nokia.com>
665
666         [Qt] Fix failing inspector tests after build system changes
667         https://bugs.webkit.org/show_bug.cgi?id=71677
668
669         Reviewed by Tor Arne Vestbø.
670
671         Ensure symbols from the qt resource system are referenced
672         from outside the static webcore library. One way of doing that is
673         to initialize the resources right away, as explained in the documentation
674         of th Qt resource system.
675
676         * Api/qwebpage.cpp:
677         (initResources):
678         (QWebPagePrivate::QWebPagePrivate):
679
680 2011-11-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
681
682         [Qt] Refactor and clean up the qmake build system
683
684         The qmake build system has accumulated a bit of cruft and redundancy
685         over time. There's also a fairly tight coupling between how to build
686         the various targets, and _what_ to build, making it harder to add new
687         rules or sources. This patch aims to elevate these issues somewhat.
688
689         This is a short-list of the changes:
690
691           * The rules for how to build targets are now mostly contained as
692             prf-files in Tools/qmake/mkspecs/features. Using mkspecs also
693             allows us to do pre- and post-processing of each project file,
694             which helps to clean up the actual project files.
695
696           * Derived sources are no longer generated as a separate make-step
697             but is part of each target's project file as a subdir. Makefile
698             rules are used to ensure that we run make on the derived sources
699             before running qmake on the actual target makefile. This makes
700             it easier to keep a proper dependency between derived sources
701             and the target.
702
703           * We use GNU make and the compiler to generate dependencies on
704             UNIX-based systems running Qt 5. This allows us to lessen the
705             need to run qmake, which should reduce compile time.
706
707           * WebKit2 is now build by default if building with Qt 5. It can
708             be disabled by passing --no-webkit2 to build-webkit.
709
710         The result of these changes are hopefully a cleaner and easier
711         build system to modify, and faster build times due to no longer
712         running qmake on every single build. It's also a first step
713         towards possibly generating the list of sources using another
714         build system.
715
716         https://bugs.webkit.org/show_bug.cgi?id=71222
717
718         Reviewed by Simon Hausmann.
719
720         * Api/DerivedSources.pro: Removed.
721         * Api/headers.pri: Removed.
722         * Api/qwebpage.cpp:
723         (QWebPagePrivate::QWebPagePrivate):
724         * QtWebKit.pro: Removed.
725         * WebCoreSupport/FrameLoaderClientQt.h: Rename due to name clash with WK2 header
726         * WebCoreSupport/PlatformStrategiesQt.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.cpp.
727         (PlatformStrategiesQt::initialize):
728         (PlatformStrategiesQt::PlatformStrategiesQt):
729         (PlatformStrategiesQt::createCookiesStrategy):
730         (PlatformStrategiesQt::createPluginStrategy):
731         (PlatformStrategiesQt::createLocalizationStrategy):
732         (PlatformStrategiesQt::createVisitedLinkStrategy):
733         (PlatformStrategiesQt::notifyCookiesChanged):
734         (PlatformStrategiesQt::refreshPlugins):
735         (PlatformStrategiesQt::getPluginInfo):
736         (PlatformStrategiesQt::inputElementAltText):
737         (PlatformStrategiesQt::resetButtonDefaultLabel):
738         (PlatformStrategiesQt::searchableIndexIntroduction):
739         (PlatformStrategiesQt::submitButtonDefaultLabel):
740         (PlatformStrategiesQt::fileButtonChooseFileLabel):
741         (PlatformStrategiesQt::fileButtonChooseMultipleFilesLabel):
742         (PlatformStrategiesQt::fileButtonNoFileSelectedLabel):
743         (PlatformStrategiesQt::fileButtonNoFilesSelectedLabel):
744         (PlatformStrategiesQt::defaultDetailsSummaryText):
745         (PlatformStrategiesQt::contextMenuItemTagOpenLinkInNewWindow):
746         (PlatformStrategiesQt::contextMenuItemTagDownloadLinkToDisk):
747         (PlatformStrategiesQt::contextMenuItemTagCopyLinkToClipboard):
748         (PlatformStrategiesQt::contextMenuItemTagOpenImageInNewWindow):
749         (PlatformStrategiesQt::contextMenuItemTagDownloadImageToDisk):
750         (PlatformStrategiesQt::contextMenuItemTagCopyImageToClipboard):
751         (PlatformStrategiesQt::contextMenuItemTagCopyImageUrlToClipboard):
752         (PlatformStrategiesQt::contextMenuItemTagOpenVideoInNewWindow):
753         (PlatformStrategiesQt::contextMenuItemTagOpenAudioInNewWindow):
754         (PlatformStrategiesQt::contextMenuItemTagCopyVideoLinkToClipboard):
755         (PlatformStrategiesQt::contextMenuItemTagCopyAudioLinkToClipboard):
756         (PlatformStrategiesQt::contextMenuItemTagToggleMediaControls):
757         (PlatformStrategiesQt::contextMenuItemTagToggleMediaLoop):
758         (PlatformStrategiesQt::contextMenuItemTagEnterVideoFullscreen):
759         (PlatformStrategiesQt::contextMenuItemTagMediaPlay):
760         (PlatformStrategiesQt::contextMenuItemTagMediaPause):
761         (PlatformStrategiesQt::contextMenuItemTagMediaMute):
762         (PlatformStrategiesQt::contextMenuItemTagOpenFrameInNewWindow):
763         (PlatformStrategiesQt::contextMenuItemTagCopy):
764         (PlatformStrategiesQt::contextMenuItemTagGoBack):
765         (PlatformStrategiesQt::contextMenuItemTagGoForward):
766         (PlatformStrategiesQt::contextMenuItemTagStop):
767         (PlatformStrategiesQt::contextMenuItemTagReload):
768         (PlatformStrategiesQt::contextMenuItemTagCut):
769         (PlatformStrategiesQt::contextMenuItemTagPaste):
770         (PlatformStrategiesQt::contextMenuItemTagSelectAll):
771         (PlatformStrategiesQt::contextMenuItemTagNoGuessesFound):
772         (PlatformStrategiesQt::contextMenuItemTagIgnoreSpelling):
773         (PlatformStrategiesQt::contextMenuItemTagLearnSpelling):
774         (PlatformStrategiesQt::contextMenuItemTagSearchWeb):
775         (PlatformStrategiesQt::contextMenuItemTagLookUpInDictionary):
776         (PlatformStrategiesQt::contextMenuItemTagOpenLink):
777         (PlatformStrategiesQt::contextMenuItemTagIgnoreGrammar):
778         (PlatformStrategiesQt::contextMenuItemTagSpellingMenu):
779         (PlatformStrategiesQt::contextMenuItemTagShowSpellingPanel):
780         (PlatformStrategiesQt::contextMenuItemTagCheckSpelling):
781         (PlatformStrategiesQt::contextMenuItemTagCheckSpellingWhileTyping):
782         (PlatformStrategiesQt::contextMenuItemTagCheckGrammarWithSpelling):
783         (PlatformStrategiesQt::contextMenuItemTagFontMenu):
784         (PlatformStrategiesQt::contextMenuItemTagBold):
785         (PlatformStrategiesQt::contextMenuItemTagItalic):
786         (PlatformStrategiesQt::contextMenuItemTagUnderline):
787         (PlatformStrategiesQt::contextMenuItemTagOutline):
788         (PlatformStrategiesQt::contextMenuItemTagWritingDirectionMenu):
789         (PlatformStrategiesQt::contextMenuItemTagTextDirectionMenu):
790         (PlatformStrategiesQt::contextMenuItemTagDefaultDirection):
791         (PlatformStrategiesQt::contextMenuItemTagLeftToRight):
792         (PlatformStrategiesQt::contextMenuItemTagRightToLeft):
793         (PlatformStrategiesQt::contextMenuItemTagInspectElement):
794         (PlatformStrategiesQt::searchMenuNoRecentSearchesText):
795         (PlatformStrategiesQt::searchMenuRecentSearchesText):
796         (PlatformStrategiesQt::searchMenuClearRecentSearchesText):
797         (PlatformStrategiesQt::AXWebAreaText):
798         (PlatformStrategiesQt::AXLinkText):
799         (PlatformStrategiesQt::AXListMarkerText):
800         (PlatformStrategiesQt::AXImageMapText):
801         (PlatformStrategiesQt::AXHeadingText):
802         (PlatformStrategiesQt::AXDefinitionListTermText):
803         (PlatformStrategiesQt::AXDefinitionListDefinitionText):
804         (PlatformStrategiesQt::AXButtonActionVerb):
805         (PlatformStrategiesQt::AXRadioButtonActionVerb):
806         (PlatformStrategiesQt::AXTextFieldActionVerb):
807         (PlatformStrategiesQt::AXCheckedCheckBoxActionVerb):
808         (PlatformStrategiesQt::AXUncheckedCheckBoxActionVerb):
809         (PlatformStrategiesQt::AXMenuListActionVerb):
810         (PlatformStrategiesQt::AXMenuListPopupActionVerb):
811         (PlatformStrategiesQt::AXLinkActionVerb):
812         (PlatformStrategiesQt::missingPluginText):
813         (PlatformStrategiesQt::crashedPluginText):
814         (PlatformStrategiesQt::multipleFileUploadText):
815         (PlatformStrategiesQt::unknownFileSizeText):
816         (PlatformStrategiesQt::imageTitle):
817         (PlatformStrategiesQt::mediaElementLoadingStateText):
818         (PlatformStrategiesQt::mediaElementLiveBroadcastStateText):
819         (PlatformStrategiesQt::localizedMediaControlElementString):
820         (PlatformStrategiesQt::localizedMediaControlElementHelpText):
821         (PlatformStrategiesQt::localizedMediaTimeDescription):
822         (PlatformStrategiesQt::validationMessageValueMissingText):
823         (PlatformStrategiesQt::validationMessageTypeMismatchText):
824         (PlatformStrategiesQt::validationMessagePatternMismatchText):
825         (PlatformStrategiesQt::validationMessageTooLongText):
826         (PlatformStrategiesQt::validationMessageRangeUnderflowText):
827         (PlatformStrategiesQt::validationMessageRangeOverflowText):
828         (PlatformStrategiesQt::validationMessageStepMismatchText):
829         (PlatformStrategiesQt::isLinkVisited):
830         (PlatformStrategiesQt::addVisitedLink):
831         * WebCoreSupport/PlatformStrategiesQt.h: Renamed from Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.h.
832         * declarative/declarative.pro:
833         * docs/docs.pri:
834         * docs/webkitsnippets/webelement/webelement.pro:
835         * tests/MIMESniffing/MIMESniffing.pro:
836         * tests/benchmarks/loading/loading.pro:
837         * tests/benchmarks/painting/painting.pro:
838         * tests/benchmarks/webgl/webgl.pro:
839         * tests/hybridPixmap/hybridPixmap.pro:
840         * tests/qdeclarativewebview/qdeclarativewebview.pro:
841         * tests/qgraphicswebview/qgraphicswebview.pro:
842         * tests/qwebelement/qwebelement.pro:
843         * tests/qwebframe/qwebframe.pro:
844         * tests/qwebhistory/qwebhistory.pro:
845         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
846         * tests/qwebinspector/qwebinspector.pro:
847         * tests/qwebpage/qwebpage.pro:
848         * tests/qwebplugindatabase/qwebplugindatabase.pro:
849         * tests/qwebview/qwebview.pro:
850         * tests/tests.pri:
851         * tests/tests.pro: Removed.
852
853 2011-11-03  Rafael Brandao  <rafael.lobo@openbossa.org>
854
855         Fix tst_QDeclarativeWebView::basicProperties() and historyNav() autotests
856         https://bugs.webkit.org/show_bug.cgi?id=61042
857
858         Reviewed by Simon Hausmann.
859         
860         At some points we didn't have any guarantee that a favicon has been loaded, so now
861         it stops to wait for the IconChanged signal. It also had some file paths in wrong format,
862         making some files to not be resolved and comparing meaningless bitmaps.
863
864         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
865         (tst_QDeclarativeWebView::initTestCase):
866         (tst_QDeclarativeWebView::basicProperties):
867         (tst_QDeclarativeWebView::historyNav):
868
869 2011-11-03  Simon Hausmann  <simon.hausmann@nokia.com>
870
871         [Qt] Remove Maemo specific code paths
872         https://bugs.webkit.org/show_bug.cgi?id=71476
873
874         Reviewed by Kenneth Rohde Christiansen.
875
876         * Api/qwebpage.cpp:
877         (QWebPage::userAgentForUrl):
878         * Api/qwebview.cpp:
879         (QWebView::QWebView):
880         * QtWebKit.pro:
881         * WebCoreSupport/ChromeClientQt.cpp:
882         (WebCore::ChromeClientQt::createSelectPopup):
883         * WebCoreSupport/EditorClientQt.cpp:
884         (WebCore::EditorClientQt::setInputMethodState):
885         * WebCoreSupport/FrameLoaderClientQt.cpp:
886         (WebCore::FrameLoaderClientQt::createPlugin):
887         * WebCoreSupport/QtMaemoWebPopup.cpp: Removed.
888         * WebCoreSupport/QtMaemoWebPopup.h: Removed.
889         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
890         (tst_QGraphicsWebView::focusInputTypes):
891         * tests/qwebframe/tst_qwebframe.cpp:
892         * tests/qwebview/tst_qwebview.cpp:
893         (tst_QWebView::focusInputTypes):
894
895 2011-11-03  Jesus Sanchez-Palencia  <jesus@webkit.org>
896
897         Reviewed by Kenneth Rohde Christiansen.
898
899         [Qt] QtWebKit should have documentation clarifying its mobile features usage
900         https://bugs.webkit.org/show_bug.cgi?id=41465
901
902         Add "QtWebKit Goes Mobile" documentation
903
904         * docs/qtwebkit-goes-mobile.qdoc: Added.
905         * docs/qtwebkit.qdoc: Linked to qtwebkit-goes-mobile documentation
906         * docs/webkitsnippets/qtwebkit_goes_mobile_snippets.cpp: Added.
907
908 2011-11-03  Fady Samuel  <fsamuel@chromium.org>
909
910         Removing line in computeViewportAttributes that enforces a minimum scale factor to never allow zooming out more than viewport
911         https://bugs.webkit.org/show_bug.cgi?id=70609
912
913         Reviewed by Kenneth Rohde Christiansen.
914
915         * Api/qwebpage.cpp:
916         (QWebPage::viewportAttributesForSize):
917         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
918         (DumpRenderTreeSupportQt::viewportAsText):
919
920 2011-11-03  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
921
922         [Qt][WK2] Download support and API in UIProcess
923         https://bugs.webkit.org/show_bug.cgi?id=68962
924
925         Reviewed by Simon Hausmann.
926
927         Registering new qml type QWebDownloadItem.
928
929         * declarative/plugin.cpp:
930         (WebKitQmlPlugin::registerTypes):
931
932 2011-11-02  Jon Lee  <jonlee@apple.com>
933
934         Expand DragController to provide more information about the dragging session
935         https://bugs.webkit.org/show_bug.cgi?id=71324
936         <rdar://problem/10379175>
937
938         Reviewed by Darin Adler.
939
940         * Api/qwebpage.cpp:
941         (QWebPagePrivate::dragEnterEvent): Minor refactoring because operation is stored in
942         new DragSession struct.
943         (QWebPagePrivate::dragMoveEvent): Ditto.
944
945 2011-11-02  Tom Sepez  <tsepez@chromium.org>
946
947         XSSAuditor is silent
948         https://bugs.webkit.org/show_bug.cgi?id=70973
949
950         Reviewed by Adam Barth.
951
952         * WebCoreSupport/FrameLoaderClientQt.cpp:
953         (WebCore::FrameLoaderClientQt::didDetectXSS):
954         * WebCoreSupport/FrameLoaderClientQt.h:
955
956 2011-11-02  Jon Lee  <jonlee@apple.com>
957
958         <input=file multiple> default text uses singular instead of plural
959         https://bugs.webkit.org/show_bug.cgi?id=71319
960         <rdar://problem/10379021>
961
962         Reviewed by Darin Adler.
963
964         * WebCoreSupport/WebPlatformStrategies.cpp:
965         (WebPlatformStrategies::fileButtonNoFilesSelectedLabel):
966         * WebCoreSupport/WebPlatformStrategies.h:
967
968 2011-11-02  Deepak Sherveghar  <bpwv64@motorola.com>
969
970         [Qt] Failing test media/video-document-types.html
971         https://bugs.webkit.org/show_bug.cgi?id=62108
972
973         Reviewed by Simon Hausmann.
974
975         Match what Mac has been doing since r36001: cancel the main load,
976         and handle failures caused by 'will be handled by plugin' errors.
977
978         * WebCoreSupport/FrameLoaderClientQt.cpp:
979         (WebCore::FrameLoaderClientQt::committedLoad):
980         (WebCore::FrameLoaderClientQt::shouldFallBack):
981
982 2011-11-01  Simon Hausmann  <simon.hausmann@nokia.com>
983
984         [Qt][WK2] Fix build of WebKitTestRunner with ELF symbol visibility
985         https://bugs.webkit.org/show_bug.cgi?id=71299
986
987         Reviewed by Andreas Kling.
988
989         Export an overload of QtDRT::injectInternalsObjects that is used by
990         the WK2 injected bundle.
991
992         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
993         (DumpRenderTreeSupportQt::injectInternalsObject):
994         * WebCoreSupport/DumpRenderTreeSupportQt.h:
995
996 2011-11-01  Alexis Menard  <alexis.menard@openbossa.org>
997
998         Unreviewed Qt documentation fix.
999
1000         This signal is Qt 4.8 material.
1001
1002         * Api/qwebpage.cpp:
1003
1004 2011-10-31  Mark Hahnenberg  <mhahnenberg@apple.com>
1005
1006         De-virtualize JSObject::defineGetter
1007         https://bugs.webkit.org/show_bug.cgi?id=71134
1008
1009         Reviewed by Darin Adler.
1010
1011         Added defineGetter to the MethodTable.  Replaced all virtual versions of defineGetter
1012         with static versions.  Replaced all call sites with lookups in the MethodTable.
1013
1014         * Api/qwebframe.cpp:
1015         (QWebFramePrivate::addQtSenderToGlobalObject):
1016
1017 2011-10-28  Jochen Eisinger  <jochen@chromium.org>
1018
1019         Rename a number of methods mentioning JavaScript to just Script instead
1020         https://bugs.webkit.org/show_bug.cgi?id=71105
1021
1022         Reviewed by Adam Barth.
1023
1024         * Api/qwebsettings.cpp:
1025         (QWebSettingsPrivate::apply):
1026
1027 2011-10-28  Simon Hausmann  <simon.hausmann@nokia.com>
1028
1029         [Qt] Adapt to QSG* to QQuick* API change in qtdeclarative
1030         https://bugs.webkit.org/show_bug.cgi?id=70494
1031
1032         Reviewed by Kenneth Christiansen.
1033
1034         Use QQuick* instead of QSG* as well as QStandardPaths
1035         instead of QDesktopLocation.
1036
1037         * Api/qwebsettings.cpp:
1038         (QWebSettings::enablePersistentStorage):
1039
1040 2011-10-27  Helder Correia  <helder.correia@palm.com>
1041
1042         [Qt] Failure to build when QT_NO_MENU defined
1043         https://bugs.webkit.org/show_bug.cgi?id=70970
1044
1045         Reviewed by Andreas Kling.
1046
1047         iterateContextMenu() must be wrapped around #ifndef QT_NO_MENU.
1048
1049         Build fix, no new tests.
1050
1051         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1052
1053 2011-10-26  Zalan Bujtas  <zbujtas@gmail.com>
1054
1055         Name viewport change event consistently.
1056         https://bugs.webkit.org/show_bug.cgi?id=70901
1057
1058         Reviewed by Kenneth Rohde Christiansen.
1059
1060         Use ViewportPropertiesDidChange term consistently throughout WebKit.
1061  
1062         * WebCoreSupport/ChromeClientQt.cpp:
1063         (WebCore::ChromeClientQt::dispatchViewportPropertiesDidChange):
1064         * WebCoreSupport/ChromeClientQt.h:
1065
1066 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1067
1068         Remove putVirtual
1069         https://bugs.webkit.org/show_bug.cgi?id=70740
1070
1071         Reviewed by Geoffrey Garen.
1072
1073         Removed all declarations and definitions of putVirtual.
1074         Also replaced all call sites to putVirtual with a 
1075         corresponding lookup in the MethodTable.
1076
1077         * Api/qwebframe.cpp:
1078         (QWebFrame::addToJavaScriptWindowObject):
1079
1080 2011-10-24  Deepak Sherveghar  <bpwv64@motorola.com>
1081
1082         [Qt] fast/events/media-focus-in-standalone-media-document.html fails
1083         https://bugs.webkit.org/show_bug.cgi?id=70110
1084
1085         Reviewed by Simon Hausmann.
1086
1087         We should check for supported media mime types as well in the MIMETypeRegistry.
1088
1089         * WebCoreSupport/FrameLoaderClientQt.cpp:
1090         (WebCore::FrameLoaderClientQt::canShowMIMEType): check for supported media mime type.
1091
1092 2011-10-21  Luiz Agostini  <luiz.agostini@palm.com>
1093
1094         [Qt] Remote debugging needs QWebInspector to work
1095         https://bugs.webkit.org/show_bug.cgi?id=70651
1096
1097         Reviewed by Kenneth Rohde Christiansen.
1098
1099         Removing QWebInspector dependency from remote inspector.
1100
1101         * Api/qwebinspector.cpp:
1102         * Api/qwebinspector_p.h:
1103         (QWebInspectorPrivate::QWebInspectorPrivate):
1104         * WebCoreSupport/InspectorClientQt.cpp:
1105         (WebCore::InspectorClientQt::InspectorClientQt):
1106         (WebCore::InspectorClientQt::openInspectorFrontend):
1107         (WebCore::InspectorClientQt::attachAndReplaceRemoteFrontend):
1108         (WebCore::InspectorClientQt::detachRemoteFrontend):
1109         (WebCore::InspectorClientQt::sendMessageToFrontend):
1110         * WebCoreSupport/InspectorClientQt.h:
1111         * WebCoreSupport/InspectorServerQt.cpp:
1112         (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
1113         * WebCoreSupport/InspectorServerQt.h:
1114
1115 2011-10-21  Luiz Agostini  <luiz.agostini@palm.com>
1116
1117         [Qt] Wrong type conversion in InspectorServerQt.cpp
1118         https://bugs.webkit.org/show_bug.cgi?id=70639
1119
1120         Reviewed by Noam Rosenthal.
1121
1122         Wrong type conversion causes WebSocket handshake failures for the remote inspector.
1123
1124         * WebCoreSupport/InspectorServerQt.cpp:
1125         (WebCore::parseWebSocketChallengeNumber):
1126
1127 2011-10-21  Zeno Albisser  <zeno.albisser@nokia.com>
1128
1129         [Qt] WebKit build does not respect QMAKE_MAC_SDK variable.
1130         https://bugs.webkit.org/show_bug.cgi?id=70596
1131
1132         Instead of only relying on DARWIN_MAJOR_VERSION we also
1133         check QMAKE_MAC_SDK. In case QMAKE_MAC_SDK is not defined
1134         we are still falling back to DARWIN_MAJOR_VERSION.
1135
1136         Patch by Andy Shaw <andy.shaw@digia.com>
1137
1138         Reviewed by Noam Rosenthal.
1139
1140         * QtWebKit.pro:
1141
1142 2011-10-21  Csaba Osztrogonác  <ossy@webkit.org>
1143
1144         [Qt][WK2] Typo fix.
1145
1146         * tests/util.h:
1147
1148 2011-10-21  Csaba Osztrogonác  <ossy@webkit.org>
1149
1150         [Qt][WK2] Buildfix for newer Qt5. Remove duplicated defines.
1151
1152         Reviewed by Simon Hausmann.
1153
1154         * tests/util.h:
1155
1156 2011-10-21  Sheriff Bot  <webkit.review.bot@gmail.com>
1157
1158         Unreviewed, rolling out r98085.
1159         http://trac.webkit.org/changeset/98085
1160         https://bugs.webkit.org/show_bug.cgi?id=70589
1161
1162         It broke the build (Requested by Ossy on #webkit).
1163
1164         * tests/util.h:
1165
1166 2011-10-21  Csaba Osztrogonác  <ossy@webkit.org>
1167
1168         [Qt][WK2] Unreviewed buildfix for newer Qt5. Remove duplicated defines.
1169
1170         * tests/util.h:
1171         (waitForSignal):
1172
1173 2011-10-20  Carol Szabo  <carol@webkit.org>
1174
1175         Tiled Backing Store does not regenerate tiles when it should
1176         https://bugs.webkit.org/show_bug.cgi?id=57798
1177
1178         Reviewed by Darin Adler.
1179
1180         Provided test for this bug. Changed the name of the resource I added
1181         for a previous test so that the name is descriptive such that it can
1182         be shared across several tests.
1183
1184         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1185         (tst_QGraphicsWebView::bug57798):
1186         (tst_QGraphicsWebView::bug56929):
1187         * tests/qgraphicswebview/tst_qgraphicswebview.qrc:
1188
1189 2011-10-18  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1190
1191         [Qt] Merge QML plugin for WebKit2 with the original WebKit1 plugin
1192
1193         We don't need a separate plugin, as we no longer expose the WK2
1194         APIs under QtWebKit.experimental, but now use QtWebKit. The version
1195         was also changed to 3.0 instead of 5.0, as the original plugin was
1196         versioned 1.0, and bumping to 3.0 fits the scheme used by QtWebKit releases.
1197
1198         Reviewed by Andreas Kling.
1199
1200         * declarative/declarative.pro:
1201         * declarative/plugin.cpp:
1202         (WebKitQmlPlugin::registerTypes):
1203
1204 2011-10-15  Adam Barth  <abarth@webkit.org>
1205
1206         Rename ENABLE(TILED_BACKING_STORE) to USE(TILED_BACKING_STORE)
1207         https://bugs.webkit.org/show_bug.cgi?id=70194
1208
1209         Reviewed by Daniel Bates.
1210
1211         * Api/qgraphicswebview.cpp:
1212         (QGraphicsWebViewPrivate::_q_scaleChanged):
1213         (QGraphicsWebView::QGraphicsWebView):
1214         (QGraphicsWebView::paint):
1215         (QGraphicsWebView::isTiledBackingStoreFrozen):
1216         (QGraphicsWebView::setTiledBackingStoreFrozen):
1217         * Api/qwebframe.cpp:
1218         * Api/qwebframe_p.h:
1219         * Api/qwebpage.cpp:
1220         (QWebPagePrivate::dynamicPropertyChangeEvent):
1221         * Api/qwebsettings.cpp:
1222         (QWebSettingsPrivate::apply):
1223         * WebCoreSupport/ChromeClientQt.cpp:
1224         (WebCore::ChromeClientQt::invalidateWindow):
1225         * WebCoreSupport/ChromeClientQt.h:
1226         * WebCoreSupport/PageClientQt.cpp:
1227         (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
1228         * WebCoreSupport/PageClientQt.h:
1229         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1230
1231 2011-10-15  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1232
1233         [Qt] [Symbian] Remove support for the Symbian platform for the QtWebKit port
1234         https://bugs.webkit.org/show_bug.cgi?id=69920
1235
1236         Reviewed by Kenneth Rohde Christiansen.
1237
1238         * Api/qgraphicswebview.cpp:
1239         (QGraphicsWebView::setPage):
1240         * Api/qwebpage.cpp:
1241         (QWebPage::userAgentForUrl):
1242         * Api/qwebview.cpp:
1243         (QWebView::QWebView):
1244         * QtWebKit.pro:
1245         * WebCoreSupport/EditorClientQt.cpp:
1246         (WebCore::EditorClientQt::setInputMethodState):
1247         * WebCoreSupport/QtFallbackWebPopup.cpp:
1248         (WebCore::QtFallbackWebPopup::populate):
1249         * declarative/declarative.pro:
1250         * declarative/qdeclarativewebview.cpp:
1251         (QDeclarativeWebView::setPage):
1252         * symbian: Removed.
1253         * symbian/backup_registration.xml: Removed.
1254         * symbian/bwins: Removed.
1255         * symbian/bwins/QtWebKitu.def: Removed.
1256         * symbian/eabi: Removed.
1257         * symbian/eabi/QtWebKitu.def: Removed.
1258         * symbian/platformplugin: Removed.
1259         * symbian/platformplugin/HTML5VideoPlugin.cpp: Removed.
1260         * symbian/platformplugin/HTML5VideoPlugin.h: Removed.
1261         * symbian/platformplugin/HTML5VideoWidget.cpp: Removed.
1262         * symbian/platformplugin/HTML5VideoWidget.h: Removed.
1263         * symbian/platformplugin/OverlayWidget.cpp: Removed.
1264         * symbian/platformplugin/OverlayWidget.h: Removed.
1265         * symbian/platformplugin/PlayerButton.cpp: Removed.
1266         * symbian/platformplugin/PlayerButton.h: Removed.
1267         * symbian/platformplugin/PlayerLabel.cpp: Removed.
1268         * symbian/platformplugin/PlayerLabel.h: Removed.
1269         * symbian/platformplugin/WebPlugin.cpp: Removed.
1270         * symbian/platformplugin/WebPlugin.h: Removed.
1271         * symbian/platformplugin/images: Removed.
1272         * symbian/platformplugin/images/button_cannotplay.png: Removed.
1273         * symbian/platformplugin/images/button_close.png: Removed.
1274         * symbian/platformplugin/images/button_pause.png: Removed.
1275         * symbian/platformplugin/images/button_play.png: Removed.
1276         * symbian/platformplugin/images/button_sound_off.png: Removed.
1277         * symbian/platformplugin/images/button_sound_on.png: Removed.
1278         * symbian/platformplugin/images/loading_buffering_1.png: Removed.
1279         * symbian/platformplugin/images/loading_buffering_2.png: Removed.
1280         * symbian/platformplugin/images/loading_buffering_3.png: Removed.
1281         * symbian/platformplugin/images/loading_buffering_4.png: Removed.
1282         * symbian/platformplugin/platformplugin.pro: Removed.
1283         * symbian/platformplugin/platformplugin.qrc: Removed.
1284         * symbian/platformplugin/qss: Removed.
1285         * symbian/platformplugin/qss/OverlayWidget.qss: Removed.
1286         * symbian/platformplugin/qwebkitplatformplugin.h: Removed.
1287         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1288         (tst_QGraphicsWebView::focusInputTypes):
1289         * tests/qwebframe/qwebframe.pro:
1290         * tests/qwebframe/tst_qwebframe.cpp:
1291         * tests/qwebview/tst_qwebview.cpp:
1292         (tst_QWebView::focusInputTypes):
1293         * tests/tests.pri:
1294
1295 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
1296
1297         Rename virtual put to putVirtual
1298         https://bugs.webkit.org/show_bug.cgi?id=69851
1299
1300         Reviewed by Darin Adler.
1301
1302         Renamed virtual versions of put to putVirtual in prepration for 
1303         adding the static put to the MethodTable in ClassInfo since the 
1304         compiler gets mad if the virtual and static versions have the same 
1305         name.
1306
1307         * Api/qwebframe.cpp:
1308         (QWebFrame::addToJavaScriptWindowObject):
1309
1310 2011-10-12  Ryosuke Niwa  <rniwa@webkit.org>
1311
1312         Make the interface of locationAndLengthFromRange and rangeFromLocationAndLength consistent
1313         https://bugs.webkit.org/show_bug.cgi?id=69964
1314
1315         Reviewed by Enrica Casucci.
1316
1317         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1318         (DumpRenderTreeSupportQt::firstRectForCharacterRange):
1319
1320 2011-10-13  Adenilson Cavalcanti  <adenilson.silva@openbossa.org>
1321
1322         [Qt] GeolocationClient cleanups
1323         https://bugs.webkit.org/show_bug.cgi?id=69737
1324
1325         Reviewed by Kenneth Rohde Christiansen.
1326
1327         Qt5 has a location module, so no need to use an external
1328         library like Qt Mobility. This patch will allow the GeolocationClientQt
1329         to compile with both Qt5 and Qt4.
1330
1331         * QtWebKit.pro:
1332         * WebCoreSupport/GeolocationClientQt.cpp:
1333         (WebCore::GeolocationClientQt::positionUpdated):
1334         * WebCoreSupport/GeolocationClientQt.h:
1335
1336 2011-10-11  Simon Fraser  <simon.fraser@apple.com>
1337
1338         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
1339         https://bugs.webkit.org/show_bug.cgi?id=68134
1340
1341         Reviewed by Darin Adler.
1342
1343         Use ScrollbarThemeMock when the setting to use mock scrollbars is enabled.
1344         
1345         Make ScrollbarTheme::nativeTheme() private, and add a new static theme() method
1346         that reads the setting, and returns the mock theme if set. All callers now use
1347         theme() rther than nativeTheme(). Add the new ScrollbarTheme.cpp file to the build.
1348
1349         * WebCoreSupport/ChromeClientQt.cpp:
1350         (WebCore::ChromeClientQt::windowResizerRect):
1351
1352 2011-10-11  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1353
1354         [Qt] Remove all references to QTDIR_build and standalone_package
1355
1356         Qt is now modularized, which means we no longer import WebKit into
1357         the Qt source tree. Instead we use git submodules, and building
1358         QtWebKit as "part of Qt" is really building QtWebKit as from trunk.
1359
1360         To decrease the number of buildsystem configurations we also remove
1361         the standalone_package code-path used when we were providing tarballs
1362         with the derived sources pre-generated.
1363
1364         Reviewed by Simon Hausmann.
1365
1366         * Api/DerivedSources.pro:
1367         * QtWebKit.pro:
1368         * declarative/declarative.pro:
1369         * docs/webkitsnippets/webelement/webelement.pro:
1370         * tests/tests.pri:
1371
1372 2011-10-07  Chang Shu  <cshu@webkit.org>
1373
1374         Remove compile time flag ENABLE_PASSWORD_ECHO
1375         https://bugs.webkit.org/show_bug.cgi?id=69647
1376
1377         As we have runtime flag in the page/Settings, we should remove this redundant compile time flag.
1378
1379         Reviewed by Andreas Kling.
1380
1381         * Api/qwebsettings.cpp:
1382         (QWebSettingsPrivate::apply):
1383
1384 2011-10-06  Fady Samuel  <fsamuel@chromium.org>
1385
1386         Code clean-up: Make RenderObject::absoluteBoundingBoxRect and associated methods const and make its parameter useTransforms no longer default to false
1387         https://bugs.webkit.org/show_bug.cgi?id=69009
1388
1389         Reviewed by Simon Fraser.
1390
1391         * Api/qwebframe.cpp:
1392         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1393
1394 2011-10-06  Simon Hausmann  <simon.hausmann@nokia.com>
1395
1396         [Qt][Wk2] Fix build with Qt 5 when QtScript is built as standalone module
1397         https://bugs.webkit.org/show_bug.cgi?id=69520
1398
1399         Reviewed by Csaba Osztrogonác.
1400
1401         * QtWebKit.pro: Convenience, use qt5 scope.
1402         * declarative/declarative.pro: Ditto.
1403         * tests/tests.pri: Ditto.
1404
1405 2011-10-03  Pierre Rossi  <pierre.rossi@gmail.com>
1406
1407         [Qt] Build fix: Qt::escape is deprecated in Qt5
1408         https://bugs.webkit.org/show_bug.cgi?id=69162
1409
1410         Use QString::toHtmlEscaped in the Qt5 case.
1411
1412         Reviewed by Andreas.
1413
1414         * Api/qwebpage.cpp:
1415         (QWebPage::javaScriptAlert):
1416         (QWebPage::javaScriptConfirm):
1417         (QWebPage::javaScriptPrompt):
1418         * WebCoreSupport/ChromeClientQt.cpp:
1419         (WebCore::ChromeClientQt::setToolTip):
1420
1421 2011-10-01  Sheriff Bot  <webkit.review.bot@gmail.com>
1422
1423         Unreviewed, rolling out r96421.
1424         http://trac.webkit.org/changeset/96421
1425         https://bugs.webkit.org/show_bug.cgi?id=69206
1426
1427         It broke Qt-WK2 build (Requested by ossy on #webkit).
1428
1429         * Api/qwebpage.cpp:
1430         (QWebPage::javaScriptAlert):
1431         (QWebPage::javaScriptConfirm):
1432         (QWebPage::javaScriptPrompt):
1433         * WebCoreSupport/ChromeClientQt.cpp:
1434         (WebCore::ChromeClientQt::setToolTip):
1435
1436 2011-09-30  Pierre Rossi  <pierre.rossi@gmail.com>
1437
1438         [Qt] Build fix: Qt::escape is deprecated in Qt5
1439         https://bugs.webkit.org/show_bug.cgi?id=69162
1440
1441         Use QString::toHtmlEscaped in the Qt5 case.
1442
1443         Reviewed by Andreas Kling.
1444
1445         * Api/qwebpage.cpp:
1446         (QWebPage::javaScriptAlert):
1447         (QWebPage::javaScriptConfirm):
1448         (QWebPage::javaScriptPrompt):
1449         * WebCoreSupport/ChromeClientQt.cpp:
1450         (WebCore::ChromeClientQt::setToolTip):
1451
1452 2011-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1453
1454         [Qt] Fix build against Qt5 after refactor of widgets out of QtGUi
1455
1456         QWidget and friends now live in the QtWidgets library. We update
1457         includes in implementation files and private headers to us the
1458         non-module-prefixed path, and leave the lookup for the include
1459         path. For public headers we have to ifdef the includes as the
1460         user might now have the modules we need in his QT config.
1461
1462         Finally, QSGCanvas is no longer a QWidget but a QWindow, so we
1463         have to update our code and use windowHandle() for setting the
1464         parent relationships.
1465
1466         https://bugs.webkit.org/show_bug.cgi?id=68687
1467
1468         Reviewed by Andreas Kling.
1469
1470         * Api/qgraphicswebview.cpp:
1471         * Api/qgraphicswebview.h:
1472         * Api/qwebframe.h:
1473         * Api/qwebhistory.h:
1474         * Api/qwebpage.h:
1475         * Api/qwebsettings.h:
1476         * Api/qwebview.h:
1477         * QtWebKit.pro:
1478         * WebCoreSupport/PageClientQt.h:
1479         * WebCoreSupport/QtWebComboBox.cpp:
1480         * WebCoreSupport/QtWebComboBox.h:
1481         * declarative/qdeclarativewebview.cpp:
1482         * declarative/qdeclarativewebview_p.h:
1483         * docs/webkitsnippets/webpage/main.cpp:
1484         * examples/platformplugin/WebNotificationPresenter.h:
1485
1486 2011-09-27  Sheriff Bot  <webkit.review.bot@gmail.com>
1487
1488         Unreviewed, rolling out r96108, r96111, r96113, and r96116.
1489         http://trac.webkit.org/changeset/96108
1490         http://trac.webkit.org/changeset/96111
1491         http://trac.webkit.org/changeset/96113
1492         http://trac.webkit.org/changeset/96116
1493         https://bugs.webkit.org/show_bug.cgi?id=68913
1494
1495         Wait for working Qt5 (Requested by ossy on #webkit).
1496
1497         * Api/qgraphicswebview.cpp:
1498         * Api/qgraphicswebview.h:
1499         * Api/qwebframe.h:
1500         * Api/qwebhistory.h:
1501         * Api/qwebpage.h:
1502         * Api/qwebsettings.h:
1503         * Api/qwebview.h:
1504         * QtWebKit.pro:
1505         * WebCoreSupport/PageClientQt.h:
1506         * WebCoreSupport/QtWebComboBox.cpp:
1507         * WebCoreSupport/QtWebComboBox.h:
1508         * declarative/declarative.pro:
1509         * declarative/qdeclarativewebview.cpp:
1510         * declarative/qdeclarativewebview_p.h:
1511         * docs/webkitsnippets/webpage/main.cpp:
1512         * examples/platformplugin/WebNotificationPresenter.h:
1513         * tests/tests.pri:
1514
1515 2011-09-27  Csaba Osztrogonác  <ossy@webkit.org>
1516
1517         [Qt][WK2] Buildfix after r96108.
1518
1519         Rubber-stamped by Andreas Kling.
1520
1521         * tests/tests.pri:
1522
1523 2011-09-27  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1524
1525         [Qt] Fix build of declarative plugin against Qt5
1526
1527         Reviewed by Andreas Kling.
1528
1529         * declarative/declarative.pro:
1530
1531 2011-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1532
1533         [Qt] Fix build against Qt5 after refactor of widgets out of QtGUi
1534
1535         QWidget and friends now live in the QtWidgets library. We update
1536         includes in implementation files and private headers to us the
1537         non-module-prefixed path, and leave the lookup for the include
1538         path. For public headers we have to ifdef the includes as the
1539         user might now have the modules we need in his QT config.
1540
1541         Finally, QSGCanvas is no longer a QWidget but a QWindow, so we
1542         have to update our code and use windowHandle() for setting the
1543         parent relationships.
1544
1545         https://bugs.webkit.org/show_bug.cgi?id=68687
1546
1547         Reviewed by Andreas Kling.
1548
1549         * Api/qgraphicswebview.cpp:
1550         * Api/qgraphicswebview.h:
1551         * Api/qwebframe.h:
1552         * Api/qwebhistory.h:
1553         * Api/qwebpage.h:
1554         * Api/qwebsettings.h:
1555         * Api/qwebview.h:
1556         * QtWebKit.pro:
1557         * WebCoreSupport/PageClientQt.h:
1558         * WebCoreSupport/QtWebComboBox.cpp:
1559         * WebCoreSupport/QtWebComboBox.h:
1560         * declarative/qdeclarativewebview.cpp:
1561         * declarative/qdeclarativewebview_p.h:
1562         * docs/webkitsnippets/webpage/main.cpp:
1563         * examples/platformplugin/WebNotificationPresenter.h:
1564
1565 2011-09-24  Adam Barth  <abarth@webkit.org>
1566
1567         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
1568         https://bugs.webkit.org/show_bug.cgi?id=68767
1569
1570         Reviewed by Eric Seidel.
1571
1572         * Api/qwebsecurityorigin.cpp:
1573         (QWebSecurityOrigin::setApplicationCacheQuota):
1574         * Api/qwebsettings.cpp:
1575         (QWebSettings::setOfflineWebApplicationCachePath):
1576         (QWebSettings::offlineWebApplicationCachePath):
1577         (QWebSettings::setOfflineWebApplicationCacheQuota):
1578         (QWebSettings::offlineWebApplicationCacheQuota):
1579         * WebCoreSupport/ChromeClientQt.cpp:
1580         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
1581         * WebCoreSupport/ChromeClientQt.h:
1582         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1583         (DumpRenderTreeSupportQt::clearAllApplicationCaches):
1584
1585 2011-09-21  Andras Becsi  <andras.becsi@nokia.com>
1586
1587         [Qt] Remove Qt specific code from css/SelectorChecker.cpp
1588         https://bugs.webkit.org/show_bug.cgi?id=67702
1589
1590         Reviewed by Csaba Osztrogonác.
1591
1592         * WebCoreSupport/WebPlatformStrategies.cpp: Check the Qt global history here, instead of a platform independent file.
1593         (WebPlatformStrategies::isLinkVisited):
1594         * WebCoreSupport/WebPlatformStrategies.h:
1595
1596 2011-09-20  Jarred Nicholls  <jarred@sencha.com>
1597
1598         [Qt] Permit qrc resources to load in QWebSettings::setUserStyleSheetUrl()
1599         https://bugs.webkit.org/show_bug.cgi?id=51159
1600         
1601         Permit any URL with a local scheme to set a user style sheet. Allow qrc
1602         resource URLs as arguments to QWebSettings::setUserStyleSheetUrl().
1603         
1604         New test case makes sure a qrc URL will properly load a user stylesheet.
1605
1606         Reviewed by Kenneth Rohde Christiansen.
1607         
1608         (tst_QWebPage::userStyleSheetFromQrcUrl):
1609         * tests/qwebpage/tst_qwebpage.qrc:
1610
1611 2011-09-20  Adenilson Cavalcanti  <adenilson.silva@openbossa.org>
1612
1613         [Qt] resizeToContent seems to trigger infinite resize on some pages
1614         https://bugs.webkit.org/show_bug.cgi?id=43852
1615
1616         Reviewed by Kenneth Rohde Christiansen.
1617
1618         Test by Luiz Agostini.
1619
1620         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1621         (ResizeSpy::receiveResize):
1622         (ResizeSpy::size):
1623         (tst_QGraphicsWebView::windowResizeEvent):
1624
1625 2011-09-17  Mihai Parparita  <mihaip@chromium.org>
1626
1627         FrameLoaderClient BackForwardList-related methods are unsued
1628         https://bugs.webkit.org/show_bug.cgi?id=68293
1629
1630         Reviewed by Darin Adler.
1631
1632         Remove FrameLoaderClient methods that were added by r51629, since only        
1633         the old (since-deleted) Android port needed them.
1634
1635         * WebCoreSupport/FrameLoaderClientQt.cpp:
1636         * WebCoreSupport/FrameLoaderClientQt.h:
1637
1638 2011-09-15  Adam Barth  <abarth@webkit.org>
1639
1640         Rename ENABLE(DATABASE) to ENABLE(SQL_DATABASE)
1641         https://bugs.webkit.org/show_bug.cgi?id=68205
1642
1643         Reviewed by Eric Seidel.
1644
1645         * Api/qwebdatabase.cpp:
1646         (QWebDatabase::displayName):
1647         (QWebDatabase::expectedSize):
1648         (QWebDatabase::size):
1649         (QWebDatabase::fileName):
1650         (QWebDatabase::removeDatabase):
1651         (QWebDatabase::removeAllDatabases):
1652         * Api/qwebsecurityorigin.cpp:
1653         (QWebSecurityOrigin::databaseUsage):
1654         (QWebSecurityOrigin::databaseQuota):
1655         (QWebSecurityOrigin::setDatabaseQuota):
1656         (QWebSecurityOrigin::allOrigins):
1657         (QWebSecurityOrigin::databases):
1658         * Api/qwebsettings.cpp:
1659         (QWebSettingsPrivate::apply):
1660         (QWebSettings::setOfflineStoragePath):
1661         (QWebSettings::offlineStoragePath):
1662         * WebCoreSupport/ChromeClientQt.cpp:
1663         * WebCoreSupport/ChromeClientQt.h:
1664
1665 2011-09-13  Zeno Albisser  <zeno.albisser@nokia.com>
1666
1667         [Qt] Fix state of stop/reload actions in QWebPage
1668         https://bugs.webkit.org/show_bug.cgi?id=65977
1669
1670         FrameLoader does ask its DocumentLoader to stop loading subresources before
1671         setting the state to FrameStateCommittedPage. But it does
1672         not check if the the DocumentLoader actually stopped loading before
1673         it changes the state.
1674         Therefore a subresourceLoader can still be active, when we receive the
1675         call to dispatchDidFinishLoad(). This leads to an inconsistent behavior
1676         of the stop/reload actions in QWebPage.
1677         This changeset fixes the inconsistent state by updating the action states
1678         also when frameLoadCompleted() is called.
1679
1680         Reviewed by Chang Shu.
1681
1682         * WebCoreSupport/FrameLoaderClientQt.cpp:
1683         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
1684
1685 2011-09-12  Csaba Osztrogonác  <ossy@webkit.org>
1686
1687         [Qt] Fix "Unmatched parentheses are deprecated." warnings
1688         https://bugs.webkit.org/show_bug.cgi?id=67775
1689
1690         Reviewed by Zoltan Herczeg.
1691
1692         Modify function declarations to single line to make qmake happier.
1693
1694         * Api/qwebframe.h:
1695         * Api/qwebpluginfactory.h:
1696         * Api/qwebview.h:
1697
1698 2011-09-10  Jarred Nicholls  <jarred@sencha.com>
1699
1700         [Qt] QWebSettings::setUserStyleSheetUrl() does not work with windows paths that contain drive letters
1701         https://bugs.webkit.org/show_bug.cgi?id=34884
1702         
1703         KURL::path() alone does not handle removing the leading slash from a windows file path.
1704         Using QUrl::toLocalFile() will turn file:///C:/path into C:/path appropriately.
1705         
1706         New test case that ensures a user stylesheet from the file system will load correctly
1707         on all platforms.
1708
1709         Reviewed by Andreas Kling.
1710
1711         * tests/qwebpage/resources/user.css: Added.
1712         (p):
1713         * tests/qwebpage/tst_qwebpage.cpp:
1714         (tst_QWebPage::userStyleSheetFromFile):
1715
1716 2011-09-09  Fady Samuel  <fsamuel@chromium.org>
1717
1718         Move pageScaleFactor code from Frame.{h|cpp} to Page.{h|cpp}
1719         https://bugs.webkit.org/show_bug.cgi?id=67250
1720
1721         Reviewed by Simon Fraser.
1722
1723         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1724         (DumpRenderTreeSupportQt::scalePageBy):
1725
1726 2011-09-09  Zeno Albisser  <zeno.albisser@nokia.com>
1727
1728         [Qt] QWebElement::encloseWith doesn't work at all
1729         https://bugs.webkit.org/show_bug.cgi?id=62464
1730
1731         Enclosing an element means wrapping something around an element,
1732         not inserting something into an element. Therefore we need to check
1733         if the parent of the element allows insertion rather than checking
1734         the element itself.
1735
1736         Reviewed by Andreas Kling.
1737
1738         * Api/qwebelement.cpp:
1739         (QWebElement::prependOutside):
1740         (QWebElement::appendOutside):
1741         (QWebElement::encloseWith):
1742         * tests/qwebelement/tst_qwebelement.cpp:
1743         (tst_QWebElement::appendAndPrepend):
1744         (tst_QWebElement::encloseWith):
1745
1746 2011-09-08  Sam Weinig  <sam@webkit.org>
1747
1748         Remove the Completion object from JSC, I have never liked it
1749         https://bugs.webkit.org/show_bug.cgi?id=67755
1750
1751         Reviewed by Gavin Barraclough.
1752
1753         * Api/qwebelement.cpp:
1754         (QWebElement::evaluateJavaScript):
1755
1756 2011-09-05  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1757
1758         [Qt][WK2] Make TiledDrawingArea request tiles only in the direction the viewport is panned to.
1759         https://bugs.webkit.org/show_bug.cgi?id=67606
1760
1761         TiledBackingStore previously used different values for horizontal and vertial multiplication
1762         to calculate the cover area. 
1763         This patch replaces this mechanism, used to give a bigger panning range to vertical panning,
1764         with the possibility to use the motion vector of the viewport to request tiles ahead instead.
1765         This allows economies on rendering resources as tiles won't be rendered beside the trajectory
1766         of the viewport.
1767
1768         * Api/qwebpage.cpp:
1769         (QWebPagePrivate::dynamicPropertyChangeEvent):
1770
1771 2011-09-06  Csaba Osztrogonác  <ossy@webkit.org>
1772
1773         Unreviewed buildfix after r94620.
1774
1775         * WebCoreSupport/FrameLoaderClientQt.cpp:
1776         (WebCore::FrameLoaderClientQt::createFrame):
1777
1778 2011-09-06  Alexis Menard  <alexis.menard@openbossa.org>
1779
1780         [Qt] Move away from QPointer as it is slow and it has a replacement QWeakPointer.
1781         https://bugs.webkit.org/show_bug.cgi?id=67673
1782
1783         Reviewed by Ariya Hidayat.
1784
1785         Move away from QPointer as Qt provides a better and faster solution : QWeakPointer.
1786
1787         * Api/qwebframe.cpp:
1788         (QWebHitTestResult::linkTargetFrame):
1789         (QWebHitTestResult::frame):
1790         * Api/qwebframe_p.h:
1791         * Api/qwebpage.cpp:
1792         (QWebPagePrivate::QWebPagePrivate):
1793         (QWebPagePrivate::~QWebPagePrivate):
1794         (QWebPagePrivate::acceptNavigationRequest):
1795         (QWebPagePrivate::createMainFrame):
1796         (QWebPagePrivate::updateAction):
1797         (QWebPagePrivate::mouseMoveEvent):
1798         (QWebPagePrivate::mousePressEvent):
1799         (QWebPagePrivate::mouseDoubleClickEvent):
1800         (QWebPagePrivate::mouseTripleClickEvent):
1801         (QWebPagePrivate::mouseReleaseEvent):
1802         (QWebPage::createStandardContextMenu):
1803         (QWebPagePrivate::wheelEvent):
1804         (QWebPagePrivate::focusInEvent):
1805         (QWebPage::setPalette):
1806         (QWebPagePrivate::touchEvent):
1807         (QWebPage::~QWebPage):
1808         (QWebPage::mainFrame):
1809         (QWebPage::viewportSize):
1810         (QWebPage::preferredContentsSize):
1811         (QWebPage::setContentEditable):
1812         (QWebPage::updatePositionDependentActions):
1813         * Api/qwebpage_p.h:
1814         * Api/qwebview.cpp:
1815         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1816         (DumpRenderTreeSupportQt::contextMenu):
1817         * WebCoreSupport/FrameLoaderClientQt.cpp:
1818         (WebCore::FrameLoaderClientQt::createFrame):
1819         * tests/qwebframe/tst_qwebframe.cpp:
1820         (tst_QWebFrame::ownership):
1821         * tests/qwebpage/tst_qwebpage.cpp:
1822         (PluginCounterPage::PluginCounterPage):
1823         (PluginTracerPage::createPlugin):
1824         (tst_QWebPage::createViewlessPlugin):
1825         * tests/qwebview/tst_qwebview.cpp:
1826         (tst_QWebView::reusePage):
1827
1828 2011-09-06  Alexis Menard  <alexis.menard@openbossa.org>
1829
1830         [Qt] Fix API test failure after r92823 and r93001.
1831         https://bugs.webkit.org/show_bug.cgi?id=67676
1832
1833         Reviewed by Kenneth Rohde Christiansen.
1834
1835         r92823 and r93001 make WebKit no longer produce wrapping style 
1836         spans on copy and paste and class="Apple-style-span" anymore.
1837         Our expectations need to be updated.
1838
1839         * tests/qwebpage/tst_qwebpage.cpp:
1840         (tst_QWebPage::cursorMovements):
1841         (tst_QWebPage::textSelection):
1842         (tst_QWebPage::findText):
1843
1844 2011-09-06  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
1845
1846         [Qt][Symbian] REGRESSION[94105] DumpRenderTree.exe doesn't build on Symbian
1847         https://bugs.webkit.org/show_bug.cgi?id=67644
1848
1849         Reviewed by Csaba Osztrogonác.
1850
1851         * symbian/eabi/QtWebKitu.def: add missing entry for
1852         FrameLoaderClientQt::dumpProgressFinishedCallback(bool)
1853
1854 2011-09-05  Kaustubh Atrawalkar  <kaustubh@motorola.com>
1855
1856         Logic from HTMLElement::deprecatedCreateContextualFragment moved into
1857         Range::createContextualFragment function.
1858         https://bugs.webkit.org/show_bug.cgi?id=67056
1859
1860         Reviewed by Ryosuke Niwa.
1861
1862         Code Refactoring for deprecatedCreateContextualFragment.
1863
1864         * Api/qwebelement.cpp:
1865         (QWebElement::appendInside):
1866         (QWebElement::prependInside):
1867         (QWebElement::prependOutside):
1868         (QWebElement::appendOutside):
1869         (QWebElement::encloseContentsWith):
1870         (QWebElement::encloseWith):
1871
1872 2011-09-03  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1873
1874         REGRESSION (r86268): Fix for qt_networkAccessAllowed()
1875         https://bugs.webkit.org/show_bug.cgi?id=67570
1876
1877         Reviewed by Noam Rosenthal.
1878
1879         Replace the ENABLE(QT_BEARER) guard with
1880         !defined(QT_NO_BEARERMANAGEMENT) which is true by
1881         default in Qt 4.7 or later versions.
1882
1883         * Api/qwebsettings.cpp:
1884         (qt_networkAccessAllowed):
1885
1886 2011-09-02  Jade Han  <jade.han@nokia.com>
1887
1888         [Qt][Symbian] REGRESSION(93235) Missing .def update
1889         https://bugs.webkit.org/show_bug.cgi?id=67307
1890
1891         Reviewed by Laszlo Gombos.
1892
1893         * symbian/eabi/QtWebKitu.def:
1894
1895 2011-09-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1896
1897         [Qt] Transform QtFallbackWebPopupCombo into QtWebComboBox
1898         https://bugs.webkit.org/show_bug.cgi?id=67344
1899
1900         Reviewed by Andreas Kling.
1901
1902         Renamed QtFallbackWebPopup to QtWebComboBox and decoupled it from
1903         QtFallbackWebPopup. The new class is a QComboBox with the features that
1904         we need for QtWebKit: tracking when the popup is hidden (via the didHide()
1905         signal) and a convenience method to show its popup in the cursor position.
1906
1907         An important change was made to the combobox: instead of hooking our actions in
1908         showPopup() and hidePopup(), as well as watching for popup visibility events, we
1909         now just watch for the visibility events. This allowed us to get rid of
1910         m_popupVisible and tracking the Show event.
1911
1912         This commit also removed a workaround for input focus added in r40970 after
1913         reviewers request. See bug report for details.
1914
1915         * QtWebKit.pro:
1916         * WebCoreSupport/QtFallbackWebPopup.cpp:
1917         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
1918         (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
1919         (WebCore::QtFallbackWebPopup::show):
1920         (WebCore::QtFallbackWebPopup::deleteComboBox):
1921         * WebCoreSupport/QtFallbackWebPopup.h:
1922         * WebCoreSupport/QtWebComboBox.cpp: Added.
1923         (WebCore::QtWebComboBox::QtWebComboBox):
1924         (WebCore::QtWebComboBox::showPopupAtCursorPosition):
1925         (WebCore::QtWebComboBox::eventFilter):
1926         * WebCoreSupport/QtWebComboBox.h: Added.
1927
1928         * tests/qwebframe/tst_qwebframe.cpp:
1929         (tst_QWebFrame::popupFocus):
1930         Change the test to use QObject::findChild(). The old method couldn't find our
1931         new class because we defined a new metaclass for it.
1932
1933 2011-08-31  Ryosuke Niwa  <rniwa@webkit.org>
1934
1935         Move text() and textWithHardLineBreaks() from RenderTextControl to HTMLTextFormControlElement
1936         https://bugs.webkit.org/show_bug.cgi?id=67320
1937
1938         Reviewed by Darin Adler.
1939
1940         Call HTMLTextFormControlElement::value() instead of RenderText::text()
1941
1942         * Api/qwebpage.cpp:
1943         (QWebPage::inputMethodQuery):
1944
1945 2011-08-31  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1946
1947         [Qt] Unskip API test for load signals order
1948         https://bugs.webkit.org/show_bug.cgi?id=67285
1949
1950         Reviewed by Andreas Kling.
1951
1952         * tests/qwebpage/tst_qwebpage.cpp:
1953         (tst_QWebPage::loadSignalsOrder):
1954
1955 2011-08-30  Sheriff Bot  <webkit.review.bot@gmail.com>
1956
1957         Unreviewed, rolling out r94142, r94144, r94145, and r94148.
1958         http://trac.webkit.org/changeset/94142
1959         http://trac.webkit.org/changeset/94144
1960         http://trac.webkit.org/changeset/94145
1961         http://trac.webkit.org/changeset/94148
1962         https://bugs.webkit.org/show_bug.cgi?id=67262
1963
1964         Broke isindex element (Requested by rniwa on #webkit).
1965
1966         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1967         (DumpRenderTreeSupportQt::setAutofilled):
1968         (DumpRenderTreeSupportQt::setValueForUser):
1969         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
1970
1971 2011-08-30  Ryosuke Niwa  <rniwa@webkit.org>
1972
1973         Get rid of toInputElement()
1974         https://bugs.webkit.org/show_bug.cgi?id=67175
1975
1976         Reviewed by Darin Adler.
1977
1978         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1979         (DumpRenderTreeSupportQt::setAutofilled):
1980         (DumpRenderTreeSupportQt::setValueForUser):
1981         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
1982
1983 2011-08-30  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1984
1985         Emit last progress notification before calling dispatchDidFinishLoad
1986         https://bugs.webkit.org/show_bug.cgi?id=28851
1987
1988         Reviewed by Adam Barth.
1989
1990         Add infrastructure to dump progressFinishedNotification callback in DRT.
1991
1992         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1993         (DumpRenderTreeSupportQt::dumpProgressFinishedCallback):
1994         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1995         * WebCoreSupport/FrameLoaderClientQt.cpp:
1996         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
1997         * WebCoreSupport/FrameLoaderClientQt.h:
1998
1999 2011-08-30  Kaustubh Atrawalkar  <kaustubh@motorola.com>
2000
2001         The unused ScrollView* argument can and should be removed from
2002         scrollRectIntoView.
2003         https://bugs.webkit.org/show_bug.cgi?id=67117
2004
2005         Reviewed by Darin Adler.
2006
2007         * WebCoreSupport/ChromeClientQt.h:
2008         (WebCore::ChromeClientQt::scrollRectIntoView):
2009
2010 2011-08-25  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
2011
2012         Unreviewed QtWebKit.pro fix for when building inside Qt
2013
2014         Patch by Simo Fält <simo.falt@nokia.com>
2015
2016         The QtWebKit version was being overwritten by a global Qt version when
2017         QtWebKit was built inside Qt. Fixed by moving the version
2018         definition after the inclusion of qbase.pri.
2019
2020         * QtWebKit.pro:
2021
2022 2011-08-25  Sheriff Bot  <webkit.review.bot@gmail.com>
2023
2024         Unreviewed, rolling out r93783.
2025         http://trac.webkit.org/changeset/93783
2026         https://bugs.webkit.org/show_bug.cgi?id=66943
2027
2028         Commited wrong stuff by accident. (Requested by ademar on
2029         #webkit).
2030
2031         * Api/qwebview.cpp:
2032         (QWebView::load):
2033         (QWebView::setHtml):
2034         (QWebView::setContent):
2035         (QWebView::setUrl):
2036         * QtWebKit.pro:
2037
2038 2011-08-25  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
2039
2040         Unreviewed QtWebKit.pro fix for when building inside Qt
2041
2042         Patch by Simo Fält <simo.falt@nokia.com>
2043
2044         The QtWebKit version was being overwritten by a global Qt version when
2045         QtWebKit was built inside Qt. Fixed by moving the version
2046         definition after the inclusion of qbase.pri.
2047
2048         * QtWebKit.pro:
2049
2050 2011-08-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2051
2052         [Qt] Fix build on Lion
2053
2054         https://bugs.webkit.org/show_bug.cgi?id=66770
2055
2056         Reviewed by Andreas Kling.
2057
2058         We were mistakenly picking up mac/WebCoreSystemInterface.h instead of
2059         the Qt one, and building on Lion revealed this when a typedef for
2060         IOSurfaceRef was wrapped in PLATFORM(MAC).
2061
2062         For now we fix this by including WebCoreSystemInterface using
2063         brackets, so that we'll pick up the right file based on the
2064         include paths. This also means exposing a few missing enums
2065         in our own version of the file, so those were added.
2066
2067         Lasty, we need to link against the right system interface library
2068         on Lion.
2069
2070         * QtWebKit.pro:
2071
2072 2011-08-21  Lindsay Mathieson  <lindsay.mathieson@gmail.com>
2073
2074         [Qt] Fixes premature plugin unload bug
2075         https://bugs.webkit.org/show_bug.cgi?id=66628
2076         
2077         Reviewed by Benjamin Poulain.
2078
2079         The QtPlatformPlugin was allocated on the stack, so its destructor is unloading the
2080         plugin at the end of the scope. This patch moves the local creation of QtPlatformPlugin
2081         to class member (TextCheckerClientQt::m_platformPlugin), preventing premature unloading
2082         of plugin.            
2083         
2084         * WebCoreSupport/TextCheckerClientQt.cpp:
2085         (WebCore::TextCheckerClientQt::loadSpellChecker):
2086         * WebCoreSupport/TextCheckerClientQt.h:
2087
2088 2011-08-17  Adam Roben  <aroben@apple.com>
2089
2090         Make WebCore keep track of the current device scale factor
2091
2092         Fixes <http://webkit.org/b/66413> WebCore requires every WebKit port to keep track of the
2093         device scale factor
2094
2095         Reviewed by Darin Adler.
2096
2097         * Api/qwebpage.cpp:
2098         (QWebPagePrivate::QWebPagePrivate): Removed pixelRatio.
2099         (QWebPage::viewportAttributesForSize): Now calls Page::setDeviceScaleFactor.
2100
2101         * Api/qwebpage_p.h: Removed pixelRatio.
2102
2103         * WebCoreSupport/ChromeClientQt.cpp:
2104         * WebCoreSupport/ChromeClientQt.h:
2105         Removed deviceScaleFactor.
2106
2107 2011-08-18  Chang Shu  <cshu@webkit.org>
2108
2109         Add support of setPasswordEchoEnabled and setPasswordEchoDuration for password echo feature
2110         https://bugs.webkit.org/show_bug.cgi?id=66052
2111
2112         Reviewed by Alexey Proskuryakov.
2113
2114         Enable password echo under the build flag.
2115
2116         * Api/qwebsettings.cpp:
2117         (QWebSettingsPrivate::apply):
2118
2119 2011-08-16  Chang Shu  <cshu@webkit.org>
2120
2121         Support reset in WebCore::Internals
2122         https://bugs.webkit.org/show_bug.cgi?id=66307
2123
2124         Reviewed by Dimitri Glazkov.
2125
2126         Added framework code in WebKit.
2127
2128         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2129         (DumpRenderTreeSupportQt::resetInternalsObject):
2130         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2131
2132 2011-08-16  Lindsay Mathieson   <lindsay.mathieson@gmail.com>
2133
2134         [Qt] Missing spell check support
2135         https://bugs.webkit.org/show_bug.cgi?id=44114
2136
2137         Reviewed by Benjamin Poulain.
2138
2139         Added a platform plugin to allow spell and grammar check in QtWebKit.
2140
2141         * Api/qwebkitplatformplugin.h:
2142         * QtWebKit.pro:
2143         * WebCoreSupport/EditorClientQt.cpp:
2144         (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
2145         (WebCore::EditorClientQt::isGrammarCheckingEnabled):
2146         (WebCore::EditorClientQt::toggleContinuousSpellChecking):
2147         (WebCore::EditorClientQt::toggleGrammarChecking):
2148         * WebCoreSupport/EditorClientQt.h:
2149         (WebCore::EditorClientQt::textChecker):
2150         * WebCoreSupport/QtPlatformPlugin.cpp:
2151         (WebCore::QtPlatformPlugin::createSpellChecker):
2152         * WebCoreSupport/QtPlatformPlugin.h:
2153         * WebCoreSupport/TextCheckerClientQt.cpp: Added.
2154         (convertToVectorList):
2155         (WebCore::TextCheckerClientQt::ignoreWordInSpellDocument):
2156         (WebCore::TextCheckerClientQt::learnWord):
2157         (WebCore::TextCheckerClientQt::getAutoCorrectSuggestionForMisspelledWord):
2158         (WebCore::TextCheckerClientQt::checkSpellingOfString):
2159         (WebCore::TextCheckerClientQt::checkGrammarOfString):
2160         (WebCore::TextCheckerClientQt::getGuessesForWord):
2161         (WebCore::TextCheckerClientQt::isContinousSpellCheckingEnabled):
2162         (WebCore::TextCheckerClientQt::toggleContinousSpellChecking):
2163         (WebCore::TextCheckerClientQt::isGrammarCheckingEnabled):
2164         (WebCore::TextCheckerClientQt::toggleGrammarChecking):
2165         (WebCore::TextCheckerClientQt::loadSpellChecker):
2166         * WebCoreSupport/TextCheckerClientQt.h: Added.
2167         (WebCore::TextCheckerClientQt::requestCheckingOfString):
2168
2169 2011-08-15  Dmitry Titov  <dimich@chromium.org>
2170
2171         FrameLoaderClient::transferLoadingResourceFromPage does not have enough parameters
2172         https://bugs.webkit.org/show_bug.cgi?id=66165
2173
2174         Reviewed by Darin Fisher.
2175
2176         * WebCoreSupport/FrameLoaderClientQt.cpp:
2177         (WebCore::FrameLoaderClientQt::transferLoadingResourceFromPage):
2178         * WebCoreSupport/FrameLoaderClientQt.h:
2179
2180 2011-08-10  Adam Roben  <aroben@apple.com>
2181
2182         Clear up scale factor terminology
2183
2184         WebKit by and large deals with two scale factors: one intrinsic to the device on which the
2185         software is running, and one that is per-Page and can be controlled via API calls. This
2186         patch names the former "deviceScaleFactor" and the latter "pageScaleFactor", and makes the
2187         code use those names. It should introduce no behavior changes.
2188
2189         Fixes <http://webkit.org/b/55787> WebKit uses multiple conflicting names to refer to the
2190         device scale factor
2191
2192         Reviewed by Simon Fraser.
2193
2194         * WebCoreSupport/ChromeClientQt.cpp:
2195         * WebCoreSupport/ChromeClientQt.h:
2196
2197 2011-08-12  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2198
2199         [Qt] Add test for correct order of load signals in QWebPage
2200         https://bugs.webkit.org/show_bug.cgi?id=66016
2201
2202         Reviewed by Benjamin Poulain.
2203
2204         Add API test to ensure the order of load signals: loadStarted() needs to be emitted
2205         first, then loadProgress(100), followed by loadFinished().
2206
2207         The test is skipped since this right now is broken, the bug
2208         https://bugs.webkit.org/show_bug.cgi?id=28851 tracks one possible way to fix.
2209
2210         * tests/qwebpage/tst_qwebpage.cpp:
2211         (SpyForLoadSignalsOrder::SpyForLoadSignalsOrder):
2212         (SpyForLoadSignalsOrder::isFinished):
2213         (SpyForLoadSignalsOrder::onLoadProgress):
2214         (tst_QWebPage::loadSignalsOrder_data):
2215         (tst_QWebPage::loadSignalsOrder):
2216
2217 2011-08-12  Alexis Menard  <alexis.menard@openbossa.org>
2218
2219         [Qt] Make sure QtWebKit correctly compiles when building WebKit2 with Qt5.
2220
2221         In order to build correctly the QtQuick1 plugin we need to explicitly
2222         link to the new library added in Qt5 "qtquick1".
2223
2224         Reviewed by Simon Hausmann.
2225
2226         * declarative/declarative.pro:
2227
2228 2011-08-11  Andrew Wason  <rectalogic@rectalogic.com>
2229
2230         REGRESSION: Qt JavaScript bridge signal connection fails
2231         https://bugs.webkit.org/show_bug.cgi?id=66097
2232
2233         Reviewed by Gavin Barraclough.
2234
2235         Unmark tests as expected failures, they pass now.
2236
2237         * tests/qwebframe/tst_qwebframe.cpp:
2238         (tst_QWebFrame::connectAndDisconnect):
2239
2240 2011-08-09  Sheriff Bot  <webkit.review.bot@gmail.com>
2241
2242         Unreviewed, rolling out r92683.
2243         http://trac.webkit.org/changeset/92683
2244         https://bugs.webkit.org/show_bug.cgi?id=65921
2245
2246          "Breaks Qt --minimal build. Revert pending update of the Qt
2247         minimal configuration" (Requested by simathur on #webkit).
2248
2249         * Api/qwebsettings.cpp:
2250         (QWebSettings::enablePersistentStorage):
2251
2252 2011-08-09  Siddharth Mathur  <siddharth.mathur@nokia.com>
2253
2254         [Qt] Simplify code by removing QT_NO_DESKTOPSERVICES and QT_NO_NETWORKDISKCACHE
2255         https://bugs.webkit.org/show_bug.cgi?id=65880
2256
2257         Reviewed by Andreas Kling.
2258
2259         QDesktopServices and QNetworkDiskCache have been around for a while now. Kill flags which 
2260         check for their feature flags. Assume that any reasonable Qt build provides them. 
2261
2262         * Api/qwebsettings.cpp:
2263         (QWebSettings::enablePersistentStorage):
2264
2265 2011-08-05  Dawit Alemayehu  <adawit@kde.org>
2266
2267         Reviewed by Andreas Kling.
2268
2269         Reverted commit r87797, http://trac.webkit.org/changeset/87797, because it
2270         causes the regression reported under bug# 63582.
2271
2272         [Qt] REGRESSION(r87797): Broke KDEWebKit's custom QNAM.
2273         https://bugs.webkit.org/show_bug.cgi?id=63582
2274
2275         * WebCoreSupport/FrameLoaderClientQt.cpp:
2276         (WebCore::FrameLoaderClientQt::setFrame):
2277
2278 2011-08-03  Pavel Feldman  <pfeldman@google.com>
2279
2280         Web Inspector: [Timeline] Hover on paint events and see rect outline around that area.
2281         https://bugs.webkit.org/show_bug.cgi?id=65510
2282
2283         Reviewed by Yury Semikhatsky.
2284
2285         * Api/qwebframe.cpp:
2286         (QWebFramePrivate::renderRelativeCoords):
2287
2288 2011-08-03  Pavel Feldman  <pfeldman@chromium.org>
2289
2290         Web Inspector: remove Node parameter from the InspectorClient::highlight
2291         https://bugs.webkit.org/show_bug.cgi?id=65549
2292
2293         Reviewed by Yury Semikhatsky.
2294
2295         * WebCoreSupport/InspectorClientQt.cpp:
2296         (WebCore::InspectorClientQt::highlight):
2297         * WebCoreSupport/InspectorClientQt.h:
2298
2299 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2300
2301         [Qt] Fix tst_QDeclarativeWebView::basicProperties() and historyNav() autotests
2302         https://bugs.webkit.org/show_bug.cgi?id=61042
2303         Remove mark as expected fail where unexpected pass and mark failing test case as expected fail
2304
2305         Reviewed by Csaba Osztrogonác.
2306
2307         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
2308         (tst_QDeclarativeWebView::basicProperties):
2309         (tst_QDeclarativeWebView::historyNav):
2310
2311 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2312
2313         [Qt] Fix tst_QWebPage::viewModes() API test
2314         https://bugs.webkit.org/show_bug.cgi?id=65531
2315
2316         Reviewed by Csaba Osztrogonác.
2317
2318         * tests/qwebpage/tst_qwebpage.cpp: Mark failing test case as expected fail
2319         (tst_QWebPage::viewModes):
2320
2321 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2322
2323         [Qt] Fix tst_QWebFrame::connectAndDisconnect() API test
2324         https://bugs.webkit.org/show_bug.cgi?id=65170
2325
2326         Reviewed by Csaba Osztrogonác.
2327
2328         * tests/qwebframe/tst_qwebframe.cpp: Mark failing test case as expected fail
2329         (tst_QWebFrame::connectAndDisconnect):
2330
2331 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2332
2333         [Qt] Fix tst_QWebElement::render() API test
2334         https://bugs.webkit.org/show_bug.cgi?id=65243
2335
2336         Reviewed by Csaba Osztrogonác.
2337
2338         * tests/qwebelement/tst_qwebelement.cpp: Mark failing test case as expected fail
2339         (tst_QWebElement::render):
2340
2341 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2342
2343         [Qt] tst_QWebElement::style() fails because QWebElement::CascadedStyle doesn't work as expected
2344         https://bugs.webkit.org/show_bug.cgi?id=65244
2345
2346         Reviewed by Csaba Osztrogonác.
2347
2348         * tests/qwebelement/tst_qwebelement.cpp: Mark failing test case as expected fail
2349         (tst_QWebElement::style):
2350
2351 2011-08-01  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2352
2353         [Qt] Fix tst_QWebPage::loadHtml5Video() API test
2354         https://bugs.webkit.org/show_bug.cgi?id=65452
2355
2356         Reviewed by Csaba Osztrogonác.
2357
2358         * tests/qwebpage/tst_qwebpage.cpp: Mark failing test case as expected fail
2359         (tst_QWebPage::loadHtml5Video):
2360
2361 2011-07-30  Patrick Gansterer  <paroga@webkit.org>
2362
2363         Remove inclusion of MainThread.h from Threading.h
2364         https://bugs.webkit.org/show_bug.cgi?id=65081
2365
2366         Reviewed by Darin Adler.
2367
2368         Add missing include statements for MainThread.
2369
2370         * Api/qwebpage.cpp:
2371
2372 2011-07-27  Benjamin Poulain  <benjamin@webkit.org>
2373
2374         [WK2][Qt] Move from QGraphicsView to Qt Scene Graph
2375         https://bugs.webkit.org/show_bug.cgi?id=62969
2376
2377         Reviewed by Andreas Kling.
2378
2379         Co-authored with Simon Hausmann  <simon.hausmann@nokia.com>
2380
2381         Add the declarative dependency to link WebKit.
2382
2383         * QtWebKit.pro:
2384
2385 2011-07-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2386
2387         [Qt] QtWebkit never finishes loading sites when they are loaded after an initial QUrl fails to load.
2388         https://bugs.webkit.org/show_bug.cgi?id=61328
2389
2390         Reviewed by Andreas Kling.
2391
2392         Change the hooks in FrameLoaderClient we use for emitting signals. Instead of
2393         emitting signals in the progress notification functions, we use the
2394         dispatchDid{Start,Finish,Fail}* functions. The main reason behind this change is
2395         that loading code is prepared to handle load() when inside those functions.
2396
2397         The crash was being caused by setUrl() (and load()) being called when
2398         loadFinished(false) was emitted. The problem here is that when
2399         postProgressFinishedNotification the FrameLoader wasn't ready for taking a load()
2400         call again, because it was still the ProvisionalLoadState but with the
2401         provisionalDocumentLoader already removed.
2402
2403         To emulate the same behavior that QtWebKit had when using
2404         postProgressFinishedNotification, we now keep track of the frame originating the
2405         load, and emit the signals when this frame's client is called.
2406
2407         The patch keeps the existing semantics for QWebPage signals, but we now emit the
2408         QWebFrame signals everytime, not only when they are the originating frame for
2409         loading.
2410
2411         * Api/qwebframe.cpp:
2412         (clearCoreFrame): Document our assumption that activeDocumentLoader will exist.
2413
2414         * WebCoreSupport/FrameLoaderClientQt.h: Remove m_loadError, add a boolean to keep
2415         track whether the frame is originating the load. Remove the signals from
2416         FrameLoaderClientQt since we will emit QWebFrame and QWebPage signals directly.
2417
2418         * WebCoreSupport/FrameLoaderClientQt.cpp:
2419         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Initialize m_isOriginatingLoad.
2420
2421         (WebCore::FrameLoaderClientQt::setFrame): Do not connect QWebFrame and QWebPage
2422         signals to our signals for load/finished, signal emission will be done manually.
2423
2424         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): Emit
2425         loadStarted() signal and make the first notification of estimation change, that
2426         Qt API tests expect to exist and notify 10%.
2427
2428         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): Remove reference to
2429         m_loadError and emit loadFinished() signal.
2430
2431         (WebCore::FrameLoaderClientQt::postProgressStartedNotification): Remove signal
2432         emission and mark the originating load as true, since only the originating frame
2433         gets this call in its client.
2434
2435         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): Remove signal
2436         emission.
2437
2438         (WebCore::FrameLoaderClientQt::callErrorPageExtension): Return whether the call
2439         was successful or not. This wasn't necessary before because a successful call for
2440         error page would lead to a load(), that cleared the m_loadError.
2441         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): Remove reference
2442         to m_loadError and emit finished signal indicating error if ErrorPage extension
2443         doesn't handle it.
2444         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): Ditto.
2445
2446         (WebCore::FrameLoaderClientQt::emitLoadStarted): Emit the loadStarted() signal
2447         for the QWebFrame, and if the originating load also do for the QWebPage.
2448
2449         (WebCore::FrameLoaderClientQt::emitLoadFinished): Same as before but for
2450         loadFinished(). Take care to reset the originating load flag before the signals
2451         are emitted, since they might want to set it back again.
2452
2453         * tests/qwebframe/tst_qwebframe.cpp:
2454         (URLSetter::URLSetter): Object that sets the url using either load() or setUrl()
2455         when a certain signal is emitted in the frame.
2456
2457         (URLSetter::execute):
2458         (tst_QWebFrame::loadInSignalHandlers_data):
2459         (tst_QWebFrame::loadInSignalHandlers): New test inspired by the bug test case. This test
2460         crashes without this patch applied.
2461
2462 2011-07-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2463
2464         [Qt] Fix build in Qt 5 of QDeclarativeWebView
2465         https://bugs.webkit.org/show_bug.cgi?id=65258
2466
2467         Reviewed by Andreas Kling.
2468
2469         In Qt 5, the QGraphicsView-based classes for QtQuick are in the
2470         qtquick1 module, including QDeclarativeItem and QDeclarativeView.
2471
2472         * declarative/qdeclarativewebview_p.h:
2473         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
2474         * tests/tests.pri:
2475         * tests/tests.pro:
2476
2477 2011-07-26  Sadrul Habib Chowdhury  <sadrul@chromium.org>
2478
2479         Add support for download='filename' attribute in anchors.
2480         https://bugs.webkit.org/show_bug.cgi?id=64580
2481
2482         Reviewed by Adam Barth.
2483
2484         * WebCoreSupport/FrameLoaderClientQt.cpp:
2485         (WebCore::FrameLoaderClientQt::startDownload):
2486         * WebCoreSupport/FrameLoaderClientQt.h:
2487
2488 2011-07-26  Alexis Menard  <alexis.menard@openbossa.org>
2489
2490         Reviewed by Andreas Kling.
2491
2492         [Qt] Change default backend to use GStreamer on Linux and QuickTime on Mac.
2493         https://bugs.webkit.org/show_bug.cgi?id=63472
2494
2495         Use the flag WTF_USE_QTKIT=1 rather than USE_QTKIT=1 because that flag doesn't
2496         exist anymore, it's the default. Ditto for GStreamer.
2497
2498         * QtWebKit.pro:
2499
2500 2011-07-25  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2501
2502         [Qt] Add more tests to cover the behavior of loadFinished() signal
2503         https://bugs.webkit.org/show_bug.cgi?id=63490
2504
2505         Reviewed by Benjamin Poulain.
2506
2507         * tests/qwebframe/tst_qwebframe.cpp:
2508         (FakeReply::FakeReply):
2509         (FakeNetworkManager::createRequest): Add a fake reply that gives 404 error code.
2510
2511         (tst_QWebFrame::loadFinishedAfterNotFoundError): Verify that we get loadFinished(false)
2512         after a 404 error without contents.
2513
2514         * tests/qwebpage/tst_qwebpage.cpp:
2515         (tst_QWebPage::errorPageExtensionLoadFinished): Verify if the argument of loadFinished()
2516         is true when we use error page extension to produce our own error pages.
2517
2518 2011-07-19  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2519
2520         [Qt] Improve documentation of QWebView::setPage()
2521         https://bugs.webkit.org/show_bug.cgi?id=64827
2522
2523         Reviewed by Noam Rosenthal.
2524
2525         * Api/qwebview.cpp: Use the word 'page' to refer to a QWebPage instead of 'document'.
2526
2527 2011-07-19  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2528
2529         [Qt] Fix leak of QWebPage in errorPageExtension tests
2530         https://bugs.webkit.org/show_bug.cgi?id=64814
2531
2532         Reviewed by Noam Rosenthal.
2533
2534         QWebView::setPage() doesn't take ownership, so the ErrorPages were leaking. So now
2535         allocate them on the stack. This shouldn't change any behavior.
2536
2537         * tests/qwebpage/tst_qwebpage.cpp:
2538         (tst_QWebPage::errorPageExtension):
2539         (tst_QWebPage::errorPageExtensionInIFrames):
2540         (tst_QWebPage::errorPageExtensionInFrameset):
2541
2542 2011-07-18  Hui Huang  <hui.2.huang@nokia.com>
2543
2544         [Qt] Compiling error in Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp with Qt 4.7 or older
2545         https://bugs.webkit.org/show_bug.cgi?id=64560
2546
2547         Reviewed by Noam Rosenthal.
2548
2549         * tests/qwebelement/tst_qwebelement.cpp:
2550         (tst_QWebElement::render):
2551
2552 2011-07-15  Dan Bernstein  <mitz@apple.com>
2553
2554         REGRESSION: Mouse cursor doesn’t hide when full screen video HUD hides
2555         https://bugs.webkit.org/show_bug.cgi?id=64615
2556
2557         Reviewed by Anders Carlsson.
2558
2559         * WebCoreSupport/ChromeClientQt.h:
2560         (WebCore::ChromeClientQt::setCursorHiddenUntilMouseMoves): Added this stub.
2561
2562 2011-07-15  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2563
2564         REGRESSION(91064): Upstream QtWebKit/N9 changes related tovisibleContentRect
2565
2566         Reviewed by Antonio Gomes.
2567
2568         Only set setFixedVisibleContentRect when in resizesToContents mode.
2569
2570         * WebCoreSupport/FrameLoaderClientQt.cpp:
2571         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2572
2573 2011-07-15  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2574
2575         Upstream QtWebKit/N9 changes related to visibleContentRect
2576         https://bugs.webkit.org/show_bug.cgi?id=64589
2577
2578         Reviewed by Simon Hausmann.
2579
2580         * Api/qwebpage.cpp:
2581         (QWebPage::setActualVisibleContentRect):
2582         Change to use setFixedVisibleContentRect.
2583         * WebCoreSupport/FrameLoaderClientQt.cpp:
2584         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2585         Only set fixedVisibleContentRect for the mainframe.
2586         * symbian/eabi/QtWebKitu.def:
2587
2588 2011-07-13  Joseph Pecoraro  <joepeck@webkit.org>
2589
2590         Improve names of some ApplicationCacheStorage accessor methods
2591         https://bugs.webkit.org/show_bug.cgi?id=64433
2592
2593         Reviewed by Alexey Proskuryakov.
2594
2595         * WebCoreSupport/ChromeClientQt.cpp:
2596         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
2597         Renamed method.
2598
2599 2011-07-12  Joseph Pecoraro  <joepeck@webkit.org>
2600
2601         ApplicationCache update should not immediately fail when reaching per-origin quota
2602         https://bugs.webkit.org/show_bug.cgi?id=64177
2603
2604         Reviewed by Alexey Proskuryakov.
2605
2606         * Api/qwebpage.cpp:
2607         * Api/qwebpage.h:
2608         * WebCoreSupport/ChromeClientQt.cpp:
2609         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
2610         * WebCoreSupport/ChromeClientQt.h:
2611         Pass the spaceNeeded value through to the applicationCacheQuotaExceeded signal.
2612
2613 2011-07-11  Ryosuke Niwa  <rniwa@webkit.org>
2614
2615         Move selection related code from RenderTextControl to HTMLTextFormControlElement
2616         https://bugs.webkit.org/show_bug.cgi?id=64133
2617
2618         Reviewed by Dimitri Glazkov.
2619
2620         Replaced calls to WebCore::setSelectionRange by calls to HTMLTextFormControlElement::setSelectionRange.
2621
2622         * Api/qwebpage.cpp:
2623         (QWebPagePrivate::inputMethodEvent):
2624
2625 2011-07-08  Adam Barth  <abarth@webkit.org>
2626
2627         Unreviewed, rolling out r90662.
2628         http://trac.webkit.org/changeset/90662
2629         https://bugs.webkit.org/show_bug.cgi?id=64210
2630
2631         Introduced regressions in Chromium browser tests (Requested by
2632         rniwa on #webkit).
2633
2634         * Api/qwebpage.cpp:
2635         (QWebPagePrivate::inputMethodEvent):
2636
2637 2011-07-08  Ryosuke Niwa  <rniwa@webkit.org>
2638
2639         Move selection related code from RenderTextControl to HTMLTextFormControlElement
2640         https://bugs.webkit.org/show_bug.cgi?id=64133
2641
2642         Reviewed by Dimitri Glazkov.
2643
2644         Replaced calls to WebCore::setSelectionRange by calls to HTMLTextFormControlElement::setSelectionRange.
2645
2646         * Api/qwebpage.cpp:
2647         (QWebPagePrivate::inputMethodEvent):
2648
2649 2011-07-05  Rafael Brandao  <rafael.lobo@openbossa.org>
2650
2651         [Qt] Fix tst_QWebFrame::setHtmlWithResource() API test
2652         https://bugs.webkit.org/show_bug.cgi?id=63235
2653
2654         Modified baseUrl to be a local file in order to get a security origin
2655         that is allowed to request local resources. Removed QSignalSpy from it
2656         as loadFinished always happens, and the original test was split into two.
2657
2658         Reviewed by Benjamin Poulain.
2659
2660         * tests/qwebframe/tst_qwebframe.cpp:
2661         (tst_QWebFrame::setHtmlWithImageResource):
2662         (tst_QWebFrame::setHtmlWithStylesheetResource):
2663         (tst_QWebFrame::setHtmlWithBaseURL):
2664
2665 2011-04-02  Robert Hogan  <robert@webkit.org>
2666
2667         Reviewed by Benjamin Poulain.
2668
2669         [Qt] Support third-party cookie policy for Qt clients
2670
2671         This adds new API to QWebSettings that allows clients to
2672         select one of three third-party cookie blocking policies:
2673
2674           AlwaysAllowThirdPartyCookies
2675           AlwaysBlockThirdPartyCookies
2676           AllowThirdPartyWithExistingCookies
2677
2678         The first two are self-explanatory, the third mimics Safari's
2679         default behaviour of permitting third-party cookies when the user
2680         already has cookies from the third-party site. This was
2681         introduced to allow third-party cookie blocking to play well with
2682         facebook sharing etc. AlwaysAllowThirdPartyCookies is the default.
2683
2684         There is scope for adding an 'exceptions' list API and clients would
2685         struggle to implement it themselves given the paucity of information
2686         available from setCookiesForUrl().
2687
2688         See also: http://gitorious.org/qt/qt/merge_requests/1205
2689                    (commit 154402f56dcf8303a6ce601a52215226af8d31ba)
2690                   http://bugreports.qt.nokia.com/browse/QTBUG-13601
2691
2692         https://bugs.webkit.org/show_bug.cgi?id=45455
2693
2694         * Api/qwebsettings.cpp:
2695         (QWebSettings::QWebSettings):
2696         (QWebSettings::setThirdPartyCookiePolicy):
2697         (QWebSettings::thirdPartyCookiePolicy):
2698         * Api/qwebsettings.h:
2699
2700 2011-07-01  Jade Han  <jade.han@nokia.com>
2701
2702         [Qt][Symbian] Update .def file for Symbian to build Tools
2703         https://bugs.webkit.org/show_bug.cgi?id=61200
2704
2705         Reviewed by Laszlo Gombos.
2706
2707         Add newly introduced symbols to fix building the Tools directory for Symbian.
2708
2709         * symbian/eabi/QtWebKitu.def:
2710
2711 2011-07-01  Jade Han  <jade.han@nokia.com>
2712
2713         Reviewed by Laszlo Gombos.
2714
2715         [Qt][Symbian] Update .def file for Symbian
2716         https://bugs.webkit.org/show_bug.cgi?id=61200
2717
2718         Add newly introduced symbols to fix the Symbian build.
2719
2720         * symbian/eabi/QtWebKitu.def:
2721
2722 2011-06-30  Rafael Brandao  <rafael.lobo@openbossa.org>
2723
2724         Reviewed by Benjamin Poulain.
2725
2726         [Qt] Fix tst_QWebFrame::renderGeometry() API test
2727         https://bugs.webkit.org/show_bug.cgi?id=63236
2728         
2729         This test required a security origin with granted permission to request local resources.
2730         By default, only local files can load local resources. So modified baseUrl to be a local file.
2731
2732         * tests/qwebframe/tst_qwebframe.cpp:
2733         (tst_QWebFrame::renderGeometry):
2734
2735 2011-06-27  Diego Gonzalez  <diegohcg@webkit.org>
2736
2737         Reviewed by Antonio Gomes.
2738
2739         [Qt] DRT: Provide LayoutTestController::setDefersLoading and ::goBack support
2740         https://bugs.webkit.org/show_bug.cgi?id=63489
2741
2742         Unskipped:
2743             loader/navigation-while-deferring-loads.html
2744
2745         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2746         (DumpRenderTreeSupportQt::setDefersLoading):
2747         (DumpRenderTreeSupportQt::goBack):
2748         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2749
2750 2011-06-30  Fabrizio Machado  <fabrizio.machado@nokia.com>
2751
2752         Reviewed by Benjamin Poulain.
2753         
2754         [Qt] QML Webview causes performance drops
2755         https://bugs.webkit.org/show_bug.cgi?id=57554
2756
2757         Remove tiledBackingStoreEnabled from QML WebView.
2758         
2759         * declarative/qdeclarativewebview.cpp:
2760         (QDeclarativeWebView::setPage):
2761
2762 2011-06-30  Kentaro Hara  <haraken@google.com>
2763
2764         Reviewed by Kent Tamura.
2765
2766         Change the label of an HTML5 file chooser button to "Choose Files"
2767         https://bugs.webkit.org/show_bug.cgi?id=49245
2768
2769         We should notify capability of multiple files to users.
2770
2771         Test: fast/forms/input-file-label.html
2772
2773         * WebCoreSupport/WebPlatformStrategies.cpp:
2774         (WebPlatformStrategies::fileButtonChooseFileLabel): Updated the description for "Choose File".
2775         (WebPlatformStrategies::fileButtonChooseMultipleFilesLabel):  Returns a "Choose Files" label.
2776         * WebCoreSupport/WebPlatformStrategies.h:
2777
2778 2011-06-29  Alexis Menard  <alexis.menard@openbossa.org>
2779
2780         Reviewed by Benjamin Poulain.
2781
2782         [Qt] Add Qt dependencies in QtWebKit's main pro file.
2783         https://bugs.webkit.org/show_bug.cgi?id=63639
2784
2785         syncqt, the script which generates the headers inside Qt parses
2786         the main pro file of QtWebKit to check the Qt dependencies. It used
2787         to be WebCore.pro but after the build reorganization QtWebKit.pro is
2788         the new main pro file so we need to add the network dependency just like
2789         we did in WebCore.pro.
2790
2791         * QtWebKit.pro:
2792
2793 2011-06-28  Ilya Sherman  <isherman@chromium.org>
2794
2795         Reviewed by Adam Barth.
2796
2797         form.autocomplete="off" does not work
2798         https://bugs.webkit.org/show_bug.cgi?id=35823
2799
2800         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2801         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId): Update callsite.
2802
2803 2011-06-27  Diego Gonzalez  <diegohcg@webkit.org>
2804
2805         Reviewed by Kenneth Rohde Christiansen.
2806
2807         [Qt] DRT support for setInteractiveFormValidationEnabled
2808         https://bugs.webkit.org/show_bug.cgi?id=63496
2809
2810         Unskipped:
2811             fast/forms/interactive-validation-prevented.html
2812             fast/forms/interactive-validation-attach-assertion.html
2813             fast/forms/interactive-validation-assertion-by-validate-twice.html
2814             fast/forms/interactive-validation-select-crash.html
2815             fast/forms/interactive-validation-crash-by-style-override.html
2816
2817         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2818         (DumpRenderTreeSupportQt::setInteractiveFormValidationEnabled):
2819         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2820
2821 2011-06-28  Alexis Menard  <alexis.menard@openbossa.org>
2822
2823         Reviewed by Andreas Kling.
2824
2825         [Qt] Use <QtX/x.h> style of headers for Qt tests which rely on it.
2826         https://bugs.webkit.org/show_bug.cgi?id=63562
2827
2828         Some Qt auto-tests rely on <QtX/x.h> types of includes.
2829
2830         * Api/qwebkitplatformplugin.h:
2831         * symbian/platformplugin/qwebkitplatformplugin.h:
2832
2833 2011-06-28  Alexis Menard  <alexis.menard@openbossa.org>
2834
2835         Reviewed by Andreas Kling.
2836
2837         [Qt] Use QtQuick imports in Api tests rather than old deprecated Qt 4.x imports.
2838         https://bugs.webkit.org/show_bug.cgi?id=63533
2839
2840         We need to use the new QtQuick 1.x imports rather than the old deprecated
2841         version.
2842
2843         * tests/qdeclarativewebview/resources/webviewbackgroundcolor.qml:
2844         * tests/qdeclarativewebview/resources/webviewtest.qml:
2845         * tests/qdeclarativewebview/resources/webviewtestdefault.qml:
2846
2847 2011-06-27  Alexis Menard  <alexis.menard@openbossa.org>
2848
2849         Reviewed by Darin Adler.
2850
2851         Use specific headers includes rather than full system headers.
2852         https://bugs.webkit.org/show_bug.cgi?id=63475
2853
2854         Use only needed headers rather than system headers.
2855
2856         * WebCoreSupport/QTKitFullScreenVideoHandler.mm:
2857
2858 2011-06-27  Alexis Menard  <alexis.menard@openbossa.org>
2859
2860         Reviewed by Kenneth Rohde Christiansen.
2861
2862         [Qt] Remove Phonon MediaPlayer from the tree.
2863         https://bugs.webkit.org/show_bug.cgi?id=63448
2864
2865         Remove Phonon related stuff.
2866
2867         * docs/qtwebkit.qdocconf:
2868         * qt_webkit_version.pri:
2869
2870 2011-06-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2871
2872         Reviewed by Andreas Kling.
2873
2874         [Qt] tst_QWebFrame::overloadedSlots() fails
2875         https://bugs.webkit.org/show_bug.cgi?id=37319
2876
2877         * tests/qwebframe/tst_qwebframe.cpp:
2878         (tst_QWebFrame::overloadedSlots): Remove expected failure and
2879         fix the comment.
2880
2881 2011-06-20  Robert Hogan  <robert@webkit.org>
2882
2883         Reviewed by Antonio Gomes.
2884
2885         [Qt] Duplicate entry in context menu
2886         https://bugs.webkit.org/show_bug.cgi?id=62139
2887
2888         contextMenuController()->populate() is called from
2889         ContextMenuController::handleContextMenuEvent() so
2890         QWebPage::updatePositionDependentActions() does not need
2891         to call it independently.
2892
2893         Related changesets: 
2894          http://trac.webkit.org/changeset/73535
2895          http://trac.webkit.org/changeset/32389
2896
2897         * Api/qwebpage.cpp:
2898         (QWebPage::updatePositionDependentActions):
2899         * tests/qwebpage/tst_qwebpage.cpp:
2900         (tst_QWebPage::contextMenuCopy):
2901         (tst_QWebPage::contextMenuPopulatedOnce):
2902
2903 2011-06-24  Dominic Cooney  <dominicc@chromium.org>
2904
2905         Reviewed by Dimitri Glazkov.
2906
2907         Convert shadow-DOM related tests to use window.internals
2908         https://bugs.webkit.org/show_bug.cgi?id=61671
2909
2910         Remove shadow-DOM related methods from Qt DRT API. These are not
2911         required any more.
2912
2913         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2914         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2915
2916 2011-06-23  Joe Wild  <joseph.wild@nokia.com>
2917
2918         Reviewed by Laszlo Gombos.
2919
2920         [Qt] The Qt WebKit Symbian .def file needs to be updated so Symbian will build
2921         https://bugs.webkit.org/show_bug.cgi?id=61200
2922
2923         Revert r87060 as it broke compatibility with QtWebKit 2.1 release
2924         and add some newly introduce symbols.
2925
2926         * symbian/eabi/QtWebKitu.def:
2927
2928 2011-06-23  Alexis Menard  <alexis.menard@openbossa.org>
2929
2930         Reviewed by Eric Carlson.
2931
2932         [Qt] Implement fullscreen support on Mac with the QuickTime backend.
2933         https://bugs.webkit.org/show_bug.cgi?id=61728
2934
2935         Implement fullscreen support for Qt when using the QuickTime backend.
2936         We mostly use what is already done for the Mac port.
2937
2938         * QtWebKit.pro:
2939         * WebCoreSupport/ChromeClientQt.cpp:
2940         (WebCore::ChromeClientQt::ChromeClientQt):
2941         (WebCore::ChromeClientQt::~ChromeClientQt):
2942         * WebCoreSupport/ChromeClientQt.h:
2943         * WebCoreSupport/FullScreenVideoQt.cpp:
2944         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
2945         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
2946         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
2947         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
2948         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
2949         (WebCore::FullScreenVideoQt::isValid):
2950         * WebCoreSupport/FullScreenVideoQt.h:
2951         * WebCoreSupport/QTKitFullScreenVideoHandler.h: Added.
2952         * WebCoreSupport/QTKitFullScreenVideoHandler.mm: Added.
2953         (QTKitFullScreenVideoHandler::QTKitFullScreenVideoHandler):
2954         (QTKitFullScreenVideoHandler::~QTKitFullScreenVideoHandler):
2955         (QTKitFullScreenVideoHandler::enterFullScreen):
2956         (QTKitFullScreenVideoHandler::exitFullScreen):
2957         * WebCoreSupport/WebSystemInterface.mm:
2958         (InitWebCoreSystemInterface):
2959
2960 2011-06-23  Yael Aharon  <yael.aharon@nokia.com>
2961
2962         Reviewed by Andreas Kling.
2963
2964         [Qt] [WK2] Add drag and drop support
2965         https://bugs.webkit.org/show_bug.cgi?id=62838
2966
2967         Call dragEnded from the DragClient to make WebKit1 and WebKit2 consistent.
2968
2969         * WebCoreSupport/DragClientQt.cpp:
2970         (WebCore::DragClientQt::startDrag):
2971
2972 2011-06-23  Joe Wild  <joseph.wild@nokia.com>
2973
2974         Reviewed by Laszlo Gombos.
2975
2976         [Qt] Export files under Symbian Qt WebKit build
2977         https://bugs.webkit.org/show_bug.cgi?id=61207
2978
2979         Export files for the Symbian platform as this is needed by the
2980         production build system.
2981
2982         Janne Koskinen provided the suggestion to use target_predeps,
2983         which is an improvement over the originally suggested patch.
2984
2985         * QtWebKit.pro:
2986
2987 2011-06-23  Csaba Osztrogonác  <ossy@webkit.org>
2988
2989         Rubber-stamped by Andreas Kling.
2990
2991         [Qt] Fix tst_QWebFrame::setHtmlWithResource() API test
2992         https://bugs.webkit.org/show_bug.cgi?id=63235
2993
2994         [Qt] Fix tst_QWebFrame::renderGeometry() API test
2995         https://bugs.webkit.org/show_bug.cgi?id=63236
2996
2997         [Qt] Fix tst_QWebFrame::setUrlWithPendingLoads() API test
2998         https://bugs.webkit.org/show_bug.cgi?id=63237
2999
3000         * tests/qwebframe/tst_qwebframe.cpp: Mark failing test cases as expected fails until real fix.
3001         (tst_QWebFrame::setHtmlWithResource):
3002         (tst_QWebFrame::renderGeometry):
3003
3004 2011-06-23  Csaba Osztrogonác  <ossy@webkit.org>
3005
3006         Rubber-stamped by Andreas Kling.
3007
3008         [Qt] Fix tst_QWebPage::showModalDialog() API test
3009         https://bugs.webkit.org/show_bug.cgi?id=63244
3010
3011         [Qt] Fix tst_QWebPage::testStopScheduledPageRefresh() API test
3012         https://bugs.webkit.org/show_bug.cgi?id=63245
3013
3014         * tests/qwebpage/tst_qwebpage.cpp: Mark failing test cases as expected fails.
3015         (tst_QWebPage::showModalDialog):
3016         (tst_QWebPage::testStopScheduledPageRefresh):
3017
3018 2011-06-22  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
3019
3020         Reviewed by Holger Freyther.
3021
3022         [Qt] Fix Qt namespace on QDeclarativeWebView autotest
3023         https://bugs.webkit.org/show_bug.cgi?id=63147
3024
3025         Applications (such as the test runner) are not supposed to be wrapped
3026         by {QT_BEGIN,QT_END}_NAMESPACE macros, otherwise building Qt (or
3027         QtWebKit) with a specific namespace won't work (will result in main
3028         being undefined).
3029
3030         This was the only test wrapped by these macros, all others are fine.
3031
3032         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: remove
3033         namespace macros.
3034
3035 2011-06-20  Dimitri Glazkov  <dglazkov@chromium.org>
3036
3037         Reviewed by Kent Tamura.
3038
3039         FileChooser should be only created when we need to choose files.
3040         https://bugs.webkit.org/show_bug.cgi?id=63039
3041
3042         * WebCoreSupport/ChromeClientQt.cpp:
3043         (WebCore::ChromeClientQt::runOpenPanel): Changed to use settings.
3044
3045 2011-06-21  Yael Aharon  <yael.aharon@nokia.com>
3046
3047         Reviewed by Andreas Kling.
3048
3049         [Qt] Regression(60942) wrong default action for drag-and-drop.
3050         https://bugs.webkit.org/show_bug.cgi?id=63004
3051
3052         Added special handling for the case that dragOperation is not initialized.
3053         Save the last dropOperation and pass it to the dropEvent, so that it can 
3054         be accepted by QDrag.
3055         Call event->accepted() and not event->acceptProposedAction(), because the
3056         later ignores the dropAction specified in JavaScript.
3057
3058         Tested with the test page attached to https://bugs.webkit.org/show_bug.cgi?id=40401
3059         and did not see any issue.
3060         Also manually tested all combinations of LayoutTests/fast/events/drag-and-drop.html
3061         and they all pass.
3062
3063         * Api/qwebpage.cpp:
3064         (dropActionToDragOp):
3065         (QWebPagePrivate::dragMoveEvent):
3066         (QWebPagePrivate::dropEvent):
3067
3068 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
3069
3070         Reviewed by Yury Semikhatsky.
3071
3072         Web Inspector: remove LayoutTestController::setTimelineProfilingEnabled.
3073         https://bugs.webkit.org/show_bug.cgi?id=62994
3074
3075         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3076         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3077
3078 2011-06-18  Dimitri Glazkov  <dglazkov@chromium.org>
3079
3080         Reviewed by Darin Adler.
3081
3082         Separate concerns of loading file icons and choosing files.
3083         https://bugs.webkit.org/show_bug.cgi?id=62931
3084
3085         * WebCoreSupport/ChromeClientQt.cpp:
3086         (WebCore::ChromeClientQt::loadIconForFiles): Renamed.
3087         * WebCoreSupport/ChromeClientQt.h:
3088
3089 2011-06-17  Alexis Menard  <alexis.menard@openbossa.org>
3090
3091         Reviewed by Andreas Kling.
3092
3093         [Qt] Fix wrong framework generation on MacOS when inside Qt 4.8.
3094         https://bugs.webkit.org/show_bug.cgi?id=62815
3095
3096         Partially revert r85870 which assumed that QtWebKit will never be build inside Qt
3097         anymore. Everything inside !QTDIR_build condition is not needed in the Qt tree because
3098         qbase.pri is doing the job for us, i.e. using includes generated by syncqt to
3099         setup the mac framework. It also use a correct QMAKE_LFLAGS_SONAME making possible
3100         to actually run an application linked against QtWebKit.
3101
3102         * QtWebKit.pro:
3103
3104 2011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
3105
3106         Unreviewed, rolling out r88796.
3107         http://trac.webkit.org/changeset/88796
3108         https://bugs.webkit.org/show_bug.cgi?id=62790
3109
3110         It made fast/dom/nodesFromRect-basic.html time out on Qt,
3111         64-bit, debug mode (Requested by Ossy on #webkit).
3112
3113         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3114         (DumpRenderTreeSupportQt::plainText):
3115         (DumpRenderTreeSupportQt::nodesFromRect):
3116         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3117         * tests/qwebframe/tst_qwebframe.cpp:
3118         (tst_QWebFrame::overloadedSlots):
3119         (tst_QWebFrame::domCycles):
3120
3121 2011-06-15  Diego Gonzalez  <diegohcg@webkit.org>
3122
3123         Reviewed by Kenneth Rohde Christiansen.
3124
3125         [Qt] Inconsistent behavior on a form submit request...
3126         https://bugs.webkit.org/show_bug.cgi?id=45523
3127
3128         The inconsistency occurs when a form submission requests a new window.
3129         Two windows are opened (instead of only one) and the first window is opened
3130         as a blank page.
3131
3132         By default each page is put into their own unique page group, which affects popup windows
3133         and visited links. Page groups (per process only) is a feature making it possible to use
3134         separate settings for each group, so that for instance an integrated browser/email reader
3135         can use different settings for displaying HTML pages and HTML email. To make QtWebKit work
3136         as expected out of the box, we use a default group similar to what other ports are doing.
3137
3138         * Api/qwebpage.cpp:
3139
3140 2011-06-14  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3141
3142         Reviewed by Andreas Kling.
3143
3144         [Qt] tst_QWebFrame::overloadedSlots() fails
3145         https://bugs.webkit.org/show_bug.cgi?id=37319
3146
3147         Since the implicit conversion was removed, change support functions of DRT to
3148         expect a QVariantMap instead of a QWebElement. This matches the exposed function
3149         in the controller, which takes 'document' and not 'document.documentElement'.
3150
3151         And now that Element -> QWebElement is a perfect match, we must use QWebElement
3152         instead of QVariantMap, like in plainText().
3153
3154         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3155         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3156         (DumpRenderTreeSupportQt::plainText): Fix to use QWebElement instead of
3157         QVariantMap when getting the startContainer. Also use QVariantMap directly,
3158         bridge will do conversion for us now.
3159
3160         (getCoreDocumentFromVariantMap): Extracts the WebCore::Document* from the
3161         QVariantMap that Qt bridge gives us when 'document' is passed from JS.
3162
3163         (DumpRenderTreeSupportQt::nodesFromRect): Use helper function.
3164
3165         * tests/qwebframe/tst_qwebframe.cpp: Splitted the test domCycles() into two
3166         different tests. In practice, the original test just checked whether we could
3167         create a QVariantMap representing 'document' without infinite looping due to
3168         cycles in the DOM. This was more evident before since we haven't a conversion
3169         from JSElement to QWebElement, but from JSElement to QVariantMap.
3170
3171         (tst_QWebFrame::documentHasDocumentElement): Evaluates 'document' and extracts
3172         'documentElement' from it. Compares to QWebFrame::documentElement().
3173
3174         (tst_QWebFrame::documentAllHasDocumentElement): Look inside 'document.all' for
3175         the documentElement.
3176
3177         (tst_QWebFrame::overloadedSlots): Remove expected failure and fix wrong comment.
3178
3179 2011-06-14  Andreas Kling  <kling@webkit.org>
3180
3181         Reviewed by Benjamin Poulain.
3182
3183         [Qt] Don't include convenience "QWebFoo" headers in WebKit code.
3184         https://bugs.webkit.org/show_bug.cgi?id=62632
3185
3186         * WebCoreSupport/FrameNetworkingContextQt.cpp:
3187
3188 2011-06-12  Adam Barth  <abarth@webkit.org>
3189
3190         Reviewed by Alexey Proskuryakov.
3191
3192         Rename FrameLoaderClient::interruptForPolicyChangeError to use the past tense
3193         https://bugs.webkit.org/show_bug.cgi?id=62516
3194
3195         * WebCoreSupport/FrameLoaderClientQt.cpp:
3196         (WebCore::FrameLoaderClientQt::interruptedForPolicyChangeError):
3197         * WebCoreSupport/FrameLoaderClientQt.h:
3198
3199 2011-06-12  Adam Barth  <abarth@webkit.org>
3200
3201         Attempt to fix Qt build.
3202
3203         * WebCoreSupport/FrameLoaderClientQt.cpp:
3204         (drtPrintFrameUserGestureStatus):
3205
3206 2011-06-12  Adam Barth  <abarth@webkit.org>
3207
3208         Reviewed by Eric Seidel.
3209
3210         Remove FrameLoader::isProcessingUserGesture
3211         https://bugs.webkit.org/show_bug.cgi?id=62519
3212
3213         * WebCoreSupport/FrameLoaderClientQt.cpp:
3214         (drtPrintFrameUserGestureStatus):
3215
3216 2011-06-10  Andreas Kling  <kling@webkit.org>
3217
3218         Reviewed by Benjamin Poulain.
3219
3220         [Qt] Fix 'headers' autotest when building inside Qt.
3221         https://bugs.webkit.org/show_bug.cgi?id=62449
3222
3223         * Api/qwebkitplatformplugin.h:
3224
3225 2011-06-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3226
3227         Reviewed by Kenneth Rohde Christiansen.
3228
3229         [Qt] Keep ORIENTATION_EVENTS independent from DEVICE_ORIENTATION
3230         https://bugs.webkit.org/show_bug.cgi?id=62420
3231
3232         ORIENTATION_EVENTS and DEVICE_ORIENTATION features are very similar
3233         but they meant to be independent.
3234
3235         * Api/qwebframe.cpp:
3236         (QWebFramePrivate::_q_orientationChanged):
3237         (QWebFrame::QWebFrame):
3238         * Api/qwebframe_p.h:
3239
3240 2011-06-09  Andras Becsi  <abecsi@webkit.org>
3241
3242         Reviewed by Andreas Kling.
3243
3244         [Qt] Fix the in-tree build on Linux
3245         https://bugs.webkit.org/show_bug.cgi?id=62378
3246
3247         In case of an in-tree build qmake generates defect prl dependencies for
3248         the QtWebKit library, because the inclusion of qtbase.pri adds explicitlib to CONFIG.
3249
3250         * QtWebKit.pro: Remove explicitlib and staticlib from CONFIG.
3251
3252 2011-06-09  Robert Hogan  <robert@webkit.org>
3253
3254         Reviewed by Andreas Kling.
3255
3256         Teach Qt about window.internals
3257         https://bugs.webkit.org/show_bug.cgi?id=61074
3258
3259         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3260         (DumpRenderTreeSupportQt::injectInternalsObject):
3261         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3262
3263 2011-06-08  Andreas Kling  <kling@webkit.org>
3264
3265         Reviewed by Benjamin Poulain.
3266
3267         [Qt] FrameLoaderClient: Check Vector::find() return value for WTF::notFound.
3268         https://bugs.webkit.org/show_bug.cgi?id=62274
3269
3270         Vector::find() returns size_t (which is unsigned), so we should check
3271         for WTF::notFound instead of -1.
3272
3273         * WebCoreSupport/FrameLoaderClientQt.cpp:
3274         (WebCore::FrameLoaderClientQt::createPlugin):
3275
3276 2011-06-07  Noam Rosenthal  <noam.rosenthal@nokia.com>
3277
3278         Reviewed by Andreas Kling.
3279
3280         [Texmap][Qt] Enable TextureMapper by default
3281         https://bugs.webkit.org/show_bug.cgi?id=61740
3282
3283         Enable TextureMapper on Windows+Symbian, disabling the direct OpenGL path. This would mean that
3284         for now QtWebKit on Windows/Symbian would use the Qt backend for TextureMapper.
3285
3286         * WebCoreSupport/PageClientQt.cpp:
3287         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
3288
3289 2011-06-07  Aravind Akella  <aravind.akella@nokia.com>
3290
3291         Reviewed by Laszlo Gombos.
3292
3293         [Qt][Symbian] API test failure qdeclarativewebview
3294         https://bugs.webkit.org/show_bug.cgi?id=59481
3295
3296         QML files cannot be loaded on Symbian due to difference 
3297         in capabilities between qmlwebkitplugin.dll and Qtwebkit.dll.  
3298         A PlatSec error that Qtwebkit.dll has "DRM AllFiles" capabilities 
3299         missing is observed when dynamically loading the QML plugin. 
3300
3301         * declarative/declarative.pro: Match capabilities in QtWebKit.pro.
3302         * symbian/platformplugin/platformplugin.pro: Match capabilities with the other 2 DLLs. 
3303         Also remove TARGET.VID from platformplugin, as it's not used in any other Qt WebKit DLL,
3304         and causes build warnings about undefined VENDOR_VID. 
3305         * tests/tests.pri: Add WriteDeviceData capability for API tests. 
3306
3307 2011-06-04  Robert Hogan  <robert@webkit.org>
3308
3309         Reviewed by Andreas Kling.
3310
3311         [Qt] Fix and unskip acid2
3312         https://bugs.webkit.org/show_bug.cgi?id=62089
3313
3314         shouldFallBack() tells the DOM if it should attempt to render
3315         the next nested <object> if its parent fails to load.
3316
3317         This fix is only required for the fast/css version of the ACID2
3318         test, which loads a non-existent file:// url. The HTTP version of the
3319         test already passes because the loader will render fallback content
3320         on a failed HTTP load without delegating the decision to the client
3321         ( see MainResourceLoader::continueAfterContentPolicy).
3322
3323         Some ports also check for WebKitErrorPluginWillHandleLoad when deciding
3324         what to return. This error isn't currently set by Qt so we don't check
3325         it. (Other ports set it when the erring document is a MediaDocument, maybe
3326         we should do that too at some point).
3327
3328         * WebCoreSupport/FrameLoaderClientQt.cpp:
3329         (WebCore::FrameLoaderClientQt::shouldFallBack):
3330
3331 2011-06-03  Rafael Brandao  <rafael.lobo@openbossa.org>
3332
3333         Reviewed by Andreas Kling.
3334
3335         [Qt] It made two Qt API tests fail
3336         https://bugs.webkit.org/show_bug.cgi?id=58847
3337
3338         Modified failing test's base url so it could get a valid origin
3339         and make use of local storage. Also added another test that checks
3340         local storage visibility in both scenarios.
3341
3342         * tests/qwebpage/tst_qwebpage.cpp:
3343         (tst_QWebPage::testOptionalJSObjects):
3344         (checkLocalStorageVisibility):
3345         (tst_QWebPage::testLocalStorageVisibility):
3346
3347 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
3348
3349         Reviewed by Andreas Kling.
3350
3351         [Qt] Warning fixes on comparisons between a signed and an unsigned.
3352
3353         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3354         (DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo):
3355         (DumpRenderTreeSupportQt::nodesFromRect):
3356
3357 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
3358
3359         Reviewed by Andreas Kling.
3360
3361         To support building namespaced Qt, we require that forward-declarations
3362         of Qt classes be wrapped in QT_BEGIN_NAMESPACE and QT_END_NAMESPACE.
3363
3364         * WebCoreSupport/FrameLoaderClientQt.h:
3365
3366 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
3367
3368         Unreviewed build fix after r87902.
3369
3370         To support building namespaced Qt, we require that forward-declarations
3371         of Qt classes be wrapped in QT_BEGIN_NAMESPACE and QT_END_NAMESPACE but
3372         only on classes inside Qt.
3373         
3374         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3375
3376 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
3377
3378         Reviewed by Benjamin Poulain.
3379
3380         Some warning fixes. Values in switch not handled, and
3381         a comparison between a signed and an unsigned.
3382
3383         * Api/qwebpage.cpp:
3384         (QWebPagePrivate::inputMethodEvent):
3385         (QWebPagePrivate::dynamicPropertyChangeEvent):
3386         (QWebPage::action):
3387
3388 2011-06-02  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3389
3390         Reviewed by Andreas Kling.
3391
3392         [Qt] Fix enum order in qwebpage.h public API header
3393         https://bugs.webkit.org/show_bug.cgi?id=61959
3394
3395         Since qwebpage.h is a public header, we can't change the values of
3396         the enumerations. This patch moves the new enumeration to the end
3397         of the list. As a bonus, adds a missing entry in
3398         editorCommandWebActions table.
3399
3400         * Api/qwebpage.cpp:
3401         * Api/qwebpage.h:
3402
3403 2011-06-02  Andreas Kling  <kling@webkit.org>
3404
3405         Rubber-stamped by Simon Hausmann.
3406
3407         Remove Qt's precompiled header hack as it was broken, and was not even
3408         used unless building WebKit inside a Qt tree.
3409
3410         * WebKit_pch.h: Removed.
3411
3412 2011-06-02  Andreas Kling  <kling@webkit.org>
3413
3414         Unreviewed build fix.
3415
3416         To support building namespaced Qt, we require that forward-declarations
3417         of Qt classes be wrapped in QT_BEGIN_NAMESPACE and QT_END_NAMESPACE.
3418
3419         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3420
3421 2011-06-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3422
3423         Reviewed by Kenneth Rohde Christiansen.
3424
3425         [Qt]Fix tst_QWebFrame::setUrlToInvalid() autotest after r84762
3426         https://bugs.webkit.org/show_bug.cgi?id=59345
3427
3428         KURL and QUrl disagree whether certain URLs are valid or not. The regression here
3429         was caused by the fact that now KURL accepts "http:/example.com" (note only one
3430         slash) and our test case used a strange edge case that's transformed into a
3431         "one-slash" URL that now KURL can handle.
3432
3433         QtWebKit approach in this case is to do a best effort and accept the QUrl if KURL
3434         can understand it. So I've updated the test to use a more meaningful example and
3435         show that an invalid URL gets converted to a valid URL if possible.
3436
3437         * tests/qwebframe/tst_qwebframe.cpp:
3438         (tst_QWebFrame::setUrlToInvalid):
3439
3440 2011-06-01  Andreas Kling  <kling@webkit.org>
3441
3442         Reviewed by Benjamin Poulain.
3443
3444         REGRESSION: [Qt] QNetworkReply delivered by the unsupportedContent() signal does not contain downloaded data
3445         https://bugs.webkit.org/show_bug.cgi?id=49650
3446
3447         Defer emission of QWebPage::unsupportedContent() until we're back in the event loop.
3448         This lets the QNAM backend finish with the reply without handing over ownership to the user code.
3449
3450         No new tests since this doesn't fail for qrc:// or file:// URLs and our tests can't depend on http:// URLs.
3451
3452         To correctly solve this issue, we need changes to Qt, tracked here:
3453         http://bugreports.qt.nokia.com/browse/QTBUG-18718
3454
3455         * WebCoreSupport/FrameLoaderClientQt.cpp:
3456         (WebCore::FrameLoaderClientQt::setFrame):
3457         (WebCore::FrameLoaderClientQt::download):
3458         * WebCoreSupport/FrameLoaderClientQt.h:
3459
3460 2011-06-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3461
3462         Reviewed by Tor Arne Vestbø.
3463
3464         [Qt] Rewrite tst_QDeclarativeWebView::multipleWindows() to not depend on Grid internals
3465         https://bugs.webkit.org/show_bug.cgi?id=61739
3466
3467         The skipped test was imported from Qt source repository, and used private headers
3468         to peek in the QML Grid element. This patch changes the QML used to expose the
3469         information we want to test: number of pages opened and the first page opened.
3470
3471         * tests/qdeclarativewebview/resources/newwindows.html:
3472         Added <body> tags. We have no reason to not use them in the test.
3473
3474         * tests/qdeclarativewebview/resources/newwindows.qml:
3475         Moved the timer out of the page component, used anchors for setting webview size,
3476         changed the way we count pages opened. Also changed coding style a bit.
3477
3478         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
3479         (tst_QDeclarativeWebView::multipleWindows):
3480         We now look for properties with the information we want in the rootItem: pagesOpened and
3481         firstPageOpened.
3482
3483 2011-05-31  Rafael Brandao  <rafael.lobo@openbossa.org>
3484
3485         Reviewed by Andreas Kling.
3486
3487         [Qt] tst_QWebFrame::render() failing
3488         https://bugs.webkit.org/show_bug.cgi?id=60893
3489         
3490         The test was expecting the frame contents to be already loaded
3491         before rendering it into a QPicture. Renamed the test to fit
3492         its real purpose more accordingly.
3493
3494         * tests/qwebframe/tst_qwebframe.cpp:
3495         (tst_QWebFrame::renderGeometry):
3496
3497 2011-05-30  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3498
3499         Reviewed by Andreas Kling.
3500
3501         [Qt] Fix unnecessary wait in API autotest tst_QWebFrame::scrollbarsOff
3502         https://bugs.webkit.org/show_bug.cgi?id=61711
3503
3504         The loadFinished() signal was emitted directly inside the call for setHtml, so
3505         the test was waiting the loadFinished() signal with a big timeout. Change this by
3506         a very small timeout and a verification with signal spy.
3507
3508         In practice, setHtml() will either directly call loadFinished() or queue it to
3509         the next event loop run, and test will work for both situations.
3510
3511         * tests/qwebframe/tst_qwebframe.cpp:
3512         (tst_QWebFrame::scrollbarsOff):
3513
3514 2011-05-30  Noam Rosenthal  <noam.rosenthal@nokia.com>
3515
3516         Reviewed by Kenneth Rohde Christiansen.
3517
3518         [Texmap][Qt] Disable accelerated plugins/media in until they're working.
3519         https://bugs.webkit.org/show_bug.cgi?id=61687
3520
3521         Turn off accelerated compositing for media and plugins when in texture-mapper.
3522
3523         * Api/qwebsettings.cpp:
3524         (QWebSettingsPrivate::apply):
3525
3526 2011-05-28  Adam Barth  <abarth@webkit.org>
3527
3528         Reviewed by Alexey Proskuryakov.
3529
3530         Audit all uses of KURL::prettyURL
3531         https://bugs.webkit.org/show_bug.cgi?id=61201
3532
3533         Update callers of prettyURL to just call string.
3534
3535         * WebCoreSupport/ChromeClientQt.cpp:
3536         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3537         * WebCoreSupport/FrameLoaderClientQt.cpp:
3538         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
3539         (WebCore::FrameLoaderClientQt::cancelledError):
3540         (WebCore::FrameLoaderClientQt::blockedError):
3541         (WebCore::FrameLoaderClientQt::objectContentType):
3542         (WebCore::FrameLoaderClientQt::createPlugin):
3543
3544 2011-05-27  Alexis Menard  <alexis.menard@openbossa.org>
3545
3546         Reviewed by Csaba Osztrogonác.
3547
3548         [Qt] Fix tst_QGraphicsWebView::setPalette(inactiveBG) autotest
3549         https://bugs.webkit.org/show_bug.cgi?id=61044
3550
3551         Make sure to set the active window on the application too.
3552
3553         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
3554         (tst_QGraphicsWebView::setPalette):
3555
3556 2011-05-26  Alexis Menard  <alexis.menard@openbossa.org>
3557
3558         Unreviewed build fix for Qt and QuickTime backend.
3559
3560         r87328 added a new system interface, we need to add it too.
3561
3562         * WebCoreSupport/WebSystemInterface.mm:
3563         (InitWebCoreSystemInterface):
3564
3565 2011-05-25  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3566
3567         Reviewed by Andreas Kling.
3568
3569         [Qt] JSC bridge: implement __qt_sender__ without using Scope Chain
3570         https://bugs.webkit.org/show_bug.cgi?id=61343
3571
3572         Create a '__qt_sender__' property in the global object, that returns the top of
3573         the qtSenderStack. This is an alternative implementation for the feature of
3574         providing a way for a function (acting as a Qt 'slot') discover which object
3575         emitted the signal that caused it to be executed.
3576
3577         This reduces the coupling of the Qt bridge and JSC internal implementation. The
3578         patch tries to use as much JSC public API as possible.
3579
3580         This behavior is covered by the tst_QWebFrame::connectAndDisconnect() auto test.
3581
3582         * WebCoreSupport/FrameLoaderClientQt.cpp:
3583         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
3584         Instead of emitting the QWebPage::javaScriptWindowObjectCleared() directly, calls
3585         a QWebPagePrivate function to do it.
3586
3587         * Api/qwebframe_p.h:
3588         * Api/qwebframe.cpp:
3589         (QWebFramePrivate::didClearedWindowObject):
3590         Before emitting the signal mentioned, adds the '__qt_sender__' to the fresh
3591         global object.
3592
3593         (qtSenderCallback):
3594         Returns the JSObjectRef corresponding to the top of qtSenderStack.
3595
3596         (QWebFramePrivate::addQtSenderToGlobalObject):
3597         Create a property with a qtSenderCallback as getter function in the global object.
3598
3599 2011-05-25  Alexis Menard  <alexis.menard@openbossa.org>
3600
3601         Reviewed by Eric Carlson.
3602
3603         [Qt] Enable usage of QuickTime mediaplayer for the Qt port on Mac.
3604         https://bugs.webkit.org/show_bug.cgi?id=61279
3605
3606         Enable the usage of QuickTime backend for the Qt port. It can be enabled by
3607         passing DEFINES+=USE_QTKIT=1 when calling build-webkit.
3608
3609         * Api/qwebpage.cpp:
3610         (QWebPagePrivate::QWebPagePrivate):
3611         * QtWebKit.pro:
3612         * WebCoreSupport/FullScreenVideoQt.cpp:
3613         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
3614         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
3615         (WebCore::FullScreenVideoQt::isValid):
3616         * WebCoreSupport/WebSystemInterface.h: Added.
3617         * WebCoreSupport/WebSystemInterface.mm: Added.
3618         (InitWebCoreSystemInterface):
3619
3620 2011-05-25  Qi Zhang  <qi.2.zhang@nokia.com>
3621
3622         Reviewed by Andreas Kling.
3623
3624         [Qt] fast/css/disabled-author-styles.html failed
3625         https://bugs.webkit.org/show_bug.cgi?id=61438
3626
3627         Provided API setAuthorAndUserStylesEnabled for DumpRenderTree.
3628
3629         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3630         (DumpRenderTreeSupportQt::setAuthorAndUserStylesEnabled):
3631         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3632
3633 2011-05-24  Adam Barth  <abarth@webkit.org>
3634
3635         Reviewed by Eric Seidel.
3636
3637         Add FIXME comments about removing FrameLoader::isProcessingUserGesture
3638         https://bugs.webkit.org/show_bug.cgi?id=61395
3639
3640         * WebCoreSupport/FrameLoaderClientQt.cpp:
3641         (drtPrintFrameUserGestureStatus):
3642
3643 2011-05-23  Luiz Agostini  <luiz.agostini@openbossa.org>
3644
3645         Reviewed by Andreas Kling.
3646
3647         [Qt] When opening a combo-box the popup renders badly.
3648         https://bugs.webkit.org/show_bug.cgi?id=61288
3649
3650         Removing combobox palette changes from QtFallbackWebPopup::show() because they
3651         are causing rendering problems for some styles.
3652
3653         The changes in palette are not needed because the background and foreground
3654         colors are already set by QStandardItem::setBackground() and QStandardItem::setForeground()
3655         in method QtFallbackWebPopup::populate().
3656
3657         * WebCoreSupport/QtFallbackWebPopup.cpp:
3658         (WebCore::QtFallbackWebPopup::show):
3659
3660 2011-05-23  Joe Wild  <joseph.wild@nokia.com>
3661
3662         Reviewed by Andreas Kling.
3663
3664         [Qt] The Qt WebKit Symbian .def file needs to be updated so Symbian will build
3665         https://bugs.webkit.org/show_bug.cgi?id=61200
3666
3667         * symbian/eabi/QtWebKitu.def:
3668
3669 2011-05-22  Hui Huang  <hui.2.huang@nokia.com>, Yi Shen  <yi.4.shen@nokia.com>
3670
3671         Reviewed by Laszlo Gombos.
3672
3673         [Qt] Upstream Symbian platform plugin
3674         https://bugs.webkit.org/show_bug.cgi?id=58435
3675
3676         Upstream Symbian platform plugin with html5 video player.
3677
3678         * symbian/platformplugin/HTML5VideoPlugin.cpp: Added.
3679         (HTML5FullScreenVideoHandler::HTML5FullScreenVideoHandler):
3680         (HTML5FullScreenVideoHandler::enterFullScreen):
3681         (HTML5FullScreenVideoHandler::exitFullScreen):
3682         (HTML5FullScreenVideoHandler::onPlayerError):
3683         (HTML5FullScreenVideoHandler::onPlayerStateChanged):
3684         (HTML5FullScreenVideoHandler::onMediaStatusChanged):
3685         (HTML5VideoPlugin::supportsExtension):
3686         (HTML5VideoPlugin::createExtension):
3687         * symbian/platformplugin/HTML5VideoPlugin.h: Added.
3688         (HTML5FullScreenVideoHandler::requiresFullScreenForVideoPlayback):
3689         (HTML5FullScreenVideoHandler::isFullScreen):
3690         (HTML5FullScreenVideoHandler::updateScreenRect):
3691         * symbian/platformplugin/HTML5VideoWidget.cpp: Added.
3692         (HTML5VideoWidget::HTML5VideoWidget):
3693         (HTML5VideoWidget::setDuration):
3694         (HTML5VideoWidget::mousePressEvent):
3695         (HTML5VideoWidget::onPlayerStopped):
3696         (HTML5VideoWidget::onPlayerError):
3697         (HTML5VideoWidget::onEndOfMedia):
3698         (HTML5VideoWidget::onBufferingMedia):
3699         (HTML5VideoWidget::onBufferedMedia):
3700         (HTML5VideoWidget::onControlClicked):
3701         (HTML5VideoWidget::onPositionChanged):
3702         (HTML5VideoWidget::onSliderMoved):
3703         (HTML5VideoWidget::onCloseClicked):
3704         (HTML5VideoWidget::showFullScreen):
3705         (HTML5VideoWidget::setVolume):
3706         * symbian/platformplugin/HTML5VideoWidget.h: Added.
3707         * symbian/platformplugin/OverlayWidget.cpp: Added.
3708         (OverlayWidget::OverlayWidget):
3709         (OverlayWidget::~OverlayWidget):
3710         (OverlayWidget::setDuration):
3711         (OverlayWidget::setPosition):
3712         (OverlayWidget::setVolume):
3713         (OverlayWidget::mousePressEvent):
3714         (OverlayWidget::onPlayerStopped):
3715         (OverlayWidget::onPlayerError):
3716         (OverlayWidget::onEndOfMedia):
3717         (OverlayWidget::onBufferingMedia):
3718         (OverlayWidget::onBufferedMedia):
3719         (OverlayWidget::timeToString):
3720         (OverlayWidget::applyStyleSheet):
3721         (OverlayWidget::onControlClicked):
3722         (OverlayWidget::onSliderMoved):
3723         (OverlayWidget::onSoundClicked):
3724         (OverlayWidget::onCloseClicked):
3725         (OverlayWidget::onVolumeSliderReleased):
3726         (OverlayWidget::onVolumeSliderMoved):
3727         (OverlayWidget::onTimerTimeout):
3728         (OverlayWidget::showFullScreen):
3729         * symbian/platformplugin/OverlayWidget.h: Added.
3730         * symbian/platformplugin/PlayerButton.cpp: Added.
3731         (PlayerButton::PlayerButton):
3732         (PlayerButton::event):
3733         * symbian/platformplugin/PlayerButton.h: Added.
3734         * symbian/platformplugin/PlayerLabel.cpp: Added.
3735         (PlayerLabel::PlayerLabel):
3736         (PlayerLabel::onPlayerError):
3737         (PlayerLabel::startBufferingAnimation):
3738         (PlayerLabel::stopBufferingAnimation):
3739         (PlayerLabel::onAnimationTimeout):
3740         * symbian/platformplugin/PlayerLabel.h: Added.
3741         * symbian/platformplugin/WebPlugin.cpp:
3742         (WebPlugin::createExtension):
3743         * symbian/platformplugin/images: Added.
3744         * symbian/platformplugin/images/button_cannotplay.png: Added.
3745         * symbian/platformplugin/images/button_close.png: Added.
3746         * symbian/platformplugin/images/button_pause.png: Added.
3747         * symbian/platformplugin/images/button_play.png: Added.
3748         * symbian/platformplugin/images/button_sound_off.png: Added.
3749         * symbian/platformplugin/images/button_sound_on.png: Added.
3750         * symbian/platformplugin/images/loading_buffering_1.png: Added.
3751         * symbian/platformplugin/images/loading_buffering_2.png: Added.
3752         * symbian/platformplugin/images/loading_buffering_3.png: Added.
3753         * symbian/platformplugin/images/loading_buffering_4.png: Added.
3754         * symbian/platformplugin/platformplugin.pro:
3755         * symbian/platformplugin/platformplugin.qrc: Added.
3756         * symbian/platformplugin/qss: Added.
3757         * symbian/platformplugin/qss/OverlayWidget.qss: Added.
3758
3759 2011-05-22  Robert Hogan  <robert@webkit.org>
3760
3761         Reviewed by Kenneth Rohde Christiansen.
3762
3763         Fix policyDelegate in Qt DRT
3764
3765         https://bugs.webkit.org/show_bug.cgi?id=61247
3766         
3767         Use the 'policy delegate' implemented in FrameLoaderClient
3768         for layout tests. The partial implementation in DumpRenderTreeQt
3769         is redundant.
3770
3771         * WebCoreSupport/FrameLoaderClientQt.cpp:
3772         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3773
3774 2011-05-22  Andrew Wason  <rectalogic@rectalogic.com>
3775
3776         Reviewed by Benjamin Poulain.
3777
3778         [Qt] Implement toImageData() in QtWebKit Bridge
3779         https://bugs.webkit.org/show_bug.cgi?id=60897
3780
3781         * docs/qtwebkit-bridge.qdoc:
3782         * docs/webkitsnippets/qtwebkit_bridge_snippets.cpp:
3783         (wrapInFunction):
3784          Document Qt bridge toImageData() feature.
3785         * tests/hybridPixmap/test.html:
3786         * tests/hybridPixmap/widget.cpp:
3787         (Widget::Widget):
3788         (Widget::abcImage):
3789         * tests/hybridPixmap/widget.h:
3790          Add tests for Qt bridge toImageData() feature.
3791
3792 2011-05-20  Simon Fraser  <simon.fraser@apple.com>
3793
3794         Reviewed by Sam Weinig.
3795
3796         numberOfActiveAnimations() can include animations from documents in the page cache
3797         https://bugs.webkit.org/show_bug.cgi?id=53641
3798
3799         Pass the Frame's document as the one to count animations on.
3800
3801         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3802         (DumpRenderTreeSupportQt::numberOfActiveAnimations):
3803
3804 2011-05-20  Csaba Osztrogonác  <ossy@webkit.org>
3805
3806         Reviewed by Benjamin Poulain.
3807
3808         [Qt] tst_QWebElement::style() fails because QWebElement::InlineStyle doesn't work as expected
3809         https://bugs.webkit.org/show_bug.cgi?id=60372
3810
3811         * tests/qwebelement/tst_qwebelement.cpp: Mark failing test case as expected fail.
3812         (tst_QWebElement::style):
3813
3814 2011-05-20  Csaba Osztrogonác  <ossy@webkit.org>
3815
3816         Reviewed by Benjamin Poulain.
3817
3818         [Qt] Fix tst_QDeclarativeWebView::basicProperties() and historyNav() autotests
3819         https://bugs.webkit.org/show_bug.cgi?id=61042
3820
3821         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: Mark failing test cases as expected fails.
3822         (tst_QDeclarativeWebView::basicProperties):
3823         (tst_QDeclarativeWebView::historyNav):
3824
3825 2011-05-20  Csaba Osztrogonác  <ossy@webkit.org>
3826
3827         Reviewed by Benjamin Poulain.
3828
3829         [Qt] Fix tst_QWebPage::testOptionalJSObjects() autotest
3830         https://bugs.webkit.org/show_bug.cgi?id=61045
3831
3832         * tests/qwebpage/tst_qwebpage.cpp:
3833         (tst_QWebPage::testOptionalJSObjects): Mark failing test cases as expected fails.
3834
3835 2011-05-20  Peter Varga  <pvarga@webkit.org>
3836
3837         Reviewed by Simon Hausmann.
3838
3839         [Qt][V8] Use qtscript-staging's shipped version of V8 when building with --v8
3840         https://bugs.webkit.org/show_bug.cgi?id=56649
3841
3842         Use the provided V8 and functionality of
3843         http://qt.gitorious.org/+qt-developers/qt/qtscript-staging to build QtWebKit+V8.
3844         Based on the original patch of Andras Becsi <abecsi@webkit.org>.
3845
3846         * Api/qwebframe.cpp:
3847         (QWebFrame::addToJavaScriptWindowObject): Fix QString deprecated
3848         warning.
3849         * QtWebKit.pro: Adding the V8 library should happen in the final build
3850         step.
3851         * WebCoreSupport/ChromeClientQt.cpp: Add missing head.
3852         * WebCoreSupport/DumpRenderTreeSupportQt.cpp: Ditto.
3853
3854 2011-05-20  Csaba Osztrogonác  <ossy@webkit.org>
3855
3856         Reviewed by Benjamin Poulain.
3857
3858         [Qt]Fix tst_QWebFrame::setUrlToInvalid() autotest after r84762
3859         https://bugs.webkit.org/show_bug.cgi?id=59345
3860
3861         * tests/qwebframe/tst_qwebframe.cpp:
3862         (tst_QWebFrame::setUrlToInvalid): Mark failing test cases as expected fails.
3863
3864 2011-05-19  Zsolt Fehér  <h490267@stud.u-szeged.hu>
3865
3866         Reviewed by Csaba Osztrogonác.
3867
3868         [Qt] Implement eventSender.scalePageBy
3869         https://bugs.webkit.org/show_bug.cgi?id=60015
3870
3871         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3872         (DumpRenderTreeSupportQt::scalePageBy):
3873         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3874
3875 2011-05-18  Yi Shen  <yi.4.shen@nokia.com>
3876
3877         Reviewed by Andreas Kling.
3878
3879         [Qt] Enterkey to go to Newline does not work in the text area(in HTML form)
3880         https://bugs.webkit.org/show_bug.cgi?id=33179
3881
3882         Remove the implementation of the handleInputMethodKeydown, which introduces
3883         a regression(r82243) on Linux. Also, add more Api tests for the EnterKey event.
3884
3885         * WebCoreSupport/EditorClientQt.cpp:
3886         (WebCore::EditorClientQt::handleInputMethodKeydown): Remove implementation.
3887         * tests/qwebpage/tst_qwebpage.cpp:
3888         (tst_QWebPage::inputMethods): Add more tests.
3889
3890 2011-05-18  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
3891
3892         Reviewed by Csaba Osztrogonác.
3893
3894         [Qt] Implement layoutTestController.setValueForUser()
3895         https://bugs.webkit.org/show_bug.cgi?id=60956
3896
3897         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3898         (DumpRenderTreeSupportQt::setValueForUser):
3899         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3900
3901 2011-05-16  Robert Hogan  <robert@webkit.org>
3902
3903         Reviewed by Kenneth Rohde Christiansen.
3904
3905         plugins/invalidate_rect.html fails on linux ports
3906
3907         Add ChromeClientQt::allowsAcceleratedCompositing().
3908
3909         https://bugs.webkit.org/show_bug.cgi?id=54051
3910
3911         * WebCoreSupport/ChromeClientQt.cpp:
3912         (WebCore::ChromeClientQt::allowsAcceleratedCompositing):
3913         * WebCoreSupport/ChromeClientQt.h:
3914
3915 2011-05-17  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3916
3917         Reviewed by Andreas Kling.
3918
3919         [Qt] Simplify syntax in test code to make prepare-ChangeLog less confused
3920         https://bugs.webkit.org/show_bug.cgi?id=60978
3921
3922         Backslash to escape newlines was confusing both prepare-ChangeLog and the
3923         QtCreator highlight system.
3924
3925         * tests/qwebframe/tst_qwebframe.cpp:
3926         (tst_QWebFrame::evalJSV):
3927         Remove usage of backslash to escape newlines in string literal.
3928
3929 2011-05-17  Young Han Lee  <joybro@company100.net>
3930
3931         Reviewed by Csaba Osztrogonác.
3932
3933         [Texmap][Qt] Enable strict PassOwnPtr for Qt with texmap enabled.
3934         https://bugs.webkit.org/show_bug.cgi?id=60947
3935
3936         * WebCoreSupport/PageClientQt.cpp:
3937         (WebCore::PageClientQWidget::setRootGraphicsLayer):
3938
3939 2011-05-16  Jon Lee  <jonlee@apple.com>
3940
3941         Reviewed by Simon Fraser.
3942
3943         Can't horizontally scroll iframes and overflow because wheel events are always accepted
3944         https://bugs.webkit.org/show_bug.cgi?id=60779
3945
3946         * WebCoreSupport/ChromeClientQt.h:
3947         (WebCore::ChromeClientQt::shouldRubberBandInDirection): Default impl of new ChromeClient method
3948         (WebCore::ChromeClientQt::numWheelEventHandlersChanged): Default impl of new ChromeClient method
3949
3950 2011-05-16  Andreas Kling  <kling@webkit.org>
3951
3952         Reviewed by Kenneth Rohde Christiansen.
3953
3954         REGRESSION(r83820): [Qt] Accelerated compositing no longer works in QGraphicsWebView.
3955         https://bugs.webkit.org/show_bug.cgi?id=60892
3956
3957         Don't set the ItemClipsChildrenToShape flag for the root platform layer,
3958         since that is now the overflow controls layer. The clip layer, which was
3959         previously the root platform layer, already gets the flag by way of
3960         the GraphicsLayer mask-to-bounds flag.
3961
3962         * WebCoreSupport/PageClientQt.cpp:
3963         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
3964
3965 2011-05-16  Adam Barth  <abarth@webkit.org>
3966
3967         Partial revert of r86537.  FullScreenVideoQt.h can't depend on OwnPtr.h
3968         because moc_FullScreenVideoQt.cpp fails to include config.h.
3969         Apparently, having moc_FullScreenVideoQt.cpp properly include config.h
3970         is hard, so we're going back to manual new and delete for this class.
3971         Bad times.
3972
3973         * WebCoreSupport/FullScreenVideoQt.cpp:
3974         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
3975         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
3976         * WebCoreSupport/FullScreenVideoQt.h:
3977
3978 2011-05-16  Adam Barth  <abarth@webkit.org>
3979
3980         Sigh.  This code is somewhat crazy.
3981
3982         * WebCoreSupport/InspectorClientQt.cpp:
3983         (WebCore::InspectorClientQt::openInspectorFrontend):
3984
3985 2011-05-16  Adam Barth  <abarth@webkit.org>
3986
3987         Attempt to fix Qt build.  (Strict PassOwnPtr fix.)
3988
3989         This patch requires some slightly fancy footwork.
3990
3991         * WebCoreSupport/InspectorClientQt.cpp:
3992         (WebCore::InspectorClientQt::openInspectorFrontend):
3993         (WebCore::InspectorFrontendClientQt::InspectorFrontendClientQt):
3994
3995 2011-05-16  Adam Barth  <abarth@webkit.org>
3996
3997         Missing include.
3998
3999         * WebCoreSupport/PopupMenuQt.h:
4000
4001 2011-05-16  Adam Barth  <abarth@webkit.org>
4002
4003         [Qt] QtPlatformPlugin create methods should use PassOwnPtr
4004         https://bugs.webkit.org/show_bug.cgi?id=60873
4005
4006         This change is slightly more than a build fix because the patch kind of
4007         spidered a bit while I was trying to fix the build the "right way."
4008         Hopefully nothing here is controversial.
4009
4010         * Api/qwebpage.cpp:
4011         (QWebPagePrivate::adjustPointForClicking):
4012         * WebCoreSupport/ChromeClientQt.cpp:
4013         (WebCore::ChromeClientQt::createSelectPopup):
4014         * WebCoreSupport/FullScreenVideoQt.cpp:
4015         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
4016         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
4017         * WebCoreSupport/FullScreenVideoQt.h:
4018         * WebCoreSupport/NotificationPresenterClientQt.cpp:
4019         (WebCore::NotificationWrapper::NotificationWrapper):
4020         (WebCore::NotificationPresenterClientQt::displayNotification):
4021         * WebCoreSupport/PopupMenuQt.cpp:
4022         (WebCore::PopupMenuQt::PopupMenuQt):
4023         (WebCore::PopupMenuQt::~PopupMenuQt):
4024         (WebCore::PopupMenuQt::show):
4025         * WebCoreSupport/PopupMenuQt.h:
4026         * WebCoreSupport/QtPlatformPlugin.cpp:
4027         (WebCore::QtPlatformPlugin::createSelectInputMethod):
4028         (WebCore::QtPlatformPlugin::createNotificationPresenter):
4029         (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):
4030         (WebCore::QtPlatformPlugin::createTouchModifier):
4031         (WebCore::QtPlatformPlugin::createFullScreenVideoHandler):
4032         * WebCoreSupport/QtPlatformPlugin.h:
4033         (WebCore::QtPlatformPlugin::QtPlatformPlugin):
4034
4035 2011-05-15  Adam Barth  <abarth@webkit.org>
4036
4037         Attempt to fix the Qt build.  (Strict PassOwnPtr fix.)
4038
4039         * Api/qgraphicswebview.cpp:
4040         (QGraphicsWebViewPrivate::detachCurrentPage):
4041         (QGraphicsWebView::setPage):
4042         * Api/qwebpage.cpp:
4043         (QWebPage::setView):
4044
4045 2011-05-15  Sheriff Bot  <webkit.review.bot@gmail.com>
4046
4047         Unreviewed, rolling out r86504.
4048         http://trac.webkit.org/changeset/86504
4049         https://bugs.webkit.org/show_bug.cgi?id=60853
4050
4051         "Broke Qt EventSender in editing/selection tests" (Requested
4052         by mwenge on #webkit).
4053
4054         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4055         * WebCoreSupport/DumpRenderTreeSupportQt.h:
4056
4057 2011-05-12  Robert Hogan  <robert@webkit.org>
4058
4059         Reviewed by Benjamin Poulain.
4060
4061         [Qt] fix http/tests/plugins/plugin-document-has-focus.html
4062         https://bugs.webkit.org/show_bug.cgi?id=60722
4063
4064         QWebPage::setView() will display the browser window, so
4065         implement a private version that does just enough to 
4066         satisfy EventSender's requirement to install an event
4067         filter on a page's web view.
4068
4069         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4070         (DumpRenderTreeSupportQt::setView):
4071         * WebCoreSupport/DumpRenderTreeSupportQt.h:
4072
4073 2011-05-13  Sheriff Bot  <webkit.review.bot@gmail.com>
4074
4075         Unreviewed, rolling out r86447.
4076         http://trac.webkit.org/changeset/86447
4077         https://bugs.webkit.org/show_bug.cgi?id=60809
4078
4079         "Broke some uses of EventSender object on Qt" (Requested by
4080         mwenge on #webkit).
4081
4082         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4083         * WebCoreSupport/DumpRenderTreeSupportQt.h:
4084
4085 2011-05-13  Sam Weinig  <sam@webkit.org>
4086
4087         Reviewed by Anders Carlsson.
4088
4089         Prune #includes from FrameView.h (Part 2)
4090         https://bugs.webkit.org/show_bug.cgi?id=60748
4091
4092         - Update files that were depending on FrameView.h #including Frame.h or
4093           Page.h.
4094
4095         * Api/qgraphicswebview.cpp:
4096         * WebCoreSupport/ChromeClientQt.cpp:
4097
4098 2011-05-13  Robert Hogan  <robert@webkit.org>
4099
4100         Reviewed by Benjamin Poulain.
4101
4102         [Qt] fix http/tests/plugins/plugin-document-has-focus.html
4103         https://bugs.webkit.org/show_bug.cgi?id=60722
4104
4105         QWebPage::setView() will display the browser window, so
4106         implement a private version that does just enough to 
4107         satisfy EventSender's requirement to install an event
4108         filter on a page's web view.
4109
4110         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4111         (DumpRenderTreeSupportQt::setView):
4112         * WebCoreSupport/DumpRenderTreeSupportQt.h:
4113
4114 2011-05-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
4115
4116         Reviewed by nobody, build fix.
4117
4118         [Qt] Fix build on MSVC.
4119
4120         qobject_cast<> requires the class to be exported on MSVC,
4121         removing it since the code that needs it is commented out for
4122         the same reason.
4123
4124         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
4125         (tst_QDeclarativeWebView::elementAreaAt):
4126
4127 2011-05-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
4128
4129         Reviewed by nobody, build fix.
4130
4131         [Qt] Fix build on MSVC by only enabling tst_MIMESniffing on linux.
4132
4133         * tests/tests.pro:
4134
4135 2011-05-12  Young Han Lee  <joybro@company100.net>
4136
4137         Reviewed by Kenneth Rohde Christiansen.
4138
4139         [Qt] Implement layoutTestController.layerTreeAsText()
4140         https://bugs.webkit.org/show_bug.cgi?id=60367
4141
4142         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4143         (DumpRenderTreeSupportQt::layerTreeAsText):
4144         * WebCoreSupport/DumpRenderTreeSupportQt.h:
4145
4146 2011-05-11  Noam Rosenthal  <noam.rosenthal@nokia.com>
4147
4148         Reviewed by Kenneth Rohde Christiansen.
4149
4150         [Texmap][Qt] Upstream texture-mapper changes from Qt's WebKit2 branch
4151         https://bugs.webkit.org/show_bug.cgi?id=60439
4152
4153         Patch 10/12: Glue the TextureMapper refactoring into Webkit(1).
4154         1. Pass a GraphicsLayer* instead of a PlatformLayer* to the QWebPageClient.
4155         2. Set parameters in TextureMapper/TextureMapperNode instead of passing them in an options argument.
4156         3. Rename PlatformLayerProxyQt to TextureMapperNodeClient
4157
4158         * Api/qwebframe.cpp:
4159         (QWebFramePrivate::renderCompositedLayers):
4160         * Api/qwebframe.h:
4161         * Api/qwebframe_p.h:
4162         (QWebFramePrivate::QWebFramePrivate):
4163         * WebCoreSupport/ChromeClientQt.cpp:
4164         (WebCore::ChromeClientQt::attachRootGraphicsLayer):
4165         * WebCoreSupport/PageClientQt.cpp:
4166         (WebCore::TextureMapperNodeClientQt::TextureMapperNodeClientQt):
4167         (WebCore::TextureMapperNodeClientQt::scroll):
4168         (WebCore::TextureMapperNodeClientQt::setTextureMapper):
4169         (WebCore::TextureMapperNodeClientQt::~TextureMapperNodeClientQt):
4170         (WebCore::TextureMapperNodeClientQt::computeLastModifiedRect):
4171         (WebCore::TextureMapperNodeClientQt::syncRootLayer):
4172         (WebCore::TextureMapperNodeClientQt::rootNode):
4173         (WebCore::PageClientQWidget::setRootGraphicsLayer):
4174         (WebCore::PageClientQWidget::syncLayers):
4175         (WebCore::PageClientQWidget::~PageClientQWidget):
4176         (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
4177         (WebCore::PageClientQGraphicsWidget::update):
4178         (WebCore::PageClientQGraphicsWidget::syncLayers):
4179         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
4180         (WebCore::PageClientQGraphicsWidget::markForSync):
4181         * WebCoreSupport/PageClientQt.h:
4182         (WebCore::PageClientQWidget::PageClientQWidget):
4183         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
4184         (WebCore::PageClientQGraphicsWidget::syncLayersTimeout):
4185
4186
4187 2011-05-11  Noam Rosenthal  <noam.rosenthal@nokia.com>
4188
4189         Reviewed by Kenneth Rohde Christiansen.
4190
4191         [Texmap][Qt] Upstream texture-mapper changes from Qt's WebKit2 branch
4192         https://bugs.webkit.org/show_bug.cgi?id=60439
4193
4194         Patch 4/12: Update the settings to enable accelerated compositing for all the relevant settings
4195         attributes.
4196
4197         * Api/qwebsettings.cpp:
4198         (qt_networkAccessAllowed):
4199         (QWebSettingsPrivate::apply):
4200
4201 2011-05-11  Sam Weinig  <sam@webkit.org>
4202
4203         Reviewed by Eric Seidel.
4204
4205         Stop including Console.h just to get Console enum types
4206         https://bugs.webkit.org/show_bug.cgi?id=60607
4207
4208         Move MessageSource, MessageType and MessageLevel into its own
4209         header and cleanup surrounding classes.
4210
4211         * Api/qwebelement.cpp:
4212
4213 2011-05-10  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
4214
4215         Reviewed by Csaba Osztrogonác.
4216
4217         [Qt] Increment QtWebKit trunk version to 4.10.0
4218         https://bugs.webkit.org/show_bug.cgi?id=60549
4219
4220         QtWebKit-2.2 (branched) will be 4.9.0, so we need to
4221         increase the trunk version by 1.
4222
4223         * qt_webkit_version.pri:
4224
4225 2011-05-10  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
4226
4227         Reviewed by Csaba Osztrogonác.
4228
4229         [Qt] tst_QWebPage creates temporary files in the current working dir
4230         https://bugs.webkit.org/show_bug.cgi?id=60497
4231
4232         tst_QWebPage was using QDir::currentPath when creating temporary dirs
4233         and leaving them after the test was run. I basically borrowed the fix
4234         from tst_QDeclarativeWebView.
4235
4236         * tests/qwebpage/tst_qwebpage.cpp:
4237         (removeRecursive):
4238         (tst_QWebPage::tmpDirPath):
4239         (tst_QWebPage::cleanupFiles):
4240         (tst_QWebPage::database):
4241         (tst_QWebPage::multiplePageGroupsAndLocalStorage):
4242
4243 2011-05-09  Chang Shu  <cshu@webkit.org>
4244
4245         Reviewed by Kenneth Rohde Christiansen.
4246
4247         [Qt] DumpRenderTreeQt needs an implementation of unmarkText
4248         https://bugs.webkit.org/show_bug.cgi?id=60499
4249
4250         The implementation is similar to gtk.
4251
4252         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4253         (DumpRenderTreeSupportQt::confirmComposition):
4254         * WebCoreSupport/DumpRenderTreeSupportQt.h:
4255
4256 2011-05-07  Joe Mason  <jmason@rim.com>
4257
4258         Reviewed by Daniel Bates.
4259
4260         FrameLoader::isProcessingUserGesture is wrong in dispatchWillPerformClientRedirect
4261         https://bugs.webkit.org/show_bug.cgi?id=52211
4262
4263         Dump isUserProcessingGesture in willPerformClientRedirect so that the layout tests can be extended.
4264
4265         * WebCoreSupport/FrameLoaderClientQt.cpp:
4266         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
4267
4268 2011-05-06  Kent Tamura  <tkent@chromium.org>
4269
4270         Reviewed by Ryosuke Niwa.
4271
4272         Eliminate WebCore/dom/InputElement.{cpp,h}
4273         https://bugs.webkit.org/show_bug.cgi?id=60262
4274
4275         * Api/qwebpage.cpp:
4276         (QWebPage::inputMethodQuery):
4277           Replace InputElement::s_maximumLength with HTMLInputElement::maximumLength.
4278         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4279         (DumpRenderTreeSupportQt::setAutofilled):
4280           Follow the return type change of Node::toInputElement().
4281
4282 2011-05-04  Philippe Normand  <pnormand@igalia.com>
4283
4284         Reviewed by Dimitri Glazkov.
4285
4286         Implement LayoutTestController::pseudoShadowId()
4287         https://bugs.webkit.org/show_bug.cgi?id=60034
4288
4289         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4290         (DumpRenderTreeSupportQt::shadowPseudoId):
4291         * WebCoreSupport/DumpRenderTreeSupportQt.h:
4292
4293 2011-05-05  Prasanth Ullattil  <prasanth.ullattil@nokia.com>
4294
4295         Reviewed by Simon Hausmann.
4296
4297         Install correct header files for webkit.
4298
4299         Since WebKit is no longer inside Qt, we can remove the detection for
4300         that.
4301
4302         [Qt] Install targets are not working correctly for modularized Qt and QtWebkit
4303         https://bugs.webkit.org/show_bug.cgi?id=57621
4304
4305         * QtWebKit.pro:
4306
4307 2011-05-05  Ryosuke Niwa  <rniwa@webkit.org>
4308
4309         Reviewed by Eric Seidel.
4310
4311         Rename SelectionController to FrameSelection
4312         https://bugs.webkit.org/show_bug.cgi?id=60234
4313
4314         * Api/qwebframe.cpp:
4315
4316 2011-05-05  Alexis Menard  <alexis.menard@openbossa.org>
4317
4318         Reviewed by Andreas Kling.
4319
4320         [Qt] RenderThemeQt and DumpRenderTreeSupportQt should use nullptr rather than 0.
4321         https://bugs.webkit.org/show_bug.cgi?id=60224
4322
4323         We should use nullptr rather than 0. nullptr will be added in the new C++ standard
4324         but WebKit already has a nullptr class if there is no c++0x support.
4325
4326         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4327         (DumpRenderTreeSupportQt::addUserStyleSheet):
4328
4329 2011-05-04  Cris Neckar  <cdn@chromium.org>
4330
4331         Reviewed by Adam Barth.
4332
4333         Expose WebView directly through ChromeClient.
4334         https://bugs.webkit.org/show_bug.cgi?id=49902
4335
4336         * WebCoreSupport/ChromeClientQt.h:
4337         (WebCore::ChromeClientQt::webView):
4338
4339 2011-05-04  Alexis Menard  <alexis.menard@openbossa.org>
4340
4341         Unreviewed warning fix.
4342
4343         The variable is just unused.
4344
4345         * tests/qwebpage/tst_qwebpage.cpp:
4346         (tst_QWebPage::inputMethods):
4347
4348 2011-05-04  Tao Bai  <michaelbai@chromium.org>
4349
4350         Reviewed by David Kilzer.
4351
4352         Populate touch-icon url to FrameLoaderClient
4353         https://bugs.webkit.org/show_bug.cgi?id=59143
4354
4355         Respect the interface change in FrameLoaderClient.
4356
4357         * WebCoreSupport/FrameLoaderClientQt.cpp:
4358         (WebCore::FrameLoaderClientQt::dispatchDidChangeIcons):
4359         * WebCoreSupport/FrameLoaderClientQt.h:
4360
4361 2011-03-31  Luiz Agostini  <luiz.agostini@openbossa.org>
4362
4363         Reviewed by Kenneth Rohde Christiansen.
4364
4365         [Qt] Qt WebKit updates view on HTTP 204 response
4366         https://bugs.webkit.org/show_bug.cgi?id=42529
4367
4368         Ignoring http responses which have status code equal to 204 (No Content)
4369         or 205 (Reset Content).
4370
4371         * WebCoreSupport/FrameLoaderClientQt.cpp:
4372         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForResponse):
4373
4374 2011-05-04  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
4375
4376         Reviewed by Benjamin Poulain.
4377
4378         [Qt] Fix signals emitted in FakeReply used in autotests
4379         https://bugs.webkit.org/show_bug.cgi?id=60049
4380
4381         The signals emitted for each case of FakeReply were swapped (error case
4382         emitting metaDataChanged() and redirect case emitting error()). Emitting
4383         readyRead() is not necessary.
4384
4385         * tests/qwebframe/tst_qwebframe.cpp:
4386         (FakeReply::FakeReply):
4387         Choose the different continue function for each case of FakeReply. This removes
4388         the need of the if-statement in timeout() and let us replace timeout() with two
4389         simpler functions.
4390
4391         (FakeReply::continueRedirect):
4392         (FakeReply::continueError):
4393         Continuation cases, emitting the minimal set of signals needed for each case.
4394
4395 2011-05-03  Julien Chaffraix  <jchaffraix@codeaurora.org>
4396
4397         Reviewed by Dimitri Glazkov.
4398
4399         Element:shadowRoot & Element::ensureShadowRoot should return ShadowRoot*
4400         https://bugs.webkit.org/show_bug.cgi?id=58703
4401
4402         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4403         (DumpRenderTreeSupportQt::shadowRoot): Added #include for ShadowRoot.h.
4404
4405 2011-05-03  Keith Kyzivat  <keith.kyzivat@nokia.com>
4406
4407         Reviewed by Andreas Kling.
4408
4409         [Qt] QtDeclarative Webview element has a fixed white background
4410         https://bugs.webkit.org/show_bug.cgi?id=40918
4411
4412         QProperty REVISION feature is not present in certain Qt Trunk clones.
4413         These builds report their version as 4.8.0, and therefore break on the
4414         prior #if QT_VERSION >= 0x040704.  The proper fix is to check based on
4415         the existance of Q_REVISION.
4416
4417         * declarative/plugin.cpp:
4418         (WebKitQmlPlugin::registerTypes):
4419         * declarative/qdeclarativewebview.cpp:
4420         * declarative/qdeclarativewebview_p.h:
4421
4422 2011-05-01  Sam Weinig  <sam@webkit.org>
4423
4424         Reviewed by Anders Carlsson.
4425
4426         Prune some unnecessary #includes
4427         https://bugs.webkit.org/show_bug.cgi?id=59895
4428
4429         Start getting rid of unnecessary #includes and forward declares.
4430
4431         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4432
4433 2011-04-29  Csaba Osztrogonác  <ossy@webkit.org>
4434
4435         Reviewed by Adam Barth.
4436
4437         Enable strict OwnPtr for Qt
4438         https://bugs.webkit.org/show_bug.cgi?id=59667
4439
4440         * Api/qwebpage.cpp:
4441         (QWebPagePrivate::QWebPagePrivate):
4442
4443 2011-04-29  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
4444
4445         Reviewed by Simon Hausmann.
4446
4447         ENABLE(QT_BEARER) -> USE(QT_BEARER)
4448
4449         * Api/qwebsettings.cpp:
4450
4451 2011-04-29  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
4452
4453         Reviewed by Simon Hausmann.
4454
4455         ENABLE(QT_USERAGENT_DEVICEMODEL) -> USE(QT_MOBILITY_SYSTEMINFO)
4456
4457         * Api/qwebpage.cpp:
4458
4459 2011-04-28  Yael Aharon  <yael.aharon@nokia.com>
4460
4461         Reviewed by Andreas Kling.
4462
4463         Remove flag ENABLE_SYMBIAN_DIALOG_PROVIDER
4464         https://bugs.webkit.org/show_bug.cgi?id=59704
4465
4466         * WebCoreSupport/QtFallbackWebPopup.cpp:
4467         (WebCore::QtFallbackWebPopup::show):
4468         * WebCoreSupport/QtFallbackWebPopup.h:
4469
4470 2011-04-27  Yi Shen  <yi.4.shen@nokia.com>
4471
4472         Reviewed by Kenneth Rohde Christiansen.
4473
4474         [Qt] Upstream Symbian platform plugin
4475         https://bugs.webkit.org/show_bug.cgi?id=58435
4476
4477         Upstream Symbian platform plugin.
4478
4479         * QtWebKit.pro: Add platformplugin.dll to the QtWebKit.sis.
4480         * symbian/platformplugin: Added.
4481         * symbian/platformplugin/WebPlugin.cpp: Added.
4482         (ItemListDelegate::ItemListDelegate):
4483         (ItemListDelegate::paint):
4484         (Popup::Popup):
4485         (Popup::resizeEvent):
4486         (Popup::populateList):
4487         (Popup::onItemSelected):
4488         (Popup::updateSelectionsBeforeDialogClosing):
4489         (Popup::updateAndClose):
4490         (WebPopup::WebPopup):
4491         (WebPopup::~WebPopup):
4492         (WebPopup::createSingleSelectionPopup):
4493         (WebPopup::createMultipleSelectionPopup):
4494         (WebPopup::createPopup):
4495         (WebPopup::show):
4496         (WebPopup::hide):
4497         (WebPopup::popupClosed):
4498         (WebPopup::itemClicked):
4499         (SingleSelectionPopup::SingleSelectionPopup):
4500         (MultipleSelectionPopup::MultipleSelectionPopup):
4501         (WebNotificationPresenter::showNotification):
4502         (WebPlugin::supportsExtension):
4503         (WebPlugin::createExtension):
4504         * symbian/platformplugin/WebPlugin.h: Added.
4505         (Popup::preSelectedIndices):
4506         (Popup::listWidget):
4507         (WebNotificationPresenter::WebNotificationPresenter):
4508         (WebNotificationPresenter::~WebNotificationPresenter):
4509         * symbian/platformplugin/platformplugin.pro: Added.
4510         * symbian/platformplugin/qwebkitplatformplugin.h: Copied from WebKit/qt/Api/qwebkitplatformplugin.h.
4511         (QWebSelectData::~QWebSelectData):
4512         (QWebSelectMethod::~QWebSelectMethod):
4513         (QWebNotificationData::~QWebNotificationData):
4514         (QWebNotificationPresenter::QWebNotificationPresenter):
4515         (QWebNotificationPresenter::~QWebNotificationPresenter):
4516         (QWebTouchModifier::~QWebTouchModifier):
4517         (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
4518         (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
4519         (QWebKitPlatformPlugin::~QWebKitPlatformPlugin):
4520
4521 2011-04-26  Yi Shen  <yi.4.shen@nokia.com>
4522
4523         Reviewed by Tor Arne Vestbø.
4524
4525         [Qt][Symbian] Fix Api test failure -- tst_QWebFrame::setHtmlWithBaseURL  
4526         https://bugs.webkit.org/show_bug.cgi?id=56946
4527
4528         Deployed the missing resource for Symbian platform.
4529
4530         * tests/qwebframe/qwebframe.pro:
4531
4532 2011-04-26  Siddharth Mathur  <siddharth.mathur@nokia.com>
4533
4534         Reviewed by Andreas Kling.
4535
4536         [Qt] Build fix: QtDeclarative Webview element has a fixed white background
4537         https://bugs.webkit.org/show_bug.cgi?id=40918
4538
4539         Macro Q_REVISION and associated qdeclarativeitem.h signals are not available in 4.7.3 headers in Nokia Qt SDK.
4540
4541         * declarative/plugin.cpp: Bump up required version to 4.7.4+
4542         (WebKitQmlPlugin::registerTypes):
4543         * declarative/qdeclarativewebview.cpp: ditto
4544         * declarative/qdeclarativewebview_p.h: ditto
4545         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: ditto
4546
4547 2011-04-26  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
4548
4549         Reviewed by Csaba Osztrogonác.
4550
4551         [Qt] Implement LayoutTestController::setAutofilled
4552         https://bugs.webkit.org/show_bug.cgi?id=59439
4553
4554         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4555         (DumpRenderTreeSupportQt::setAutofilled):
4556         * WebCoreSupport/DumpRenderTreeSupportQt.h:
4557
4558 2011-04-22  Sheriff Bot  <webkit.review.bot@gmail.com>
4559
4560         Unreviewed, rolling out r84627.
4561         http://trac.webkit.org/changeset/84627
4562         https://bugs.webkit.org/show_bug.cgi?id=59271
4563
4564         It broke Symbian build (Requested by Ossy on #webkit).
4565
4566         * QtWebKit.pro:
4567         * symbian/platformplugin/WebPlugin.cpp: Removed.
4568         * symbian/platformplugin/WebPlugin.h: Removed.
4569         * symbian/platformplugin/platformplugin.pro: Removed.
4570         * symbian/platformplugin/qwebkitplatformplugin.h: Removed.
4571
4572 2011-04-22  Sam Weinig  <sam@webkit.org>
4573
4574         Fix qt build.
4575
4576         * Api/qwebelement.cpp:
4577         (setupScriptContext):
4578
4579 2011-04-22  Yi Shen  <yi.4.shen@nokia.com>
4580
4581         Reviewed by Kenneth Rohde Christiansen.
4582
4583         [Qt] Upstream Symbian platform plugin
4584         https://bugs.webkit.org/show_bug.cgi?id=58435
4585
4586         Upstream Symbian platform plugin.
4587
4588         * QtWebKit.pro: Add platformplugin.dll to the QtWebKit.sis.
4589         * symbian/platformplugin: Added.
4590         * symbian/platformplugin/WebPlugin.cpp: Added.
4591         (ItemListDelegate::ItemListDelegate):
4592         (ItemListDelegate::paint):
4593         (Popup::Popup):
4594         (Popup::resizeEvent):
4595         (Popup::populateList):
4596         (Popup::onItemSelected):
4597         (Popup::updateSelectionsBeforeDialogClosing):
4598         (Popup::updateAndClose):
4599         (WebPopup::WebPopup):
4600         (WebPopup::~WebPopup):
4601         (WebPopup::createSingleSelectionPopup):
4602         (WebPopup::createMultipleSelectionPopup):
4603         (WebPopup::createPopup):
4604         (WebPopup::show):
4605         (WebPopup::hide):
4606         (WebPopup::popupClosed):
4607         (WebPopup::itemClicked):
4608         (SingleSelectionPopup::SingleSelectionPopup):
4609         (MultipleSelectionPopup::MultipleSelectionPopup):
4610         (WebNotificationPresenter::showNotification):
4611         (WebPlugin::supportsExtension):
4612         (WebPlugin::createExtension):
4613         * symbian/platformplugin/WebPlugin.h: Added.
4614         (Popup::preSelectedIndices):
4615         (Popup::listWidget):
4616         (WebNotificationPresenter::WebNotificationPresenter):
4617         (WebNotificationPresenter::~WebNotificationPresenter):
4618         * symbian/platformplugin/platformplugin.pro: Added.
4619         * symbian/platformplugin/qwebkitplatformplugin.h: Copied from WebKit/qt/Api/qwebkitplatformplugin.h.
4620         (QWebSelectData::~QWebSelectData):
4621         (QWebSelectMethod::~QWebSelectMethod):
4622         (QWebNotificationData::~QWebNotificationData):
4623         (QWebNotificationPresenter::QWebNotificationPresenter):
4624         (QWebNotificationPresenter::~QWebNotificationPresenter):
4625         (QWebTouchModifier::~QWebTouchModifier):
4626         (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
4627         (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
4628         (QWebKitPlatformPlugin::~QWebKitPlatformPlugin):
4629
4630 2011-04-21  Ryosuke Niwa  <rniwa@webkit.org>
4631
4632         Reviewed by Sam Weinig.
4633
4634         Add Frame* to the argument lists of canCopyCut and canPaste
4635         https://bugs.webkit.org/show_bug.cgi?id=59153
4636
4637         * WebCoreSupport/EditorClientQt.cpp:
4638         (WebCore::EditorClientQt::canCopyCut):
4639         (WebCore::EditorClientQt::canPaste):
4640         * WebCoreSupport/EditorClientQt.h:
4641
4642 2011-04-21  Yi Shen  <yi.4.shen@nokia.com>
4643
4644         Reviewed by Antonio Gomes.
4645
4646         [Qt] Fix the style issue for Api/qwebkitplatformplugin.h
4647         https://bugs.webkit.org/show_bug.cgi?id=59097
4648
4649         Fix the style issues for Api/qwebkitplatformplugin.h found by the webkit-check-style.
4650
4651         * Api/qwebkitplatformplugin.h:
4652
4653 2011-04-21  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
4654
4655         Reviewed by Csaba Osztrogonác.
4656
4657         [Qt] REGRESSION(84057): It made 4 API tests fail
4658         https://bugs.webkit.org/show_bug.cgi?id=58848
4659
4660         After MIME sniffing support was added, some autotests are failing because
4661         the sniffer doesn't recognize our HTML pages.
4662
4663         This fixes tst_QWebPage::backActionUpdate(), tst_QWebPage::errorPageExtensionInFrameset()
4664         and tst_QWebFrame::horizontalScrollAfterBack().
4665
4666         * tests/qwebframe/resources/testiframe.html:
4667         * tests/qwebframe/resources/testiframe2.html:
4668         Remove spurious </html> in beginning of the document.
4669
4670         * tests/qwebpage/resources/framedindex.html:
4671         * tests/qwebpage/resources/index.html:
4672         Add <html> (and </html>) tags, <frameset> is not recognized by the sniffer as a
4673         possible starting tag for HTML document.
4674
4675         * tests/qwebpage/tst_qwebpage.cpp:
4676         (tst_QWebPage::errorPageExtensionInFrameset):
4677         Verify if we do have a main frame and the main frame has the children frames we
4678         expect. This will avoid crashing if for some reason children frames are not
4679         loaded.
4680
4681 2011-04-20  Dominic Cooney  <dominicc@chromium.org>
4682
4683         Reviewed by Dimitri Glazkov.
4684
4685         layoutTestController can create and destroy shadow DOM
4686         https://bugs.webkit.org/show_bug.cgi?id=59058
4687
4688         Support for new methods in Qt DRT.
4689
4690         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4691         (DumpRenderTreeSupportQt::ensureShadowRoot):
4692         (DumpRenderTreeSupportQt::removeShadowRoot):
4693         * WebCoreSupport/DumpRenderTreeSupportQt.h:
4694
4695 2011-04-20  Balazs Kelemen  <kbalazs@webkit.org>
4696
4697         Reviewed by Csaba Osztrogonác.
4698
4699         [Qt] Cleanup includepath adjustment for generated files
4700         https://bugs.webkit.org/show_bug.cgi?id=58869
4701
4702         * QtWebKit.pro: Revert the hacky fix in r84174. Remove
4703         unnecessary logic.
4704
4705 2011-04-19  Yi Shen  <yi.4.shen@nokia.com>
4706
4707         Reviewed by Andreas Kling.
4708
4709         [Qt][Symbian] Fix Api test failure -- tst_QWebView::setPalette()
4710         https://bugs.webkit.org/show_bug.cgi?id=57254
4711
4712         Skip test for setPalette() which doesn't work 
4713         when WTF_USE_QT_MOBILE_THEME is defined.
4714
4715         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
4716         * tests/qwebview/tst_qwebview.cpp:
4717         * tests/tests.pri:
4718
4719 2011-04-19  Yi Shen  <yi.4.shen@nokia.com>
4720
4721         Reviewed by Laszlo Gombos.
4722
4723         [Qt][Symbian] Fix Api test failure -- tst_QGraphicsWebView::widgetsRenderingThroughCache
4724         https://bugs.webkit.org/show_bug.cgi?id=58044
4725
4726         Fixing this test by disabling the scrollbars on the graphics view 
4727         since QtWebKit handles scrolling and scrollbar automatically and correctly.
4728
4729         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
4730         (tst_QGraphicsWebView::widgetsRenderingThroughCache):
4731
4732 2011-04-19  Igor Oliveira  <igor.oliveira@openbossa.org>
4733
4734         Reviewed by Andreas Kling.
4735
4736         [Qt] X11: Text selection is causing oncopy event to be called
4737         https://bugs.webkit.org/show_bug.cgi?id=58656
4738
4739         Always when text is selected the oncopy event is fired, this behavior does
4740         not exist in Firefox or Chrome. Now, when selecting a text, QtWebKit
4741         is making multi part-copies (with rich text metadata), the multi-part
4742         data can be obtained by data transfer items interface when supported by QtWebKit.
4743         Also, copies to the clipboard of a selected image, is not supported by Chrome and
4744         Firefox and was removed from QtWebKit.
4745
4746
4747         * Api/qwebpage.cpp:
4748         (QWebPagePrivate::handleClipboard):
4749
4750 2011-04-18  Csaba Osztrogonác  <ossy@webkit.org>
4751
4752         [Qt][WK2] Unreviewed buildfix after r84174.
4753
4754         * QtWebKit.pro: Missing includepath added.
4755
4756 2011-04-18  Yi Shen  <yi.4.shen@nokia.com>
4757
4758         Reviewed by Laszlo Gombos.
4759
4760         [Qt][Symbian] Fix Api test failure -- tst_QWebFrame::inputFieldFocus
4761         https://bugs.webkit.org/show_bug.cgi?id=57546
4762
4763         Disable the fullscreen VKB when testing inputFieldFocus().
4764
4765         * tests/qwebframe/tst_qwebframe.cpp:
4766
4767 2011-04-18  Andreas Kling  <kling@webkit.org>
4768
4769         [Qt] DRT: Unreviewed test fix after r84168.
4770         
4771         Dump the original request KURL for blocked access attempts.
4772         Turns out converting it to a QUrl lower-cases the hostname.
4773
4774         * WebCoreSupport/FrameLoaderClientQt.cpp:
4775         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
4776
4777 2011-04-18  Yi Shen  <yi.4.shen@nokia.com>
4778
4779         Reviewed by Laszlo Gombos.
4780
4781         [Qt] Fix Api tests for QWebPage on Symbian
4782         https://bugs.webkit.org/show_bug.cgi?id=56924
4783
4784         Ignores the style attribute that selectedHtml() returns.
4785
4786         * tests/qwebpage/tst_qwebpage.cpp:
4787         (tst_QWebPage::cursorMovements):
4788         (tst_QWebPage::textSelection):
4789         (tst_QWebPage::findText):
4790
4791 2011-04-18  Andreas Kling  <kling@webkit.org>
4792
4793         Reviewed by Adam Barth.
4794
4795         REGRESSION (r84010): [Qt] DRT: Unbreak redirection of http:/ URLs.
4796         https://bugs.webkit.org/show_bug.cgi?id=58779
4797
4798         KURL::host() doesn't return the host part of [broken] http:/ URLs, so use
4799         QUrl instead to match the behavior of other ports.
4800
4801         * WebCoreSupport/FrameLoaderClientQt.cpp:
4802         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
4803
4804 2011-04-18  Dominic Cooney  <dominicc@chromium.org>
4805
4806         Reviewed by Andreas Kling.
4807
4808         Add layoutTestController.shadowRoot to Qt DRT.
4809         https://bugs.webkit.org/show_bug.cgi?id=58759
4810
4811         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4812         (DumpRenderTreeSupportQt::shadowRoot): Added.
4813         * WebCoreSupport/DumpRenderTreeSupportQt.h:
4814
4815 2011-04-16  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
4816
4817         Reviewed by Andreas Kling.
4818
4819         [Qt] Autotest got missed in the handover of the QML WebView element
4820         https://bugs.webkit.org/show_bug.cgi?id=41449
4821
4822         Importing WebView QML element test cases from Qt repository. I did some
4823         style modifications and simplifications in the original code but hopefully
4824         without changing the behavior.
4825
4826         Tests that do not pass are marked with QEXPECT_FAIL or QSKIP. The two major
4827         issues currently are:
4828
4829         - pixelCache() test checked the usage of pixel cache by using a subclass of
4830           QDeclarativeWebView. We can't do that right now because this class is not
4831           exported. We may need a Q_AUTOTEST_EXPORT thing for QtWebKit if we want
4832           this kind of test.
4833         - elementAtArea() test uses a function that is not exported. But in this case
4834           I think we should test it's user, the public method "heuristicZoom".
4835
4836         * tests/qdeclarativewebview/resources/basic.html: Added.
4837         * tests/qdeclarativewebview/resources/basic.png: Added.
4838         * tests/qdeclarativewebview/resources/basic.qml: Added.
4839         * tests/qdeclarativewebview/resources/elements.html: Added.
4840         * tests/qdeclarativewebview/resources/elements.qml: Added.
4841         * tests/qdeclarativewebview/resources/forward.html: Added.
4842         * tests/qdeclarativewebview/resources/forward.png: Added.
4843         * tests/qdeclarativewebview/resources/javaScript.html: Added.
4844         * tests/qdeclarativewebview/resources/javaScript.qml: Added.
4845         * tests/qdeclarativewebview/resources/loadError.qml: Added.
4846         * tests/qdeclarativewebview/resources/newwindows.html: Added.
4847         * tests/qdeclarativewebview/resources/newwindows.qml: Added.
4848         * tests/qdeclarativewebview/resources/propertychanges.qml: Added.
4849         * tests/qdeclarativewebview/resources/sethtml.qml: Added.
4850         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
4851         (tst_QDeclarativeWebView::tmpDir):
4852         (strippedHtml):
4853         (fileContents):
4854         (removeRecursive):
4855         (tst_QDeclarativeWebView::cleanupTestCase):
4856         (tst_QDeclarativeWebView::basicProperties):
4857         (tst_QDeclarativeWebView::elementAreaAt):
4858         (tst_QDeclarativeWebView::historyNav):
4859         (callEvaluateJavaScript):
4860         (tst_QDeclarativeWebView::javaScript):
4861         (tst_QDeclarativeWebView::loadError):
4862         (tst_QDeclarativeWebView::multipleWindows):
4863         (tst_QDeclarativeWebView::newWindowComponent):
4864         (tst_QDeclarativeWebView::newWindowParent):
4865         (tst_QDeclarativeWebView::pressGrabTime):
4866         (tst_QDeclarativeWebView::renderingEnabled):
4867         (tst_QDeclarativeWebView::setHtml):
4868         (tst_QDeclarativeWebView::settings):
4869         (tst_QDeclarativeWebView::checkNoErrors):
4870         * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc:
4871
4872 2011-04-08  Luiz Agostini  <luiz.agostini@openbossa.org>
4873
4874         Reviewed by Kenneth Rohde Christiansen.
4875
4876         [Qt] QWebPage MIME type handling inconsistency with other web browsers
4877         https://bugs.webkit.org/show_bug.cgi?id=46968
4878
4879         Implementing mime type sniffing based on
4880         http://tools.ietf.org/html/draft-abarth-mime-sniff-06.
4881
4882         * WebCoreSupport/FrameLoaderClientQt.cpp:
4883         (WebCore::FrameLoaderClientQt::createNetworkingContext):
4884         * WebCoreSupport/FrameNetworkingContextQt.cpp:
4885         (WebCore::FrameNetworkingContextQt::FrameNetworkingContextQt):
4886         (WebCore::FrameNetworkingContextQt::create):
4887         (WebCore::FrameNetworkingContextQt::MIMESniffingEnabled):
4888         * WebCoreSupport/FrameNetworkingContextQt.h:
4889         * tests/MIMESniffing/MIMESniffing.pro: Added.
4890         * tests/MIMESniffing/TestData.h: Added.
4891         * tests/MIMESniffing/resources.qrc: Added.
4892         * tests/MIMESniffing/resources/application_atom+xml: Added.
4893         * tests/MIMESniffing/resources/application_ogg: Added.
4894         * tests/MIMESniffing/resources/application_pdf: Added.
4895         * tests/MIMESniffing/resources/application_postscript: Added.
4896         * tests/MIMESniffing/resources/application_rdf+xml: Added.
4897         * tests/MIMESniffing/resources/application_rss+xml: Added.
4898         * tests/MIMESniffing/resources/application_x-gzip: Added.
4899         * tests/MIMESniffing/resources/application_x-rar-compressed: Added.
4900         * tests/MIMESniffing/resources/application_zip: Added.
4901         * tests/MIMESniffing/resources/audio_x-wave: Added.
4902         * tests/MIMESniffing/resources/image_bmp: Added.
4903         * tests/MIMESniffing/resources/image_gif: Added.
4904         * tests/MIMESniffing/resources/image_jpeg: Added.
4905         * tests/MIMESniffing/resources/image_png: Added.
4906         * tests/MIMESniffing/resources/image_vnd.microsoft.icon: Added.
4907         * tests/MIMESniffing/resources/image_webp: Added.
4908         * tests/MIMESniffing/resources/text_html: Added.
4909         * tests/MIMESniffing/resources/text_xml: Added.
4910         * tests/MIMESniffing/resources/video_webm: Added.
4911         * tests/MIMESniffing/tst_MIMESniffing.cpp: Added.
4912         (tst_MIMESniffing::tst_MIMESniffing):
4913         (errorText):
4914         (tst_MIMESniffing::testCase1):
4915         * tests/tests.pro:
4916
4917 2011-04-15  Andreas Kling  <kling@webkit.org>
4918
4919         Reviewed by Antonio Gomes.
4920
4921         [Qt] DRT: Block access to external URLs.
4922
4923         Implement the "Blocked access to external URL" behavior for Qt's DRT,
4924         based on what other ports are doing.
4925
4926         Fixes <http://webkit.org/b/57306> and <http://webkit.org/b/58523>.
4927
4928         * WebCoreSupport/FrameLoaderClientQt.cpp:
4929         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
4930
4931 2011-01-26  Ragner Magalhaes  <ragner.magalhaes@openbossa.org>
4932
4933         Reviewed by Antonio Gomes.
4934
4935         [Qt] Web Inspector does not highlight elements
4936         https://bugs.webkit.org/show_bug.cgi?id=35125
4937
4938         Adjust Web inspector to highlight elements on the page when the mouse
4939         hovers the element on DOM inspector.
4940
4941         * Api/qwebframe.cpp:
4942         (QWebFramePrivate::renderRelativeCoords):
4943         * WebCoreSupport/InspectorClientQt.cpp:
4944         (WebCore::InspectorClientQt::highlight):
4945         (WebCore::InspectorClientQt::hideHighlight):
4946
4947 2011-04-12  George Guo  <George.Guo@nokia.com>
4948
4949         Reviewed by Laszlo Gombos.
4950
4951         [Qt] On Symbian got "Update Error" when installing QtWebkit.sis
4952         http://bugs.webkit.org/show_bug.cgi?id=58141
4953
4954         If QtWebKit is already in Symbian ROM, we need package to be
4955         both SA and RU type
4956
4957         * QtWebKit.pro:
4958
4959 2011-04-12  Alexis Menard  <alexis.menard@openbossa.org>
4960
4961         Reviewed by Andreas Kling.
4962
4963         [Qt] Private Q_SLOTS void orientationChanged() can't be in qwebframe.h public header file.
4964         https://bugs.webkit.org/show_bug.cgi?id=58251
4965
4966         Fix an issue with slot names after http://trac.webkit.org/changeset/83512.
4967
4968         * Api/qwebframe.cpp:
4969         (QWebFrame::QWebFrame):
4970
4971 2011-04-11  Alexis Menard  <alexis.menard@openbossa.org>
4972
4973         Reviewed by Benjamin Poulain.
4974
4975         [Qt] Private Q_SLOTS void orientationChanged() can't be in qwebframe.h public header file.
4976         https://bugs.webkit.org/show_bug.cgi?id=58251
4977
4978         Qt coding conventions states that private slots should be located in private implementation of
4979         the class. This allows us to rename/delete the slots in the future without breaking anything.
4980
4981         No new tests added, just a simple refactoring.
4982
4983         * Api/qwebframe.cpp:
4984         (QWebFramePrivate::_q_orientationChanged):
4985         * Api/qwebframe.h:
4986         * Api/qwebframe_p.h:
4987
4988 2011-04-11  Alexis Menard  <alexis.menard@openbossa.org>
4989
4990         Reviewed by Kenneth Rohde Christiansen.
4991
4992         [Qt] Sub-Frame content is not updated when scrolling in certain circumstances
4993         https://bugs.webkit.org/show_bug.cgi?id=50373
4994
4995         Make sure that we invalidate the backing store when using TILED_BACKING_STORE
4996         and the page contains sub frames. This bug appears only when frame flattening is
4997         disabled and scrollable subframes.
4998
4999         Original patch from Thomas Thrainer.
5000
5001         * WebCoreSupport/ChromeClientQt.cpp:
5002         (WebCore::ChromeClientQt::invalidateWindow):
5003
5004 2011-04-11  Benjamin Poulain  <benjamin.poulain@nokia.com>
5005
5006         Reviewed by Andreas Kling.
5007
5008         [Qt] HTML5 Drag and Drop demos not working
5009         https://bugs.webkit.org/show_bug.cgi?id=56486
5010
5011         Handling the drop with JavaScript was not working with Qt because if the action is ignored
5012         in response to DragEnter, no further events are sent to the view.
5013
5014         Drag and drop is defined and used differently by webpages. The drag move events are determining
5015         what action should take place. To adopt this behavior for Qt, we always accept drag enter events
5016         on the widget.
5017
5018         * Api/qwebpage.cpp:
5019         (QWebPagePrivate::dragEnterEvent):
5020
5021 2011-04-11  Andras Becsi  <abecsi@webkit.org>
5022
5023         Reviewed by Andreas Kling.
5024
5025         [Qt] REGRESSION(83122): tst_QWebElement::style() fails
5026         https://bugs.webkit.org/show_bug.cgi?id=58032
5027
5028         According to the documentation of QWebElement the styleProperty method should
5029         not respect style inheritance and other CSS rules for the InlineStyle enum.
5030
5031         r83122 fixed this behaviour.
5032
5033         * tests/qwebelement/tst_qwebelement.cpp:
5034         (tst_QWebElement::style): Fix the expected color for QWebElement::InlineStyle.
5035
5036 2011-04-11  Andreas Kling  <andreas.kling@nokia.com>
5037
5038         Build fix after r83436.
5039
5040         * WebCoreSupport/FrameLoaderClientQt.cpp:
5041         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
5042
5043 2011-04-11  Andreas Kling  <andreas.kling@nokia.com>
5044
5045         Reviewed by Benjamin Poulain.
5046
5047         [Qt] dumpResourceResponseMIMETypes shouldn't strip URL query string.
5048
5049         * WebCoreSupport/FrameLoaderClientQt.cpp:
5050         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): Use KURL::lastPathComponent()
5051         for the dumpResourceResponseMIMETypes display string instead of QFileInfo::fileName().
5052         This is in line with the Mac port.
5053
5054 2011-04-08  Sheriff Bot  <webkit.review.bot@gmail.com>
5055
5056         Unreviewed, rolling out r83295.
5057         http://trac.webkit.org/changeset/83295
5058         https://bugs.webkit.org/show_bug.cgi?id=58144
5059
5060         Broke 4 tests in QtWebKit (Requested by tonikitoo on #webkit).
5061
5062         * WebCoreSupport/EditorClientQt.cpp:
5063         (WebCore::EditorClientQt::handleInputMethodKeydown):
5064
5065 2011-04-08  Yi Shen  <yi.4.shen@nokia.com>
5066
5067         Reviewed by Antonio Gomes.
5068
5069         [Qt]REGRESSION(r82243): fast/events/onsearch-enter.html fails
5070         https://bugs.webkit.org/show_bug.cgi?id=57472
5071
5072         Avoid to insert new line for both keydown event & keypress event.
5073
5074         * WebCoreSupport/EditorClientQt.cpp:
5075         (WebCore::EditorClientQt::handleInputMethodKeydown):
5076
5077 2011-04-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
5078
5079         Reviewed by Benjamin Poulain.
5080
5081         [Qt] QWebFrame::setUrl works only from second time if url fragment is present
5082         https://bugs.webkit.org/show_bug.cgi?id=32723
5083
5084         When clearing the frame, instead of using the URL passed to QWebFrame::setUrl(),
5085         use an invalid URL (the begin() without arguments). Clearing the document
5086         with the same URL was causing problems when we had a fragment because it assume that
5087         only scrolling was enough and did not loaded the document again.
5088
5089         When setUrl() is called but fails, url() is expected to return the requested value. The
5090         begin(url) guaranteed that before. This patch adds a member to track the URL, which is
5091         updated when the URL changes and also when setUrl() is called.
5092
5093         KURL was used for the member so that when setUrl() is called, and then url() is checked
5094         before the page gets loaded, we perform the same conversion that will be performed by a
5095         successful load, e.g. add trailing '/' to an address. This behavior is checked by
5096         tst_QWebFrame::requestedUrl() test.
5097
5098         For the record: the second QWebPage::setUrl() worked because the load was considered a
5099         FrameLoadTypeSame, and because of that, was not fit for just scrolling, a reload was
5100         needed. See FrameLoader::shouldScrollToAnchor() for details on this classification.
5101
5102         * Api/qwebframe.cpp:
5103         (QWebFramePrivate::emitUrlChanged): update our URL member and emit the signal.
5104         (clearCoreFrame):
5105         (isCoreFrameClear):
5106         (QWebFrame::setUrl):
5107         (QWebFrame::url):
5108         (QWebFrame::baseUrl): look in the document for the baseURL since its contents can change
5109         the baseURL, e.g. by using the <base> tag.
5110         * Api/qwebframe_p.h:
5111
5112         * WebCoreSupport/FrameLoaderClientQt.cpp:
5113         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
5114         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
5115
5116         * tests/qwebframe/tst_qwebframe.cpp:
5117         (tst_QWebFrame::setUrlWithFragment): unskip test.
5118
5119 2011-04-07  Alexis Menard  <alexis.menard@openbossa.org>
5120
5121         Reviewed by Kenneth Rohde Christiansen.
5122
5123         Build fix when using Phonon as a backend for the multimedia support.
5124
5125         * WebCoreSupport/ChromeClientQt.cpp:
5126         (WebCore::ChromeClientQt::ChromeClientQt):
5127         (WebCore::ChromeClientQt::~ChromeClientQt):
5128         * WebCoreSupport/ChromeClientQt.h:
5129
5130 2011-04-06  Benjamin Poulain  <benjamin.poulain@nokia.com>
5131
5132         Reviewed by Kenneth Rohde Christiansen.
5133
5134         [Qt] LayoutTestController needs to implement numberOfPendingGeolocationPermissionRequests
5135         https://bugs.webkit.org/show_bug.cgi?id=56086
5136
5137         Add the accessor numberOfPendingGeolocationPermissionRequests to call GeolocationClientMock::numberOfPendingPermissionRequests()
5138         from the LayoutTestController.
5139
5140         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5141         (DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests):
5142         * WebCoreSupport/DumpRenderTreeSupportQt.h:
5143
5144 2011-04-06  Anders Bakken  <agbakken@gmail.com>
5145
5146         Reviewed by Kenneth Rohde Christiansen.
5147
5148         [Qt] FrameLoaderClientQt.cpp has coding-style errors
5149         https://bugs.webkit.org/show_bug.cgi?id=40254
5150
5151         * WebCoreSupport/FrameLoaderClientQt.cpp:
5152         (drtDescriptionSuitableForTestResult):
5153         (WebCore::FrameLoaderClientQt::hasWebView):
5154         (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
5155         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
5156         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
5157         (WebCore::FrameLoaderClientQt::dispatchDidChangeIcons):
5158         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
5159         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
5160         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
5161         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
5162         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
5163         (WebCore::FrameLoaderClientQt::willChangeTitle):
5164         (WebCore::FrameLoaderClientQt::didChangeTitle):
5165         (WebCore::FrameLoaderClientQt::finishedLoading):
5166         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
5167         (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
5168         (WebCore::FrameLoaderClientQt::didFinishLoad):
5169         (WebCore::FrameLoaderClientQt::setTitle):
5170         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
5171         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
5172         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
5173         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
5174         (WebCore::FrameLoaderClientQt::shouldStopLoadingForHistoryItem):
5175         (WebCore::FrameLoaderClientQt::committedLoad):
5176         (WebCore::FrameLoaderClientQt::download):
5177         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
5178         (WebCore::FrameLoaderClientQt::shouldUseCredentialStorage):
5179         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForResponse):
5180         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
5181         (WebCore::FrameLoaderClientQt::createFrame):
5182         (WebCore::FrameLoaderClientQt::objectContentType):
5183         (WebCore::FrameLoaderClientQt::createPlugin):
5184
5185 2011-04-06  Alexis Menard  <alexis.menard@openbossa.org>
5186
5187         Reviewed by Andreas Kling.
5188
5189         [Qt] We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).
5190         https://bugs.webkit.org/show_bug.cgi?id=57974
5191
5192         We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).
5193
5194         No new tests needed, just a config flag rename.
5195
5196         * Api/qwebkitplatformplugin.h:
5197         * WebCoreSupport/ChromeClientQt.cpp:
5198         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5199         (DumpRenderTreeSupportQt::mediaContentUrlByElementId):
5200         * WebCoreSupport/FullScreenVideoQt.cpp:
5201         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
5202         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
5203         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
5204         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
5205         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
5206         (WebCore::FullScreenVideoQt::isValid):
5207         * WebCoreSupport/FullScreenVideoQt.h:
5208         * WebCoreSupport/QtPlatformPlugin.cpp:
5209         * WebCoreSupport/QtPlatformPlugin.h:
5210         * examples/platformplugin/WebPlugin.cpp:
5211         (WebPlugin::supportsExtension):
5212         (WebPlugin::createExtension):
5213         * examples/platformplugin/WebPlugin.h:
5214         * examples/platformplugin/platformplugin.pro:
5215         * examples/platformplugin/qwebkitplatformplugin.h:
5216         * tests/qwebpage/tst_qwebpage.cpp:
5217         (tst_QWebPage::loadHtml5Video):
5218         * tests/tests.pri:
5219
5220 2011-04-06  Alexis Menard  <alexis.menard@openbossa.org>
5221
5222         Reviewed by Andreas Kling.
5223
5224         [Qt] Implement fullscreen playback for the GStreamer backend.
5225         https://bugs.webkit.org/show_bug.cgi?id=56826
5226
5227         Implement support for fullscreen playback when building the
5228         Qt port with the GStreamer backend (DEFINES+=USE_GSTREAMER=1).
5229         The implementation is done in FullScreenVideoQt alongside with
5230         the Qt Multimedia support.
5231
5232         No new tests because layout tests cover it. They are not yet activated
5233         but will be any time soon.
5234
5235         * QtWebKit.pro:
5236         * WebCoreSupport/ChromeClientQt.cpp:
5237         (WebCore::ChromeClientQt::ChromeClientQt):
5238         (WebCore::ChromeClientQt::~ChromeClientQt):
5239         (WebCore::ChromeClientQt::enterFullscreenForNode):
5240         (WebCore::ChromeClientQt::exitFullscreenForNode):
5241         * WebCoreSupport/ChromeClientQt.h:
5242         * WebCoreSupport/FullScreenVideoQt.cpp:
5243         (WebCore::GStreamerFullScreenVideoHandler::GStreamerFullScreenVideoHandler):
5244         (WebCore::GStreamerFullScreenVideoHandler::setVideoElement):
5245         (WebCore::GStreamerFullScreenVideoHandler::enterFullScreen):
5246         (WebCore::GStreamerFullScreenVideoHandler::windowClosed):
5247         (WebCore::GStreamerFullScreenVideoHandler::exitFullScreen):
5248         (WebCore::DefaultFullScreenVideoHandler::DefaultFullScreenVideoHandler):
5249         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
5250         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
5251         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
5252         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
5253         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
5254         (WebCore::FullScreenVideoQt::isValid):
5255         * WebCoreSupport/FullScreenVideoQt.h:
5256         (WebCore::GStreamerFullScreenVideoHandler::~GStreamerFullScreenVideoHandler):
5257
5258 2011-04-06  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
5259
5260         Reviewed by Kenneth Rohde Christiansen.
5261
5262         [Qt] Improve tests for QWebFrame::url() and related methods
5263         https://bugs.webkit.org/show_bug.cgi?id=57865
5264
5265         * tests/qwebframe/tst_qwebframe.cpp:
5266         (FakeReply::FakeReply): make more URLs reply HostNotFound. We needed two different URLs in the test.
5267         (tst_QWebFrame::requestedUrlAfterSetAndLoadFailures): check the properties after an setUrl()
5268         that fails and a load() that fails (for a different URL).
5269
5270         (tst_QWebFrame::setUrlWithFragment_data):
5271         (tst_QWebFrame::setUrlWithFragment): add other test cases similar to the original, but changing
5272         the URL in the frame before the test starts.
5273
5274         (tst_QWebFrame::setUrlSameUrl): document existing behavior of calling setUrl() twice with
5275         the same URL as argument.
5276
5277         (extractBaseUrl):
5278         (tst_QWebFrame::setUrlThenLoads_data):
5279         (tst_QWebFrame::setUrlThenLoads): check the URL related properties of the frame after a
5280         sequence of set and loads. Those tests are interesting because the properties
5281         react different to setUrl() and load(): 'requestedUrl' always change, 'url' only when setUrl()
5282         is used or after the load() is committed and baseUrl() is similar to url() but also depends
5283         on the contents of the page when it loads.
5284
5285 2011-04-04  MORITA Hajime  <morrita@google.com>
5286
5287         Reviewed by Ryosuke Niwa.
5288
5289         [Refactoring] SpellCheckingResult should be replaced with TextCheckingResult
5290         https://bugs.webkit.org/show_bug.cgi?id=56085
5291         
5292         * WebCoreSupport/EditorClientQt.h:
5293         (WebCore::EditorClientQt::requestCheckingOfString):
5294
5295 2011-04-04  Chang Shu  <cshu@webkit.org>
5296
5297         Reviewed by Ryosuke Niwa.
5298
5299         setContentEditable with true/false/inherit string is not working properly
5300         https://bugs.webkit.org/show_bug.cgi?id=52058
5301
5302         Move isContentEditable from HTMLElement to Node. WebKit should only access isContentEditable
5303         as rendererIsEditable is for WebCore internal use.
5304
5305         * WebCoreSupport/EditorClientQt.cpp:
5306         (WebCore::EditorClientQt::handleKeyboardEvent):
5307
5308 2011-04-01  Carol Szabo  <carol.szabo@nokia.com>
5309
5310         Reviewed by Benjamin Poulain.
5311
5312         Changed QWebFramePrivate::renderFromTiledBackingStore to call directly into
5313         Scrollbar/PanIcon rendering, bypassing the potential relayout in renderRelativeCoords.
5314
5315         Tiled painting still causes synchronous layout when
5316         accelerated compositing and texture mapper are enabled
5317         https://bugs.webkit.org/show_bug.cgi?id=56929
5318
5319         * Api/qwebframe.cpp:
5320         (QWebFramePrivate::renderFromTiledBackingStore):
5321         (QWebFramePrivate::renderRelativeCoords):
5322         (QWebFramePrivate::renderFrameWidgets):
5323         * Api/qwebframe_p.h:
5324
5325 2011-04-01  Nancy Piedra  <nancy.piedra@nokia.com>
5326
5327         Reviewed by Benjamin Poulain.
5328
5329         [Qt] DragClientQt.h has coding-style errors
5330         https://bugs.webkit.org/show_bug.cgi?id=40425
5331
5332         * WebCoreSupport/DragClientQt.h:
5333
5334 2011-03-31  Marius Storm-Olsen  <marius.storm-olsen@nokia.com>
5335
5336         Reviewed by Kenneth Rohde Christiansen.
5337
5338         [Qt] Properly detect phonon include, and avoid double qtLibraryTarget() call
5339         https://bugs.webkit.org/show_bug.cgi?id=57017
5340
5341         Build fix. No new tests.
5342
5343         * QtWebKit.pro:
5344
5345 2011-03-31  Evan Martin  <evan@chromium.org>
5346
5347         Another build fix.
5348
5349         * WebCoreSupport/FrameLoaderClientQt.cpp:
5350         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
5351
5352 2011-03-31  Nancy Piedra  <nancy.piedra@nokia.com>
5353
5354         Reviewed by Benjamin Poulain.
5355
5356         [Qt] ChromeClientQt.h has coding-style errors
5357         https://bugs.webkit.org/show_bug.cgi?id=40239
5358
5359         * WebCoreSupport/ChromeClientQt.h:
5360         (WebCore::ChromeClientQt::scrollbarsModeDidChange):
5361         (WebCore::ChromeClientQt::needTouchEvents):
5362         (WebCore::ChromeClientQt::formStateDidChange):
5363         (WebCore::ChromeClientQt::scrollRectIntoView):
5364         (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
5365         (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
5366
5367 2011-03-31  Evan Martin  <evan@chromium.org>
5368
5369         Build fix from previous change.
5370
5371         * Api/qwebframe.cpp:
5372         (QWebFrame::title):
5373
5374 2011-03-31  Evan Martin  <evan@chromium.org>
5375
5376         Reviewed by Eric Seidel.
5377
5378         <title> should support dir attribute
5379         https://bugs.webkit.org/show_bug.cgi?id=50961
5380
5381         Update to new FrameLoaderClient interface.
5382
5383         * WebCoreSupport/FrameLoaderClientQt.cpp:
5384         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
5385         (WebCore::FrameLoaderClientQt::setTitle):
5386         * WebCoreSupport/FrameLoaderClientQt.h:
5387
5388 2011-03-30  Yi Shen  <yi.4.shen@nokia.com>
5389
5390         Reviewed by Kenneth Rohde Christiansen.
5391
5392         [Qt][Symbian] Fix Api test failure -- tst_QWebView::focusInputTypes
5393         https://bugs.webkit.org/show_bug.cgi?id=57020
5394
5395         Added a macro 'VERIFY_INPUTMETHOD_HINTS' to test inputmethodhints().
5396
5397         * tests/qwebview/tst_qwebview.cpp:
5398         (tst_QWebView::focusInputTypes):
5399
5400 2011-03-30  Robert Hogan  <robert@webkit.org>
5401
5402         Reviewed by Antonio Gomes.
5403
5404         [Qt] Fix LoadHTMLStringItem::invoke() after r75966
5405
5406         Add DRT support for loading an alternate HTML string
5407         for error pages. This allows Qt to unskip
5408         http/tests/navigation/go-back-to-error-page.html.
5409
5410         https://bugs.webkit.org/show_bug.cgi?id=52614
5411
5412         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5413         (DumpRenderTreeSupportQt::setAlternateHtml):
5414         * WebCoreSupport/DumpRenderTreeSupportQt.h:
5415
5416 2011-03-29  Alexis Menard  <alexis.menard@openbossa.org>
5417
5418         Unreviewed build fix for build-webkit -minimal.
5419
5420         Breakage introduced by http://trac.webkit.org/changeset/82238.
5421         The minimal option has no support for shortcuts.
5422
5423         * WebCoreSupport/EditorClientQt.cpp:
5424         (WebCore::EditorClientQt::handleInputMethodKeydown):
5425
5426 2011-03-29  Janne Koskinen  <janne.p.koskinen@digia.com>
5427
5428         Reviewed by Kenneth Rohde Christiansen.
5429
5430         [Qt] Enterkey to go to Newline does not work in the text area(in HTML form)
5431         https://bugs.webkit.org/show_bug.cgi?id=33179
5432
5433         Fixed newline generation from Qt::Key_Enter when editting text area using InputMethods.
5434
5435         * WebCoreSupport/EditorClientQt.cpp:
5436         (WebCore::EditorClientQt::handleInputMethodKeydown):
5437         * tests/qwebpage/tst_qwebpage.cpp:
5438         (tst_QWebPage::inputMethods):
5439
5440 2011-03-29  Andreas Kling  <kling@webkit.org>
5441
5442         Reviewed by Simon Hausmann.
5443
5444         [Qt] Fix documentation for QWebPage::repaintRequested()
5445
5446         This signal is always emitted when the page is dirtied, so remove
5447         reference to old behavior where we would only emit the signal for
5448         headless QWebPages.
5449
5450         * Api/qwebpage.cpp:
5451
5452 2011-03-28  Andreas Kling  <kling@webkit.org>
5453
5454         Reviewed by Benjamin Poulain.
5455
5456         [Qt] Pass QString() instead of String() when emitting titleChanged() for new loads.
5457
5458         * WebCoreSupport/FrameLoaderClientQt.cpp:
5459         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
5460
5461 2011-03-28  Andreas Kling  <kling@webkit.org>
5462
5463         Reviewed by Benjamin Poulain.
5464
5465         [Qt] Crash when calling QWebFrame::render() in response to QWebPage::repaintRequested()
5466         https://bugs.webkit.org/show_bug.cgi?id=52629
5467
5468         * WebCoreSupport/ChromeClientQt.cpp:
5469         (WebCore::ChromeClientQt::invalidateContentsAndWindow): Make the emission of
5470         QWebPage::repaintRequested() use a Qt::QueuedConnection.
5471
5472         * tests/qwebpage/tst_qwebpage.cpp:
5473         (RepaintRequestedRenderer::RepaintRequestedRenderer):
5474         (RepaintRequestedRenderer::onRepaintRequested):
5475         (tst_QWebPage::renderOnRepaintRequestedShouldNotRecurse): Test that calling
5476         QWebFrame::render() in a slot connected to to QWebPage::repaintRequested()
5477         doesn't cause recursive signal emissions.
5478
5479 2011-03-28  Benjamin Poulain  <benjamin.poulain@nokia.com>
5480
5481         Reviewed by Andreas Kling.
5482
5483         [Qt] QtWebKit will not compile with QT_ASCII_CAST_WARNINGS enabled
5484         https://bugs.webkit.org/show_bug.cgi?id=57087
5485
5486         * QtWebKit.pro: we can now enable QT_ASCII_CAST_WARNINGS
5487         * tests/tests.pri: we do not require QT_ASCII_CAST_WARNINGS for tests
5488         since they are applications, not libraries.
5489
5490 2011-03-28  Andras Becsi  <abecsi@webkit.org>
5491
5492         Reviewed by Csaba Osztrogonác.
5493
5494         [Qt] QtWebKit does not link with --3d-canvas using MinGW
5495         https://bugs.webkit.org/show_bug.cgi?id=57225
5496
5497         * QtWebKit.pro: Append the OpenGL libraries on MinGW so it can resolve symbols.
5498
5499 2011-03-28  Csaba Osztrogonác  <ossy@webkit.org>
5500
5501         Reviewed by Andreas Kling.
5502
5503         REGRESSION(r54712): [Qt] Installed QtWebKit header does not compile.
5504         https://bugs.webkit.org/show_bug.cgi?id=57183
5505
5506         Windows buildfix after r82065.
5507
5508         * Api/DerivedSources.pro: Readding escaping on Windows platforms.
5509
5510 2011-03-27  Andreas Kling  <kling@webkit.org>
5511
5512         Fix build warning about IconDatabaseClient.h (wrong path.)
5513
5514         * QtWebKit.pro:
5515
5516 2011-03-27  Andreas Kling  <kling@webkit.org>
5517
5518         Reviewed by Kenneth Rohde Christiansen.
5519
5520         [Qt] Support for CSS color and background-color properties on select element's dropdown list
5521         https://bugs.webkit.org/show_bug.cgi?id=51627
5522
5523         Extend the QWebSelectData interface with background and foreground colors
5524         for the whole menu, as well as per-item. Hook it up to the PopupMenuStyle
5525         getters in RenderMenuList.
5526
5527         * Api/qwebkitplatformplugin.h:
5528         * WebCoreSupport/PopupMenuQt.cpp:
5529         (SelectData::backgroundColor):
5530         (SelectData::foregroundColor):
5531         (SelectData::itemBackgroundColor):
5532         (SelectData::itemForegroundColor):
5533         * WebCoreSupport/QtFallbackWebPopup.cpp:
5534         (WebCore::QtFallbackWebPopup::show):
5535         (WebCore::QtFallbackWebPopup::populate):
5536
5537 2011-03-27  Yi Shen  <yi.4.shen@nokia.com>
5538
5539         Reviewed by Andreas Kling.
5540
5541         [Qt][Symbian] Fix Api test failure -- microFocusCoordinates
5542         https://bugs.webkit.org/show_bug.cgi?id=57108
5543
5544         Since the canvas is not self-closing tag, we need to add '</canvas>'. 
5545
5546         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
5547         (tst_QGraphicsWebView::microFocusCoordinates):
5548         * tests/qwebview/tst_qwebview.cpp:
5549         (tst_QWebView::microFocusCoordinates):
5550
5551 2011-03-27  Kwang Yul Seo  <skyul@company100.net>
5552
5553         Reviewed by Eric Seidel.
5554
5555         [Qt] Build fix: Define WTF_USE_TEXTURE_MAPPER=1 when CONFIG contains texmap.
5556         https://bugs.webkit.org/show_bug.cgi?id=57143
5557
5558         Qt WebKit uses USE(TEXTURE_MAPPER) guard. Check texmap in CONFIG and
5559         define WTF_USE_TEXTURE_MAPPER=1.
5560
5561         * QtWebKit.pro:
5562
5563 2011-03-27  Andreas Kling  <kling@webkit.org>
5564
5565         Reviewed by Benjamin Poulain.
5566
5567         REGRESSION(r54712): [Qt] Installed QtWebKit header does not compile.
5568         https://bugs.webkit.org/show_bug.cgi?id=57183
5569
5570         The convenience <QtWebKit> header would include \<QtNetwork/QtNetwork\>
5571         which was due to the outputting code previously being wrapped in eval().
5572
5573         * Api/DerivedSources.pro:
5574
5575 2011-03-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
5576
5577         Reviewed by Andreas Kling.
5578
5579         [Qt] QtWebKit will not compile with QT_ASCII_CAST_WARNINGS enabled
5580         https://bugs.webkit.org/show_bug.cgi?id=57087
5581
5582         Use explicit conversion for string to avoid depending on the default codec
5583         installed by the user code.
5584
5585         * Api/qwebkitversion.cpp:
5586         (qWebKitVersion):
5587         * Api/qwebpage.cpp:
5588         (QWebPagePrivate::dynamicPropertyChangeEvent):
5589         (QWebPage::javaScriptConsoleMessage):
5590         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5591         (convertToPropertyName):
5592         (DumpRenderTreeSupportQt::setEditingBehavior):
5593         (DumpRenderTreeSupportQt::plainText):
5594         * WebCoreSupport/EditorClientQt.cpp:
5595         (dumpRange):
5596         * WebCoreSupport/FrameLoaderClientQt.cpp:
5597         (drtDescriptionSuitableForTestResult):
5598         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
5599         * WebCoreSupport/InspectorClientQt.cpp:
5600         (WebCore::InspectorClientQt::openInspectorFrontend):
5601         * WebCoreSupport/InspectorServerQt.cpp:
5602         (WebCore::parseWebSocketChallengeNumber):
5603         (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
5604
5605 2011-03-26  Andreas Kling  <kling@webkit.org>
5606
5607         Reviewed by Kenneth Rohde Christiansen.
5608
5609         [Qt] QWebFrame::iconChanged() not emitted when icon is cached but not yet loaded
5610         https://bugs.webkit.org/show_bug.cgi?id=57157
5611
5612         Add an IconDatabaseClient for the Qt port to ensure that QWebFrame::iconChanged()
5613         is always emitted when appropriate.
5614
5615         * QtWebKit.pro: Add new files.
5616
5617         * WebCoreSupport/IconDatabaseClientQt.h: Added.
5618         * WebCoreSupport/IconDatabaseClientQt.cpp: Added.
5619         (WebCore::IconDatabaseClientQt::instance):
5620         (WebCore::IconDatabaseClientQt::IconDatabaseClientQt):
5621         (WebCore::IconDatabaseClientQt::~IconDatabaseClientQt):
5622         (WebCore::IconDatabaseClientQt::performImport):
5623         (WebCore::IconDatabaseClientQt::didRemoveAllIcons):
5624         (WebCore::IconDatabaseClientQt::didImportIconURLForPageURL):
5625         (WebCore::IconDatabaseClientQt::didImportIconDataForPageURL):
5626         (WebCore::IconDatabaseClientQt::didChangeIconForPageURL):
5627         (WebCore::IconDatabaseClientQt::didFinishURLImport):
5628
5629         * WebCoreSupport/FrameLoaderClientQt.h:
5630         * WebCoreSupport/FrameLoaderClientQt.cpp:
5631         (WebCore::FrameLoaderClientQt::registerForIconNotification):
5632         (WebCore::FrameLoaderClientQt::onIconLoadedForPageURL): New slot connected
5633         to the IconDatabaseClientQt::iconLoadedForPageURL() signal. This emits the
5634         QWebFrame::iconChanged() signal when the IconDatabases finishes loading
5635         a cached favicon for the frame's URL.
5636
5637         * Api/qwebsettings.cpp:
5638         (QWebSettings::setIconDatabasePath): Make sure that IconDatabaseClientQt is
5639         instantiated. An IconDatabaseClient has to be registered before the IconDatabase
5640         spawns its reader thread.
5641
5642 2011-03-25  Andy Estes  <aestes@apple.com>
5643
5644         Reviewed by Adele Peterson.
5645
5646         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
5647         https://bugs.webkit.org/show_bug.cgi?id=49016
5648
5649         Update objectContentType() implementation to handle the
5650         shouldPreferPlugInsForImages flag.
5651
5652         * WebCoreSupport/FrameLoaderClientQt.cpp:
5653         (WebCore::FrameLoaderClientQt::objectContentType):
5654         * WebCoreSupport/FrameLoaderClientQt.h:
5655
5656 2011-03-25  Chang Shu  <cshu@webkit.org>
5657
5658         Reviewed by Ryosuke Niwa.
5659
5660         rename Node::isContentEditable and all call sites to rendererIsEditable
5661         https://bugs.webkit.org/show_bug.cgi?id=54290
5662
5663         This is part of the effort to separate JS API HTMLElement isContentEditable from
5664         internal Node::rendererIsEditable.
5665
5666         * WebCoreSupport/EditorClientQt.cpp:
5667         (WebCore::EditorClientQt::handleKeyboardEvent):
5668
5669 2011-03-25  Alexis Menard  <alexis.menard@openbossa.org>
5670
5671         Reviewed by Andreas Kling.
5672
5673         [Qt] The keyboard shortcuts during fullscreen playback do not work.
5674         https://bugs.webkit.org/show_bug.cgi?id=57095
5675
5676         We need to explicitely set the focus on the widget in order to receive the keyboard events.
5677
5678         * WebCoreSupport/FullScreenVideoWidget.cpp:
5679         (WebCore::FullScreenVideoWidget::show):
5680
5681 2011-03-24  Sheriff Bot  <webkit.review.bot@gmail.com>
5682
5683         Unreviewed, rolling out r81916 and r81917.
5684         http://trac.webkit.org/changeset/81916
5685         http://trac.webkit.org/changeset/81917
5686         https://bugs.webkit.org/show_bug.cgi?id=57071
5687
5688         broke a test on platforms that do not have QuickTime installed
5689         (Requested by estes on #webkit).
5690
5691         * WebCoreSupport/FrameLoaderClientQt.cpp:
5692         (WebCore::FrameLoaderClientQt::objectContentType):
5693         * WebCoreSupport/FrameLoaderClientQt.h:
5694
5695 2011-03-24  Andy Estes  <aestes@apple.com>
5696
5697         Reviewed by Darin Adler.
5698
5699         REGRESSION (r70748): latest nightly builds kills AC_QuickTime.js
5700         https://bugs.webkit.org/show_bug.cgi?id=49016
5701
5702         Update objectContentType() implementation to handle the
5703         shouldPreferPlugInsForImages flag.
5704
5705         * WebCoreSupport/FrameLoaderClientQt.cpp:
5706         (WebCore::FrameLoaderClientQt::objectContentType):
5707         * WebCoreSupport/FrameLoaderClientQt.h:
5708
5709 2011-03-24  Benjamin Poulain  <benjamin.poulain@nokia.com>
5710
5711         Reviewed by Kenneth Rohde Christiansen.
5712
5713         [Qt] When we render WebGL offscreen, color conversion cost a lot of CPU cycles
5714         https://bugs.webkit.org/show_bug.cgi?id=40884
5715
5716         Add tests and benchmarks for the software fallback of WebGL.
5717
5718         * tests/benchmarks/webgl/10000_triangles.html: Added.
5719         * tests/benchmarks/webgl/tst_webgl.cpp: Added.
5720         (GraphicsView::GraphicsView):
5721         (GraphicsView::resizeEvent):
5722         (tst_WebGlPerformance::init):
5723         (tst_WebGlPerformance::cleanup):
5724         (tst_WebGlPerformance::benchSoftwareFallbackRgb16):
5725         (tst_WebGlPerformance::benchSoftwareFallbackRgb32):
5726         (tst_WebGlPerformance::benchSoftwareFallbackArgb32):
5727         (tst_WebGlPerformance::benchSoftwareFallbackArgb32Premultiplied):
5728         (tst_WebGlPerformance::benchmarkFrameRenderingOnImage):
5729         * tests/benchmarks/webgl/tst_webgl.qrc: Added.
5730         * tests/benchmarks/webgl/webgl.pro: Added.
5731         * tests/qgraphicswebview/qgraphicswebview.pro:
5732         * tests/qgraphicswebview/resources/pointing_right.html: Added.
5733         * tests/qgraphicswebview/resources/pointing_up.html: Added.
5734         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
5735         (compareImagesFuzzyPixelCount):
5736         (GraphicsView::GraphicsView):
5737         (tst_QGraphicsWebView::webglSoftwareFallbackVerticalOrientation):
5738         (tst_QGraphicsWebView::webglSoftwareFallbackHorizontalOrientation):
5739         (tst_QGraphicsWebView::compareCanvasToImage):
5740         * tests/qgraphicswebview/tst_qgraphicswebview.qrc:
5741         * tests/tests.pro:
5742
5743 2011-03-24  Kristian Amlie  <kristian.amlie@nokia.com>
5744
5745         Reviewed by Benjamin Poulain.
5746
5747         Avoided ASCII-cast warnings for WebKit.
5748
5749         Normally they won't be enabled anyway, but if you build webkit from
5750         within the Qt mother repository it will pick up Qt's default build
5751         settings, which do enable it. We need to disable them because
5752         warnings are treated as errors and there are way too many of them in
5753         the WebKit code.
5754
5755         [Qt] Avoid ASCII-cast warnings for WebKit.
5756         https://bugs.webkit.org/show_bug.cgi?id=57016
5757
5758         * QtWebKit.pro:
5759
5760 2011-03-24  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
5761
5762         Reviewed by Benjamin Poulain.
5763
5764         [Qt] Resetting the URL property of a QWebView results in the current directory being set as file::-type URL
5765         https://bugs.webkit.org/show_bug.cgi?id=29595
5766
5767         Qt Designer resets the URL by setting it to QUrl(). The bug was caused by
5768         ensureAbsoluteUrl() helper function treating the empty URL as a relative URL, and
5769         prepending the current directory.
5770
5771         By fixing this, now we can pass QUrl() invalid and empty URLs to WebCore layer, which
5772         will end up loading "about:blank", but keeping it as a requested URL.
5773
5774         This patch also simplifies the logic for requestedUrl(), since m_lastRequestedUrl
5775         is filled for the loaded URLs as well, we can use it in every case.
5776
5777         Three new autotests were added, to better cover the expected behavior of setting
5778         the QUrl() in a QWebFrame.
5779
5780         * Api/qwebframe.cpp:
5781         (ensureAbsoluteUrl): do not treat invalid URLs (empty included) as relative.
5782         (QWebFrame::requestedUrl): always use m_lastRequestedUrl.
5783
5784         * WebCoreSupport/FrameLoaderClientQt.cpp:
5785         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): do not clear m_lastRequestedUrl
5786         anymore, since we always rely on it even for loaded frames.
5787
5788         * tests/qwebframe/tst_qwebframe.cpp:
5789         (tst_QWebFrame::setUrlToEmpty): verify the behavior of setting empty URLs. This includes
5790         the reduction of the bug report.
5791         (tst_QWebFrame::setUrlToInvalid): setting invalid, but not necessarily empty, URLs.
5792         (tst_QWebFrame::setUrlHistory): to verify how setting empty URLs affect history.
5793
5794 2011-03-23  Brady Eidson  <beidson@apple.com>
5795
5796         Reviewed by Sam Weinig.
5797
5798         Change IconDatabase opening to allow for arbitrary filenames
5799         https://bugs.webkit.org/show_bug.cgi?id=56977
5800
5801         * Api/qwebsettings.cpp:
5802         (QWebSettings::setIconDatabasePath):
5803
5804 2011-03-23  Aparna Nandyal  <aparna.nand@wipro.com>
5805
5806         Reviewed by Andreas Kling.
5807
5808         [Qt] QtWebKit rendering problem when maximizing and doing a back
5809         https://bugs.webkit.org/show_bug.cgi?id=56669
5810
5811         Added an auto test.
5812         Patch by Alexis Menard < alexis.menard@nokia.com> on 2011-03-21
5813  
5814         * tests/qwebview/tst_qwebview.cpp:
5815         (tst_QWebView::rendering):
5816
5817 2011-03-23  Yury Semikhatsky  <yurys@chromium.org>
5818
5819         Reviewed by Pavel Feldman.
5820
5821         [V8] Web Inspector: compile DebuggerScript.js into DebuggerScriptSource.h
5822         https://bugs.webkit.org/show_bug.cgi?id=56843
5823
5824         * WebCoreSupport/InspectorClientQt.cpp:
5825         (WebCore::InspectorClientQt::openInspectorFrontend):
5826
5827 2011-03-22  Andrew Wason  <rectalogic@rectalogic.com>
5828
5829         Reviewed by Benjamin Poulain.
5830
5831         [Qt] QWebPage with WebGL content crashes when rendering if no QWebView parent
5832         https://bugs.webkit.org/show_bug.cgi?id=54138
5833
5834         * tests/qwebpage/tst_qwebpage.cpp:
5835         (webGLScreenshotWithoutView):
5836         (tst_QWebPage::acceleratedWebGLScreenshotWithoutView):
5837         (tst_QWebPage::unacceleratedWebGLScreenshotWithoutView):
5838          Render a QWebPage (with and without accelerated compositing)
5839          with a WebGL context that has no owning view.  Shouldn't crash.
5840
5841 2011-03-21  Chang Shu  <cshu@webkit.org>
5842
5843         Reviewed by Alexey Proskuryakov.
5844
5845         REGRESSION (r79953): Can't type in MS Outlook 2011
5846         https://bugs.webkit.org/show_bug.cgi?id=56665
5847
5848         r79953 removed the WebView level editablity which is persistent no matter whether
5849         underlying document itself is changed and editability gets lost. The resolution is to
5850         set this WebView editable value to WebCore. This avoids the callback from WebCore to
5851         WebKit which was the main goal in r79953 to improve performance.
5852
5853         * Api/qwebpage.cpp:
5854         (QWebPage::setContentEditable):
5855         (QWebPage::isContentEditable):
5856
5857 2011-03-19  Andreas Kling  <kling@webkit.org>
5858
5859         Reviewed by Benjamin Poulain.
5860
5861         [Qt] Remove support for Qt 4.6
5862         https://bugs.webkit.org/show_bug.cgi?id=56712
5863
5864         * Api/qwebframe.cpp:
5865         (QWebFrame::load):
5866         * Api/qwebpage.cpp:
5867         (QWebPagePrivate::QWebPagePrivate):
5868         * Api/qwebsettings.cpp:
5869         (QWebSettings::QWebSettings):
5870         * WebCoreSupport/GeolocationClientQt.cpp:
5871         (WebCore::GeolocationClientQt::positionUpdated):
5872
5873 2011-03-19  Andreas Kling  <kling@webkit.org>
5874
5875         Reviewed by Antonio Gomes.
5876
5877         [Qt][Doc] QWebPage::unsupportedContent() passes ownership of the QNetworkReply
5878         https://bugs.webkit.org/show_bug.cgi?id=56711
5879
5880         Document the fact that when unsupportedContent(QNetworkReply*) is emitted,
5881         ownership of the reply is transferred to the receiving slot.
5882
5883         * Api/qwebpage.cpp:
5884
5885 2011-03-17  Brady Eidson  <beidson@apple.com>
5886
5887         Reviewed by Sam Weinig.
5888
5889         https://bugs.webkit.org/show_bug.cgi?id=56425
5890         More groundwork for WebKit2 IconDatabase
5891
5892         Update already-used function names:
5893         * Api/qwebhistory.cpp:
5894         (QWebHistoryItem::icon):
5895         * Api/qwebsettings.cpp:
5896         (QWebSettings::iconForUrl):
5897
5898 2011-03-18  Alexis Menard  <alexis.menard@openbossa.org>
5899
5900         Reviewed by Benjamin Poulain.
5901
5902         [Qt] console.log not being exposed to QmlViewer
5903         https://bugs.webkit.org/show_bug.cgi?id=56536
5904
5905         The documentation is bogus the feature does not exist.
5906
5907         * declarative/qdeclarativewebview.cpp:
5908
5909 2011-03-17  Andreas Kling  <kling@webkit.org>
5910
5911         Reviewed by Kenneth Rohde Christiansen.
5912
5913         [Qt] QML WebView emits iconChanged() when the page title changes
5914         https://bugs.webkit.org/show_bug.cgi?id=56570
5915
5916         * declarative/qdeclarativewebview.cpp:
5917         (QDeclarativeWebView::setPage): Don't forward the frame's titleChanged
5918         signal to the view's iconChanged signal.
5919
5920 2011-03-17  Alexis Menard  <alexis.menard@openbossa.org>
5921
5922         Reviewed by Benjamin Poulain.
5923
5924         [Qt] Videos look ugly when using QGraphicsWebView.
5925         https://bugs.webkit.org/show_bug.cgi?id=56580
5926
5927         We need to set QPainter::SmoothPixmapTransform on the painter for a proper rendering of the video.
5928         QWebView does it but not QGraphicsWebView because the API does not exist. This patch is fixing it
5929         by introducing the same API as QWebView to control the renderHints of the item. Unlike QWebView
5930         QGraphicsWebView inherits the painter from QGraphicsScene and those flags are not set. This patch
5931         ensure that before rendering the item we add QPainter::SmoothPixmapTransform and QPainter::TextAntialiasing
5932         in addition of what could be set on the painter. In order to not break the rendering of all the items in the
5933         scene we set back the painter to its original state when QGraphicsWebView is rendered.
5934
5935         * Api/qgraphicswebview.cpp:
5936         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
5937         (QGraphicsWebView::paint):
5938         (QGraphicsWebView::renderHints):
5939         (QGraphicsWebView::setRenderHints):
5940         (QGraphicsWebView::setRenderHint):
5941         * Api/qgraphicswebview.h:
5942         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
5943         (tst_QGraphicsWebView::renderHints):
5944
5945 2011-03-16  Joseph Pecoraro  <joepeck@webkit.org>
5946
5947         Reviewed by Kenneth Rohde Christiansen.
5948
5949         Viewport no longer allows an auto value for "user-scalable"
5950         https://bugs.webkit.org/show_bug.cgi?id=55416
5951
5952         Make the default value for userScalable be true.
5953
5954         * Api/qwebpage.cpp:
5955         (QWebPage::viewportAttributesForSize):
5956         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5957         (DumpRenderTreeSupportQt::viewportAsText): update test output to include userScalable.
5958
5959 2011-03-15  Kevin Ollivier  <kevino@theolliviers.com>
5960
5961         Reviewed by Darin Adler.
5962
5963         Introduce WTF_USE_EXPORT_MACROS, which will allow us to put shared library import/export
5964         info into the headers rather than in export symbol definition files, but disable it on 
5965         all platforms initially so we can deal with port build issues one port at a time.
5966         
5967         https://bugs.webkit.org/show_bug.cgi?id=27551
5968
5969         * WebCoreSupport/GeolocationClientQt.cpp:
5970         * WebCoreSupport/PopupMenuQt.cpp:
5971
5972 2011-03-14  Brady Eidson  <beidson@apple.com>
5973
5974         Reviewed by Anders Carlsson.
5975
5976         https://bugs.webkit.org/show_bug.cgi?id=56320
5977         Remove HistoryItem::icon() and the WebCore dependency on "IconDatabaseBase::defaultIcon()"
5978
5979         * Api/qwebhistory.cpp:
5980         (QWebHistoryItem::icon): Use IconDatabase directly.
5981
5982 2011-03-11  Brady Eidson  <beidson@apple.com>
5983
5984         Reviewed by attempt at build fix!
5985
5986         https://bugs.webkit.org/show_bug.cgi?id=56216
5987         Fix the Qt build following the same pattern of the patch.
5988
5989         * Api/qwebsettings.cpp:
5990         (QWebSettings::setIconDatabasePath): Call the static method via IconDatabase:: and not via iconDatabase()
5991
5992 2011-03-11  Alexis Menard  <alexis.menard@openbossa.org>
5993
5994         Reviewed by Ariya Hidayat.
5995
5996         [Qt] Entering fullscreen and leaving it may hide the cursor of the application.
5997         https://bugs.webkit.org/show_bug.cgi?id=56181
5998
5999         We need to stop the auto hide cursor timer when closing the widget otherwise the timer
6000         might get fired and therefore hide the cursor even when the fullscreen widget is closed.
6001
6002         * WebCoreSupport/FullScreenVideoWidget.cpp:
6003         (WebCore::FullScreenVideoWidget::closeEvent):
6004
6005 2011-03-10  David Boddie <david.boddie@nokia.com>
6006
6007         Reviewed by Andreas Kling.
6008
6009         Fixed a qdoc warning and terminology (WebKit instead of Webkit).
6010         https://bugs.webkit.org/show_bug.cgi?id=55756
6011
6012         * Api/qwebhistoryinterface.cpp:
6013
6014 2011-03-10  Andreas Kling  <kling@webkit.org>
6015
6016         Unreviewed build fix after r80774.
6017
6018         QML property versioning is introduced in Qt 4.7.3, not 4.7.2.
6019         See also: http://bugreports.qt.nokia.com/browse/QTBUG-13451
6020
6021         * declarative/plugin.cpp:
6022         (WebKitQmlPlugin::registerTypes):
6023         * declarative/qdeclarativewebview.cpp:
6024         * declarative/qdeclarativewebview_p.h:
6025         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
6026
6027 2011-03-10  Alexis Menard  <alexis.menard@openbossa.org>
6028
6029         Reviewed by Andreas Kling.
6030
6031         [Qt] QtDeclarative Webview element has a fixed white background
6032         https://bugs.webkit.org/show_bug.cgi?id=40918
6033
6034         Implement a way to change the background color of the WebView QML element.
6035         This feature is activated for QtWebKit 1.1 version of the plugin.
6036
6037         * declarative/plugin.cpp:
6038         (WebKitQmlPlugin::registerTypes):
6039         * declarative/qdeclarativewebview.cpp:
6040         (QDeclarativeWebView::backgroundColor):
6041         (QDeclarativeWebView::setBackgroundColor):
6042         * declarative/qdeclarativewebview_p.h:
6043         * tests/qdeclarativewebview/resources/webviewbackgroundcolor.qml: Added.
6044         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
6045         (tst_QDeclarativeWebView::backgroundColor):
6046         * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc:
6047
6048 2011-03-10  Stanislav Paltis  <Stanislav.Paltis@nokia.com>
6049
6050         Reviewed by Laszlo Gombos.
6051
6052         [Qt] MemoryCache deadDecodedDataDeletionInterval is not exposed for client's usage
6053         https://bugs.webkit.org/show_bug.cgi?id=55945
6054         
6055         Added handling of dynamic/runtime property _q_deadDecodedDataDeletionInterval to 
6056         set interval used to trigger when decoded data in dead list of object cache will 
6057         be purged from object cache. 
6058
6059         * Api/qwebpage.cpp:
6060         (QWebPagePrivate::dynamicPropertyChangeEvent):
6061
6062 2011-03-10  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
6063
6064         Reviewed by Antonio Gomes.
6065
6066         Simplify how QWebFrame::requestedUrl() is obtained
6067         https://bugs.webkit.org/show_bug.cgi?id=55842
6068
6069         When a load starts, store the requested URL until we know that it'll be
6070         available for us in the document loader -- after load finished.
6071
6072         The existing auto tests cover the three different code paths in
6073         requestedUrl() and the new code passes the autotests. In each of those
6074         cases, we looked for the information in a different place, but in all
6075         of them, dispatchDidStartProvisionalLoad was called.
6076
6077         This simplification will be useful to fix bug 32723. The way requestedUrl()
6078         is implementent, we can't use it as a fallback for url() when the setUrl()
6079         was called with an invalid URL.
6080
6081         * Api/qwebframe.cpp:
6082         (QWebFrame::requestedUrl):
6083         * WebCoreSupport/FrameLoaderClientQt.cpp:
6084         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
6085         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
6086         * WebCoreSupport/FrameLoaderClientQt.h:
6087         (WebCore::FrameLoaderClientQt::lastRequestedUrl):
6088
6089 2011-03-10  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
6090
6091         Reviewed by Kenneth Rohde Christiansen.
6092
6093         Tiled backing store's delegated scroll request uses incorrect convention
6094         https://bugs.webkit.org/show_bug.cgi?id=56011
6095
6096         Adapt internal API to match the change from delta to point on the
6097         WebCore side, and convert the point to a delta for the public API.
6098
6099         * WebCoreSupport/ChromeClientQt.cpp:
6100         (WebCore::ChromeClientQt::delegatedScrollRequested):
6101         * WebCoreSupport/ChromeClientQt.h:
6102
6103 2011-03-09  Peter Kasting  <pkasting@google.com>
6104
6105         Reviewed by Mihai Parparita.
6106
6107         Unify Windows version checks.
6108         https://bugs.webkit.org/show_bug.cgi?id=55979
6109
6110         * Api/qwebpage.cpp:
6111         (QWebPage::userAgentForUrl):
6112
6113 2011-03-07  Sam Weinig  <sam@webkit.org>
6114
6115         Reviewed by Anders Carlsson.
6116
6117         Replace WebKit2's decidePolicyForMIMEType with decidePolicyForResponse
6118         https://bugs.webkit.org/show_bug.cgi?id=55827
6119
6120         Renamed FrameLoaderClient::dispatchDecidePolicyForMIMEType to dispatchDecidePolicyForResponse
6121         and pass the entire response, instead of just the MIMEType.
6122
6123         * WebCoreSupport/FrameLoaderClientQt.cpp:
6124         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForResponse):
6125         * WebCoreSupport/FrameLoaderClientQt.h:
6126
6127 2011-03-05  Qi Zhang  <qi.2.zhang@nokia.com>
6128
6129         Reviewed by Laszlo Gombos.
6130
6131         [Qt] Mobile Devices should include Model and Firmware Version in Webkit Generated User Agent String
6132         https://bugs.webkit.org/show_bug.cgi?id=48636
6133
6134         Add model infomation into user agent string when qtmobility is available, but only for symbian, Maemo and MeeGo.
6135
6136         * Api/qwebpage.cpp:
6137         (QWebPage::userAgentForUrl):
6138
6139 2011-03-03  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
6140
6141         Reviewed by Kenneth Rohde Christiansen.
6142
6143         [QT] Implement mock client-based geolocation for layout testing
6144         https://bugs.webkit.org/show_bug.cgi?id=54334
6145
6146         Implement layout testing for Client-Based geolocation. If drt_run is set 
6147         then create mock geolocationClient and update the same with controller.
6148
6149         * Api/qwebpage.cpp:
6150         (QWebPagePrivate::QWebPagePrivate):
6151         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6152         (DumpRenderTreeSupportQt::mockGeolocationReset):
6153         (DumpRenderTreeSupportQt::setMockGeolocationPermission):
6154         (DumpRenderTreeSupportQt::setMockGeolocationPosition):
6155         (DumpRenderTreeSupportQt::setMockGeolocationError):
6156         * WebCoreSupport/DumpRenderTreeSupportQt.h:
6157         * WebCoreSupport/GeolocationClientQt.cpp:
6158         (WebCore::GeolocationClientQt::GeolocationClientQt):
6159         * WebCoreSupport/GeolocationClientQt.h:
6160
6161 2011-03-03  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
6162
6163         Reviewed by Kenneth Rohde Christiansen.
6164
6165         [Qt] QWebFrame::setUrl works only from second time if url fragment is present
6166         https://bugs.webkit.org/show_bug.cgi?id=32723
6167
6168         Create an auto-test for Qt based on the bug description.
6169
6170         * tests/qwebframe/tst_qwebframe.cpp: add setUrlWithFragment() test.
6171
6172 2011-03-03  Brady Eidson  <beidson@apple.com>
6173
6174         Reviewed by Darin Adler.
6175
6176         https://bugs.webkit.org/show_bug.cgi?id=55721
6177         Global IconDatabase should be returned by reference, not as a pointer
6178
6179         * Api/qwebsettings.cpp:
6180         (QWebSettings::setIconDatabasePath):
6181         (QWebSettings::iconDatabasePath):
6182         (QWebSettings::clearIconDatabase):
6183         (QWebSettings::iconForUrl):
6184
6185 2011-03-03  Alexey Proskuryakov  <ap@apple.com>
6186
6187         Removing an include of WebCoreKeyboardUIMode.h that Ive just added. It's already included
6188         via ChromeClient.h
6189
6190         * WebCoreSupport/ChromeClientQt.h:
6191
6192 2011-03-02  Alexey Proskuryakov  <ap@apple.com>
6193
6194         Reviewed by Darin Adler.
6195
6196         REGRESSION (WebKit2): Tab keys no longer observe Full Keyboard Access
6197         https://bugs.webkit.org/show_bug.cgi?id=55633
6198         <rdar://problem/8963023>
6199
6200         * WebCoreSupport/ChromeClientQt.cpp (WebCore::ChromeClientQt::keyboardUIMode):
6201         * WebCoreSupport/ChromeClientQt.h:
6202         Implement keyboardUIMode() instead of tabsToLinks(). No change in functionality, since
6203         this platform doesn't observe or have full keyboard access state.
6204
6205 2011-03-03  Alexis Menard  <alexis.menard@openbossa.org>
6206
6207         Reviewed by Andreas Kling.
6208
6209         [Qt] QGraphicsWebView should use updateMicroFocus() of QGraphicsItem
6210         https://bugs.webkit.org/show_bug.cgi?id=55568
6211
6212         We should use updateMicroFocus() from QGraphicsItem rather than the implementation
6213         in QGraphicsWebView. _q_updateMicroFocus was added when QGraphicsItem didn't have the feature.
6214         In Qt 4.7, updateMicroFocus was added, let's use it, then we can benefit of all bug fixing done
6215         in QGraphicsItem.
6216
6217         * Api/qgraphicswebview.cpp:
6218         (QGraphicsWebView::setPage):
6219         * Api/qgraphicswebview.h:
6220
6221 2011-03-03  Peter Kasting  <pkasting@google.com>
6222
6223         Reviewed by James Robinson.
6224
6225         Drop redundant "Windows; " from the Windows-specific User Agent string.
6226         https://bugs.webkit.org/show_bug.cgi?id=54567
6227
6228         * Api/qwebpage.cpp:
6229         (QWebPage::userAgentForUrl):
6230
6231 2011-03-01  Brian Weinstein  <bweinstein@apple.com>
6232
6233         Reviewed by Adam Roben.
6234
6235         Part of WebKit2: Need a way to send notifications to client when cookies change
6236         https://bugs.webkit.org/show_bug.cgi?id=55427
6237         <rdar://problem/9056027>
6238         
6239         Add stubs for CookiesStrategy on Qt WebKit1.
6240
6241         * WebCoreSupport/WebPlatformStrategies.cpp:
6242         (WebPlatformStrategies::createCookiesStrategy):
6243         (WebPlatformStrategies::notifyCookiesChanged):
6244         * WebCoreSupport/WebPlatformStrategies.h:
6245
6246 2011-03-01  Joseph Pecoraro  <joepeck@webkit.org>
6247
6248         Unreviewed. Roll out r80068 and r80073 due to breaking WebKit2 Qt port.
6249
6250         * Api/qwebpage.cpp:
6251         (QWebPage::viewportAttributesForSize):
6252         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6253         (DumpRenderTreeSupportQt::viewportAsText):
6254
6255 2011-03-01  Joseph Pecoraro  <joepeck@webkit.org>
6256
6257         Reviewed by Kenneth Rohde Christiansen.
6258
6259         Viewport Warning/Error Messages Are Now Inaccurate
6260         https://bugs.webkit.org/show_bug.cgi?id=53707
6261
6262         * Api/qwebpage.cpp:
6263         (QWebPage::viewportAttributesForSize): pass a Document into computeViewportAttributes for warnings to be reported to.
6264         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6265         (DumpRenderTreeSupportQt::viewportAsText): pass a Document into computeViewportAttributes for warnings to be reported to.
6266
6267 2011-03-01  Andras Becsi  <abecsi@webkit.org>
6268
6269         Reviewed by Csaba Osztrogonác.
6270
6271         [Qt] Clean up the project files and move common options to WebKit.pri.
6272
6273         * QtWebKit.pro: Move common options to WebKit.pri.
6274
6275 2011-03-01  Aparna Nandyal  <aparna.nand@wipro.com>
6276
6277         Reviewed by Simon Hausmann.
6278
6279         [Qt]tst_QWebPage::backActionUpdate fails when there is not network connection
6280         https://bugs.webkit.org/show_bug.cgi?id=55319
6281
6282         The test case required internet connection to be able to connect to
6283         google.com. Added new html file which refers to local html file.
6284
6285         * tests/qwebpage/resources/content.html: Added.
6286         * tests/qwebpage/resources/frame_c.html: Added.
6287         * tests/qwebpage/resources/framedindex.html: Added.
6288         * tests/qwebpage/tst_qwebpage.cpp:
6289         (tst_QWebPage::backActionUpdate):
6290         * tests/qwebpage/tst_qwebpage.qrc:
6291
6292 2011-02-25 Steve Block <steveblock@google.com>
6293
6294         Reviewed by Jeremy Orlow.
6295
6296         Bridge.h should not include BridgeJSC.h
6297         https://bugs.webkit.org/show_bug.cgi?id=55212
6298
6299         Include BridgeJSC.h directly instead.
6300
6301         * Api/qwebframe.cpp:
6302
6303 2011-02-28  Chang Shu  <cshu@webkit.org>
6304
6305         Reviewed by Ryosuke Niwa.
6306
6307         Remove the support of Frame::isContentEditable and its dependencies.
6308         https://bugs.webkit.org/show_bug.cgi?id=54292
6309
6310         Remove the WebKit side implementation. Make WebKit support depend on Document::inDesignMode.
6311
6312         * Api/qwebpage.cpp:
6313         (QWebPagePrivate::QWebPagePrivate):
6314         (QWebPage::setContentEditable):
6315         (QWebPage::isContentEditable):
6316         * Api/qwebpage_p.h:
6317         * WebCoreSupport/EditorClientQt.cpp:
6318         * WebCoreSupport/EditorClientQt.h:
6319
6320 2011-02-28  Alexis Menard  <alexis.menard@openbossa.org>
6321
6322         Reviewed by Oliver Hunt.
6323
6324         Build fix for Qt port after API changes of http://trac.webkit.org/changeset/79904.
6325
6326         * Api/qwebelement.cpp:
6327         (QWebElement::evaluateJavaScript):
6328
6329 2011-02-28  Alexis Menard  <alexis.menard@openbossa.org>
6330
6331         Reviewed by Andreas Kling.
6332
6333         [Qt]tst_QDeclarativeWebView - 8 test cases fail
6334         https://bugs.webkit.org/show_bug.cgi?id=55214
6335
6336         Fix the API tests for the QML WebView element. The default size of the element should be the size of the QGraphicsWebView
6337         if no preferred width or height are provided (see http://trac.webkit.org/changeset/79672).
6338         I also refactored the tests so we don't use the network but instead a local html file.
6339         QML doesn't support qrc loading so I had to workaround by using a property that I update afterwards.
6340
6341         * tests/qdeclarativewebview/resources/sample.html: Added.
6342         * tests/qdeclarativewebview/resources/webviewtest.qml:
6343         * tests/qdeclarativewebview/resources/webviewtestdefault.qml:
6344         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
6345         (tst_QDeclarativeWebView::preferredWidthTest):
6346         (tst_QDeclarativeWebView::preferredHeightTest):
6347         (tst_QDeclarativeWebView::preferredWidthDefaultTest):
6348         (tst_QDeclarativeWebView::preferredHeightDefaultTest):
6349         * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc:
6350
6351 2011-02-28  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
6352
6353         Reviewed by Andreas Kling.
6354
6355         [Qt] Add clipped version of QWebElement::render method.
6356         Allows faster rendering of web element part.
6357         https://bugs.webkit.org/show_bug.cgi?id=50311
6358
6359         * Api/qwebelement.cpp:
6360         (QWebElement::render):
6361         * Api/qwebelement.h:
6362         * tests/qwebelement/tst_qwebelement.cpp:
6363         (tst_QWebElement::render):
6364
6365 2011-02-28  Kristian Amlie  <kristian.amlie@nokia.com>
6366
6367         Reviewed by Andreas Kling.
6368
6369         Added full webkit module profile and a syncqt profile.
6370
6371         This is for modularized Qt.
6372
6373         [Qt] WebKit patches required to work with a modularized version of Qt
6374         https://bugs.webkit.org/show_bug.cgi?id=53916
6375
6376         * qt_webkit_version.pri:
6377
6378 2011-02-27  Aparna Nandyal  <aparna.nand@wipro.com>
6379
6380         Reviewed by Antonio Gomes.
6381
6382         [Qt] QtTestBrowser - Horizontal scrollbar disappears on navigating pages using Back/Forward
6383         https://bugs.webkit.org/show_bug.cgi?id=53917
6384
6385         Adding test case to check the scenario to avoid regressions in the
6386         future. 
6387
6388         * tests/qwebframe/tst_qwebframe.cpp:
6389
6390 2011-02-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
6391
6392         Reviewed by Andreas Kling.
6393
6394         [Qt] Reference the documentation of the WebKit bridge from QWebFrame::addToJavaScriptWindowObject()
6395         https://bugs.webkit.org/show_bug.cgi?id=55322
6396
6397         Documentation update, add a reference to the QtWebKit bridge page.
6398
6399         * Api/qwebframe.cpp:
6400
6401 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
6402
6403         Reviewed by Pavel Feldman.
6404
6405         DumpRenderTree should reset frame opener between tests.
6406         https://bugs.webkit.org/show_bug.cgi?id=54874
6407
6408         Added clearOpener method to DumpRenderTreeSupportQT.
6409
6410         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6411         (DumpRenderTreeSupportQt::clearOpener):
6412         * WebCoreSupport/DumpRenderTreeSupportQt.h:
6413
6414 2011-02-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
6415
6416         Reviewed by Andreas Kling.
6417
6418         Make it possible to test the targetdensity-dpi support
6419         https://bugs.webkit.org/show_bug.cgi?id=55142
6420
6421         Test the viewport meta tag feature targetdensity-dpi by
6422         adding extra arguments to dumpConfigurationForViewport
6423
6424         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6425         (DumpRenderTreeSupportQt::viewportAsText):
6426         * WebCoreSupport/DumpRenderTreeSupportQt.h:
6427
6428 2011-02-26  Sheriff Bot  <webkit.review.bot@gmail.com>
6429
6430         Unreviewed, rolling out r79764.
6431         http://trac.webkit.org/changeset/79764
6432         https://bugs.webkit.org/show_bug.cgi?id=55295
6433
6434         "broke Chromium builds" (Requested by rniwa on #webkit).
6435
6436         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6437         * WebCoreSupport/DumpRenderTreeSupportQt.h:
6438
6439 2011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
6440
6441         Reviewed by Pavel Feldman.
6442
6443         DumpRenderTree should reset frame opener between tests.
6444         https://bugs.webkit.org/show_bug.cgi?id=54874
6445
6446         Added clearOpener method to DumpRenderTreeSupportQT.
6447
6448         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6449         (DumpRenderTreeSupportQt::clearOpener):
6450         * WebCoreSupport/DumpRenderTreeSupportQt.h:
6451
6452 2011-02-25  Andras Becsi  <abecsi@webkit.org>
6453
6454         Reviewed by Csaba Osztrogonác.
6455
6456         [Qt] Make the WebKit2 build system less confusing for non-Qt developers
6457         https://bugs.webkit.org/show_bug.cgi?id=55213
6458
6459         * QtWebKit.pro: Move the WebKit2 API into a project include file
6460         in the WebKit2 directory and include the pri file here.
6461
6462 2011-02-25  Alexis Menard  <alexis.menard@openbossa.org>
6463
6464         Unreviewed build fix for Intel ICC and MSVC.
6465
6466         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
6467         (tst_QGraphicsWebView::setPalette):
6468         * tests/qwebview/tst_qwebview.cpp:
6469         (tst_QWebView::setPalette):
6470
6471 2011-02-25  Alexis Menard  <alexis.menard@openbossa.org>
6472
6473         Reviewed by Kenneth Rohde Christiansen.
6474
6475         [Qt] Properly propagate the palette to QWebPage from QGraphicsWebView
6476         https://bugs.webkit.org/show_bug.cgi?id=31742
6477
6478         Discovered while looking at 31742. When we set a palette on the
6479         QGraphicsWebView we need to propagate it to the page like QWebView.
6480         I have added the same tests as QWebView to be sure to catch potential
6481         regressions as well as two extras QVERIFY to check the palette propagation.
6482
6483         * Api/qgraphicswebview.cpp:
6484         (QGraphicsWebView::event):
6485         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
6486         (tst_QGraphicsWebView::setPalette_data):
6487         (tst_QGraphicsWebView::setPalette):
6488
6489 2011-02-25  Csaba Osztrogonác  <ossy@webkit.org>
6490
6491         Unreviewed buildfix after r79672.
6492
6493         [Qt] Build tst_qdeclarativewebview if QT_CONFIG contains declarative.
6494
6495         * tests/tests.pri:
6496         * tests/tests.pro:
6497
6498 2011-02-25  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
6499
6500         Reviewed by Kenneth Rohde Christiansen.
6501
6502         [Qt] QML WebView inside a Flickable shows checkers pattern at startup
6503         https://bugs.webkit.org/show_bug.cgi?id=50222.
6504
6505         This patch fixes the checkerboard visible at startup even if preferredWidth and preferredHeight are not set.
6506
6507         * declarative/qdeclarativewebview.cpp:
6508         (QDeclarativeWebView::init):
6509         * tests/qdeclarativewebview: Added.
6510         * tests/qdeclarativewebview/qdeclarativewebview.pro: Added.
6511         * tests/qdeclarativewebview/resources: Added.
6512         * tests/qdeclarativewebview/resources/webviewtest.qml: Added.
6513         * tests/qdeclarativewebview/resources/webviewtestdefault.qml: Added.
6514         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: Added.
6515         (tst_QDeclarativeWebView::initTestCase):
6516         (tst_QDeclarativeWebView::cleanupTestCase):
6517         (tst_QDeclarativeWebView::init):
6518         (tst_QDeclarativeWebView::cleanup):
6519         (tst_QDeclarativeWebView::preferredWidthTest):
6520         (tst_QDeclarativeWebView::preferredHeightTest):
6521         (tst_QDeclarativeWebView::preferredWidthDefaultTest):
6522         (tst_QDeclarativeWebView::preferredHeightDefaultTest):
6523         (tst_QDeclarativeWebView::checkNoErrors):
6524         * tests/tests.pri:
6525         * tests/tests.pro:
6526
6527 2011-02-24  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
6528
6529         Reviewed by Andreas Kling.
6530
6531         [Qt] Revert the support for QNAM affined to a different thread.
6532         https://bugs.webkit.org/show_bug.cgi?id=55149
6533
6534         Qt 4.8 will have QNAM use its own thread internally by default,
6535         no need to keep this complexity in WebKit.
6536
6537         This mainly reverts:
6538         http://trac.webkit.org/changeset/73710
6539         http://trac.webkit.org/changeset/73712
6540
6541         * WebCoreSupport/FrameLoaderClientQt.cpp:
6542         (WebCore::FrameLoaderClientQt::download):
6543         * tests/qwebpage/tst_qwebpage.cpp:
6544
6545 2011-02-24  Sam Weinig  <sam@webkit.org>
6546
6547         Try to fix the Qt build.
6548
6549         * QtWebKit.pro:
6550
6551 2011-02-24  Peter Kasting  <pkasting@google.com>
6552
6553         Reviewed by Eric Seidel.
6554
6555         Drop the "U; " encryption level from the User Agent string.
6556         https://bugs.webkit.org/show_bug.cgi?id=54566
6557
6558         * Api/qwebpage.cpp:
6559         (QWebPage::userAgentForUrl):
6560
6561 2011-02-24  Andrew Wilson  <atwilson@chromium.org>
6562
6563         Unreviewed, rolling out r79570.
6564         http://trac.webkit.org/changeset/79570
6565         https://bugs.webkit.org/show_bug.cgi?id=54874
6566
6567         Breaks chromium build because glue/mocks/mock_web_frame.h/cc
6568         was not updated
6569
6570         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6571         * WebCoreSupport/DumpRenderTreeSupportQt.h:
6572
6573 2011-02-24  Vsevolod Vlasov  <vsevik@chromium.org>
6574
6575         Reviewed by Alexey Proskuryakov.
6576
6577         DumpRenderTree should reset frame opener between tests.
6578         https://bugs.webkit.org/show_bug.cgi?id=54874
6579
6580         Added clearOpener method to DumpRenderTreeSupportQT.
6581
6582         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6583         (DumpRenderTreeSupportQt::clearOpener):
6584         * WebCoreSupport/DumpRenderTreeSupportQt.h:
6585
6586 2011-02-24  Alexis Menard  <alexis.menard@openbossa.org>
6587
6588         Reviewed by Andreas Kling.
6589
6590         [Qt] tst_QWebView::setPalette(activeFG) fails
6591         https://bugs.webkit.org/show_bug.cgi?id=55029
6592
6593         This time it should be the proper fix. The window needs to be shown before we
6594         call activateWindow() otherwise there is no active windows for the application.
6595
6596         * tests/qwebview/tst_qwebview.cpp:
6597         (tst_QWebView::setPalette):
6598
6599 2011-02-24  Andras Becsi  <abecsi@webkit.org>
6600
6601         Reviewed by Laszlo Gombos.
6602
6603         [Qt] MinGW build fails to link
6604         https://bugs.webkit.org/show_bug.cgi?id=55050
6605
6606         Prepend the libraries of subcomponents instead of appending them
6607         to fix the library order according to the dependency of the libraries
6608
6609         * QtWebKit.pro: prepend libraries in the correct order
6610
6611 2011-02-23  Alexis Menard  <alexis.menard@openbossa.org>
6612
6613         Reviewed by Ariya Hidayat.
6614
6615         [Qt] tst_QWebView::setPalette(activeFG) fails
6616         https://bugs.webkit.org/show_bug.cgi?id=55029
6617
6618         Attempt to make the test more robust. By investigating with the bot virtual machine
6619         I discovered that the activation can take some time. In this patch we make sure that
6620         the active window we want to have is the same as the QApplication.
6621
6622         * tests/qwebview/tst_qwebview.cpp:
6623         (tst_QWebView::setPalette):
6624
6625 2011-02-23  Alexis Menard  <alexis.menard@openbossa.org>
6626
6627         Reviewed by Dan Bernstein.
6628
6629         [Qt]REGRESSION(r79167): It broke 3 Qt-API test cases
6630         http://trac.webkit.org/changeset/79167 refactored the way the bound size of
6631         the frame is handled. A new API setBoundsSize was added, we need to call it
6632         in addition to setFrameRect. I could call setBoundSize after setFrameRect but
6633         I thought It would be more elegant to use the resize method.
6634
6635         * Api/qwebpage.cpp:
6636         (QWebPage::setViewportSize):
6637
6638 2011-02-22  Fabrizio Machado  <fabrizio.machado@nokia.com>
6639
6640         Reviewed by Laszlo Gombos.
6641
6642         [Qt] Don't fall through case in variantToSetting() if qvariant.type() is Bool
6643         https://bugs.webkit.org/show_bug.cgi?id=54976
6644
6645         Test not needed.
6646         
6647         * WebCoreSupport/InspectorClientQt.cpp:
6648
6649 2011-02-22  Alexis Menard  <alexis.menard@openbossa.org>
6650
6651         Reviewed by Andreas Kling.
6652
6653         [Qt] QWebView ignores a palette set with QWebView::setPalette()
6654         https://bugs.webkit.org/show_bug.cgi?id=31742
6655
6656         Test case to check that the palette sets on the QWebView is taken
6657         into account.
6658
6659         * tests/qwebview/tst_qwebview.cpp:
6660         (tst_QWebView::setPalette_data):
6661         (tst_QWebView::setPalette):
6662
6663 2011-02-22  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
6664
6665         Reviewed by Alexey Proskuryakov.
6666
6667         Drop the language tag part from the User Agent string
6668         https://bugs.webkit.org/show_bug.cgi?id=54560
6669
6670         * Api/qwebpage.cpp:
6671         (QWebPage::userAgentForUrl):
6672
6673         * tests/qwebpage/tst_qwebpage.cpp: Remove the userAgentLocaleChange
6674         test.
6675
6676 2011-02-22  Chang Shu  <cshu@webkit.org>
6677
6678         Reviewed by Csaba Osztrogonác.
6679
6680         [Qt] editing/deleting/5408255.html fails
6681         https://bugs.webkit.org/show_bug.cgi?id=54964
6682
6683         Move WebCore resource file to QtWebKit since they are referred in WebKit.
6684
6685         * QtWebKit.pro:
6686
6687 2011-02-22  Andras Becsi  <abecsi@webkit.org>
6688
6689         Reviewed by Csaba Osztrogonác.
6690
6691         [Qt] Redesign the build system
6692         https://bugs.webkit.org/show_bug.cgi?id=51339
6693
6694         Move inspector's resource files into the final build step to fix the layout test regression.
6695
6696         * QtWebKit.pro: Add inspector's reaource files.
6697
6698 2011-02-22  Andras Becsi  <abecsi@webkit.org>
6699
6700         Reviewed by Laszlo Gombos.
6701         Rubber-stamped by Csaba Osztrogonác.
6702
6703         [Qt] Redesign the build system
6704         https://bugs.webkit.org/show_bug.cgi?id=51339
6705
6706         The patch landed in r79320 didn't contain the cleanup
6707         which was already addressed in the last attachment.
6708
6709         * QtWebKit.pro: Move common LIB and CONFIG options to WebCore.pri.
6710
6711 2011-02-22  Andras Becsi  <abecsi@webkit.org>
6712
6713         Reviewed by Laszlo Gombos.
6714
6715         [Qt] Redesign the build system
6716         https://bugs.webkit.org/show_bug.cgi?id=51339
6717
6718         Part 2.
6719
6720         Build WebCore as a static library, compile the WebKit API and WebKit2 API
6721         in a final step and link to WebKit2, WebCore and JSC libraries to fix
6722         linking issues resulting from stripped away symbols.
6723
6724         * QtWebKit.pro: Added.
6725         Project file for the final build step.
6726
6727 2011-02-17  Ryosuke Niwa  <rniwa@webkit.org>
6728
6729         Reviewed by Kent Tamura.
6730
6731         Rename Position::node() to Position::deprecatedNode()
6732         https://bugs.webkit.org/show_bug.cgi?id=54622
6733
6734         Replaced the call to node() by a call to containerNode() because the returned node is
6735         used to determine whether or not the selected contents are editable and such a check
6736         must be done against the container node.
6737
6738         * WebCoreSupport/EditorClientQt.cpp:
6739         (WebCore::EditorClientQt::handleKeyboardEvent):
6740
6741 2011-02-19  Charlie Reis  <creis@chromium.org>
6742
6743         Reviewed by Mihai Parparita.
6744
6745         Ensure loading has stopped in HistoryController::goToItem
6746         https://bugs.webkit.org/show_bug.cgi?id=54517
6747
6748         Add a FrameLoaderClient callback for whether to stop loading before goToItem.
6749
6750         Test: http/tests/navigation/forward-to-fragment-fires-onload.html
6751
6752         * WebCoreSupport/FrameLoaderClientQt.cpp:
6753         (WebCore::FrameLoaderClientQt::shouldStopLoadingForHistoryItem): Added.
6754         * WebCoreSupport/FrameLoaderClientQt.h:
6755
6756 2011-02-18  Fabrizio Machado  <fabrizio.machado@nokia.com>
6757
6758         Reviewed by Eric Seidel.
6759
6760         Remove reduntant checks.
6761         https://bugs.webkit.org/show_bug.cgi?id=54764
6762         
6763
6764         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6765         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
6766         * WebCoreSupport/NotificationPresenterClientQt.cpp:
6767         (WebCore::NotificationPresenterClientQt::toPage):
6768
6769 2011-02-18  Csaba Osztrogonác  <ossy@webkit.org>
6770
6771         Unreviewed.
6772
6773         [Qt] Buildfix for platforms with geolocation disabled.
6774
6775         * Api/qwebpage.cpp: Add the missing guard.
6776
6777 2011-02-18  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
6778
6779         Reviewed by Kenneth Rohde Christiansen.
6780
6781         [Qt] Implement client based geolocation for qtport
6782         https://bugs.webkit.org/show_bug.cgi?id=42629
6783
6784         Implements client based geolocation for qtwebkit.
6785         New client based geolocation contains permission API's as well,
6786         so removed the implementation from ChromeClientQt.cpp. 
6787
6788         * Api/qwebpage.cpp:
6789         (QWebPagePrivate::QWebPagePrivate):
6790         * WebCoreSupport/ChromeClientQt.cpp:
6791         * WebCoreSupport/ChromeClientQt.h:
6792         (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
6793         (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
6794         * WebCoreSupport/GeolocationClientQt.cpp: Added.
6795         (WebCore::GeolocationClientQt::GeolocationClientQt):
6796         (WebCore::GeolocationClientQt::~GeolocationClientQt):
6797         (WebCore::GeolocationClientQt::geolocationDestroyed):
6798         (WebCore::GeolocationClientQt::positionUpdated):
6799         (WebCore::GeolocationClientQt::startUpdating):
6800         (WebCore::GeolocationClientQt::stopUpdating):
6801         (WebCore::GeolocationClientQt::setEnableHighAccuracy):
6802         (WebCore::GeolocationClientQt::requestPermission):
6803         (WebCore::GeolocationClientQt::cancelPermissionRequest):
6804         * WebCoreSupport/GeolocationClientQt.h: Added.
6805         (WebCore::GeolocationClientQt::lastPosition):
6806
6807 2011-02-10  Luiz Agostini  <luiz.agostini@openbossa.org>
6808
6809         Reviewed by Adam Roben.
6810
6811         HTML5 <details> and <summary>: localized text
6812         https://bugs.webkit.org/show_bug.cgi?id=54260
6813
6814         The method defaultDetailsSummaryText was added to LocalizationStrategy class. It is used to
6815         provide the default label to be used by a <details> tag that has no <summary> child.
6816
6817         * WebCoreSupport/WebPlatformStrategies.cpp:
6818         (WebPlatformStrategies::defaultDetailsSummaryText):
6819         * WebCoreSupport/WebPlatformStrategies.h:
6820
6821 2011-02-17  Hui Huang  <hui.2.huang@nokia.com>
6822
6823         Reviewed by Laszlo Gombos.
6824
6825         The URL of HTML5 Video Element is percent encoded at websites such as youtube.
6826         It is percent encoded again by QUrl constructor QUrl::QUrl(QString). This causes
6827         the HTTP GET request for the video to be rejected by the service provider. 
6828         https://bugs.webkit.org/show_bug.cgi?id=53973.
6829
6830         The bug is fixed by constructing QUrl from the encoded URL in 
6831         MediaPlayerPrivateQt::commitLoad. 
6832
6833         New test function tst_QWebPage::loadHtml5Video() is added to load HTML content with
6834         HTML5 Video element. A new public method DumpRenderTreeSupportQt::mediaContentUrlByElementId
6835         is added to retrieve the URL of the media content from WebCore MediaPlayerPrivateQt.
6836         A new macro ENABLE_QT_MULTIMEDIA is introduced in tests.pri to make sure that the test
6837         is skipped if Qt Multimedia is not available.
6838
6839         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6840         (DumpRenderTreeSupportQt::mediaContentUrlByElementId):
6841         * WebCoreSupport/DumpRenderTreeSupportQt.h:
6842         * tests/qwebpage/tst_qwebpage.cpp:
6843         (tst_QWebPage::loadHtml5Video):
6844         * tests/tests.pri:
6845
6846 2011-02-17  Andreas Kling  <kling@webkit.org>
6847
6848         Reviewed by Antti Koivisto.
6849
6850         [Qt] Crash when calling QWebFrame::setUrl() while a previous load has pending requests
6851         https://bugs.webkit.org/show_bug.cgi?id=49216
6852
6853         * tests/qwebframe/tst_qwebframe.cpp:
6854
6855 == Rolled over to ChangeLog-2011-02-16 ==