Remove an unneeded argument from FrameLoaderClient::download
[WebKit-https.git] / Source / WebKit / qt / ChangeLog
1 2011-11-30  Alexey Proskuryakov  <ap@apple.com>
2
3         Remove an unneeded argument from FrameLoaderClient::download
4         https://bugs.webkit.org/show_bug.cgi?id=73486
5
6         Reviewed by Andreas Kling.
7
8         * WebCoreSupport/FrameLoaderClientQt.cpp:
9         (WebCore::FrameLoaderClientQt::download):
10         * WebCoreSupport/FrameLoaderClientQt.h:
11         Updated for the change.
12
13 2011-11-30  Simon Hausmann  <simon.hausmann@nokia.com>
14
15         [Qt] Fix crash when using Qt DRT with V8.
16
17         Reviewed by Csaba Osztrogonác.
18
19         Add missing handle scopes for the handles returned by mainWorldContext.
20
21         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
22         (DumpRenderTreeSupportQt::injectInternalsObject):
23         (DumpRenderTreeSupportQt::resetInternalsObject):
24
25 2011-11-30  Simon Hausmann  <simon.hausmann@nokia.com>
26
27         [Qt] Fix crashing layout tests
28
29         Reviewed by Kenneth Rohde Christiansen.
30
31         Fix ASSERTION FAILED: m_key != PTHREAD_KEYS_MAX in ThreadIdentifierDataPthreads.cpp(65)
32         static WTF::ThreadIdentifier WTF::ThreadIdentifierData::identifier()
33
34         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
35         (DumpRenderTreeSupportQt::initialize): Add missing WebCore::initializeWebCoreQt().
36
37 2011-11-30  Andrew Wason  <rectalogic@rectalogic.com>
38
39         Replace Qt QThread threading back-end with pthread/Win32 threading back-ends
40         https://bugs.webkit.org/show_bug.cgi?id=72155
41
42         Reviewed by Simon Hausmann.
43
44         Extract WebCore initialization out of QWebPagePrivate into a
45         separate initialization function. This also needs to be called
46         from public static QWebSettings methods that call into WebCore,
47         since those can be used before a QWebPage has been constructed.
48
49         * Api/qwebpage.cpp:
50         (QWebPagePrivate::QWebPagePrivate):
51         * Api/qwebsettings.cpp:
52         (QWebSettings::globalSettings):
53         (QWebSettings::setIconDatabasePath):
54         (QWebSettings::iconDatabasePath):
55         (QWebSettings::clearIconDatabase):
56         (QWebSettings::iconForUrl):
57         (QWebSettings::setWebGraphic):
58         (QWebSettings::webGraphic):
59         (QWebSettings::clearMemoryCaches):
60         (QWebSettings::maximumPagesInCache):
61         (QWebSettings::setObjectCacheCapacities):
62         (QWebSettings::setOfflineStoragePath):
63         (QWebSettings::offlineStoragePath):
64         (QWebSettings::setOfflineWebApplicationCachePath):
65         (QWebSettings::offlineWebApplicationCachePath):
66         (QWebSettings::setOfflineWebApplicationCacheQuota):
67         (QWebSettings::offlineWebApplicationCacheQuota):
68         (QWebSettings::enablePersistentStorage):
69         * WebCoreSupport/InitWebCoreQt.cpp: Added.
70         (WebCore::initializeWebCoreQt):
71         * WebCoreSupport/InitWebCoreQt.h: Added.
72
73 2011-11-30  Adenilson Cavalcanti  <adenilson.silva@openbossa.org>
74
75         [Qt][WK2] Implement permission API for Qt port
76         https://bugs.webkit.org/show_bug.cgi?id=59200
77
78         Permission API hookup for Geolocation, it allows to receive in WebView
79         a signal when a permission request is done (e.g. to grant permission
80         for accessing geolocation information) and set it accordingly.
81
82         Reviewed by Simon Hausmann.
83
84         * declarative/plugin.cpp:
85         (WebKitQmlPlugin::registerTypes):
86
87 2011-11-29  Simon Hausmann  <simon.hausmann@nokia.com>
88
89         [Qt] Make WebKit/qt build with V8 and Qt 5
90         https://bugs.webkit.org/show_bug.cgi?id=73315
91
92         Reviewed by Kenneth Rohde Christiansen.
93
94         * Api/qwebelement.cpp:
95         (QtWebElementRuntime::initialize): #ifdef JSC code
96         properly. There's no V8 equivalent just yet.
97         * Api/qwebelement.h: Get rid of old V8 cruft.
98         * Api/qwebframe.cpp:
99         (QWebFrame::addToJavaScriptWindowObject): QScriptEngine -> QJSEngine.
100         (QWebFrame::evaluateJavaScript): Ditto.
101         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
102         (QtDRTNodeRuntime::initialize): #ifdef JSC code.
103         * WebCoreSupport/FrameLoaderClientQt.cpp:
104         (WebCore::FrameLoaderClientQt::didCreateScriptContext): Adapt to FrameLoaderClient
105         V8 API changes that happened long time ago.
106         (WebCore::FrameLoaderClientQt::willReleaseScriptContext): Ditto.
107         * WebCoreSupport/FrameLoaderClientQt.h: Ditto.
108         * WebCoreSupport/InspectorClientQt.cpp: Add missing include for V8 build.
109
110 2011-11-28  Jon Lee  <jonlee@apple.com>
111
112         Create skeleton framework for notifications support in WK2
113         https://bugs.webkit.org/show_bug.cgi?id=73253
114         <rdar://problem/10356943>
115
116         Reviewed by Sam Weinig.
117
118         * Api/qwebpage.cpp: Add notification client to pageClients.
119         (QWebPagePrivate::QWebPagePrivate):
120         * WebCoreSupport/ChromeClientQt.cpp: Remove notification client from ChromeClient implementation.
121         * WebCoreSupport/ChromeClientQt.h:
122         * WebCoreSupport/NotificationPresenterClientQt.cpp: Refactor with change of NotificationContents to struct
123         (WebCore::NotificationWrapper::title):
124         (WebCore::NotificationWrapper::message):
125         (WebCore::NotificationPresenterClientQt::displayNotification):
126         (WebCore::NotificationPresenterClientQt::cancel):
127         (WebCore::NotificationPresenterClientQt::notificationClicked):
128         (WebCore::NotificationPresenterClientQt::dumpReplacedIdText):
129         (WebCore::NotificationPresenterClientQt::dumpShowText):
130
131 2011-11-28  Simon Hausmann  <simon.hausmann@nokia.com>
132
133         [Qt] Build system fixes against V8.
134
135         Reviewed by Tor Arne Vestbø.
136
137         Add forwarding headers for building against Qt's v8 with
138         v8 include style.
139
140         * v8/ForwardingHeaders/v8-debug.h: Added.
141         * v8/ForwardingHeaders/v8-preparser.h: Added.
142         * v8/ForwardingHeaders/v8-profiler.h: Added.
143         * v8/ForwardingHeaders/v8-testing.h: Added.
144         * v8/ForwardingHeaders/v8.h: Added.
145         * v8/ForwardingHeaders/v8stdint.h: Added.
146
147 2011-11-26  Pavel Feldman  <pfeldman@google.com>
148
149         Web Inspector: remove disconnectFromBackend from the protocol.
150         https://bugs.webkit.org/show_bug.cgi?id=73127
151
152         Reviewed by Yury Semikhatsky.
153
154         * WebCoreSupport/InspectorClientQt.cpp:
155         (WebCore::InspectorClientQt::inspectorDestroyed):
156         (WebCore::InspectorClientQt::closeInspectorFrontend):
157         (WebCore::InspectorFrontendClientQt::inspectorClientDestroyed):
158         * WebCoreSupport/InspectorClientQt.h:
159
160 2011-11-26  Sheriff Bot  <webkit.review.bot@gmail.com>
161
162         Unreviewed, rolling out r101193.
163         http://trac.webkit.org/changeset/101193
164         https://bugs.webkit.org/show_bug.cgi?id=73158
165
166         Breaks Windows and Qt minimal. (Requested by pfeldman on
167         #webkit).
168
169         * WebCoreSupport/InspectorClientQt.cpp:
170         (WebCore::InspectorClientQt::inspectorDestroyed):
171         (WebCore::InspectorFrontendClientQt::disconnectFromBackend):
172         (WebCore::InspectorFrontendClientQt::inspectorClientDestroyed):
173         * WebCoreSupport/InspectorClientQt.h:
174
175 2011-11-26  Pavel Feldman  <pfeldman@google.com>
176
177         Web Inspector: remove disconnectFromBackend from the protocol.
178         https://bugs.webkit.org/show_bug.cgi?id=73127
179
180         Reviewed by Yury Semikhatsky.
181
182         * WebCoreSupport/InspectorClientQt.cpp:
183         (WebCore::InspectorClientQt::inspectorDestroyed):
184         (WebCore::InspectorClientQt::closeInspectorFrontend):
185         (WebCore::InspectorFrontendClientQt::inspectorClientDestroyed):
186         * WebCoreSupport/InspectorClientQt.h:
187
188 2011-11-25  Alexis Menard  <alexis.menard@openbossa.org>
189
190         [Qt][WK2] QWebDownloadItem should be registered in the experimental plugin.
191         https://bugs.webkit.org/show_bug.cgi?id=73132
192
193         Reviewed by Simon Hausmann.
194
195         Make sure QWebDownloadItem is registered in the right plugin.
196
197         * declarative/experimental/plugin.cpp:
198         * declarative/plugin.cpp:
199         (WebKitQmlPlugin::registerTypes):
200
201 2011-11-22  Pavel Feldman  <pfeldman@google.com>
202
203         Web Inspector: remove Inspector::bringToFront from the protocol.
204         https://bugs.webkit.org/show_bug.cgi?id=72937
205
206         Reviewed by Yury Semikhatsky.
207
208         * WebCoreSupport/InspectorClientQt.cpp:
209         (WebCore::InspectorClientQt::bringFrontendToFront):
210         * WebCoreSupport/InspectorClientQt.h:
211
212 2011-10-17  Antonio Gomes  <agomes@rim.com>
213
214         Pass a Frame* parameter in EditorClient::respondToChangedSelection
215         https://bugs.webkit.org/show_bug.cgi?id=70248
216
217         Reviewed by Ryosuke Niwa.
218
219         * WebCoreSupport/EditorClientQt.cpp: Make use of the newly added Frame* parameter.
220         (WebCore::EditorClientQt::respondToChangedSelection):
221         * WebCoreSupport/EditorClientQt.h:
222
223 2011-11-18  Yuta Kitamura  <yutak@chromium.org>
224
225         [Qt] Enable WebSocket hybi tests
226         https://bugs.webkit.org/show_bug.cgi?id=72687
227
228         Reviewed by Simon Hausmann.
229
230         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
231         (DumpRenderTreeSupportQt::defaultHixie76WebSocketProtocolEnabled):
232         (DumpRenderTreeSupportQt::setHixie76WebSocketProtocolEnabled):
233         Call WebCore::Settings::setUseHixie76WebSocketProtocol() to switch WebSocket protocols.
234         * WebCoreSupport/DumpRenderTreeSupportQt.h:
235
236 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
237
238         [Qt] Layer violation: ThirdPartyCookiesQt.cpp uses QWebSettings in two places
239         https://bugs.webkit.org/show_bug.cgi?id=72597
240
241         Reviewed by Kenneth Rohde Christiansen.
242
243         Implemented NetworkingContext::thirdPartyCookiePolicyPermission, which queries
244         the global QWebSettings.
245
246         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
247         (DumpRenderTreeSupportQt::thirdPartyCookiePolicyAllows): Adapt to the
248         changed thirdPartyCookiePolicyPermits WebCore API that operates on a networking context.
249         * WebCoreSupport/DumpRenderTreeSupportQt.h:
250         * WebCoreSupport/FrameLoaderClientQt.cpp:
251         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): Pass networking
252         context to ResourceRequest::toNetworkRequest.
253         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): Ditto.
254         (WebCore::FrameLoaderClientQt::startDownload): Ditto.
255         * WebCoreSupport/FrameNetworkingContextQt.cpp:
256         (WebCore::FrameNetworkingContextQt::thirdPartyCookiePolicyPermission): Implement.
257         * WebCoreSupport/FrameNetworkingContextQt.h:
258         * tests/qwebpage/tst_qwebpage.cpp:
259         (tst_QWebPage::thirdPartyCookiePolicy): Adapt to QtDRTSupport API change.
260
261 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
262
263         [Qt] Layer violation: qt_runtime.cpp accesses QWebElement and QTDRTNode
264         https://bugs.webkit.org/show_bug.cgi?id=72595
265
266         Reviewed by Noam Rosenthal.
267
268         Move QWebElement and QtDRTNode JS bindings from WebCore to WebKit/qt.
269
270         * Api/qwebelement.cpp: Add QWebElement to JSValue and JSValue to QWebElement
271         conversion through intermediate QVariant.
272         (QtWebElementRuntime::create):
273         (QtWebElementRuntime::get):
274         (convertJSValueToWebElementVariant):
275         (convertWebElementVariantToJSValue):
276         (QtWebElementRuntime::initialize): Register conversion functions for QWebElement.
277         * Api/qwebelement.h:
278         * Api/qwebelement_p.h: Added.
279         * Api/qwebpage.cpp:
280         (QWebPagePrivate::QWebPagePrivate): Initialize QWebElement conversion functions for
281         the JS runtime.
282         * WebCoreSupport/DumpRenderTreeSupportQt.cpp: Add QtDRTNode to JSValue and JSValue to
283         QtDRTNode conversion through intermediate QVariant.
284         (QtDRTNodeRuntime::create):
285         (QtDRTNodeRuntime::get):
286         (convertJSValueToNodeVariant):
287         (convertNodeVariantToJSValue):
288         (QtDRTNodeRuntime::initialize):
289         (DumpRenderTreeSupportQt::initialize): Register conversion functions for QtDRTNode.
290         * WebCoreSupport/DumpRenderTreeSupportQt.h:
291
292 2011-11-17  Alexis Menard  <alexis.menard@openbossa.org>
293
294         [Qt] The experimental plugin doesn't work after being renamed.
295
296         Reviewed by Tor Arne Vestbø.
297
298         It was renamed from private to experimental but the qmldir file
299         was forgotten.
300
301         * declarative/experimental/qmldir:
302
303 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
304
305         [Qt] Layer violation: WebCore::dnsPrefetch uses QWebSettings::globalSettings()
306         https://bugs.webkit.org/show_bug.cgi?id=72596
307
308         Reviewed by Kenneth Rohde Christiansen.
309
310         * Api/qwebsettings.cpp:
311         (QWebSettingsPrivate::apply): Propagate the DNS prefetch setting to WebCore::Settings.
312
313 2011-11-17  Simon Hausmann  <simon.hausmann@nokia.com>
314
315         [Qt] Layer violation: Image::loadPlatformResource uses QWebSettings::webGraphic
316         https://bugs.webkit.org/show_bug.cgi?id=72594
317
318         Reviewed by Kenneth Rohde Christiansen.
319
320         Move resource pixmap cache into ImageQt.cpp.
321
322         * Api/qwebsettings.cpp:
323         (resourceNameForWebGraphic): Helper function to translate between public API enums and
324         resource names.
325         (QWebSettings::setWebGraphic): Call the new ImageQt::setPlatformResource setter.
326         (QWebSettings::webGraphic): Call Image::loadPlatformResource to read from the cache
327         in WebCore.
328
329 2011-11-17  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
330
331         [Qt] Move WebKit2 C++ APIs to private API and build QML extension plugin on top of that
332
333         A new extension object has been added to QQuickWebView (the same approach should be used
334         for other API classes that need experimental APIs). The QML extension mechanism is then
335         built on top of the experimental object.
336
337         https://bugs.webkit.org/show_bug.cgi?id=72522
338
339         Reviewed by Simon Hausmann.
340
341         * declarative/declarative.pro:
342         * declarative/experimental/experimental.pri: Renamed from Source/WebKit/qt/declarative/private/private.pro.
343         * declarative/experimental/plugin.cpp: Renamed from Source/WebKit/qt/declarative/private/plugin.cpp.
344         (QQuickWebViewExperimentalExtension::QQuickWebViewExperimentalExtension):
345         (QQuickWebViewExperimentalExtension::experimental):
346         * declarative/experimental/qmldir: Renamed from Source/WebKit/qt/declarative/private/qmldir.
347         * declarative/plugin.cpp:
348         * declarative/public.pri: Copied from Source/WebKit/qt/declarative/declarative.pro.
349
350 2011-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
351
352         Unreviewed, rolling out r100448.
353         http://trac.webkit.org/changeset/100448
354         https://bugs.webkit.org/show_bug.cgi?id=72512
355
356         It caused a regression breaking LayoutTests/http/tests/loading
357         /text-content-type-with-binary-extension.html (Requested by
358         jeez_ on #webkit).
359
360         * WebCoreSupport/FrameLoaderClientQt.cpp:
361         (WebCore::FrameLoaderClientQt::canShowMIMEType):
362
363 2011-11-16  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
364
365         [Qt] FrameLoaderClientQt::canShowMIMEType should always return true
366         https://bugs.webkit.org/show_bug.cgi?id=72169
367
368         Reviewed by Simon Hausmann.
369
370         Currently FrameLoaderClientQt::canShowMIMEType is called after
371         dispatchDecidePolicyForResponse. If decidePolicyForResponse returns
372         PolicyUse and canShowMIMEType returns false, then we have a bug.
373         Therefore, FrameLoaderClientQt::canShowMIMEType now will always
374         return true, following the implemenation of WebKit2.
375
376         * WebCoreSupport/FrameLoaderClientQt.cpp:
377         (WebCore::FrameLoaderClientQt::canShowMIMEType):
378
379 2011-11-15  Huang Dongsung  <luxtella@company100.net>
380
381         [TexMap][Qt] Start PageClientQ[Graphics]Widget::syncTimer only when the syncTimer
382         is inactive.
383         https://bugs.webkit.org/show_bug.cgi?id=70407
384
385         Make sure we only activate the synchronization timer in
386         PageClientQWidget/PageClientQGraphicsWidget if it's not already active,
387         otherwise syncLayers may be called redundantly.
388
389         Reviewed by Noam Rosenthal.
390
391         * WebCoreSupport/PageClientQt.cpp:
392         (WebCore::PageClientQWidget::markForSync):
393         (WebCore::PageClientQWidget::syncLayers):
394         (WebCore::PageClientQGraphicsWidget::syncLayers):
395         (WebCore::PageClientQGraphicsWidget::markForSync):
396         * WebCoreSupport/PageClientQt.h:
397         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
398
399 2011-11-15  Jochen Eisinger  <jochen@chromium.org>
400
401         Rename ReferrerPolicy to clarify its meaning
402         https://bugs.webkit.org/show_bug.cgi?id=72420
403
404         Reviewed by Nate Chapin.
405
406         * Api/qwebpage.cpp:
407         (openNewWindow):
408         (QWebPage::triggerAction):
409
410 2011-11-15  Anders Carlsson  <andersca@apple.com>
411
412         HostWindow screenToWindow/windowToScreen should be screenToRootView/rootViewToScreen
413         https://bugs.webkit.org/show_bug.cgi?id=72397
414
415         Reviewed by Dan Bernstein.
416
417         * WebCoreSupport/ChromeClientQt.cpp:
418         (WebCore::ChromeClientQt::rootViewToScreen):
419         (WebCore::ChromeClientQt::screenToRootView):
420         * WebCoreSupport/ChromeClientQt.h:
421
422 2011-11-14  Anders Carlsson  <andersca@apple.com>
423
424         HostWindow invalidation functions should use root view coordinates
425         https://bugs.webkit.org/show_bug.cgi?id=72338
426
427         Reviewed by Dan Bernstein.
428
429         * WebCoreSupport/ChromeClientQt.cpp:
430         (WebCore::ChromeClientQt::invalidateRootView):
431         (WebCore::ChromeClientQt::invalidateContentsAndRootView):
432         (WebCore::ChromeClientQt::invalidateContentsForSlowScroll):
433         * WebCoreSupport/ChromeClientQt.h:
434
435 2011-11-11  Pierre Rossi  <pierre.rossi@gmail.com>
436
437         [Qt] Remove the QStyle dependency in Qt's mobile theme
438         https://bugs.webkit.org/show_bug.cgi?id=67773
439
440         This refactoring splits up RenderThemeQt with two
441         subclasses, a QStyle-backed one, and a Mobile version
442         that uses the old mobile theme for now.
443
444         QStyle availability is detected at compile time, and
445         its use is determined by the QT_WEBKIT_USE_MOBILE_THEME
446         environment variable.
447
448         Reviewed by Simon Hausmann.
449
450         * Api/qwebpage.cpp:
451         (QWebPage::swallowContextMenuEvent):
452         * tests/tests.pri:
453
454 2011-11-11  Luiz Agostini  <luiz.agostini@palm.com>
455
456         [Qt] Removing unneeded #ifdef from PopupMenuQt.cpp
457         https://bugs.webkit.org/show_bug.cgi?id=72193
458
459         Reviewed by Noam Rosenthal.
460
461         Part of PopupMenuQt.cpp code is guarded by #ifndef QT_NO_COMBOBOX although that
462         code is not related to the class QComboBox.
463
464         * WebCoreSupport/PopupMenuQt.cpp:
465         (WebCore::PopupMenuQt::show):
466
467 2011-11-11  Bruno de Oliveira Abinader  <bruno.abinader@basyskom.com>
468
469         [Qt] Skip tests when no network is present
470         https://bugs.webkit.org/show_bug.cgi?id=72031
471
472         Reviewed by Simon Hausmann.
473
474         Some benchmark tests requires network connection (they fetch data from
475         external URL's) and so they fail if no network is present. These tests
476         should be skipped instead.
477
478         * tests/benchmarks/loading/tst_loading.cpp:
479         (tst_Loading::load): Skip test if no network is present.
480         * tests/benchmarks/painting/tst_painting.cpp:
481         (tst_Painting::paint): Skip test if no network is present.
482
483 2011-11-11  Sheriff Bot  <webkit.review.bot@gmail.com>
484
485         Unreviewed, rolling out r99964.
486         http://trac.webkit.org/changeset/99964
487         https://bugs.webkit.org/show_bug.cgi?id=72124
488
489         Broke too many Qt tests (Requested by tronical_ on #webkit).
490
491         * Api/qwebpage.cpp:
492         (QWebPage::swallowContextMenuEvent):
493         * tests/tests.pri:
494
495 2011-11-11  Pierre Rossi  <pierre.rossi@gmail.com>
496
497         [Qt] Remove the QStyle dependency in Qt's mobile theme
498         https://bugs.webkit.org/show_bug.cgi?id=67773
499
500         This refactoring splits up RenderThemeQt with two
501         subclasses, a QStyle-backed one, and a Mobile version
502         that uses the old mobile theme for now.
503
504         QStyle availability is detected at compile time, and
505         its use is determined by the QT_WEBKIT_USE_MOBILE_THEME
506         environment variable.
507
508         Reviewed by Simon Hausmann.
509
510         * Api/qwebpage.cpp:
511         (QWebPage::swallowContextMenuEvent):
512         * tests/tests.pri:
513
514 2011-11-11  Alexis Menard  <alexis.menard@openbossa.org>
515
516         [Qt] Add a way to have experimental features in WebKit2
517         https://bugs.webkit.org/show_bug.cgi?id=67707
518
519         Reviewed by Kenneth Rohde Christiansen.
520
521         This patch is adding a new module for accessing private
522         method and property from the view. It requires an import
523         QtWebKit.private in QML to be used.
524
525         * declarative/private/plugin.cpp: Added.
526         (WebKitQmlPluginPrivate::registerTypes):
527         * declarative/private/private.pro: Added.
528         * declarative/private/qmldir: Added.
529
530 2011-11-11  Simon Hausmann  <simon.hausmann@nokia.com>
531
532         [Qt][WK2] Remove QWebNavigationController
533         https://bugs.webkit.org/show_bug.cgi?id=72113
534
535         Reviewed by Andreas Kling.
536
537         * declarative/plugin.cpp:
538         (WebKitQmlPlugin::registerTypes): Don't register QWebNavigationController with qml.
539
540 2011-11-03  Luiz Agostini  <luiz.agostini@palm.com>
541
542         [Qt] Adding methods setGeometry and setFont to QWebSelectMethod class.
543         https://bugs.webkit.org/show_bug.cgi?id=71530
544
545         Reviewed by Simon Hausmann.
546
547         Adding methods setGeometry and setFont so that users of platform plugin may show the
548         popup menus in proper position and using proper font.
549
550         * Api/qwebkitplatformplugin.h:
551         * WebCoreSupport/PopupMenuQt.cpp:
552         (WebCore::PopupMenuQt::show):
553         * examples/platformplugin/WebPlugin.h:
554         (WebPopup::setGeometry):
555         (WebPopup::setFont):
556         * examples/platformplugin/qwebkitplatformplugin.h:
557
558 2011-11-10  Alexis Menard  <alexis.menard@openbossa.org>
559
560         [Qt] Merge QTouchWebView and QDesktopWebView into one class
561         https://bugs.webkit.org/show_bug.cgi?id=71355
562
563         Reviewed by Kenneth Rohde Christiansen.
564
565         Register only QQuickWebView and QQuickWebPage in the plugin.
566
567         * declarative/plugin.cpp:
568         (WebKitQmlPlugin::registerTypes):
569
570 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
571
572         [Qt] Enable exports and constructor functions in static libs
573
574         Reviewed by Tor Arne Vestbø.
575
576         * Api/qwebpage.cpp:
577         (QWebPagePrivate::QWebPagePrivate): Remove unnecessary manual Qt resource
578         initialization.
579
580 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
581
582         Unreviewed, rolling out r99701.
583         http://trac.webkit.org/changeset/99701
584
585         Breaks Qt mac build
586
587         * Api/qwebpage.cpp:
588         (initResources):
589         (QWebPagePrivate::QWebPagePrivate):
590
591 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
592
593         [Qt] Enable exports and constructor functions in static libs
594
595         Reviewed by Tor Arne Vestbø.
596
597         * Api/qwebpage.cpp:
598         (QWebPagePrivate::QWebPagePrivate): Remove unnecessary manual Qt resource
599         initialization.
600
601 2011-11-09  Deepak Sherveghar  <bpwv64@motorola.com>
602
603         [Qt] 4 Layout test fail due to network error constant values clash with WebkitError enum values in FrameloaderclientQt
604         https://bugs.webkit.org/show_bug.cgi?id=71554
605
606         Reviewed by Simon Hausmann.
607
608         We should check the error domain when checking the error code in shouldFallBack()
609
610         * WebCoreSupport/FrameLoaderClientQt.cpp:
611         (WebCore::FrameLoaderClientQt::shouldFallBack): added error domain check
612
613 2011-11-08  Simon Hausmann  <simon.hausmann@nokia.com>
614
615         [Qt] Replace use of QApplication with QGuiApplication
616         https://bugs.webkit.org/show_bug.cgi?id=71794
617
618         Reviewed by Andreas Kling.
619
620         * WebCoreSupport/QtWebComboBox.cpp:
621         (WebCore::QtWebComboBox::showPopupAtCursorPosition): Replace use of QApplication
622         with QCoreApplication.
623
624 2011-11-07  Adam Barth  <abarth@webkit.org>
625
626         Move static "policy" state from SecurityOrigin.cpp to SecurityPolicy.cpp
627         https://bugs.webkit.org/show_bug.cgi?id=71755
628
629         Reviewed by Eric Seidel.
630
631         * Api/qwebpage.cpp:
632         (QWebPagePrivate::QWebPagePrivate):
633         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
634         (DumpRenderTreeSupportQt::whiteListAccessFromOrigin):
635         (DumpRenderTreeSupportQt::removeWhiteListAccessFromOrigin):
636         (DumpRenderTreeSupportQt::resetOriginAccessWhiteLists):
637
638 2011-11-08  Luiz Agostini  <luiz.agostini@palm.com>
639
640         [Qt] Removing qwebkitglobal.h inclusion from qwebkitplatformplugin.h
641         https://bugs.webkit.org/show_bug.cgi?id=71759
642
643         Reviewed by Simon Hausmann.
644
645         qwebkitplatformplugin.h must not depend on qwebkitglobal.h.
646
647         * Api/qwebkitplatformplugin.h:
648
649         Updating the copy of qwebkitplatformplugin.h that is used by the example plugin. The previous
650         one was very outdated.
651
652         * examples/platformplugin/qwebkitplatformplugin.h:
653
654 2011-11-07  Adam Barth  <abarth@webkit.org>
655
656         Move DomainRelaxationForbidden scheme registry to SchemeRegistry
657         https://bugs.webkit.org/show_bug.cgi?id=71750
658
659         Reviewed by Eric Seidel.
660
661         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
662         (DumpRenderTreeSupportQt::setDomainRelaxationForbiddenForURLScheme):
663
664 2011-11-07  Michael Saboff  <msaboff@apple.com>
665
666         Towards 8 Bit Strings: Templatize JSC::Lexer class by character type
667         https://bugs.webkit.org/show_bug.cgi?id=71331
668
669         Changed Identifier() constructor to use JSGlobalData*.
670
671         Reviewed by Darin Adler.
672
673         * Api/qwebframe.cpp:
674         (QWebFrame::addToJavaScriptWindowObject):
675
676 2011-11-07  Simon Hausmann  <simon.hausmann@nokia.com>
677
678         [Qt] Fix failing inspector tests after build system changes
679         https://bugs.webkit.org/show_bug.cgi?id=71677
680
681         Reviewed by Tor Arne Vestbø.
682
683         Ensure symbols from the qt resource system are referenced
684         from outside the static webcore library. One way of doing that is
685         to initialize the resources right away, as explained in the documentation
686         of th Qt resource system.
687
688         * Api/qwebpage.cpp:
689         (initResources):
690         (QWebPagePrivate::QWebPagePrivate):
691
692 2011-11-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
693
694         [Qt] Refactor and clean up the qmake build system
695
696         The qmake build system has accumulated a bit of cruft and redundancy
697         over time. There's also a fairly tight coupling between how to build
698         the various targets, and _what_ to build, making it harder to add new
699         rules or sources. This patch aims to elevate these issues somewhat.
700
701         This is a short-list of the changes:
702
703           * The rules for how to build targets are now mostly contained as
704             prf-files in Tools/qmake/mkspecs/features. Using mkspecs also
705             allows us to do pre- and post-processing of each project file,
706             which helps to clean up the actual project files.
707
708           * Derived sources are no longer generated as a separate make-step
709             but is part of each target's project file as a subdir. Makefile
710             rules are used to ensure that we run make on the derived sources
711             before running qmake on the actual target makefile. This makes
712             it easier to keep a proper dependency between derived sources
713             and the target.
714
715           * We use GNU make and the compiler to generate dependencies on
716             UNIX-based systems running Qt 5. This allows us to lessen the
717             need to run qmake, which should reduce compile time.
718
719           * WebKit2 is now build by default if building with Qt 5. It can
720             be disabled by passing --no-webkit2 to build-webkit.
721
722         The result of these changes are hopefully a cleaner and easier
723         build system to modify, and faster build times due to no longer
724         running qmake on every single build. It's also a first step
725         towards possibly generating the list of sources using another
726         build system.
727
728         https://bugs.webkit.org/show_bug.cgi?id=71222
729
730         Reviewed by Simon Hausmann.
731
732         * Api/DerivedSources.pro: Removed.
733         * Api/headers.pri: Removed.
734         * Api/qwebpage.cpp:
735         (QWebPagePrivate::QWebPagePrivate):
736         * QtWebKit.pro: Removed.
737         * WebCoreSupport/FrameLoaderClientQt.h: Rename due to name clash with WK2 header
738         * WebCoreSupport/PlatformStrategiesQt.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.cpp.
739         (PlatformStrategiesQt::initialize):
740         (PlatformStrategiesQt::PlatformStrategiesQt):
741         (PlatformStrategiesQt::createCookiesStrategy):
742         (PlatformStrategiesQt::createPluginStrategy):
743         (PlatformStrategiesQt::createLocalizationStrategy):
744         (PlatformStrategiesQt::createVisitedLinkStrategy):
745         (PlatformStrategiesQt::notifyCookiesChanged):
746         (PlatformStrategiesQt::refreshPlugins):
747         (PlatformStrategiesQt::getPluginInfo):
748         (PlatformStrategiesQt::inputElementAltText):
749         (PlatformStrategiesQt::resetButtonDefaultLabel):
750         (PlatformStrategiesQt::searchableIndexIntroduction):
751         (PlatformStrategiesQt::submitButtonDefaultLabel):
752         (PlatformStrategiesQt::fileButtonChooseFileLabel):
753         (PlatformStrategiesQt::fileButtonChooseMultipleFilesLabel):
754         (PlatformStrategiesQt::fileButtonNoFileSelectedLabel):
755         (PlatformStrategiesQt::fileButtonNoFilesSelectedLabel):
756         (PlatformStrategiesQt::defaultDetailsSummaryText):
757         (PlatformStrategiesQt::contextMenuItemTagOpenLinkInNewWindow):
758         (PlatformStrategiesQt::contextMenuItemTagDownloadLinkToDisk):
759         (PlatformStrategiesQt::contextMenuItemTagCopyLinkToClipboard):
760         (PlatformStrategiesQt::contextMenuItemTagOpenImageInNewWindow):
761         (PlatformStrategiesQt::contextMenuItemTagDownloadImageToDisk):
762         (PlatformStrategiesQt::contextMenuItemTagCopyImageToClipboard):
763         (PlatformStrategiesQt::contextMenuItemTagCopyImageUrlToClipboard):
764         (PlatformStrategiesQt::contextMenuItemTagOpenVideoInNewWindow):
765         (PlatformStrategiesQt::contextMenuItemTagOpenAudioInNewWindow):
766         (PlatformStrategiesQt::contextMenuItemTagCopyVideoLinkToClipboard):
767         (PlatformStrategiesQt::contextMenuItemTagCopyAudioLinkToClipboard):
768         (PlatformStrategiesQt::contextMenuItemTagToggleMediaControls):
769         (PlatformStrategiesQt::contextMenuItemTagToggleMediaLoop):
770         (PlatformStrategiesQt::contextMenuItemTagEnterVideoFullscreen):
771         (PlatformStrategiesQt::contextMenuItemTagMediaPlay):
772         (PlatformStrategiesQt::contextMenuItemTagMediaPause):
773         (PlatformStrategiesQt::contextMenuItemTagMediaMute):
774         (PlatformStrategiesQt::contextMenuItemTagOpenFrameInNewWindow):
775         (PlatformStrategiesQt::contextMenuItemTagCopy):
776         (PlatformStrategiesQt::contextMenuItemTagGoBack):
777         (PlatformStrategiesQt::contextMenuItemTagGoForward):
778         (PlatformStrategiesQt::contextMenuItemTagStop):
779         (PlatformStrategiesQt::contextMenuItemTagReload):
780         (PlatformStrategiesQt::contextMenuItemTagCut):
781         (PlatformStrategiesQt::contextMenuItemTagPaste):
782         (PlatformStrategiesQt::contextMenuItemTagSelectAll):
783         (PlatformStrategiesQt::contextMenuItemTagNoGuessesFound):
784         (PlatformStrategiesQt::contextMenuItemTagIgnoreSpelling):
785         (PlatformStrategiesQt::contextMenuItemTagLearnSpelling):
786         (PlatformStrategiesQt::contextMenuItemTagSearchWeb):
787         (PlatformStrategiesQt::contextMenuItemTagLookUpInDictionary):
788         (PlatformStrategiesQt::contextMenuItemTagOpenLink):
789         (PlatformStrategiesQt::contextMenuItemTagIgnoreGrammar):
790         (PlatformStrategiesQt::contextMenuItemTagSpellingMenu):
791         (PlatformStrategiesQt::contextMenuItemTagShowSpellingPanel):
792         (PlatformStrategiesQt::contextMenuItemTagCheckSpelling):
793         (PlatformStrategiesQt::contextMenuItemTagCheckSpellingWhileTyping):
794         (PlatformStrategiesQt::contextMenuItemTagCheckGrammarWithSpelling):
795         (PlatformStrategiesQt::contextMenuItemTagFontMenu):
796         (PlatformStrategiesQt::contextMenuItemTagBold):
797         (PlatformStrategiesQt::contextMenuItemTagItalic):
798         (PlatformStrategiesQt::contextMenuItemTagUnderline):
799         (PlatformStrategiesQt::contextMenuItemTagOutline):
800         (PlatformStrategiesQt::contextMenuItemTagWritingDirectionMenu):
801         (PlatformStrategiesQt::contextMenuItemTagTextDirectionMenu):
802         (PlatformStrategiesQt::contextMenuItemTagDefaultDirection):
803         (PlatformStrategiesQt::contextMenuItemTagLeftToRight):
804         (PlatformStrategiesQt::contextMenuItemTagRightToLeft):
805         (PlatformStrategiesQt::contextMenuItemTagInspectElement):
806         (PlatformStrategiesQt::searchMenuNoRecentSearchesText):
807         (PlatformStrategiesQt::searchMenuRecentSearchesText):
808         (PlatformStrategiesQt::searchMenuClearRecentSearchesText):
809         (PlatformStrategiesQt::AXWebAreaText):
810         (PlatformStrategiesQt::AXLinkText):
811         (PlatformStrategiesQt::AXListMarkerText):
812         (PlatformStrategiesQt::AXImageMapText):
813         (PlatformStrategiesQt::AXHeadingText):
814         (PlatformStrategiesQt::AXDefinitionListTermText):
815         (PlatformStrategiesQt::AXDefinitionListDefinitionText):
816         (PlatformStrategiesQt::AXButtonActionVerb):
817         (PlatformStrategiesQt::AXRadioButtonActionVerb):
818         (PlatformStrategiesQt::AXTextFieldActionVerb):
819         (PlatformStrategiesQt::AXCheckedCheckBoxActionVerb):
820         (PlatformStrategiesQt::AXUncheckedCheckBoxActionVerb):
821         (PlatformStrategiesQt::AXMenuListActionVerb):
822         (PlatformStrategiesQt::AXMenuListPopupActionVerb):
823         (PlatformStrategiesQt::AXLinkActionVerb):
824         (PlatformStrategiesQt::missingPluginText):
825         (PlatformStrategiesQt::crashedPluginText):
826         (PlatformStrategiesQt::multipleFileUploadText):
827         (PlatformStrategiesQt::unknownFileSizeText):
828         (PlatformStrategiesQt::imageTitle):
829         (PlatformStrategiesQt::mediaElementLoadingStateText):
830         (PlatformStrategiesQt::mediaElementLiveBroadcastStateText):
831         (PlatformStrategiesQt::localizedMediaControlElementString):
832         (PlatformStrategiesQt::localizedMediaControlElementHelpText):
833         (PlatformStrategiesQt::localizedMediaTimeDescription):
834         (PlatformStrategiesQt::validationMessageValueMissingText):
835         (PlatformStrategiesQt::validationMessageTypeMismatchText):
836         (PlatformStrategiesQt::validationMessagePatternMismatchText):
837         (PlatformStrategiesQt::validationMessageTooLongText):
838         (PlatformStrategiesQt::validationMessageRangeUnderflowText):
839         (PlatformStrategiesQt::validationMessageRangeOverflowText):
840         (PlatformStrategiesQt::validationMessageStepMismatchText):
841         (PlatformStrategiesQt::isLinkVisited):
842         (PlatformStrategiesQt::addVisitedLink):
843         * WebCoreSupport/PlatformStrategiesQt.h: Renamed from Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.h.
844         * declarative/declarative.pro:
845         * docs/docs.pri:
846         * docs/webkitsnippets/webelement/webelement.pro:
847         * tests/MIMESniffing/MIMESniffing.pro:
848         * tests/benchmarks/loading/loading.pro:
849         * tests/benchmarks/painting/painting.pro:
850         * tests/benchmarks/webgl/webgl.pro:
851         * tests/hybridPixmap/hybridPixmap.pro:
852         * tests/qdeclarativewebview/qdeclarativewebview.pro:
853         * tests/qgraphicswebview/qgraphicswebview.pro:
854         * tests/qwebelement/qwebelement.pro:
855         * tests/qwebframe/qwebframe.pro:
856         * tests/qwebhistory/qwebhistory.pro:
857         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
858         * tests/qwebinspector/qwebinspector.pro:
859         * tests/qwebpage/qwebpage.pro:
860         * tests/qwebplugindatabase/qwebplugindatabase.pro:
861         * tests/qwebview/qwebview.pro:
862         * tests/tests.pri:
863         * tests/tests.pro: Removed.
864
865 2011-11-03  Rafael Brandao  <rafael.lobo@openbossa.org>
866
867         Fix tst_QDeclarativeWebView::basicProperties() and historyNav() autotests
868         https://bugs.webkit.org/show_bug.cgi?id=61042
869
870         Reviewed by Simon Hausmann.
871         
872         At some points we didn't have any guarantee that a favicon has been loaded, so now
873         it stops to wait for the IconChanged signal. It also had some file paths in wrong format,
874         making some files to not be resolved and comparing meaningless bitmaps.
875
876         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
877         (tst_QDeclarativeWebView::initTestCase):
878         (tst_QDeclarativeWebView::basicProperties):
879         (tst_QDeclarativeWebView::historyNav):
880
881 2011-11-03  Simon Hausmann  <simon.hausmann@nokia.com>
882
883         [Qt] Remove Maemo specific code paths
884         https://bugs.webkit.org/show_bug.cgi?id=71476
885
886         Reviewed by Kenneth Rohde Christiansen.
887
888         * Api/qwebpage.cpp:
889         (QWebPage::userAgentForUrl):
890         * Api/qwebview.cpp:
891         (QWebView::QWebView):
892         * QtWebKit.pro:
893         * WebCoreSupport/ChromeClientQt.cpp:
894         (WebCore::ChromeClientQt::createSelectPopup):
895         * WebCoreSupport/EditorClientQt.cpp:
896         (WebCore::EditorClientQt::setInputMethodState):
897         * WebCoreSupport/FrameLoaderClientQt.cpp:
898         (WebCore::FrameLoaderClientQt::createPlugin):
899         * WebCoreSupport/QtMaemoWebPopup.cpp: Removed.
900         * WebCoreSupport/QtMaemoWebPopup.h: Removed.
901         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
902         (tst_QGraphicsWebView::focusInputTypes):
903         * tests/qwebframe/tst_qwebframe.cpp:
904         * tests/qwebview/tst_qwebview.cpp:
905         (tst_QWebView::focusInputTypes):
906
907 2011-11-03  Jesus Sanchez-Palencia  <jesus@webkit.org>
908
909         Reviewed by Kenneth Rohde Christiansen.
910
911         [Qt] QtWebKit should have documentation clarifying its mobile features usage
912         https://bugs.webkit.org/show_bug.cgi?id=41465
913
914         Add "QtWebKit Goes Mobile" documentation
915
916         * docs/qtwebkit-goes-mobile.qdoc: Added.
917         * docs/qtwebkit.qdoc: Linked to qtwebkit-goes-mobile documentation
918         * docs/webkitsnippets/qtwebkit_goes_mobile_snippets.cpp: Added.
919
920 2011-11-03  Fady Samuel  <fsamuel@chromium.org>
921
922         Removing line in computeViewportAttributes that enforces a minimum scale factor to never allow zooming out more than viewport
923         https://bugs.webkit.org/show_bug.cgi?id=70609
924
925         Reviewed by Kenneth Rohde Christiansen.
926
927         * Api/qwebpage.cpp:
928         (QWebPage::viewportAttributesForSize):
929         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
930         (DumpRenderTreeSupportQt::viewportAsText):
931
932 2011-11-03  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
933
934         [Qt][WK2] Download support and API in UIProcess
935         https://bugs.webkit.org/show_bug.cgi?id=68962
936
937         Reviewed by Simon Hausmann.
938
939         Registering new qml type QWebDownloadItem.
940
941         * declarative/plugin.cpp:
942         (WebKitQmlPlugin::registerTypes):
943
944 2011-11-02  Jon Lee  <jonlee@apple.com>
945
946         Expand DragController to provide more information about the dragging session
947         https://bugs.webkit.org/show_bug.cgi?id=71324
948         <rdar://problem/10379175>
949
950         Reviewed by Darin Adler.
951
952         * Api/qwebpage.cpp:
953         (QWebPagePrivate::dragEnterEvent): Minor refactoring because operation is stored in
954         new DragSession struct.
955         (QWebPagePrivate::dragMoveEvent): Ditto.
956
957 2011-11-02  Tom Sepez  <tsepez@chromium.org>
958
959         XSSAuditor is silent
960         https://bugs.webkit.org/show_bug.cgi?id=70973
961
962         Reviewed by Adam Barth.
963
964         * WebCoreSupport/FrameLoaderClientQt.cpp:
965         (WebCore::FrameLoaderClientQt::didDetectXSS):
966         * WebCoreSupport/FrameLoaderClientQt.h:
967
968 2011-11-02  Jon Lee  <jonlee@apple.com>
969
970         <input=file multiple> default text uses singular instead of plural
971         https://bugs.webkit.org/show_bug.cgi?id=71319
972         <rdar://problem/10379021>
973
974         Reviewed by Darin Adler.
975
976         * WebCoreSupport/WebPlatformStrategies.cpp:
977         (WebPlatformStrategies::fileButtonNoFilesSelectedLabel):
978         * WebCoreSupport/WebPlatformStrategies.h:
979
980 2011-11-02  Deepak Sherveghar  <bpwv64@motorola.com>
981
982         [Qt] Failing test media/video-document-types.html
983         https://bugs.webkit.org/show_bug.cgi?id=62108
984
985         Reviewed by Simon Hausmann.
986
987         Match what Mac has been doing since r36001: cancel the main load,
988         and handle failures caused by 'will be handled by plugin' errors.
989
990         * WebCoreSupport/FrameLoaderClientQt.cpp:
991         (WebCore::FrameLoaderClientQt::committedLoad):
992         (WebCore::FrameLoaderClientQt::shouldFallBack):
993
994 2011-11-01  Simon Hausmann  <simon.hausmann@nokia.com>
995
996         [Qt][WK2] Fix build of WebKitTestRunner with ELF symbol visibility
997         https://bugs.webkit.org/show_bug.cgi?id=71299
998
999         Reviewed by Andreas Kling.
1000
1001         Export an overload of QtDRT::injectInternalsObjects that is used by
1002         the WK2 injected bundle.
1003
1004         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1005         (DumpRenderTreeSupportQt::injectInternalsObject):
1006         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1007
1008 2011-11-01  Alexis Menard  <alexis.menard@openbossa.org>
1009
1010         Unreviewed Qt documentation fix.
1011
1012         This signal is Qt 4.8 material.
1013
1014         * Api/qwebpage.cpp:
1015
1016 2011-10-31  Mark Hahnenberg  <mhahnenberg@apple.com>
1017
1018         De-virtualize JSObject::defineGetter
1019         https://bugs.webkit.org/show_bug.cgi?id=71134
1020
1021         Reviewed by Darin Adler.
1022
1023         Added defineGetter to the MethodTable.  Replaced all virtual versions of defineGetter
1024         with static versions.  Replaced all call sites with lookups in the MethodTable.
1025
1026         * Api/qwebframe.cpp:
1027         (QWebFramePrivate::addQtSenderToGlobalObject):
1028
1029 2011-10-28  Jochen Eisinger  <jochen@chromium.org>
1030
1031         Rename a number of methods mentioning JavaScript to just Script instead
1032         https://bugs.webkit.org/show_bug.cgi?id=71105
1033
1034         Reviewed by Adam Barth.
1035
1036         * Api/qwebsettings.cpp:
1037         (QWebSettingsPrivate::apply):
1038
1039 2011-10-28  Simon Hausmann  <simon.hausmann@nokia.com>
1040
1041         [Qt] Adapt to QSG* to QQuick* API change in qtdeclarative
1042         https://bugs.webkit.org/show_bug.cgi?id=70494
1043
1044         Reviewed by Kenneth Christiansen.
1045
1046         Use QQuick* instead of QSG* as well as QStandardPaths
1047         instead of QDesktopLocation.
1048
1049         * Api/qwebsettings.cpp:
1050         (QWebSettings::enablePersistentStorage):
1051
1052 2011-10-27  Helder Correia  <helder.correia@palm.com>
1053
1054         [Qt] Failure to build when QT_NO_MENU defined
1055         https://bugs.webkit.org/show_bug.cgi?id=70970
1056
1057         Reviewed by Andreas Kling.
1058
1059         iterateContextMenu() must be wrapped around #ifndef QT_NO_MENU.
1060
1061         Build fix, no new tests.
1062
1063         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1064
1065 2011-10-26  Zalan Bujtas  <zbujtas@gmail.com>
1066
1067         Name viewport change event consistently.
1068         https://bugs.webkit.org/show_bug.cgi?id=70901
1069
1070         Reviewed by Kenneth Rohde Christiansen.
1071
1072         Use ViewportPropertiesDidChange term consistently throughout WebKit.
1073  
1074         * WebCoreSupport/ChromeClientQt.cpp:
1075         (WebCore::ChromeClientQt::dispatchViewportPropertiesDidChange):
1076         * WebCoreSupport/ChromeClientQt.h:
1077
1078 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1079
1080         Remove putVirtual
1081         https://bugs.webkit.org/show_bug.cgi?id=70740
1082
1083         Reviewed by Geoffrey Garen.
1084
1085         Removed all declarations and definitions of putVirtual.
1086         Also replaced all call sites to putVirtual with a 
1087         corresponding lookup in the MethodTable.
1088
1089         * Api/qwebframe.cpp:
1090         (QWebFrame::addToJavaScriptWindowObject):
1091
1092 2011-10-24  Deepak Sherveghar  <bpwv64@motorola.com>
1093
1094         [Qt] fast/events/media-focus-in-standalone-media-document.html fails
1095         https://bugs.webkit.org/show_bug.cgi?id=70110
1096
1097         Reviewed by Simon Hausmann.
1098
1099         We should check for supported media mime types as well in the MIMETypeRegistry.
1100
1101         * WebCoreSupport/FrameLoaderClientQt.cpp:
1102         (WebCore::FrameLoaderClientQt::canShowMIMEType): check for supported media mime type.
1103
1104 2011-10-21  Luiz Agostini  <luiz.agostini@palm.com>
1105
1106         [Qt] Remote debugging needs QWebInspector to work
1107         https://bugs.webkit.org/show_bug.cgi?id=70651
1108
1109         Reviewed by Kenneth Rohde Christiansen.
1110
1111         Removing QWebInspector dependency from remote inspector.
1112
1113         * Api/qwebinspector.cpp:
1114         * Api/qwebinspector_p.h:
1115         (QWebInspectorPrivate::QWebInspectorPrivate):
1116         * WebCoreSupport/InspectorClientQt.cpp:
1117         (WebCore::InspectorClientQt::InspectorClientQt):
1118         (WebCore::InspectorClientQt::openInspectorFrontend):
1119         (WebCore::InspectorClientQt::attachAndReplaceRemoteFrontend):
1120         (WebCore::InspectorClientQt::detachRemoteFrontend):
1121         (WebCore::InspectorClientQt::sendMessageToFrontend):
1122         * WebCoreSupport/InspectorClientQt.h:
1123         * WebCoreSupport/InspectorServerQt.cpp:
1124         (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
1125         * WebCoreSupport/InspectorServerQt.h:
1126
1127 2011-10-21  Luiz Agostini  <luiz.agostini@palm.com>
1128
1129         [Qt] Wrong type conversion in InspectorServerQt.cpp
1130         https://bugs.webkit.org/show_bug.cgi?id=70639
1131
1132         Reviewed by Noam Rosenthal.
1133
1134         Wrong type conversion causes WebSocket handshake failures for the remote inspector.
1135
1136         * WebCoreSupport/InspectorServerQt.cpp:
1137         (WebCore::parseWebSocketChallengeNumber):
1138
1139 2011-10-21  Zeno Albisser  <zeno.albisser@nokia.com>
1140
1141         [Qt] WebKit build does not respect QMAKE_MAC_SDK variable.
1142         https://bugs.webkit.org/show_bug.cgi?id=70596
1143
1144         Instead of only relying on DARWIN_MAJOR_VERSION we also
1145         check QMAKE_MAC_SDK. In case QMAKE_MAC_SDK is not defined
1146         we are still falling back to DARWIN_MAJOR_VERSION.
1147
1148         Patch by Andy Shaw <andy.shaw@digia.com>
1149
1150         Reviewed by Noam Rosenthal.
1151
1152         * QtWebKit.pro:
1153
1154 2011-10-21  Csaba Osztrogonác  <ossy@webkit.org>
1155
1156         [Qt][WK2] Typo fix.
1157
1158         * tests/util.h:
1159
1160 2011-10-21  Csaba Osztrogonác  <ossy@webkit.org>
1161
1162         [Qt][WK2] Buildfix for newer Qt5. Remove duplicated defines.
1163
1164         Reviewed by Simon Hausmann.
1165
1166         * tests/util.h:
1167
1168 2011-10-21  Sheriff Bot  <webkit.review.bot@gmail.com>
1169
1170         Unreviewed, rolling out r98085.
1171         http://trac.webkit.org/changeset/98085
1172         https://bugs.webkit.org/show_bug.cgi?id=70589
1173
1174         It broke the build (Requested by Ossy on #webkit).
1175
1176         * tests/util.h:
1177
1178 2011-10-21  Csaba Osztrogonác  <ossy@webkit.org>
1179
1180         [Qt][WK2] Unreviewed buildfix for newer Qt5. Remove duplicated defines.
1181
1182         * tests/util.h:
1183         (waitForSignal):
1184
1185 2011-10-20  Carol Szabo  <carol@webkit.org>
1186
1187         Tiled Backing Store does not regenerate tiles when it should
1188         https://bugs.webkit.org/show_bug.cgi?id=57798
1189
1190         Reviewed by Darin Adler.
1191
1192         Provided test for this bug. Changed the name of the resource I added
1193         for a previous test so that the name is descriptive such that it can
1194         be shared across several tests.
1195
1196         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1197         (tst_QGraphicsWebView::bug57798):
1198         (tst_QGraphicsWebView::bug56929):
1199         * tests/qgraphicswebview/tst_qgraphicswebview.qrc:
1200
1201 2011-10-18  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1202
1203         [Qt] Merge QML plugin for WebKit2 with the original WebKit1 plugin
1204
1205         We don't need a separate plugin, as we no longer expose the WK2
1206         APIs under QtWebKit.experimental, but now use QtWebKit. The version
1207         was also changed to 3.0 instead of 5.0, as the original plugin was
1208         versioned 1.0, and bumping to 3.0 fits the scheme used by QtWebKit releases.
1209
1210         Reviewed by Andreas Kling.
1211
1212         * declarative/declarative.pro:
1213         * declarative/plugin.cpp:
1214         (WebKitQmlPlugin::registerTypes):
1215
1216 2011-10-15  Adam Barth  <abarth@webkit.org>
1217
1218         Rename ENABLE(TILED_BACKING_STORE) to USE(TILED_BACKING_STORE)
1219         https://bugs.webkit.org/show_bug.cgi?id=70194
1220
1221         Reviewed by Daniel Bates.
1222
1223         * Api/qgraphicswebview.cpp:
1224         (QGraphicsWebViewPrivate::_q_scaleChanged):
1225         (QGraphicsWebView::QGraphicsWebView):
1226         (QGraphicsWebView::paint):
1227         (QGraphicsWebView::isTiledBackingStoreFrozen):
1228         (QGraphicsWebView::setTiledBackingStoreFrozen):
1229         * Api/qwebframe.cpp:
1230         * Api/qwebframe_p.h:
1231         * Api/qwebpage.cpp:
1232         (QWebPagePrivate::dynamicPropertyChangeEvent):
1233         * Api/qwebsettings.cpp:
1234         (QWebSettingsPrivate::apply):
1235         * WebCoreSupport/ChromeClientQt.cpp:
1236         (WebCore::ChromeClientQt::invalidateWindow):
1237         * WebCoreSupport/ChromeClientQt.h:
1238         * WebCoreSupport/PageClientQt.cpp:
1239         (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
1240         * WebCoreSupport/PageClientQt.h:
1241         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1242
1243 2011-10-15  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1244
1245         [Qt] [Symbian] Remove support for the Symbian platform for the QtWebKit port
1246         https://bugs.webkit.org/show_bug.cgi?id=69920
1247
1248         Reviewed by Kenneth Rohde Christiansen.
1249
1250         * Api/qgraphicswebview.cpp:
1251         (QGraphicsWebView::setPage):
1252         * Api/qwebpage.cpp:
1253         (QWebPage::userAgentForUrl):
1254         * Api/qwebview.cpp:
1255         (QWebView::QWebView):
1256         * QtWebKit.pro:
1257         * WebCoreSupport/EditorClientQt.cpp:
1258         (WebCore::EditorClientQt::setInputMethodState):
1259         * WebCoreSupport/QtFallbackWebPopup.cpp:
1260         (WebCore::QtFallbackWebPopup::populate):
1261         * declarative/declarative.pro:
1262         * declarative/qdeclarativewebview.cpp:
1263         (QDeclarativeWebView::setPage):
1264         * symbian: Removed.
1265         * symbian/backup_registration.xml: Removed.
1266         * symbian/bwins: Removed.
1267         * symbian/bwins/QtWebKitu.def: Removed.
1268         * symbian/eabi: Removed.
1269         * symbian/eabi/QtWebKitu.def: Removed.
1270         * symbian/platformplugin: Removed.
1271         * symbian/platformplugin/HTML5VideoPlugin.cpp: Removed.
1272         * symbian/platformplugin/HTML5VideoPlugin.h: Removed.
1273         * symbian/platformplugin/HTML5VideoWidget.cpp: Removed.
1274         * symbian/platformplugin/HTML5VideoWidget.h: Removed.
1275         * symbian/platformplugin/OverlayWidget.cpp: Removed.
1276         * symbian/platformplugin/OverlayWidget.h: Removed.
1277         * symbian/platformplugin/PlayerButton.cpp: Removed.
1278         * symbian/platformplugin/PlayerButton.h: Removed.
1279         * symbian/platformplugin/PlayerLabel.cpp: Removed.
1280         * symbian/platformplugin/PlayerLabel.h: Removed.
1281         * symbian/platformplugin/WebPlugin.cpp: Removed.
1282         * symbian/platformplugin/WebPlugin.h: Removed.
1283         * symbian/platformplugin/images: Removed.
1284         * symbian/platformplugin/images/button_cannotplay.png: Removed.
1285         * symbian/platformplugin/images/button_close.png: Removed.
1286         * symbian/platformplugin/images/button_pause.png: Removed.
1287         * symbian/platformplugin/images/button_play.png: Removed.
1288         * symbian/platformplugin/images/button_sound_off.png: Removed.
1289         * symbian/platformplugin/images/button_sound_on.png: Removed.
1290         * symbian/platformplugin/images/loading_buffering_1.png: Removed.
1291         * symbian/platformplugin/images/loading_buffering_2.png: Removed.
1292         * symbian/platformplugin/images/loading_buffering_3.png: Removed.
1293         * symbian/platformplugin/images/loading_buffering_4.png: Removed.
1294         * symbian/platformplugin/platformplugin.pro: Removed.
1295         * symbian/platformplugin/platformplugin.qrc: Removed.
1296         * symbian/platformplugin/qss: Removed.
1297         * symbian/platformplugin/qss/OverlayWidget.qss: Removed.
1298         * symbian/platformplugin/qwebkitplatformplugin.h: Removed.
1299         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1300         (tst_QGraphicsWebView::focusInputTypes):
1301         * tests/qwebframe/qwebframe.pro:
1302         * tests/qwebframe/tst_qwebframe.cpp:
1303         * tests/qwebview/tst_qwebview.cpp:
1304         (tst_QWebView::focusInputTypes):
1305         * tests/tests.pri:
1306
1307 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
1308
1309         Rename virtual put to putVirtual
1310         https://bugs.webkit.org/show_bug.cgi?id=69851
1311
1312         Reviewed by Darin Adler.
1313
1314         Renamed virtual versions of put to putVirtual in prepration for 
1315         adding the static put to the MethodTable in ClassInfo since the 
1316         compiler gets mad if the virtual and static versions have the same 
1317         name.
1318
1319         * Api/qwebframe.cpp:
1320         (QWebFrame::addToJavaScriptWindowObject):
1321
1322 2011-10-12  Ryosuke Niwa  <rniwa@webkit.org>
1323
1324         Make the interface of locationAndLengthFromRange and rangeFromLocationAndLength consistent
1325         https://bugs.webkit.org/show_bug.cgi?id=69964
1326
1327         Reviewed by Enrica Casucci.
1328
1329         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1330         (DumpRenderTreeSupportQt::firstRectForCharacterRange):
1331
1332 2011-10-13  Adenilson Cavalcanti  <adenilson.silva@openbossa.org>
1333
1334         [Qt] GeolocationClient cleanups
1335         https://bugs.webkit.org/show_bug.cgi?id=69737
1336
1337         Reviewed by Kenneth Rohde Christiansen.
1338
1339         Qt5 has a location module, so no need to use an external
1340         library like Qt Mobility. This patch will allow the GeolocationClientQt
1341         to compile with both Qt5 and Qt4.
1342
1343         * QtWebKit.pro:
1344         * WebCoreSupport/GeolocationClientQt.cpp:
1345         (WebCore::GeolocationClientQt::positionUpdated):
1346         * WebCoreSupport/GeolocationClientQt.h:
1347
1348 2011-10-11  Simon Fraser  <simon.fraser@apple.com>
1349
1350         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
1351         https://bugs.webkit.org/show_bug.cgi?id=68134
1352
1353         Reviewed by Darin Adler.
1354
1355         Use ScrollbarThemeMock when the setting to use mock scrollbars is enabled.
1356         
1357         Make ScrollbarTheme::nativeTheme() private, and add a new static theme() method
1358         that reads the setting, and returns the mock theme if set. All callers now use
1359         theme() rther than nativeTheme(). Add the new ScrollbarTheme.cpp file to the build.
1360
1361         * WebCoreSupport/ChromeClientQt.cpp:
1362         (WebCore::ChromeClientQt::windowResizerRect):
1363
1364 2011-10-11  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1365
1366         [Qt] Remove all references to QTDIR_build and standalone_package
1367
1368         Qt is now modularized, which means we no longer import WebKit into
1369         the Qt source tree. Instead we use git submodules, and building
1370         QtWebKit as "part of Qt" is really building QtWebKit as from trunk.
1371
1372         To decrease the number of buildsystem configurations we also remove
1373         the standalone_package code-path used when we were providing tarballs
1374         with the derived sources pre-generated.
1375
1376         Reviewed by Simon Hausmann.
1377
1378         * Api/DerivedSources.pro:
1379         * QtWebKit.pro:
1380         * declarative/declarative.pro:
1381         * docs/webkitsnippets/webelement/webelement.pro:
1382         * tests/tests.pri:
1383
1384 2011-10-07  Chang Shu  <cshu@webkit.org>
1385
1386         Remove compile time flag ENABLE_PASSWORD_ECHO
1387         https://bugs.webkit.org/show_bug.cgi?id=69647
1388
1389         As we have runtime flag in the page/Settings, we should remove this redundant compile time flag.
1390
1391         Reviewed by Andreas Kling.
1392
1393         * Api/qwebsettings.cpp:
1394         (QWebSettingsPrivate::apply):
1395
1396 2011-10-06  Fady Samuel  <fsamuel@chromium.org>
1397
1398         Code clean-up: Make RenderObject::absoluteBoundingBoxRect and associated methods const and make its parameter useTransforms no longer default to false
1399         https://bugs.webkit.org/show_bug.cgi?id=69009
1400
1401         Reviewed by Simon Fraser.
1402
1403         * Api/qwebframe.cpp:
1404         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1405
1406 2011-10-06  Simon Hausmann  <simon.hausmann@nokia.com>
1407
1408         [Qt][Wk2] Fix build with Qt 5 when QtScript is built as standalone module
1409         https://bugs.webkit.org/show_bug.cgi?id=69520
1410
1411         Reviewed by Csaba Osztrogonác.
1412
1413         * QtWebKit.pro: Convenience, use qt5 scope.
1414         * declarative/declarative.pro: Ditto.
1415         * tests/tests.pri: Ditto.
1416
1417 2011-10-03  Pierre Rossi  <pierre.rossi@gmail.com>
1418
1419         [Qt] Build fix: Qt::escape is deprecated in Qt5
1420         https://bugs.webkit.org/show_bug.cgi?id=69162
1421
1422         Use QString::toHtmlEscaped in the Qt5 case.
1423
1424         Reviewed by Andreas.
1425
1426         * Api/qwebpage.cpp:
1427         (QWebPage::javaScriptAlert):
1428         (QWebPage::javaScriptConfirm):
1429         (QWebPage::javaScriptPrompt):
1430         * WebCoreSupport/ChromeClientQt.cpp:
1431         (WebCore::ChromeClientQt::setToolTip):
1432
1433 2011-10-01  Sheriff Bot  <webkit.review.bot@gmail.com>
1434
1435         Unreviewed, rolling out r96421.
1436         http://trac.webkit.org/changeset/96421
1437         https://bugs.webkit.org/show_bug.cgi?id=69206
1438
1439         It broke Qt-WK2 build (Requested by ossy on #webkit).
1440
1441         * Api/qwebpage.cpp:
1442         (QWebPage::javaScriptAlert):
1443         (QWebPage::javaScriptConfirm):
1444         (QWebPage::javaScriptPrompt):
1445         * WebCoreSupport/ChromeClientQt.cpp:
1446         (WebCore::ChromeClientQt::setToolTip):
1447
1448 2011-09-30  Pierre Rossi  <pierre.rossi@gmail.com>
1449
1450         [Qt] Build fix: Qt::escape is deprecated in Qt5
1451         https://bugs.webkit.org/show_bug.cgi?id=69162
1452
1453         Use QString::toHtmlEscaped in the Qt5 case.
1454
1455         Reviewed by Andreas Kling.
1456
1457         * Api/qwebpage.cpp:
1458         (QWebPage::javaScriptAlert):
1459         (QWebPage::javaScriptConfirm):
1460         (QWebPage::javaScriptPrompt):
1461         * WebCoreSupport/ChromeClientQt.cpp:
1462         (WebCore::ChromeClientQt::setToolTip):
1463
1464 2011-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1465
1466         [Qt] Fix build against Qt5 after refactor of widgets out of QtGUi
1467
1468         QWidget and friends now live in the QtWidgets library. We update
1469         includes in implementation files and private headers to us the
1470         non-module-prefixed path, and leave the lookup for the include
1471         path. For public headers we have to ifdef the includes as the
1472         user might now have the modules we need in his QT config.
1473
1474         Finally, QSGCanvas is no longer a QWidget but a QWindow, so we
1475         have to update our code and use windowHandle() for setting the
1476         parent relationships.
1477
1478         https://bugs.webkit.org/show_bug.cgi?id=68687
1479
1480         Reviewed by Andreas Kling.
1481
1482         * Api/qgraphicswebview.cpp:
1483         * Api/qgraphicswebview.h:
1484         * Api/qwebframe.h:
1485         * Api/qwebhistory.h:
1486         * Api/qwebpage.h:
1487         * Api/qwebsettings.h:
1488         * Api/qwebview.h:
1489         * QtWebKit.pro:
1490         * WebCoreSupport/PageClientQt.h:
1491         * WebCoreSupport/QtWebComboBox.cpp:
1492         * WebCoreSupport/QtWebComboBox.h:
1493         * declarative/qdeclarativewebview.cpp:
1494         * declarative/qdeclarativewebview_p.h:
1495         * docs/webkitsnippets/webpage/main.cpp:
1496         * examples/platformplugin/WebNotificationPresenter.h:
1497
1498 2011-09-27  Sheriff Bot  <webkit.review.bot@gmail.com>
1499
1500         Unreviewed, rolling out r96108, r96111, r96113, and r96116.
1501         http://trac.webkit.org/changeset/96108
1502         http://trac.webkit.org/changeset/96111
1503         http://trac.webkit.org/changeset/96113
1504         http://trac.webkit.org/changeset/96116
1505         https://bugs.webkit.org/show_bug.cgi?id=68913
1506
1507         Wait for working Qt5 (Requested by ossy on #webkit).
1508
1509         * Api/qgraphicswebview.cpp:
1510         * Api/qgraphicswebview.h:
1511         * Api/qwebframe.h:
1512         * Api/qwebhistory.h:
1513         * Api/qwebpage.h:
1514         * Api/qwebsettings.h:
1515         * Api/qwebview.h:
1516         * QtWebKit.pro:
1517         * WebCoreSupport/PageClientQt.h:
1518         * WebCoreSupport/QtWebComboBox.cpp:
1519         * WebCoreSupport/QtWebComboBox.h:
1520         * declarative/declarative.pro:
1521         * declarative/qdeclarativewebview.cpp:
1522         * declarative/qdeclarativewebview_p.h:
1523         * docs/webkitsnippets/webpage/main.cpp:
1524         * examples/platformplugin/WebNotificationPresenter.h:
1525         * tests/tests.pri:
1526
1527 2011-09-27  Csaba Osztrogonác  <ossy@webkit.org>
1528
1529         [Qt][WK2] Buildfix after r96108.
1530
1531         Rubber-stamped by Andreas Kling.
1532
1533         * tests/tests.pri:
1534
1535 2011-09-27  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1536
1537         [Qt] Fix build of declarative plugin against Qt5
1538
1539         Reviewed by Andreas Kling.
1540
1541         * declarative/declarative.pro:
1542
1543 2011-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1544
1545         [Qt] Fix build against Qt5 after refactor of widgets out of QtGUi
1546
1547         QWidget and friends now live in the QtWidgets library. We update
1548         includes in implementation files and private headers to us the
1549         non-module-prefixed path, and leave the lookup for the include
1550         path. For public headers we have to ifdef the includes as the
1551         user might now have the modules we need in his QT config.
1552
1553         Finally, QSGCanvas is no longer a QWidget but a QWindow, so we
1554         have to update our code and use windowHandle() for setting the
1555         parent relationships.
1556
1557         https://bugs.webkit.org/show_bug.cgi?id=68687
1558
1559         Reviewed by Andreas Kling.
1560
1561         * Api/qgraphicswebview.cpp:
1562         * Api/qgraphicswebview.h:
1563         * Api/qwebframe.h:
1564         * Api/qwebhistory.h:
1565         * Api/qwebpage.h:
1566         * Api/qwebsettings.h:
1567         * Api/qwebview.h:
1568         * QtWebKit.pro:
1569         * WebCoreSupport/PageClientQt.h:
1570         * WebCoreSupport/QtWebComboBox.cpp:
1571         * WebCoreSupport/QtWebComboBox.h:
1572         * declarative/qdeclarativewebview.cpp:
1573         * declarative/qdeclarativewebview_p.h:
1574         * docs/webkitsnippets/webpage/main.cpp:
1575         * examples/platformplugin/WebNotificationPresenter.h:
1576
1577 2011-09-24  Adam Barth  <abarth@webkit.org>
1578
1579         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
1580         https://bugs.webkit.org/show_bug.cgi?id=68767
1581
1582         Reviewed by Eric Seidel.
1583
1584         * Api/qwebsecurityorigin.cpp:
1585         (QWebSecurityOrigin::setApplicationCacheQuota):
1586         * Api/qwebsettings.cpp:
1587         (QWebSettings::setOfflineWebApplicationCachePath):
1588         (QWebSettings::offlineWebApplicationCachePath):
1589         (QWebSettings::setOfflineWebApplicationCacheQuota):
1590         (QWebSettings::offlineWebApplicationCacheQuota):
1591         * WebCoreSupport/ChromeClientQt.cpp:
1592         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
1593         * WebCoreSupport/ChromeClientQt.h:
1594         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1595         (DumpRenderTreeSupportQt::clearAllApplicationCaches):
1596
1597 2011-09-21  Andras Becsi  <andras.becsi@nokia.com>
1598
1599         [Qt] Remove Qt specific code from css/SelectorChecker.cpp
1600         https://bugs.webkit.org/show_bug.cgi?id=67702
1601
1602         Reviewed by Csaba Osztrogonác.
1603
1604         * WebCoreSupport/WebPlatformStrategies.cpp: Check the Qt global history here, instead of a platform independent file.
1605         (WebPlatformStrategies::isLinkVisited):
1606         * WebCoreSupport/WebPlatformStrategies.h:
1607
1608 2011-09-20  Jarred Nicholls  <jarred@sencha.com>
1609
1610         [Qt] Permit qrc resources to load in QWebSettings::setUserStyleSheetUrl()
1611         https://bugs.webkit.org/show_bug.cgi?id=51159
1612         
1613         Permit any URL with a local scheme to set a user style sheet. Allow qrc
1614         resource URLs as arguments to QWebSettings::setUserStyleSheetUrl().
1615         
1616         New test case makes sure a qrc URL will properly load a user stylesheet.
1617
1618         Reviewed by Kenneth Rohde Christiansen.
1619         
1620         (tst_QWebPage::userStyleSheetFromQrcUrl):
1621         * tests/qwebpage/tst_qwebpage.qrc:
1622
1623 2011-09-20  Adenilson Cavalcanti  <adenilson.silva@openbossa.org>
1624
1625         [Qt] resizeToContent seems to trigger infinite resize on some pages
1626         https://bugs.webkit.org/show_bug.cgi?id=43852
1627
1628         Reviewed by Kenneth Rohde Christiansen.
1629
1630         Test by Luiz Agostini.
1631
1632         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1633         (ResizeSpy::receiveResize):
1634         (ResizeSpy::size):
1635         (tst_QGraphicsWebView::windowResizeEvent):
1636
1637 2011-09-17  Mihai Parparita  <mihaip@chromium.org>
1638
1639         FrameLoaderClient BackForwardList-related methods are unsued
1640         https://bugs.webkit.org/show_bug.cgi?id=68293
1641
1642         Reviewed by Darin Adler.
1643
1644         Remove FrameLoaderClient methods that were added by r51629, since only        
1645         the old (since-deleted) Android port needed them.
1646
1647         * WebCoreSupport/FrameLoaderClientQt.cpp:
1648         * WebCoreSupport/FrameLoaderClientQt.h:
1649
1650 2011-09-15  Adam Barth  <abarth@webkit.org>
1651
1652         Rename ENABLE(DATABASE) to ENABLE(SQL_DATABASE)
1653         https://bugs.webkit.org/show_bug.cgi?id=68205
1654
1655         Reviewed by Eric Seidel.
1656
1657         * Api/qwebdatabase.cpp:
1658         (QWebDatabase::displayName):
1659         (QWebDatabase::expectedSize):
1660         (QWebDatabase::size):
1661         (QWebDatabase::fileName):
1662         (QWebDatabase::removeDatabase):
1663         (QWebDatabase::removeAllDatabases):
1664         * Api/qwebsecurityorigin.cpp:
1665         (QWebSecurityOrigin::databaseUsage):
1666         (QWebSecurityOrigin::databaseQuota):
1667         (QWebSecurityOrigin::setDatabaseQuota):
1668         (QWebSecurityOrigin::allOrigins):
1669         (QWebSecurityOrigin::databases):
1670         * Api/qwebsettings.cpp:
1671         (QWebSettingsPrivate::apply):
1672         (QWebSettings::setOfflineStoragePath):
1673         (QWebSettings::offlineStoragePath):
1674         * WebCoreSupport/ChromeClientQt.cpp:
1675         * WebCoreSupport/ChromeClientQt.h:
1676
1677 2011-09-13  Zeno Albisser  <zeno.albisser@nokia.com>
1678
1679         [Qt] Fix state of stop/reload actions in QWebPage
1680         https://bugs.webkit.org/show_bug.cgi?id=65977
1681
1682         FrameLoader does ask its DocumentLoader to stop loading subresources before
1683         setting the state to FrameStateCommittedPage. But it does
1684         not check if the the DocumentLoader actually stopped loading before
1685         it changes the state.
1686         Therefore a subresourceLoader can still be active, when we receive the
1687         call to dispatchDidFinishLoad(). This leads to an inconsistent behavior
1688         of the stop/reload actions in QWebPage.
1689         This changeset fixes the inconsistent state by updating the action states
1690         also when frameLoadCompleted() is called.
1691
1692         Reviewed by Chang Shu.
1693
1694         * WebCoreSupport/FrameLoaderClientQt.cpp:
1695         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
1696
1697 2011-09-12  Csaba Osztrogonác  <ossy@webkit.org>
1698
1699         [Qt] Fix "Unmatched parentheses are deprecated." warnings
1700         https://bugs.webkit.org/show_bug.cgi?id=67775
1701
1702         Reviewed by Zoltan Herczeg.
1703
1704         Modify function declarations to single line to make qmake happier.
1705
1706         * Api/qwebframe.h:
1707         * Api/qwebpluginfactory.h:
1708         * Api/qwebview.h:
1709
1710 2011-09-10  Jarred Nicholls  <jarred@sencha.com>
1711
1712         [Qt] QWebSettings::setUserStyleSheetUrl() does not work with windows paths that contain drive letters
1713         https://bugs.webkit.org/show_bug.cgi?id=34884
1714         
1715         KURL::path() alone does not handle removing the leading slash from a windows file path.
1716         Using QUrl::toLocalFile() will turn file:///C:/path into C:/path appropriately.
1717         
1718         New test case that ensures a user stylesheet from the file system will load correctly
1719         on all platforms.
1720
1721         Reviewed by Andreas Kling.
1722
1723         * tests/qwebpage/resources/user.css: Added.
1724         (p):
1725         * tests/qwebpage/tst_qwebpage.cpp:
1726         (tst_QWebPage::userStyleSheetFromFile):
1727
1728 2011-09-09  Fady Samuel  <fsamuel@chromium.org>
1729
1730         Move pageScaleFactor code from Frame.{h|cpp} to Page.{h|cpp}
1731         https://bugs.webkit.org/show_bug.cgi?id=67250
1732
1733         Reviewed by Simon Fraser.
1734
1735         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1736         (DumpRenderTreeSupportQt::scalePageBy):
1737
1738 2011-09-09  Zeno Albisser  <zeno.albisser@nokia.com>
1739
1740         [Qt] QWebElement::encloseWith doesn't work at all
1741         https://bugs.webkit.org/show_bug.cgi?id=62464
1742
1743         Enclosing an element means wrapping something around an element,
1744         not inserting something into an element. Therefore we need to check
1745         if the parent of the element allows insertion rather than checking
1746         the element itself.
1747
1748         Reviewed by Andreas Kling.
1749
1750         * Api/qwebelement.cpp:
1751         (QWebElement::prependOutside):
1752         (QWebElement::appendOutside):
1753         (QWebElement::encloseWith):
1754         * tests/qwebelement/tst_qwebelement.cpp:
1755         (tst_QWebElement::appendAndPrepend):
1756         (tst_QWebElement::encloseWith):
1757
1758 2011-09-08  Sam Weinig  <sam@webkit.org>
1759
1760         Remove the Completion object from JSC, I have never liked it
1761         https://bugs.webkit.org/show_bug.cgi?id=67755
1762
1763         Reviewed by Gavin Barraclough.
1764
1765         * Api/qwebelement.cpp:
1766         (QWebElement::evaluateJavaScript):
1767
1768 2011-09-05  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1769
1770         [Qt][WK2] Make TiledDrawingArea request tiles only in the direction the viewport is panned to.
1771         https://bugs.webkit.org/show_bug.cgi?id=67606
1772
1773         TiledBackingStore previously used different values for horizontal and vertial multiplication
1774         to calculate the cover area. 
1775         This patch replaces this mechanism, used to give a bigger panning range to vertical panning,
1776         with the possibility to use the motion vector of the viewport to request tiles ahead instead.
1777         This allows economies on rendering resources as tiles won't be rendered beside the trajectory
1778         of the viewport.
1779
1780         * Api/qwebpage.cpp:
1781         (QWebPagePrivate::dynamicPropertyChangeEvent):
1782
1783 2011-09-06  Csaba Osztrogonác  <ossy@webkit.org>
1784
1785         Unreviewed buildfix after r94620.
1786
1787         * WebCoreSupport/FrameLoaderClientQt.cpp:
1788         (WebCore::FrameLoaderClientQt::createFrame):
1789
1790 2011-09-06  Alexis Menard  <alexis.menard@openbossa.org>
1791
1792         [Qt] Move away from QPointer as it is slow and it has a replacement QWeakPointer.
1793         https://bugs.webkit.org/show_bug.cgi?id=67673
1794
1795         Reviewed by Ariya Hidayat.
1796
1797         Move away from QPointer as Qt provides a better and faster solution : QWeakPointer.
1798
1799         * Api/qwebframe.cpp:
1800         (QWebHitTestResult::linkTargetFrame):
1801         (QWebHitTestResult::frame):
1802         * Api/qwebframe_p.h:
1803         * Api/qwebpage.cpp:
1804         (QWebPagePrivate::QWebPagePrivate):
1805         (QWebPagePrivate::~QWebPagePrivate):
1806         (QWebPagePrivate::acceptNavigationRequest):
1807         (QWebPagePrivate::createMainFrame):
1808         (QWebPagePrivate::updateAction):
1809         (QWebPagePrivate::mouseMoveEvent):
1810         (QWebPagePrivate::mousePressEvent):
1811         (QWebPagePrivate::mouseDoubleClickEvent):
1812         (QWebPagePrivate::mouseTripleClickEvent):
1813         (QWebPagePrivate::mouseReleaseEvent):
1814         (QWebPage::createStandardContextMenu):
1815         (QWebPagePrivate::wheelEvent):
1816         (QWebPagePrivate::focusInEvent):
1817         (QWebPage::setPalette):
1818         (QWebPagePrivate::touchEvent):
1819         (QWebPage::~QWebPage):
1820         (QWebPage::mainFrame):
1821         (QWebPage::viewportSize):
1822         (QWebPage::preferredContentsSize):
1823         (QWebPage::setContentEditable):
1824         (QWebPage::updatePositionDependentActions):
1825         * Api/qwebpage_p.h:
1826         * Api/qwebview.cpp:
1827         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1828         (DumpRenderTreeSupportQt::contextMenu):
1829         * WebCoreSupport/FrameLoaderClientQt.cpp:
1830         (WebCore::FrameLoaderClientQt::createFrame):
1831         * tests/qwebframe/tst_qwebframe.cpp:
1832         (tst_QWebFrame::ownership):
1833         * tests/qwebpage/tst_qwebpage.cpp:
1834         (PluginCounterPage::PluginCounterPage):
1835         (PluginTracerPage::createPlugin):
1836         (tst_QWebPage::createViewlessPlugin):
1837         * tests/qwebview/tst_qwebview.cpp:
1838         (tst_QWebView::reusePage):
1839
1840 2011-09-06  Alexis Menard  <alexis.menard@openbossa.org>
1841
1842         [Qt] Fix API test failure after r92823 and r93001.
1843         https://bugs.webkit.org/show_bug.cgi?id=67676
1844
1845         Reviewed by Kenneth Rohde Christiansen.
1846
1847         r92823 and r93001 make WebKit no longer produce wrapping style 
1848         spans on copy and paste and class="Apple-style-span" anymore.
1849         Our expectations need to be updated.
1850
1851         * tests/qwebpage/tst_qwebpage.cpp:
1852         (tst_QWebPage::cursorMovements):
1853         (tst_QWebPage::textSelection):
1854         (tst_QWebPage::findText):
1855
1856 2011-09-06  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
1857
1858         [Qt][Symbian] REGRESSION[94105] DumpRenderTree.exe doesn't build on Symbian
1859         https://bugs.webkit.org/show_bug.cgi?id=67644
1860
1861         Reviewed by Csaba Osztrogonác.
1862
1863         * symbian/eabi/QtWebKitu.def: add missing entry for
1864         FrameLoaderClientQt::dumpProgressFinishedCallback(bool)
1865
1866 2011-09-05  Kaustubh Atrawalkar  <kaustubh@motorola.com>
1867
1868         Logic from HTMLElement::deprecatedCreateContextualFragment moved into
1869         Range::createContextualFragment function.
1870         https://bugs.webkit.org/show_bug.cgi?id=67056
1871
1872         Reviewed by Ryosuke Niwa.
1873
1874         Code Refactoring for deprecatedCreateContextualFragment.
1875
1876         * Api/qwebelement.cpp:
1877         (QWebElement::appendInside):
1878         (QWebElement::prependInside):
1879         (QWebElement::prependOutside):
1880         (QWebElement::appendOutside):
1881         (QWebElement::encloseContentsWith):
1882         (QWebElement::encloseWith):
1883
1884 2011-09-03  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1885
1886         REGRESSION (r86268): Fix for qt_networkAccessAllowed()
1887         https://bugs.webkit.org/show_bug.cgi?id=67570
1888
1889         Reviewed by Noam Rosenthal.
1890
1891         Replace the ENABLE(QT_BEARER) guard with
1892         !defined(QT_NO_BEARERMANAGEMENT) which is true by
1893         default in Qt 4.7 or later versions.
1894
1895         * Api/qwebsettings.cpp:
1896         (qt_networkAccessAllowed):
1897
1898 2011-09-02  Jade Han  <jade.han@nokia.com>
1899
1900         [Qt][Symbian] REGRESSION(93235) Missing .def update
1901         https://bugs.webkit.org/show_bug.cgi?id=67307
1902
1903         Reviewed by Laszlo Gombos.
1904
1905         * symbian/eabi/QtWebKitu.def:
1906
1907 2011-09-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1908
1909         [Qt] Transform QtFallbackWebPopupCombo into QtWebComboBox
1910         https://bugs.webkit.org/show_bug.cgi?id=67344
1911
1912         Reviewed by Andreas Kling.
1913
1914         Renamed QtFallbackWebPopup to QtWebComboBox and decoupled it from
1915         QtFallbackWebPopup. The new class is a QComboBox with the features that
1916         we need for QtWebKit: tracking when the popup is hidden (via the didHide()
1917         signal) and a convenience method to show its popup in the cursor position.
1918
1919         An important change was made to the combobox: instead of hooking our actions in
1920         showPopup() and hidePopup(), as well as watching for popup visibility events, we
1921         now just watch for the visibility events. This allowed us to get rid of
1922         m_popupVisible and tracking the Show event.
1923
1924         This commit also removed a workaround for input focus added in r40970 after
1925         reviewers request. See bug report for details.
1926
1927         * QtWebKit.pro:
1928         * WebCoreSupport/QtFallbackWebPopup.cpp:
1929         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
1930         (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
1931         (WebCore::QtFallbackWebPopup::show):
1932         (WebCore::QtFallbackWebPopup::deleteComboBox):
1933         * WebCoreSupport/QtFallbackWebPopup.h:
1934         * WebCoreSupport/QtWebComboBox.cpp: Added.
1935         (WebCore::QtWebComboBox::QtWebComboBox):
1936         (WebCore::QtWebComboBox::showPopupAtCursorPosition):
1937         (WebCore::QtWebComboBox::eventFilter):
1938         * WebCoreSupport/QtWebComboBox.h: Added.
1939
1940         * tests/qwebframe/tst_qwebframe.cpp:
1941         (tst_QWebFrame::popupFocus):
1942         Change the test to use QObject::findChild(). The old method couldn't find our
1943         new class because we defined a new metaclass for it.
1944
1945 2011-08-31  Ryosuke Niwa  <rniwa@webkit.org>
1946
1947         Move text() and textWithHardLineBreaks() from RenderTextControl to HTMLTextFormControlElement
1948         https://bugs.webkit.org/show_bug.cgi?id=67320
1949
1950         Reviewed by Darin Adler.
1951
1952         Call HTMLTextFormControlElement::value() instead of RenderText::text()
1953
1954         * Api/qwebpage.cpp:
1955         (QWebPage::inputMethodQuery):
1956
1957 2011-08-31  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1958
1959         [Qt] Unskip API test for load signals order
1960         https://bugs.webkit.org/show_bug.cgi?id=67285
1961
1962         Reviewed by Andreas Kling.
1963
1964         * tests/qwebpage/tst_qwebpage.cpp:
1965         (tst_QWebPage::loadSignalsOrder):
1966
1967 2011-08-30  Sheriff Bot  <webkit.review.bot@gmail.com>
1968
1969         Unreviewed, rolling out r94142, r94144, r94145, and r94148.
1970         http://trac.webkit.org/changeset/94142
1971         http://trac.webkit.org/changeset/94144
1972         http://trac.webkit.org/changeset/94145
1973         http://trac.webkit.org/changeset/94148
1974         https://bugs.webkit.org/show_bug.cgi?id=67262
1975
1976         Broke isindex element (Requested by rniwa on #webkit).
1977
1978         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1979         (DumpRenderTreeSupportQt::setAutofilled):
1980         (DumpRenderTreeSupportQt::setValueForUser):
1981         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
1982
1983 2011-08-30  Ryosuke Niwa  <rniwa@webkit.org>
1984
1985         Get rid of toInputElement()
1986         https://bugs.webkit.org/show_bug.cgi?id=67175
1987
1988         Reviewed by Darin Adler.
1989
1990         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1991         (DumpRenderTreeSupportQt::setAutofilled):
1992         (DumpRenderTreeSupportQt::setValueForUser):
1993         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
1994
1995 2011-08-30  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1996
1997         Emit last progress notification before calling dispatchDidFinishLoad
1998         https://bugs.webkit.org/show_bug.cgi?id=28851
1999
2000         Reviewed by Adam Barth.
2001
2002         Add infrastructure to dump progressFinishedNotification callback in DRT.
2003
2004         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2005         (DumpRenderTreeSupportQt::dumpProgressFinishedCallback):
2006         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2007         * WebCoreSupport/FrameLoaderClientQt.cpp:
2008         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
2009         * WebCoreSupport/FrameLoaderClientQt.h:
2010
2011 2011-08-30  Kaustubh Atrawalkar  <kaustubh@motorola.com>
2012
2013         The unused ScrollView* argument can and should be removed from
2014         scrollRectIntoView.
2015         https://bugs.webkit.org/show_bug.cgi?id=67117
2016
2017         Reviewed by Darin Adler.
2018
2019         * WebCoreSupport/ChromeClientQt.h:
2020         (WebCore::ChromeClientQt::scrollRectIntoView):
2021
2022 2011-08-25  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
2023
2024         Unreviewed QtWebKit.pro fix for when building inside Qt
2025
2026         Patch by Simo Fält <simo.falt@nokia.com>
2027
2028         The QtWebKit version was being overwritten by a global Qt version when
2029         QtWebKit was built inside Qt. Fixed by moving the version
2030         definition after the inclusion of qbase.pri.
2031
2032         * QtWebKit.pro:
2033
2034 2011-08-25  Sheriff Bot  <webkit.review.bot@gmail.com>
2035
2036         Unreviewed, rolling out r93783.
2037         http://trac.webkit.org/changeset/93783
2038         https://bugs.webkit.org/show_bug.cgi?id=66943
2039
2040         Commited wrong stuff by accident. (Requested by ademar on
2041         #webkit).
2042
2043         * Api/qwebview.cpp:
2044         (QWebView::load):
2045         (QWebView::setHtml):
2046         (QWebView::setContent):
2047         (QWebView::setUrl):
2048         * QtWebKit.pro:
2049
2050 2011-08-25  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
2051
2052         Unreviewed QtWebKit.pro fix for when building inside Qt
2053
2054         Patch by Simo Fält <simo.falt@nokia.com>
2055
2056         The QtWebKit version was being overwritten by a global Qt version when
2057         QtWebKit was built inside Qt. Fixed by moving the version
2058         definition after the inclusion of qbase.pri.
2059
2060         * QtWebKit.pro:
2061
2062 2011-08-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2063
2064         [Qt] Fix build on Lion
2065
2066         https://bugs.webkit.org/show_bug.cgi?id=66770
2067
2068         Reviewed by Andreas Kling.
2069
2070         We were mistakenly picking up mac/WebCoreSystemInterface.h instead of
2071         the Qt one, and building on Lion revealed this when a typedef for
2072         IOSurfaceRef was wrapped in PLATFORM(MAC).
2073
2074         For now we fix this by including WebCoreSystemInterface using
2075         brackets, so that we'll pick up the right file based on the
2076         include paths. This also means exposing a few missing enums
2077         in our own version of the file, so those were added.
2078
2079         Lasty, we need to link against the right system interface library
2080         on Lion.
2081
2082         * QtWebKit.pro:
2083
2084 2011-08-21  Lindsay Mathieson  <lindsay.mathieson@gmail.com>
2085
2086         [Qt] Fixes premature plugin unload bug
2087         https://bugs.webkit.org/show_bug.cgi?id=66628
2088         
2089         Reviewed by Benjamin Poulain.
2090
2091         The QtPlatformPlugin was allocated on the stack, so its destructor is unloading the
2092         plugin at the end of the scope. This patch moves the local creation of QtPlatformPlugin
2093         to class member (TextCheckerClientQt::m_platformPlugin), preventing premature unloading
2094         of plugin.            
2095         
2096         * WebCoreSupport/TextCheckerClientQt.cpp:
2097         (WebCore::TextCheckerClientQt::loadSpellChecker):
2098         * WebCoreSupport/TextCheckerClientQt.h:
2099
2100 2011-08-17  Adam Roben  <aroben@apple.com>
2101
2102         Make WebCore keep track of the current device scale factor
2103
2104         Fixes <http://webkit.org/b/66413> WebCore requires every WebKit port to keep track of the
2105         device scale factor
2106
2107         Reviewed by Darin Adler.
2108
2109         * Api/qwebpage.cpp:
2110         (QWebPagePrivate::QWebPagePrivate): Removed pixelRatio.
2111         (QWebPage::viewportAttributesForSize): Now calls Page::setDeviceScaleFactor.
2112
2113         * Api/qwebpage_p.h: Removed pixelRatio.
2114
2115         * WebCoreSupport/ChromeClientQt.cpp:
2116         * WebCoreSupport/ChromeClientQt.h:
2117         Removed deviceScaleFactor.
2118
2119 2011-08-18  Chang Shu  <cshu@webkit.org>
2120
2121         Add support of setPasswordEchoEnabled and setPasswordEchoDuration for password echo feature
2122         https://bugs.webkit.org/show_bug.cgi?id=66052
2123
2124         Reviewed by Alexey Proskuryakov.
2125
2126         Enable password echo under the build flag.
2127
2128         * Api/qwebsettings.cpp:
2129         (QWebSettingsPrivate::apply):
2130
2131 2011-08-16  Chang Shu  <cshu@webkit.org>
2132
2133         Support reset in WebCore::Internals
2134         https://bugs.webkit.org/show_bug.cgi?id=66307
2135
2136         Reviewed by Dimitri Glazkov.
2137
2138         Added framework code in WebKit.
2139
2140         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2141         (DumpRenderTreeSupportQt::resetInternalsObject):
2142         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2143
2144 2011-08-16  Lindsay Mathieson   <lindsay.mathieson@gmail.com>
2145
2146         [Qt] Missing spell check support
2147         https://bugs.webkit.org/show_bug.cgi?id=44114
2148
2149         Reviewed by Benjamin Poulain.
2150
2151         Added a platform plugin to allow spell and grammar check in QtWebKit.
2152
2153         * Api/qwebkitplatformplugin.h:
2154         * QtWebKit.pro:
2155         * WebCoreSupport/EditorClientQt.cpp:
2156         (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
2157         (WebCore::EditorClientQt::isGrammarCheckingEnabled):
2158         (WebCore::EditorClientQt::toggleContinuousSpellChecking):
2159         (WebCore::EditorClientQt::toggleGrammarChecking):
2160         * WebCoreSupport/EditorClientQt.h:
2161         (WebCore::EditorClientQt::textChecker):
2162         * WebCoreSupport/QtPlatformPlugin.cpp:
2163         (WebCore::QtPlatformPlugin::createSpellChecker):
2164         * WebCoreSupport/QtPlatformPlugin.h:
2165         * WebCoreSupport/TextCheckerClientQt.cpp: Added.
2166         (convertToVectorList):
2167         (WebCore::TextCheckerClientQt::ignoreWordInSpellDocument):
2168         (WebCore::TextCheckerClientQt::learnWord):
2169         (WebCore::TextCheckerClientQt::getAutoCorrectSuggestionForMisspelledWord):
2170         (WebCore::TextCheckerClientQt::checkSpellingOfString):
2171         (WebCore::TextCheckerClientQt::checkGrammarOfString):
2172         (WebCore::TextCheckerClientQt::getGuessesForWord):
2173         (WebCore::TextCheckerClientQt::isContinousSpellCheckingEnabled):
2174         (WebCore::TextCheckerClientQt::toggleContinousSpellChecking):
2175         (WebCore::TextCheckerClientQt::isGrammarCheckingEnabled):
2176         (WebCore::TextCheckerClientQt::toggleGrammarChecking):
2177         (WebCore::TextCheckerClientQt::loadSpellChecker):
2178         * WebCoreSupport/TextCheckerClientQt.h: Added.
2179         (WebCore::TextCheckerClientQt::requestCheckingOfString):
2180
2181 2011-08-15  Dmitry Titov  <dimich@chromium.org>
2182
2183         FrameLoaderClient::transferLoadingResourceFromPage does not have enough parameters
2184         https://bugs.webkit.org/show_bug.cgi?id=66165
2185
2186         Reviewed by Darin Fisher.
2187
2188         * WebCoreSupport/FrameLoaderClientQt.cpp:
2189         (WebCore::FrameLoaderClientQt::transferLoadingResourceFromPage):
2190         * WebCoreSupport/FrameLoaderClientQt.h:
2191
2192 2011-08-10  Adam Roben  <aroben@apple.com>
2193
2194         Clear up scale factor terminology
2195
2196         WebKit by and large deals with two scale factors: one intrinsic to the device on which the
2197         software is running, and one that is per-Page and can be controlled via API calls. This
2198         patch names the former "deviceScaleFactor" and the latter "pageScaleFactor", and makes the
2199         code use those names. It should introduce no behavior changes.
2200
2201         Fixes <http://webkit.org/b/55787> WebKit uses multiple conflicting names to refer to the
2202         device scale factor
2203
2204         Reviewed by Simon Fraser.
2205
2206         * WebCoreSupport/ChromeClientQt.cpp:
2207         * WebCoreSupport/ChromeClientQt.h:
2208
2209 2011-08-12  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2210
2211         [Qt] Add test for correct order of load signals in QWebPage
2212         https://bugs.webkit.org/show_bug.cgi?id=66016
2213
2214         Reviewed by Benjamin Poulain.
2215
2216         Add API test to ensure the order of load signals: loadStarted() needs to be emitted
2217         first, then loadProgress(100), followed by loadFinished().
2218
2219         The test is skipped since this right now is broken, the bug
2220         https://bugs.webkit.org/show_bug.cgi?id=28851 tracks one possible way to fix.
2221
2222         * tests/qwebpage/tst_qwebpage.cpp:
2223         (SpyForLoadSignalsOrder::SpyForLoadSignalsOrder):
2224         (SpyForLoadSignalsOrder::isFinished):
2225         (SpyForLoadSignalsOrder::onLoadProgress):
2226         (tst_QWebPage::loadSignalsOrder_data):
2227         (tst_QWebPage::loadSignalsOrder):
2228
2229 2011-08-12  Alexis Menard  <alexis.menard@openbossa.org>
2230
2231         [Qt] Make sure QtWebKit correctly compiles when building WebKit2 with Qt5.
2232
2233         In order to build correctly the QtQuick1 plugin we need to explicitly
2234         link to the new library added in Qt5 "qtquick1".
2235
2236         Reviewed by Simon Hausmann.
2237
2238         * declarative/declarative.pro:
2239
2240 2011-08-11  Andrew Wason  <rectalogic@rectalogic.com>
2241
2242         REGRESSION: Qt JavaScript bridge signal connection fails
2243         https://bugs.webkit.org/show_bug.cgi?id=66097
2244
2245         Reviewed by Gavin Barraclough.
2246
2247         Unmark tests as expected failures, they pass now.
2248
2249         * tests/qwebframe/tst_qwebframe.cpp:
2250         (tst_QWebFrame::connectAndDisconnect):
2251
2252 2011-08-09  Sheriff Bot  <webkit.review.bot@gmail.com>
2253
2254         Unreviewed, rolling out r92683.
2255         http://trac.webkit.org/changeset/92683
2256         https://bugs.webkit.org/show_bug.cgi?id=65921
2257
2258          "Breaks Qt --minimal build. Revert pending update of the Qt
2259         minimal configuration" (Requested by simathur on #webkit).
2260
2261         * Api/qwebsettings.cpp:
2262         (QWebSettings::enablePersistentStorage):
2263
2264 2011-08-09  Siddharth Mathur  <siddharth.mathur@nokia.com>
2265
2266         [Qt] Simplify code by removing QT_NO_DESKTOPSERVICES and QT_NO_NETWORKDISKCACHE
2267         https://bugs.webkit.org/show_bug.cgi?id=65880
2268
2269         Reviewed by Andreas Kling.
2270
2271         QDesktopServices and QNetworkDiskCache have been around for a while now. Kill flags which 
2272         check for their feature flags. Assume that any reasonable Qt build provides them. 
2273
2274         * Api/qwebsettings.cpp:
2275         (QWebSettings::enablePersistentStorage):
2276
2277 2011-08-05  Dawit Alemayehu  <adawit@kde.org>
2278
2279         Reviewed by Andreas Kling.
2280
2281         Reverted commit r87797, http://trac.webkit.org/changeset/87797, because it
2282         causes the regression reported under bug# 63582.
2283
2284         [Qt] REGRESSION(r87797): Broke KDEWebKit's custom QNAM.
2285         https://bugs.webkit.org/show_bug.cgi?id=63582
2286
2287         * WebCoreSupport/FrameLoaderClientQt.cpp:
2288         (WebCore::FrameLoaderClientQt::setFrame):
2289
2290 2011-08-03  Pavel Feldman  <pfeldman@google.com>
2291
2292         Web Inspector: [Timeline] Hover on paint events and see rect outline around that area.
2293         https://bugs.webkit.org/show_bug.cgi?id=65510
2294
2295         Reviewed by Yury Semikhatsky.
2296
2297         * Api/qwebframe.cpp:
2298         (QWebFramePrivate::renderRelativeCoords):
2299
2300 2011-08-03  Pavel Feldman  <pfeldman@chromium.org>
2301
2302         Web Inspector: remove Node parameter from the InspectorClient::highlight
2303         https://bugs.webkit.org/show_bug.cgi?id=65549
2304
2305         Reviewed by Yury Semikhatsky.
2306
2307         * WebCoreSupport/InspectorClientQt.cpp:
2308         (WebCore::InspectorClientQt::highlight):
2309         * WebCoreSupport/InspectorClientQt.h:
2310
2311 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2312
2313         [Qt] Fix tst_QDeclarativeWebView::basicProperties() and historyNav() autotests
2314         https://bugs.webkit.org/show_bug.cgi?id=61042
2315         Remove mark as expected fail where unexpected pass and mark failing test case as expected fail
2316
2317         Reviewed by Csaba Osztrogonác.
2318
2319         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
2320         (tst_QDeclarativeWebView::basicProperties):
2321         (tst_QDeclarativeWebView::historyNav):
2322
2323 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2324
2325         [Qt] Fix tst_QWebPage::viewModes() API test
2326         https://bugs.webkit.org/show_bug.cgi?id=65531
2327
2328         Reviewed by Csaba Osztrogonác.
2329
2330         * tests/qwebpage/tst_qwebpage.cpp: Mark failing test case as expected fail
2331         (tst_QWebPage::viewModes):
2332
2333 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2334
2335         [Qt] Fix tst_QWebFrame::connectAndDisconnect() API test
2336         https://bugs.webkit.org/show_bug.cgi?id=65170
2337
2338         Reviewed by Csaba Osztrogonác.
2339
2340         * tests/qwebframe/tst_qwebframe.cpp: Mark failing test case as expected fail
2341         (tst_QWebFrame::connectAndDisconnect):
2342
2343 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2344
2345         [Qt] Fix tst_QWebElement::render() API test
2346         https://bugs.webkit.org/show_bug.cgi?id=65243
2347
2348         Reviewed by Csaba Osztrogonác.
2349
2350         * tests/qwebelement/tst_qwebelement.cpp: Mark failing test case as expected fail
2351         (tst_QWebElement::render):
2352
2353 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2354
2355         [Qt] tst_QWebElement::style() fails because QWebElement::CascadedStyle doesn't work as expected
2356         https://bugs.webkit.org/show_bug.cgi?id=65244
2357
2358         Reviewed by Csaba Osztrogonác.
2359
2360         * tests/qwebelement/tst_qwebelement.cpp: Mark failing test case as expected fail
2361         (tst_QWebElement::style):
2362
2363 2011-08-01  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2364
2365         [Qt] Fix tst_QWebPage::loadHtml5Video() API test
2366         https://bugs.webkit.org/show_bug.cgi?id=65452
2367
2368         Reviewed by Csaba Osztrogonác.
2369
2370         * tests/qwebpage/tst_qwebpage.cpp: Mark failing test case as expected fail
2371         (tst_QWebPage::loadHtml5Video):
2372
2373 2011-07-30  Patrick Gansterer  <paroga@webkit.org>
2374
2375         Remove inclusion of MainThread.h from Threading.h
2376         https://bugs.webkit.org/show_bug.cgi?id=65081
2377
2378         Reviewed by Darin Adler.
2379
2380         Add missing include statements for MainThread.
2381
2382         * Api/qwebpage.cpp:
2383
2384 2011-07-27  Benjamin Poulain  <benjamin@webkit.org>
2385
2386         [WK2][Qt] Move from QGraphicsView to Qt Scene Graph
2387         https://bugs.webkit.org/show_bug.cgi?id=62969
2388
2389         Reviewed by Andreas Kling.
2390
2391         Co-authored with Simon Hausmann  <simon.hausmann@nokia.com>
2392
2393         Add the declarative dependency to link WebKit.
2394
2395         * QtWebKit.pro:
2396
2397 2011-07-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2398
2399         [Qt] QtWebkit never finishes loading sites when they are loaded after an initial QUrl fails to load.
2400         https://bugs.webkit.org/show_bug.cgi?id=61328
2401
2402         Reviewed by Andreas Kling.
2403
2404         Change the hooks in FrameLoaderClient we use for emitting signals. Instead of
2405         emitting signals in the progress notification functions, we use the
2406         dispatchDid{Start,Finish,Fail}* functions. The main reason behind this change is
2407         that loading code is prepared to handle load() when inside those functions.
2408
2409         The crash was being caused by setUrl() (and load()) being called when
2410         loadFinished(false) was emitted. The problem here is that when
2411         postProgressFinishedNotification the FrameLoader wasn't ready for taking a load()
2412         call again, because it was still the ProvisionalLoadState but with the
2413         provisionalDocumentLoader already removed.
2414
2415         To emulate the same behavior that QtWebKit had when using
2416         postProgressFinishedNotification, we now keep track of the frame originating the
2417         load, and emit the signals when this frame's client is called.
2418
2419         The patch keeps the existing semantics for QWebPage signals, but we now emit the
2420         QWebFrame signals everytime, not only when they are the originating frame for
2421         loading.
2422
2423         * Api/qwebframe.cpp:
2424         (clearCoreFrame): Document our assumption that activeDocumentLoader will exist.
2425
2426         * WebCoreSupport/FrameLoaderClientQt.h: Remove m_loadError, add a boolean to keep
2427         track whether the frame is originating the load. Remove the signals from
2428         FrameLoaderClientQt since we will emit QWebFrame and QWebPage signals directly.
2429
2430         * WebCoreSupport/FrameLoaderClientQt.cpp:
2431         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Initialize m_isOriginatingLoad.
2432
2433         (WebCore::FrameLoaderClientQt::setFrame): Do not connect QWebFrame and QWebPage
2434         signals to our signals for load/finished, signal emission will be done manually.
2435
2436         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): Emit
2437         loadStarted() signal and make the first notification of estimation change, that
2438         Qt API tests expect to exist and notify 10%.
2439
2440         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): Remove reference to
2441         m_loadError and emit loadFinished() signal.
2442
2443         (WebCore::FrameLoaderClientQt::postProgressStartedNotification): Remove signal
2444         emission and mark the originating load as true, since only the originating frame
2445         gets this call in its client.
2446
2447         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): Remove signal
2448         emission.
2449
2450         (WebCore::FrameLoaderClientQt::callErrorPageExtension): Return whether the call
2451         was successful or not. This wasn't necessary before because a successful call for
2452         error page would lead to a load(), that cleared the m_loadError.
2453         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): Remove reference
2454         to m_loadError and emit finished signal indicating error if ErrorPage extension
2455         doesn't handle it.
2456         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): Ditto.
2457
2458         (WebCore::FrameLoaderClientQt::emitLoadStarted): Emit the loadStarted() signal
2459         for the QWebFrame, and if the originating load also do for the QWebPage.
2460
2461         (WebCore::FrameLoaderClientQt::emitLoadFinished): Same as before but for
2462         loadFinished(). Take care to reset the originating load flag before the signals
2463         are emitted, since they might want to set it back again.
2464
2465         * tests/qwebframe/tst_qwebframe.cpp:
2466         (URLSetter::URLSetter): Object that sets the url using either load() or setUrl()
2467         when a certain signal is emitted in the frame.
2468
2469         (URLSetter::execute):
2470         (tst_QWebFrame::loadInSignalHandlers_data):
2471         (tst_QWebFrame::loadInSignalHandlers): New test inspired by the bug test case. This test
2472         crashes without this patch applied.
2473
2474 2011-07-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2475
2476         [Qt] Fix build in Qt 5 of QDeclarativeWebView
2477         https://bugs.webkit.org/show_bug.cgi?id=65258
2478
2479         Reviewed by Andreas Kling.
2480
2481         In Qt 5, the QGraphicsView-based classes for QtQuick are in the
2482         qtquick1 module, including QDeclarativeItem and QDeclarativeView.
2483
2484         * declarative/qdeclarativewebview_p.h:
2485         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
2486         * tests/tests.pri:
2487         * tests/tests.pro:
2488
2489 2011-07-26  Sadrul Habib Chowdhury  <sadrul@chromium.org>
2490
2491         Add support for download='filename' attribute in anchors.
2492         https://bugs.webkit.org/show_bug.cgi?id=64580
2493
2494         Reviewed by Adam Barth.
2495
2496         * WebCoreSupport/FrameLoaderClientQt.cpp:
2497         (WebCore::FrameLoaderClientQt::startDownload):
2498         * WebCoreSupport/FrameLoaderClientQt.h:
2499
2500 2011-07-26  Alexis Menard  <alexis.menard@openbossa.org>
2501
2502         Reviewed by Andreas Kling.
2503
2504         [Qt] Change default backend to use GStreamer on Linux and QuickTime on Mac.
2505         https://bugs.webkit.org/show_bug.cgi?id=63472
2506
2507         Use the flag WTF_USE_QTKIT=1 rather than USE_QTKIT=1 because that flag doesn't
2508         exist anymore, it's the default. Ditto for GStreamer.
2509
2510         * QtWebKit.pro:
2511
2512 2011-07-25  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2513
2514         [Qt] Add more tests to cover the behavior of loadFinished() signal
2515         https://bugs.webkit.org/show_bug.cgi?id=63490
2516
2517         Reviewed by Benjamin Poulain.
2518
2519         * tests/qwebframe/tst_qwebframe.cpp:
2520         (FakeReply::FakeReply):
2521         (FakeNetworkManager::createRequest): Add a fake reply that gives 404 error code.
2522
2523         (tst_QWebFrame::loadFinishedAfterNotFoundError): Verify that we get loadFinished(false)
2524         after a 404 error without contents.
2525
2526         * tests/qwebpage/tst_qwebpage.cpp:
2527         (tst_QWebPage::errorPageExtensionLoadFinished): Verify if the argument of loadFinished()
2528         is true when we use error page extension to produce our own error pages.
2529
2530 2011-07-19  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2531
2532         [Qt] Improve documentation of QWebView::setPage()
2533         https://bugs.webkit.org/show_bug.cgi?id=64827
2534
2535         Reviewed by Noam Rosenthal.
2536
2537         * Api/qwebview.cpp: Use the word 'page' to refer to a QWebPage instead of 'document'.
2538
2539 2011-07-19  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2540
2541         [Qt] Fix leak of QWebPage in errorPageExtension tests
2542         https://bugs.webkit.org/show_bug.cgi?id=64814
2543
2544         Reviewed by Noam Rosenthal.
2545
2546         QWebView::setPage() doesn't take ownership, so the ErrorPages were leaking. So now
2547         allocate them on the stack. This shouldn't change any behavior.
2548
2549         * tests/qwebpage/tst_qwebpage.cpp:
2550         (tst_QWebPage::errorPageExtension):
2551         (tst_QWebPage::errorPageExtensionInIFrames):
2552         (tst_QWebPage::errorPageExtensionInFrameset):
2553
2554 2011-07-18  Hui Huang  <hui.2.huang@nokia.com>
2555
2556         [Qt] Compiling error in Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp with Qt 4.7 or older
2557         https://bugs.webkit.org/show_bug.cgi?id=64560
2558
2559         Reviewed by Noam Rosenthal.
2560
2561         * tests/qwebelement/tst_qwebelement.cpp:
2562         (tst_QWebElement::render):
2563
2564 2011-07-15  Dan Bernstein  <mitz@apple.com>
2565
2566         REGRESSION: Mouse cursor doesn’t hide when full screen video HUD hides
2567         https://bugs.webkit.org/show_bug.cgi?id=64615
2568
2569         Reviewed by Anders Carlsson.
2570
2571         * WebCoreSupport/ChromeClientQt.h:
2572         (WebCore::ChromeClientQt::setCursorHiddenUntilMouseMoves): Added this stub.
2573
2574 2011-07-15  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2575
2576         REGRESSION(91064): Upstream QtWebKit/N9 changes related tovisibleContentRect
2577
2578         Reviewed by Antonio Gomes.
2579
2580         Only set setFixedVisibleContentRect when in resizesToContents mode.
2581
2582         * WebCoreSupport/FrameLoaderClientQt.cpp:
2583         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2584
2585 2011-07-15  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2586
2587         Upstream QtWebKit/N9 changes related to visibleContentRect
2588         https://bugs.webkit.org/show_bug.cgi?id=64589
2589
2590         Reviewed by Simon Hausmann.
2591
2592         * Api/qwebpage.cpp:
2593         (QWebPage::setActualVisibleContentRect):
2594         Change to use setFixedVisibleContentRect.
2595         * WebCoreSupport/FrameLoaderClientQt.cpp:
2596         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2597         Only set fixedVisibleContentRect for the mainframe.
2598         * symbian/eabi/QtWebKitu.def:
2599
2600 2011-07-13  Joseph Pecoraro  <joepeck@webkit.org>
2601
2602         Improve names of some ApplicationCacheStorage accessor methods
2603         https://bugs.webkit.org/show_bug.cgi?id=64433
2604
2605         Reviewed by Alexey Proskuryakov.
2606
2607         * WebCoreSupport/ChromeClientQt.cpp:
2608         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
2609         Renamed method.
2610
2611 2011-07-12  Joseph Pecoraro  <joepeck@webkit.org>
2612
2613         ApplicationCache update should not immediately fail when reaching per-origin quota
2614         https://bugs.webkit.org/show_bug.cgi?id=64177
2615
2616         Reviewed by Alexey Proskuryakov.
2617
2618         * Api/qwebpage.cpp:
2619         * Api/qwebpage.h:
2620         * WebCoreSupport/ChromeClientQt.cpp:
2621         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
2622         * WebCoreSupport/ChromeClientQt.h:
2623         Pass the spaceNeeded value through to the applicationCacheQuotaExceeded signal.
2624
2625 2011-07-11  Ryosuke Niwa  <rniwa@webkit.org>
2626
2627         Move selection related code from RenderTextControl to HTMLTextFormControlElement
2628         https://bugs.webkit.org/show_bug.cgi?id=64133
2629
2630         Reviewed by Dimitri Glazkov.
2631
2632         Replaced calls to WebCore::setSelectionRange by calls to HTMLTextFormControlElement::setSelectionRange.
2633
2634         * Api/qwebpage.cpp:
2635         (QWebPagePrivate::inputMethodEvent):
2636
2637 2011-07-08  Adam Barth  <abarth@webkit.org>
2638
2639         Unreviewed, rolling out r90662.
2640         http://trac.webkit.org/changeset/90662
2641         https://bugs.webkit.org/show_bug.cgi?id=64210
2642
2643         Introduced regressions in Chromium browser tests (Requested by
2644         rniwa on #webkit).
2645
2646         * Api/qwebpage.cpp:
2647         (QWebPagePrivate::inputMethodEvent):
2648
2649 2011-07-08  Ryosuke Niwa  <rniwa@webkit.org>
2650
2651         Move selection related code from RenderTextControl to HTMLTextFormControlElement
2652         https://bugs.webkit.org/show_bug.cgi?id=64133
2653
2654         Reviewed by Dimitri Glazkov.
2655
2656         Replaced calls to WebCore::setSelectionRange by calls to HTMLTextFormControlElement::setSelectionRange.
2657
2658         * Api/qwebpage.cpp:
2659         (QWebPagePrivate::inputMethodEvent):
2660
2661 2011-07-05  Rafael Brandao  <rafael.lobo@openbossa.org>
2662
2663         [Qt] Fix tst_QWebFrame::setHtmlWithResource() API test
2664         https://bugs.webkit.org/show_bug.cgi?id=63235
2665
2666         Modified baseUrl to be a local file in order to get a security origin
2667         that is allowed to request local resources. Removed QSignalSpy from it
2668         as loadFinished always happens, and the original test was split into two.
2669
2670         Reviewed by Benjamin Poulain.
2671
2672         * tests/qwebframe/tst_qwebframe.cpp:
2673         (tst_QWebFrame::setHtmlWithImageResource):
2674         (tst_QWebFrame::setHtmlWithStylesheetResource):
2675         (tst_QWebFrame::setHtmlWithBaseURL):
2676
2677 2011-04-02  Robert Hogan  <robert@webkit.org>
2678
2679         Reviewed by Benjamin Poulain.
2680
2681         [Qt] Support third-party cookie policy for Qt clients
2682
2683         This adds new API to QWebSettings that allows clients to
2684         select one of three third-party cookie blocking policies:
2685
2686           AlwaysAllowThirdPartyCookies
2687           AlwaysBlockThirdPartyCookies
2688           AllowThirdPartyWithExistingCookies
2689
2690         The first two are self-explanatory, the third mimics Safari's
2691         default behaviour of permitting third-party cookies when the user
2692         already has cookies from the third-party site. This was
2693         introduced to allow third-party cookie blocking to play well with
2694         facebook sharing etc. AlwaysAllowThirdPartyCookies is the default.
2695
2696         There is scope for adding an 'exceptions' list API and clients would
2697         struggle to implement it themselves given the paucity of information
2698         available from setCookiesForUrl().
2699
2700         See also: http://gitorious.org/qt/qt/merge_requests/1205
2701                    (commit 154402f56dcf8303a6ce601a52215226af8d31ba)
2702                   http://bugreports.qt.nokia.com/browse/QTBUG-13601
2703
2704         https://bugs.webkit.org/show_bug.cgi?id=45455
2705
2706         * Api/qwebsettings.cpp:
2707         (QWebSettings::QWebSettings):
2708         (QWebSettings::setThirdPartyCookiePolicy):
2709         (QWebSettings::thirdPartyCookiePolicy):
2710         * Api/qwebsettings.h:
2711
2712 2011-07-01  Jade Han  <jade.han@nokia.com>
2713
2714         [Qt][Symbian] Update .def file for Symbian to build Tools
2715         https://bugs.webkit.org/show_bug.cgi?id=61200
2716
2717         Reviewed by Laszlo Gombos.
2718
2719         Add newly introduced symbols to fix building the Tools directory for Symbian.
2720
2721         * symbian/eabi/QtWebKitu.def:
2722
2723 2011-07-01  Jade Han  <jade.han@nokia.com>
2724
2725         Reviewed by Laszlo Gombos.
2726
2727         [Qt][Symbian] Update .def file for Symbian
2728         https://bugs.webkit.org/show_bug.cgi?id=61200
2729
2730         Add newly introduced symbols to fix the Symbian build.
2731
2732         * symbian/eabi/QtWebKitu.def:
2733
2734 2011-06-30  Rafael Brandao  <rafael.lobo@openbossa.org>
2735
2736         Reviewed by Benjamin Poulain.
2737
2738         [Qt] Fix tst_QWebFrame::renderGeometry() API test
2739         https://bugs.webkit.org/show_bug.cgi?id=63236
2740         
2741         This test required a security origin with granted permission to request local resources.
2742         By default, only local files can load local resources. So modified baseUrl to be a local file.
2743
2744         * tests/qwebframe/tst_qwebframe.cpp:
2745         (tst_QWebFrame::renderGeometry):
2746
2747 2011-06-27  Diego Gonzalez  <diegohcg@webkit.org>
2748
2749         Reviewed by Antonio Gomes.
2750
2751         [Qt] DRT: Provide LayoutTestController::setDefersLoading and ::goBack support
2752         https://bugs.webkit.org/show_bug.cgi?id=63489
2753
2754         Unskipped:
2755             loader/navigation-while-deferring-loads.html
2756
2757         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2758         (DumpRenderTreeSupportQt::setDefersLoading):
2759         (DumpRenderTreeSupportQt::goBack):
2760         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2761
2762 2011-06-30  Fabrizio Machado  <fabrizio.machado@nokia.com>
2763
2764         Reviewed by Benjamin Poulain.
2765         
2766         [Qt] QML Webview causes performance drops
2767         https://bugs.webkit.org/show_bug.cgi?id=57554
2768
2769         Remove tiledBackingStoreEnabled from QML WebView.
2770         
2771         * declarative/qdeclarativewebview.cpp:
2772         (QDeclarativeWebView::setPage):
2773
2774 2011-06-30  Kentaro Hara  <haraken@google.com>
2775
2776         Reviewed by Kent Tamura.
2777
2778         Change the label of an HTML5 file chooser button to "Choose Files"
2779         https://bugs.webkit.org/show_bug.cgi?id=49245
2780
2781         We should notify capability of multiple files to users.
2782
2783         Test: fast/forms/input-file-label.html
2784
2785         * WebCoreSupport/WebPlatformStrategies.cpp:
2786         (WebPlatformStrategies::fileButtonChooseFileLabel): Updated the description for "Choose File".
2787         (WebPlatformStrategies::fileButtonChooseMultipleFilesLabel):  Returns a "Choose Files" label.
2788         * WebCoreSupport/WebPlatformStrategies.h:
2789
2790 2011-06-29  Alexis Menard  <alexis.menard@openbossa.org>
2791
2792         Reviewed by Benjamin Poulain.
2793
2794         [Qt] Add Qt dependencies in QtWebKit's main pro file.
2795         https://bugs.webkit.org/show_bug.cgi?id=63639
2796
2797         syncqt, the script which generates the headers inside Qt parses
2798         the main pro file of QtWebKit to check the Qt dependencies. It used
2799         to be WebCore.pro but after the build reorganization QtWebKit.pro is
2800         the new main pro file so we need to add the network dependency just like
2801         we did in WebCore.pro.
2802
2803         * QtWebKit.pro:
2804
2805 2011-06-28  Ilya Sherman  <isherman@chromium.org>
2806
2807         Reviewed by Adam Barth.
2808
2809         form.autocomplete="off" does not work
2810         https://bugs.webkit.org/show_bug.cgi?id=35823
2811
2812         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2813         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId): Update callsite.
2814
2815 2011-06-27  Diego Gonzalez  <diegohcg@webkit.org>
2816
2817         Reviewed by Kenneth Rohde Christiansen.
2818
2819         [Qt] DRT support for setInteractiveFormValidationEnabled
2820         https://bugs.webkit.org/show_bug.cgi?id=63496
2821
2822         Unskipped:
2823             fast/forms/interactive-validation-prevented.html
2824             fast/forms/interactive-validation-attach-assertion.html
2825             fast/forms/interactive-validation-assertion-by-validate-twice.html
2826             fast/forms/interactive-validation-select-crash.html
2827             fast/forms/interactive-validation-crash-by-style-override.html
2828
2829         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2830         (DumpRenderTreeSupportQt::setInteractiveFormValidationEnabled):
2831         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2832
2833 2011-06-28  Alexis Menard  <alexis.menard@openbossa.org>
2834
2835         Reviewed by Andreas Kling.
2836
2837         [Qt] Use <QtX/x.h> style of headers for Qt tests which rely on it.
2838         https://bugs.webkit.org/show_bug.cgi?id=63562
2839
2840         Some Qt auto-tests rely on <QtX/x.h> types of includes.
2841
2842         * Api/qwebkitplatformplugin.h:
2843         * symbian/platformplugin/qwebkitplatformplugin.h:
2844
2845 2011-06-28  Alexis Menard  <alexis.menard@openbossa.org>
2846
2847         Reviewed by Andreas Kling.
2848
2849         [Qt] Use QtQuick imports in Api tests rather than old deprecated Qt 4.x imports.
2850         https://bugs.webkit.org/show_bug.cgi?id=63533
2851
2852         We need to use the new QtQuick 1.x imports rather than the old deprecated
2853         version.
2854
2855         * tests/qdeclarativewebview/resources/webviewbackgroundcolor.qml:
2856         * tests/qdeclarativewebview/resources/webviewtest.qml:
2857         * tests/qdeclarativewebview/resources/webviewtestdefault.qml:
2858
2859 2011-06-27  Alexis Menard  <alexis.menard@openbossa.org>
2860
2861         Reviewed by Darin Adler.
2862
2863         Use specific headers includes rather than full system headers.
2864         https://bugs.webkit.org/show_bug.cgi?id=63475
2865
2866         Use only needed headers rather than system headers.
2867
2868         * WebCoreSupport/QTKitFullScreenVideoHandler.mm:
2869
2870 2011-06-27  Alexis Menard  <alexis.menard@openbossa.org>
2871
2872         Reviewed by Kenneth Rohde Christiansen.
2873
2874         [Qt] Remove Phonon MediaPlayer from the tree.
2875         https://bugs.webkit.org/show_bug.cgi?id=63448
2876
2877         Remove Phonon related stuff.
2878
2879         * docs/qtwebkit.qdocconf:
2880         * qt_webkit_version.pri:
2881
2882 2011-06-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2883
2884         Reviewed by Andreas Kling.
2885
2886         [Qt] tst_QWebFrame::overloadedSlots() fails
2887         https://bugs.webkit.org/show_bug.cgi?id=37319
2888
2889         * tests/qwebframe/tst_qwebframe.cpp:
2890         (tst_QWebFrame::overloadedSlots): Remove expected failure and
2891         fix the comment.
2892
2893 2011-06-20  Robert Hogan  <robert@webkit.org>
2894
2895         Reviewed by Antonio Gomes.
2896
2897         [Qt] Duplicate entry in context menu
2898         https://bugs.webkit.org/show_bug.cgi?id=62139
2899
2900         contextMenuController()->populate() is called from
2901         ContextMenuController::handleContextMenuEvent() so
2902         QWebPage::updatePositionDependentActions() does not need
2903         to call it independently.
2904
2905         Related changesets: 
2906          http://trac.webkit.org/changeset/73535
2907          http://trac.webkit.org/changeset/32389
2908
2909         * Api/qwebpage.cpp:
2910         (QWebPage::updatePositionDependentActions):
2911         * tests/qwebpage/tst_qwebpage.cpp:
2912         (tst_QWebPage::contextMenuCopy):
2913         (tst_QWebPage::contextMenuPopulatedOnce):
2914
2915 2011-06-24  Dominic Cooney  <dominicc@chromium.org>
2916
2917         Reviewed by Dimitri Glazkov.
2918
2919         Convert shadow-DOM related tests to use window.internals
2920         https://bugs.webkit.org/show_bug.cgi?id=61671
2921
2922         Remove shadow-DOM related methods from Qt DRT API. These are not
2923         required any more.
2924
2925         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2926         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2927
2928 2011-06-23  Joe Wild  <joseph.wild@nokia.com>
2929
2930         Reviewed by Laszlo Gombos.
2931
2932         [Qt] The Qt WebKit Symbian .def file needs to be updated so Symbian will build
2933         https://bugs.webkit.org/show_bug.cgi?id=61200
2934
2935         Revert r87060 as it broke compatibility with QtWebKit 2.1 release
2936         and add some newly introduce symbols.
2937
2938         * symbian/eabi/QtWebKitu.def:
2939
2940 2011-06-23  Alexis Menard  <alexis.menard@openbossa.org>
2941
2942         Reviewed by Eric Carlson.
2943
2944         [Qt] Implement fullscreen support on Mac with the QuickTime backend.
2945         https://bugs.webkit.org/show_bug.cgi?id=61728
2946
2947         Implement fullscreen support for Qt when using the QuickTime backend.
2948         We mostly use what is already done for the Mac port.
2949
2950         * QtWebKit.pro:
2951         * WebCoreSupport/ChromeClientQt.cpp:
2952         (WebCore::ChromeClientQt::ChromeClientQt):
2953         (WebCore::ChromeClientQt::~ChromeClientQt):
2954         * WebCoreSupport/ChromeClientQt.h:
2955         * WebCoreSupport/FullScreenVideoQt.cpp:
2956         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
2957         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
2958         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
2959         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
2960         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
2961         (WebCore::FullScreenVideoQt::isValid):
2962         * WebCoreSupport/FullScreenVideoQt.h:
2963         * WebCoreSupport/QTKitFullScreenVideoHandler.h: Added.
2964         * WebCoreSupport/QTKitFullScreenVideoHandler.mm: Added.
2965         (QTKitFullScreenVideoHandler::QTKitFullScreenVideoHandler):
2966         (QTKitFullScreenVideoHandler::~QTKitFullScreenVideoHandler):
2967         (QTKitFullScreenVideoHandler::enterFullScreen):
2968         (QTKitFullScreenVideoHandler::exitFullScreen):
2969         * WebCoreSupport/WebSystemInterface.mm:
2970         (InitWebCoreSystemInterface):
2971
2972 2011-06-23  Yael Aharon  <yael.aharon@nokia.com>
2973
2974         Reviewed by Andreas Kling.
2975
2976         [Qt] [WK2] Add drag and drop support
2977         https://bugs.webkit.org/show_bug.cgi?id=62838
2978
2979         Call dragEnded from the DragClient to make WebKit1 and WebKit2 consistent.
2980
2981         * WebCoreSupport/DragClientQt.cpp:
2982         (WebCore::DragClientQt::startDrag):
2983
2984 2011-06-23  Joe Wild  <joseph.wild@nokia.com>
2985
2986         Reviewed by Laszlo Gombos.
2987
2988         [Qt] Export files under Symbian Qt WebKit build
2989         https://bugs.webkit.org/show_bug.cgi?id=61207
2990
2991         Export files for the Symbian platform as this is needed by the
2992         production build system.
2993
2994         Janne Koskinen provided the suggestion to use target_predeps,
2995         which is an improvement over the originally suggested patch.
2996
2997         * QtWebKit.pro:
2998
2999 2011-06-23  Csaba Osztrogonác  <ossy@webkit.org>
3000
3001         Rubber-stamped by Andreas Kling.
3002
3003         [Qt] Fix tst_QWebFrame::setHtmlWithResource() API test
3004         https://bugs.webkit.org/show_bug.cgi?id=63235
3005
3006         [Qt] Fix tst_QWebFrame::renderGeometry() API test
3007         https://bugs.webkit.org/show_bug.cgi?id=63236
3008
3009         [Qt] Fix tst_QWebFrame::setUrlWithPendingLoads() API test
3010         https://bugs.webkit.org/show_bug.cgi?id=63237
3011
3012         * tests/qwebframe/tst_qwebframe.cpp: Mark failing test cases as expected fails until real fix.
3013         (tst_QWebFrame::setHtmlWithResource):
3014         (tst_QWebFrame::renderGeometry):
3015
3016 2011-06-23  Csaba Osztrogonác  <ossy@webkit.org>
3017
3018         Rubber-stamped by Andreas Kling.
3019
3020         [Qt] Fix tst_QWebPage::showModalDialog() API test
3021         https://bugs.webkit.org/show_bug.cgi?id=63244
3022
3023         [Qt] Fix tst_QWebPage::testStopScheduledPageRefresh() API test
3024         https://bugs.webkit.org/show_bug.cgi?id=63245
3025
3026         * tests/qwebpage/tst_qwebpage.cpp: Mark failing test cases as expected fails.
3027         (tst_QWebPage::showModalDialog):
3028         (tst_QWebPage::testStopScheduledPageRefresh):
3029
3030 2011-06-22  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
3031
3032         Reviewed by Holger Freyther.
3033
3034         [Qt] Fix Qt namespace on QDeclarativeWebView autotest
3035         https://bugs.webkit.org/show_bug.cgi?id=63147
3036
3037         Applications (such as the test runner) are not supposed to be wrapped
3038         by {QT_BEGIN,QT_END}_NAMESPACE macros, otherwise building Qt (or
3039         QtWebKit) with a specific namespace won't work (will result in main
3040         being undefined).
3041
3042         This was the only test wrapped by these macros, all others are fine.
3043
3044         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: remove
3045         namespace macros.
3046
3047 2011-06-20  Dimitri Glazkov  <dglazkov@chromium.org>
3048
3049         Reviewed by Kent Tamura.
3050
3051         FileChooser should be only created when we need to choose files.
3052         https://bugs.webkit.org/show_bug.cgi?id=63039
3053
3054         * WebCoreSupport/ChromeClientQt.cpp:
3055         (WebCore::ChromeClientQt::runOpenPanel): Changed to use settings.
3056
3057 2011-06-21  Yael Aharon  <yael.aharon@nokia.com>
3058
3059         Reviewed by Andreas Kling.
3060
3061         [Qt] Regression(60942) wrong default action for drag-and-drop.
3062         https://bugs.webkit.org/show_bug.cgi?id=63004
3063
3064         Added special handling for the case that dragOperation is not initialized.
3065         Save the last dropOperation and pass it to the dropEvent, so that it can 
3066         be accepted by QDrag.
3067         Call event->accepted() and not event->acceptProposedAction(), because the
3068         later ignores the dropAction specified in JavaScript.
3069
3070         Tested with the test page attached to https://bugs.webkit.org/show_bug.cgi?id=40401
3071         and did not see any issue.
3072         Also manually tested all combinations of LayoutTests/fast/events/drag-and-drop.html
3073         and they all pass.
3074
3075         * Api/qwebpage.cpp:
3076         (dropActionToDragOp):
3077         (QWebPagePrivate::dragMoveEvent):
3078         (QWebPagePrivate::dropEvent):
3079
3080 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
3081
3082         Reviewed by Yury Semikhatsky.
3083
3084         Web Inspector: remove LayoutTestController::setTimelineProfilingEnabled.
3085         https://bugs.webkit.org/show_bug.cgi?id=62994
3086
3087         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3088         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3089
3090 2011-06-18  Dimitri Glazkov  <dglazkov@chromium.org>
3091
3092         Reviewed by Darin Adler.
3093
3094         Separate concerns of loading file icons and choosing files.
3095         https://bugs.webkit.org/show_bug.cgi?id=62931
3096
3097         * WebCoreSupport/ChromeClientQt.cpp:
3098         (WebCore::ChromeClientQt::loadIconForFiles): Renamed.
3099         * WebCoreSupport/ChromeClientQt.h:
3100
3101 2011-06-17  Alexis Menard  <alexis.menard@openbossa.org>
3102
3103         Reviewed by Andreas Kling.
3104
3105         [Qt] Fix wrong framework generation on MacOS when inside Qt 4.8.
3106         https://bugs.webkit.org/show_bug.cgi?id=62815
3107
3108         Partially revert r85870 which assumed that QtWebKit will never be build inside Qt
3109         anymore. Everything inside !QTDIR_build condition is not needed in the Qt tree because
3110         qbase.pri is doing the job for us, i.e. using includes generated by syncqt to
3111         setup the mac framework. It also use a correct QMAKE_LFLAGS_SONAME making possible
3112         to actually run an application linked against QtWebKit.
3113
3114         * QtWebKit.pro:
3115
3116 2011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
3117
3118         Unreviewed, rolling out r88796.
3119         http://trac.webkit.org/changeset/88796
3120         https://bugs.webkit.org/show_bug.cgi?id=62790
3121
3122         It made fast/dom/nodesFromRect-basic.html time out on Qt,
3123         64-bit, debug mode (Requested by Ossy on #webkit).
3124
3125         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3126         (DumpRenderTreeSupportQt::plainText):
3127         (DumpRenderTreeSupportQt::nodesFromRect):
3128         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3129         * tests/qwebframe/tst_qwebframe.cpp:
3130         (tst_QWebFrame::overloadedSlots):
3131         (tst_QWebFrame::domCycles):
3132
3133 2011-06-15  Diego Gonzalez  <diegohcg@webkit.org>
3134
3135         Reviewed by Kenneth Rohde Christiansen.
3136
3137         [Qt] Inconsistent behavior on a form submit request...
3138         https://bugs.webkit.org/show_bug.cgi?id=45523
3139
3140         The inconsistency occurs when a form submission requests a new window.
3141         Two windows are opened (instead of only one) and the first window is opened
3142         as a blank page.
3143
3144         By default each page is put into their own unique page group, which affects popup windows
3145         and visited links. Page groups (per process only) is a feature making it possible to use
3146         separate settings for each group, so that for instance an integrated browser/email reader
3147         can use different settings for displaying HTML pages and HTML email. To make QtWebKit work
3148         as expected out of the box, we use a default group similar to what other ports are doing.
3149
3150         * Api/qwebpage.cpp:
3151
3152 2011-06-14  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3153
3154         Reviewed by Andreas Kling.
3155
3156         [Qt] tst_QWebFrame::overloadedSlots() fails
3157         https://bugs.webkit.org/show_bug.cgi?id=37319
3158
3159         Since the implicit conversion was removed, change support functions of DRT to
3160         expect a QVariantMap instead of a QWebElement. This matches the exposed function
3161         in the controller, which takes 'document' and not 'document.documentElement'.
3162
3163         And now that Element -> QWebElement is a perfect match, we must use QWebElement
3164         instead of QVariantMap, like in plainText().
3165
3166         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3167         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3168         (DumpRenderTreeSupportQt::plainText): Fix to use QWebElement instead of
3169         QVariantMap when getting the startContainer. Also use QVariantMap directly,
3170         bridge will do conversion for us now.
3171
3172         (getCoreDocumentFromVariantMap): Extracts the WebCore::Document* from the
3173         QVariantMap that Qt bridge gives us when 'document' is passed from JS.
3174
3175         (DumpRenderTreeSupportQt::nodesFromRect): Use helper function.
3176
3177         * tests/qwebframe/tst_qwebframe.cpp: Splitted the test domCycles() into two
3178         different tests. In practice, the original test just checked whether we could
3179         create a QVariantMap representing 'document' without infinite looping due to
3180         cycles in the DOM. This was more evident before since we haven't a conversion
3181         from JSElement to QWebElement, but from JSElement to QVariantMap.
3182
3183         (tst_QWebFrame::documentHasDocumentElement): Evaluates 'document' and extracts
3184         'documentElement' from it. Compares to QWebFrame::documentElement().
3185
3186         (tst_QWebFrame::documentAllHasDocumentElement): Look inside 'document.all' for
3187         the documentElement.
3188
3189         (tst_QWebFrame::overloadedSlots): Remove expected failure and fix wrong comment.
3190
3191 2011-06-14  Andreas Kling  <kling@webkit.org>
3192
3193         Reviewed by Benjamin Poulain.
3194
3195         [Qt] Don't include convenience "QWebFoo" headers in WebKit code.
3196         https://bugs.webkit.org/show_bug.cgi?id=62632
3197
3198         * WebCoreSupport/FrameNetworkingContextQt.cpp:
3199
3200 2011-06-12  Adam Barth  <abarth@webkit.org>
3201
3202         Reviewed by Alexey Proskuryakov.
3203
3204         Rename FrameLoaderClient::interruptForPolicyChangeError to use the past tense
3205         https://bugs.webkit.org/show_bug.cgi?id=62516
3206
3207         * WebCoreSupport/FrameLoaderClientQt.cpp:
3208         (WebCore::FrameLoaderClientQt::interruptedForPolicyChangeError):
3209         * WebCoreSupport/FrameLoaderClientQt.h:
3210
3211 2011-06-12  Adam Barth  <abarth@webkit.org>
3212
3213         Attempt to fix Qt build.
3214
3215         * WebCoreSupport/FrameLoaderClientQt.cpp:
3216         (drtPrintFrameUserGestureStatus):
3217
3218 2011-06-12  Adam Barth  <abarth@webkit.org>
3219
3220         Reviewed by Eric Seidel.
3221
3222         Remove FrameLoader::isProcessingUserGesture
3223         https://bugs.webkit.org/show_bug.cgi?id=62519
3224
3225         * WebCoreSupport/FrameLoaderClientQt.cpp:
3226         (drtPrintFrameUserGestureStatus):
3227
3228 2011-06-10  Andreas Kling  <kling@webkit.org>
3229
3230         Reviewed by Benjamin Poulain.
3231
3232         [Qt] Fix 'headers' autotest when building inside Qt.
3233         https://bugs.webkit.org/show_bug.cgi?id=62449
3234
3235         * Api/qwebkitplatformplugin.h:
3236
3237 2011-06-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3238
3239         Reviewed by Kenneth Rohde Christiansen.
3240
3241         [Qt] Keep ORIENTATION_EVENTS independent from DEVICE_ORIENTATION
3242         https://bugs.webkit.org/show_bug.cgi?id=62420
3243
3244         ORIENTATION_EVENTS and DEVICE_ORIENTATION features are very similar
3245         but they meant to be independent.
3246
3247         * Api/qwebframe.cpp:
3248         (QWebFramePrivate::_q_orientationChanged):
3249         (QWebFrame::QWebFrame):
3250         * Api/qwebframe_p.h:
3251
3252 2011-06-09  Andras Becsi  <abecsi@webkit.org>
3253
3254         Reviewed by Andreas Kling.
3255
3256         [Qt] Fix the in-tree build on Linux
3257         https://bugs.webkit.org/show_bug.cgi?id=62378
3258
3259         In case of an in-tree build qmake generates defect prl dependencies for
3260         the QtWebKit library, because the inclusion of qtbase.pri adds explicitlib to CONFIG.
3261
3262         * QtWebKit.pro: Remove explicitlib and staticlib from CONFIG.
3263
3264 2011-06-09  Robert Hogan  <robert@webkit.org>
3265
3266         Reviewed by Andreas Kling.
3267
3268         Teach Qt about window.internals
3269         https://bugs.webkit.org/show_bug.cgi?id=61074
3270
3271         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3272         (DumpRenderTreeSupportQt::injectInternalsObject):
3273         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3274
3275 2011-06-08  Andreas Kling  <kling@webkit.org>
3276
3277         Reviewed by Benjamin Poulain.
3278
3279         [Qt] FrameLoaderClient: Check Vector::find() return value for WTF::notFound.
3280         https://bugs.webkit.org/show_bug.cgi?id=62274
3281
3282         Vector::find() returns size_t (which is unsigned), so we should check
3283         for WTF::notFound instead of -1.
3284
3285         * WebCoreSupport/FrameLoaderClientQt.cpp:
3286         (WebCore::FrameLoaderClientQt::createPlugin):
3287
3288 2011-06-07  Noam Rosenthal  <noam.rosenthal@nokia.com>
3289
3290         Reviewed by Andreas Kling.
3291
3292         [Texmap][Qt] Enable TextureMapper by default
3293         https://bugs.webkit.org/show_bug.cgi?id=61740
3294
3295         Enable TextureMapper on Windows+Symbian, disabling the direct OpenGL path. This would mean that
3296         for now QtWebKit on Windows/Symbian would use the Qt backend for TextureMapper.
3297
3298         * WebCoreSupport/PageClientQt.cpp:
3299         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
3300
3301 2011-06-07  Aravind Akella  <aravind.akella@nokia.com>
3302
3303         Reviewed by Laszlo Gombos.
3304
3305         [Qt][Symbian] API test failure qdeclarativewebview
3306         https://bugs.webkit.org/show_bug.cgi?id=59481
3307
3308         QML files cannot be loaded on Symbian due to difference 
3309         in capabilities between qmlwebkitplugin.dll and Qtwebkit.dll.  
3310         A PlatSec error that Qtwebkit.dll has "DRM AllFiles" capabilities 
3311         missing is observed when dynamically loading the QML plugin. 
3312
3313         * declarative/declarative.pro: Match capabilities in QtWebKit.pro.
3314         * symbian/platformplugin/platformplugin.pro: Match capabilities with the other 2 DLLs. 
3315         Also remove TARGET.VID from platformplugin, as it's not used in any other Qt WebKit DLL,
3316         and causes build warnings about undefined VENDOR_VID. 
3317         * tests/tests.pri: Add WriteDeviceData capability for API tests. 
3318
3319 2011-06-04  Robert Hogan  <robert@webkit.org>
3320
3321         Reviewed by Andreas Kling.
3322
3323         [Qt] Fix and unskip acid2
3324         https://bugs.webkit.org/show_bug.cgi?id=62089
3325
3326         shouldFallBack() tells the DOM if it should attempt to render
3327         the next nested <object> if its parent fails to load.
3328
3329         This fix is only required for the fast/css version of the ACID2
3330         test, which loads a non-existent file:// url. The HTTP version of the
3331         test already passes because the loader will render fallback content
3332         on a failed HTTP load without delegating the decision to the client
3333         ( see MainResourceLoader::continueAfterContentPolicy).
3334
3335         Some ports also check for WebKitErrorPluginWillHandleLoad when deciding
3336         what to return. This error isn't currently set by Qt so we don't check
3337         it. (Other ports set it when the erring document is a MediaDocument, maybe
3338         we should do that too at some point).
3339
3340         * WebCoreSupport/FrameLoaderClientQt.cpp:
3341         (WebCore::FrameLoaderClientQt::shouldFallBack):
3342
3343 2011-06-03  Rafael Brandao  <rafael.lobo@openbossa.org>
3344
3345         Reviewed by Andreas Kling.
3346
3347         [Qt] It made two Qt API tests fail
3348         https://bugs.webkit.org/show_bug.cgi?id=58847
3349
3350         Modified failing test's base url so it could get a valid origin
3351         and make use of local storage. Also added another test that checks
3352         local storage visibility in both scenarios.
3353
3354         * tests/qwebpage/tst_qwebpage.cpp:
3355         (tst_QWebPage::testOptionalJSObjects):
3356         (checkLocalStorageVisibility):
3357         (tst_QWebPage::testLocalStorageVisibility):
3358
3359 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
3360
3361         Reviewed by Andreas Kling.
3362
3363         [Qt] Warning fixes on comparisons between a signed and an unsigned.
3364
3365         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3366         (DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo):
3367         (DumpRenderTreeSupportQt::nodesFromRect):
3368
3369 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
3370
3371         Reviewed by Andreas Kling.
3372
3373         To support building namespaced Qt, we require that forward-declarations
3374         of Qt classes be wrapped in QT_BEGIN_NAMESPACE and QT_END_NAMESPACE.
3375
3376         * WebCoreSupport/FrameLoaderClientQt.h:
3377
3378 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
3379
3380         Unreviewed build fix after r87902.
3381
3382         To support building namespaced Qt, we require that forward-declarations
3383         of Qt classes be wrapped in QT_BEGIN_NAMESPACE and QT_END_NAMESPACE but
3384         only on classes inside Qt.
3385         
3386         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3387
3388 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
3389
3390         Reviewed by Benjamin Poulain.
3391
3392         Some warning fixes. Values in switch not handled, and
3393         a comparison between a signed and an unsigned.
3394
3395         * Api/qwebpage.cpp:
3396         (QWebPagePrivate::inputMethodEvent):
3397         (QWebPagePrivate::dynamicPropertyChangeEvent):
3398         (QWebPage::action):
3399
3400 2011-06-02  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3401
3402         Reviewed by Andreas Kling.
3403
3404         [Qt] Fix enum order in qwebpage.h public API header
3405         https://bugs.webkit.org/show_bug.cgi?id=61959
3406
3407         Since qwebpage.h is a public header, we can't change the values of
3408         the enumerations. This patch moves the new enumeration to the end
3409         of the list. As a bonus, adds a missing entry in
3410         editorCommandWebActions table.
3411
3412         * Api/qwebpage.cpp:
3413         * Api/qwebpage.h:
3414
3415 2011-06-02  Andreas Kling  <kling@webkit.org>
3416
3417         Rubber-stamped by Simon Hausmann.
3418
3419         Remove Qt's precompiled header hack as it was broken, and was not even
3420         used unless building WebKit inside a Qt tree.
3421
3422         * WebKit_pch.h: Removed.
3423
3424 2011-06-02  Andreas Kling  <kling@webkit.org>
3425
3426         Unreviewed build fix.
3427
3428         To support building namespaced Qt, we require that forward-declarations
3429         of Qt classes be wrapped in QT_BEGIN_NAMESPACE and QT_END_NAMESPACE.
3430
3431         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3432
3433 2011-06-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3434
3435         Reviewed by Kenneth Rohde Christiansen.
3436
3437         [Qt]Fix tst_QWebFrame::setUrlToInvalid() autotest after r84762
3438         https://bugs.webkit.org/show_bug.cgi?id=59345
3439
3440         KURL and QUrl disagree whether certain URLs are valid or not. The regression here
3441         was caused by the fact that now KURL accepts "http:/example.com" (note only one
3442         slash) and our test case used a strange edge case that's transformed into a
3443         "one-slash" URL that now KURL can handle.
3444
3445         QtWebKit approach in this case is to do a best effort and accept the QUrl if KURL
3446         can understand it. So I've updated the test to use a more meaningful example and
3447         show that an invalid URL gets converted to a valid URL if possible.
3448
3449         * tests/qwebframe/tst_qwebframe.cpp:
3450         (tst_QWebFrame::setUrlToInvalid):
3451
3452 2011-06-01  Andreas Kling  <kling@webkit.org>
3453
3454         Reviewed by Benjamin Poulain.
3455
3456         REGRESSION: [Qt] QNetworkReply delivered by the unsupportedContent() signal does not contain downloaded data
3457         https://bugs.webkit.org/show_bug.cgi?id=49650
3458
3459         Defer emission of QWebPage::unsupportedContent() until we're back in the event loop.
3460         This lets the QNAM backend finish with the reply without handing over ownership to the user code.
3461
3462         No new tests since this doesn't fail for qrc:// or file:// URLs and our tests can't depend on http:// URLs.
3463
3464         To correctly solve this issue, we need changes to Qt, tracked here:
3465         http://bugreports.qt.nokia.com/browse/QTBUG-18718
3466
3467         * WebCoreSupport/FrameLoaderClientQt.cpp:
3468         (WebCore::FrameLoaderClientQt::setFrame):
3469         (WebCore::FrameLoaderClientQt::download):
3470         * WebCoreSupport/FrameLoaderClientQt.h:
3471
3472 2011-06-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3473
3474         Reviewed by Tor Arne Vestbø.
3475
3476         [Qt] Rewrite tst_QDeclarativeWebView::multipleWindows() to not depend on Grid internals
3477         https://bugs.webkit.org/show_bug.cgi?id=61739
3478
3479         The skipped test was imported from Qt source repository, and used private headers
3480         to peek in the QML Grid element. This patch changes the QML used to expose the
3481         information we want to test: number of pages opened and the first page opened.
3482
3483         * tests/qdeclarativewebview/resources/newwindows.html:
3484         Added <body> tags. We have no reason to not use them in the test.
3485
3486         * tests/qdeclarativewebview/resources/newwindows.qml:
3487         Moved the timer out of the page component, used anchors for setting webview size,
3488         changed the way we count pages opened. Also changed coding style a bit.
3489
3490         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
3491         (tst_QDeclarativeWebView::multipleWindows):
3492         We now look for properties with the information we want in the rootItem: pagesOpened and
3493         firstPageOpened.
3494
3495 2011-05-31  Rafael Brandao  <rafael.lobo@openbossa.org>
3496
3497         Reviewed by Andreas Kling.
3498
3499         [Qt] tst_QWebFrame::render() failing
3500         https://bugs.webkit.org/show_bug.cgi?id=60893
3501         
3502         The test was expecting the frame contents to be already loaded
3503         before rendering it into a QPicture. Renamed the test to fit
3504         its real purpose more accordingly.
3505
3506         * tests/qwebframe/tst_qwebframe.cpp:
3507         (tst_QWebFrame::renderGeometry):
3508
3509 2011-05-30  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3510
3511         Reviewed by Andreas Kling.
3512
3513         [Qt] Fix unnecessary wait in API autotest tst_QWebFrame::scrollbarsOff
3514         https://bugs.webkit.org/show_bug.cgi?id=61711
3515
3516         The loadFinished() signal was emitted directly inside the call for setHtml, so
3517         the test was waiting the loadFinished() signal with a big timeout. Change this by
3518         a very small timeout and a verification with signal spy.
3519
3520         In practice, setHtml() will either directly call loadFinished() or queue it to
3521         the next event loop run, and test will work for both situations.
3522
3523         * tests/qwebframe/tst_qwebframe.cpp:
3524         (tst_QWebFrame::scrollbarsOff):
3525
3526 2011-05-30  Noam Rosenthal  <noam.rosenthal@nokia.com>
3527
3528         Reviewed by Kenneth Rohde Christiansen.
3529
3530         [Texmap][Qt] Disable accelerated plugins/media in until they're working.
3531         https://bugs.webkit.org/show_bug.cgi?id=61687
3532
3533         Turn off accelerated compositing for media and plugins when in texture-mapper.
3534
3535         * Api/qwebsettings.cpp:
3536         (QWebSettingsPrivate::apply):
3537
3538 2011-05-28  Adam Barth  <abarth@webkit.org>
3539
3540         Reviewed by Alexey Proskuryakov.
3541
3542         Audit all uses of KURL::prettyURL
3543         https://bugs.webkit.org/show_bug.cgi?id=61201
3544
3545         Update callers of prettyURL to just call string.
3546
3547         * WebCoreSupport/ChromeClientQt.cpp:
3548         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3549         * WebCoreSupport/FrameLoaderClientQt.cpp:
3550         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
3551         (WebCore::FrameLoaderClientQt::cancelledError):
3552         (WebCore::FrameLoaderClientQt::blockedError):
3553         (WebCore::FrameLoaderClientQt::objectContentType):
3554         (WebCore::FrameLoaderClientQt::createPlugin):