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