2010-05-02 Benjamin Poulain <benjamin.poulain@nokia.com>
[WebKit-https.git] / WebKit / qt / ChangeLog
1 2010-05-02  Benjamin Poulain  <benjamin.poulain@nokia.com>
2
3         Reviewed by Kenneth Rohde Christiansen.
4
5         [Qt] QWebPage::userAgentForUrl is terrible API
6         https://bugs.webkit.org/show_bug.cgi?id=33875
7
8         Simplify the creation of the user agent string to avoid some
9         overhead for each loaded url.
10
11         The static part of the user agent is cached so it only have
12         to be made once.
13         This creation has been made in order to simplify the code.
14
15         The two variable: application name and current language are
16         set dynamically when needed.
17         The default locale is non longer created if the widget locale
18         is used.
19
20         * Api/qwebpage.cpp:
21         (QWebPage::userAgentForUrl):
22         * tests/qwebpage/tst_qwebpage.cpp:
23         (tst_QWebPage::userAgentApplicationName):
24         (tst_QWebPage::userAgentLocaleChange):
25
26 2010-05-02  Noam Rosenthal  <noam.rosenthal@nokia.com>
27
28         Reviewed by Kenneth Rohde Christiansen.
29
30         [Qt] GraphicsLayer: animation incorrect when scrolling
31         https://bugs.webkit.org/show_bug.cgi?id=38371
32
33         This is a regression introduced with the invalidate-on-scroll code path, that uses QGraphicsWebViewPrivate::update()
34         instead of QGraphicsWebViewPrivate::scroll(). The patch makes sure that the scrolling position is correct on
35         each content update - this shouldn't have a performance impact - the only overhead is an additional value-test on each update.
36
37         Tested by http://www.the-art-of-web.com/css/css-animation/
38
39         * Api/qgraphicswebview.cpp:
40         (QGraphicsWebViewPrivate::update):
41
42 2010-05-01  Robert Hogan  <robert@webkit.org>
43
44         Reviewed by Simon Hausmann.
45
46         [Qt] Add smart paste support
47
48         https://bugs.webkit.org/show_bug.cgi?id=38136
49
50         * Api/qwebpage.cpp:
51         (QWebPagePrivate::QWebPagePrivate): Enable smart paste support by default.
52
53 2010-04-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
54
55         Reviewed by Kenneth Rohde Christiansen.
56
57         [Qt] Reinstate qt_drt_ symbol exports as of QtWebKit 4.6 release
58         https://bugs.webkit.org/show_bug.cgi?id=38304
59
60         This change provides backward compatibility with some previously
61         exported private symbols. No new functionality introduced.
62
63         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
64         (qt_resumeActiveDOMObjects):
65         (qt_suspendActiveDOMObjects):
66         (qt_drt_clearFrameName):
67         (qt_drt_garbageCollector_collect):
68         (qt_drt_garbageCollector_collectOnAlternateThread):
69         (qt_drt_javaScriptObjectsCount):
70         (qt_drt_numberOfActiveAnimations):
71         (qt_drt_overwritePluginDirectories):
72         (qt_drt_pauseAnimation):
73         (qt_drt_pauseTransitionOfProperty):
74         (qt_drt_resetOriginAccessWhiteLists):
75         (qt_drt_run):
76         (qt_drt_setJavaScriptProfilingEnabled):
77         (qt_drt_whiteListAccessFromOrigin):
78         (qt_webpage_groupName):
79         (qt_webpage_setGroupName):
80
81 2010-04-29  Benjamin Poulain  <benjamin.poulain@nokia.com>
82
83         Reviewed by Kenneth Rohde Christiansen.
84
85         Get rid of forceLayout() on FrameView
86         https://bugs.webkit.org/show_bug.cgi?id=38199
87
88         The function FrameView::forceLayout() is missleading
89         because it does not actually force the layout, the call is
90         equivalent to layout().
91
92         This patch replace the call to forceLayout() by layout() in Qt
93         to avoid the misunderstanding/improve readability.
94
95         * Api/qwebpage.cpp:
96         (QWebPagePrivate::dynamicPropertyChangeEvent):
97         (QWebPage::setPreferredContentsSize):
98         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
99         (DumpRenderTreeSupportQt::setMediaType):
100         * WebCoreSupport/FrameLoaderClientQt.cpp:
101         (WebCore::FrameLoaderClientQt::forceLayout):
102
103 2010-04-29  Andreas Kling  <andreas.kling@nokia.com>
104
105         Reviewed by Simon Hausmann.
106
107         Remove unnecessary call to FrameView::forceLayout() in setViewportSize()
108         This prevents a double relayout on resize.
109
110         https://bugs.webkit.org/show_bug.cgi?id=38179
111
112         Thanks to Nate Whetsell <nathan.whetsell@gmail.com> for spotting this.
113
114         * Api/qwebpage.cpp:
115         (QWebPage::setViewportSize):
116
117 2010-04-29  Simon Hausmann  <simon.hausmann@nokia.com>
118
119         Reviewed by Tor Arne Vestbø.
120
121         [Qt] REGRESSION(r57982): tst_qwebpage::showModalDialog() crashes
122         https://bugs.webkit.org/show_bug.cgi?id=38314
123
124         Make sure that there's always a main frame when returning from createWindow()
125         to the caller in WebCore.
126
127         * WebCoreSupport/ChromeClientQt.cpp:
128         (WebCore::ChromeClientQt::createWindow):
129
130 2010-04-28  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
131
132         Unreviewed, Qt build fix.
133
134         [Qt] Guard the body of the function instead of the function for
135         exported functions.
136
137         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
138         (DumpRenderTreeSupportQt::webInspectorExecuteScript):
139         (DumpRenderTreeSupportQt::webInspectorClose):
140         (DumpRenderTreeSupportQt::webInspectorShow):
141         (DumpRenderTreeSupportQt::setTimelineProfilingEnabled):
142
143 2010-04-28  Antonio Gomes  <tonikitoo@webkit.org>, Yi Shen <yi.4.shen@nokia.com>
144
145         Reviewed by Simon Hausmann.
146
147         [Qt] tst_QWebHistoryInterface::visitedLinks() fails
148         https://bugs.webkit.org/show_bug.cgi?id=37323
149
150         Patch fixes styleProperty method of QWebElement to make use of
151         CSSComputedStyleDeclaration::computedStyle 'allowVisitedStyle' parameter
152         and the corresponding failing QWebHistoryInterface::visitedLinks method.
153
154         * Api/qwebelement.cpp:
155         (QWebElement::styleProperty):
156         * tests/qwebhistoryinterface/tst_qwebhistoryinterface.cpp:
157         (tst_QWebHistoryInterface::visitedLinks):
158
159 2010-04-28  Luiz Agostini  <luiz.agostini@openbossa.org>
160
161         Reviewed by Kenneth Rohde Christiansen.
162
163         [Qt] QWebPage viewMode property
164         https://bugs.webkit.org/show_bug.cgi?id=38119
165
166         Replacing method qt_wrt_setViewMode by wrt_viewMode property.
167
168         * Api/qwebpage.cpp:
169         (QWebPagePrivate::dynamicPropertyChangeEvent):
170         (QWebPage::event):
171         * Api/qwebpage_p.h:
172         * tests/qwebpage/tst_qwebpage.cpp:
173         (tst_QWebPage::wrt_viewModes):
174
175 2010-04-28  Janne Koskinen  <janne.p.koskinen@digia.com>
176
177         Reviewed by Simon Hausmann <simon.hausmann@nokia.com>
178
179         [Qt] WINS DEF file freeze
180
181         Updated WINSCW def file with added and removed symbols.
182
183         * symbian/bwins/QtWebKitu.def:
184
185 2010-04-25  Sam Weinig  <sam@webkit.org>
186
187         Reviewed by Maciej Stachowiak.
188
189         Fix for https://bugs.webkit.org/show_bug.cgi?id=38097
190         Disentangle initializing the main thread from initializing threading
191
192         * Api/qwebpage.cpp:
193         (QWebPagePrivate::QWebPagePrivate): Add call to initializeMainThread.
194
195 2010-04-26  Thiago Macieira  <thiago.macieira@nokia.com>
196
197         Reviewed by Simon Hausmann.
198
199         [Qt] Fix the include header <qstring.h> -> <QtCore/qstring.h>
200
201         The module/header.h style inclusion removes the need to have -I$QTDIR/include/depending-module
202         in the include search path for the application.
203
204         * Api/qwebkitversion.h:
205
206 2010-04-26  Bruno Schmidt  <bruno.schmidt@gmail.com>
207
208         Reviewed by Kenneth Rohde Christiansen.
209
210         [Qt] Exposing an QVariantMap containing QObjectStar to Javascript
211         causes Segmentation Fault
212         https://bugs.webkit.org/show_bug.cgi?id=34729
213
214         If an QVariantMap containing QObjectStar is added to the to QtWebkit
215         Javascript, it's use causes Segmentation Fault.
216         It happens because, in the case QMetaType::QVariantMap, the "root"
217         object that is inside of a PassRefPtr is passed recursively inside a
218         loop to recover the content of the map, but the PassRefPtr semantics
219         prohibit its use inside a loop, so the "root" object mus be passed
220         using the method "PassRefPtr::get" in order to keep the current
221         reference.
222
223         * tests/qwebframe/tst_qwebframe.cpp:
224         (MyQObject::MyQObject): new property variantMapProperty
225         (MyQObject::variantMapProperty): read variantMapProperty
226         (MyQObject::setVariantMapProperty): write variantMapProperty
227
228 2010-04-25  Shinichiro Hamaji  <hamaji@chromium.org>
229
230         Reviewed by Simon Hausmann.
231
232         [Qt] layoutTestController.counterValueForElementById crashes for a nonexistent ID
233         https://bugs.webkit.org/show_bug.cgi?id=34573
234
235         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
236         (DumpRenderTreeSupportQt::counterValueForElementById):
237
238 2010-04-20  Robert Hogan  <robert@webkit.org>
239
240         Reviewed by Simon Hausmann.
241
242         [Qt] Add more support for textInputController
243
244         Add support for selectedRange(), setMarkedText(), insertText(),
245         and firstRectForCharacterRange().
246
247         https://bugs.webkit.org/show_bug.cgi?id=35702
248
249         * Api/qwebpage.cpp:
250         (QWebPagePrivate::inputMethodEvent):
251         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
252         (DumpRenderTreeSupportQt::selectedRange):
253         (DumpRenderTreeSupportQt::firstRectForCharacterRange):
254         * WebCoreSupport/DumpRenderTreeSupportQt.h:
255         * tests/qwebpage/tst_qwebpage.cpp:
256         (tst_QWebPage::inputMethods):
257
258 2010-04-22  John Pavan  <john.pavan@nokia.com>
259
260         Reviewed by Laszlo Gombos.
261
262         [Qt] inputMethodQuery returns coordinates in web page coordinates rather than in item coordinates.
263         https://bugs.webkit.org/show_bug.cgi?id=37163
264
265
266         QWebPage::inputMethodQuery is modified so that it
267         returns coordinates in the widget's coordinate system.
268         Tests are added for QGraphicsWebView and QWebView
269         to verify that this behavior is correct after the webpage
270         has been scrolled.
271
272         * Api/qwebpage.cpp:
273         (QWebPage::inputMethodQuery):
274         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
275         (tst_QGraphicsWebView::microFocusCoordinates):
276         * tests/qwebview/tst_qwebview.cpp:
277         (tst_QWebView::microFocusCoordinates):
278
279 2010-04-22  Robert Hogan  <robert@webkit.org>
280
281         Reviewed by Simon Hausmann.
282
283         [Qt] Fix createPlugin() tests in tst_qwebpage to match behaviour of Qt plugins
284              when PluginsEnabled is false.
285
286         tst_qwebpage should have been updated as part of r56662.
287         (See https://bugs.webkit.org/show_bug.cgi?id=32196)
288
289         Updated documentation of QWebPage::createPlugin and QWebSetting::pluginsEnabled
290             to match the new behaviour.
291
292         * Api/qwebpage.cpp: Update docs.
293         * Api/qwebsettings.cpp: Update docs.
294         * tests/qwebpage/tst_qwebpage.cpp:
295         (createPlugin):
296         (tst_QWebPage::createPluginWithPluginsEnabled):
297         (tst_QWebPage::createPluginWithPluginsDisabled):
298
299 2010-04-22  Dave Moore  <davemoore@chromium.org>
300
301         Reviewed by Dimitri Glazkov.
302
303         Added notification when the favicons for a page are changed
304         from a script.
305         The Document object will notify the frame loader, which will
306         notify the client. Implementations of FrameLoaderClient will
307         have to add one method; dispatchDidChangeIcons().
308
309         https://bugs.webkit.org/show_bug.cgi?id=33812
310
311         * WebCoreSupport/FrameLoaderClientQt.cpp:
312         (WebCore::FrameLoaderClientQt::dispatchDidChangeIcons):
313         (WebCore::FrameLoaderClientQt::didChangeTitle):
314         * WebCoreSupport/FrameLoaderClientQt.h:
315
316 2010-04-22  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
317
318         Reviewed by Kenneth Rohde Christiansen.
319
320         [Qt] Remove translatable strings from the hybridPixmap test.
321         https://bugs.webkit.org/show_bug.cgi?id=37867
322
323         * tests/hybridPixmap/widget.ui:
324
325 2010-04-22  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
326
327         Reviewed by Kenneth Rohde Christiansen.
328
329         [Qt] Fix autotests .qrc file paths when built in Qt.
330
331         Compiling auto-tests from qt/tests/auto/qweb* produced
332         failing tests since these .pro files include the
333         ones in WebKit/qt/tests and the .qrc file was
334         not added to RESOURCES
335
336         * tests/benchmarks/loading/loading.pro:
337         * tests/benchmarks/painting/painting.pro:
338         * tests/qgraphicswebview/qgraphicswebview.pro:
339         * tests/qwebelement/qwebelement.pro:
340         * tests/qwebframe/qwebframe.pro:
341         * tests/qwebhistory/qwebhistory.pro:
342         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
343         * tests/qwebinspector/qwebinspector.pro:
344         * tests/qwebpage/qwebpage.pro:
345         * tests/qwebplugindatabase/qwebplugindatabase.pro:
346         * tests/qwebview/qwebview.pro:
347         * tests/tests.pri:
348
349 2010-04-22  Adam Barth  <abarth@webkit.org>
350
351         Unreviewed, rolling out r58069.
352         http://trac.webkit.org/changeset/58069
353         https://bugs.webkit.org/show_bug.cgi?id=27751
354
355         Broke compile on Windows.
356
357         * Api/qwebsettings.cpp:
358         (QWebSettingsPrivate::apply):
359         * Api/qwebsettings.h:
360
361 2010-04-22  Abhishek Arya  <inferno@chromium.org>
362
363         Reviewed by Adam Barth.
364
365         Add support for controlling clipboard access from javascript.
366         Clipboard access from javascript is disabled by default.
367         https://bugs.webkit.org/show_bug.cgi?id=27751
368
369         * Api/qwebsettings.cpp:
370         (QWebSettingsPrivate::apply):
371         * Api/qwebsettings.h:
372
373 2010-04-21  Jesus Sanchez-Palencia  <jesus@webkit.org>
374
375         Reviewed by Kenneth Rohde Christiansen.
376
377         Add PageClientQWidget implementation based on the old
378         QWebPageWidgetClient to PageClientQt files. Also fix
379         QWebPage::setView() to use PageClientQWidget.
380
381         [Qt] PageClientQt specific implementation for QWidget
382         https://bugs.webkit.org/show_bug.cgi?id=37858
383
384         * Api/qwebpage.cpp:
385         (QWebPage::setView):
386         * WebCoreSupport/PageClientQt.cpp: Added.
387         (WebCore::PageClientQWidget::scroll):
388         (WebCore::PageClientQWidget::update):
389         (WebCore::PageClientQWidget::setInputMethodEnabled):
390         (WebCore::PageClientQWidget::inputMethodEnabled):
391         (WebCore::PageClientQWidget::setInputMethodHint):
392         (WebCore::PageClientQWidget::cursor):
393         (WebCore::PageClientQWidget::updateCursor):
394         (WebCore::PageClientQWidget::palette):
395         (WebCore::PageClientQWidget::screenNumber):
396         (WebCore::PageClientQWidget::ownerWidget):
397         (WebCore::PageClientQWidget::geometryRelativeToOwnerWidget):
398         (WebCore::PageClientQWidget::pluginParent):
399         (WebCore::PageClientQWidget::style):
400         * WebCoreSupport/PageClientQt.h: Added.
401         (WebCore::PageClientQWidget::PageClientQWidget):
402         (WebCore::PageClientQWidget::isQWidgetClient):
403
404 2010-04-21  Jakub Wieczorek  <jwieczorek@webkit.org>
405
406         Reviewed by Darin Adler.
407
408         List item markers are not always updated after changes in the DOM.
409         https://bugs.webkit.org/show_bug.cgi?id=37060
410
411         * Api/qwebelement.h: Make DumpRenderTreeSupportQt a friend class.
412         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
413         (DumpRenderTreeSupportQt::markerTextForListItem): Add a private API to get the marker text for a list item.
414
415 2010-04-21  Yi Shen  <yi.4.shen@nokia.com>
416
417         Reviewed by Simon Hausmann.
418
419         [Qt] Check the request empty or not in ChromeClientQt::createWindow()
420         https://bugs.webkit.org/show_bug.cgi?id=37821
421
422         * WebCoreSupport/ChromeClientQt.cpp:
423         (WebCore::ChromeClientQt::createWindow):
424
425 2010-04-21  Shu Chang  <chang.shu@nokia.com>
426
427         Reviewed by Simon Hausmann.
428
429         [Qt] Fix Symbian build where QT_NO_SYSTEMTRAYICON is defined.
430         https://bugs.webkit.org/show_bug.cgi?id=37442
431
432         * WebCoreSupport/NotificationPresenterClientQt.cpp:
433         (NotificationPresenterClientQt::show):
434         * WebCoreSupport/NotificationPresenterClientQt.h:
435
436 2010-04-21  Eric Seidel  <eric@webkit.org>
437
438         Unreviewed, rolling out r57963.
439         http://trac.webkit.org/changeset/57963
440         https://bugs.webkit.org/show_bug.cgi?id=37759
441
442         Three tests started crashing on the Qt bot.
443
444         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
445         (DumpRenderTreeSupportQt::isCommandEnabled):
446         * WebCoreSupport/DumpRenderTreeSupportQt.h:
447
448 2010-04-21  Yi Shen  <yi.4.shen@nokia.com>
449
450         Reviewed by Simon Hausmann.
451
452         [Qt] Add LayoutTestController interface: computedStyleIncludingVisitedInfo
453         https://bugs.webkit.org/show_bug.cgi?id=37759
454
455         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
456         (DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo):
457         * WebCoreSupport/DumpRenderTreeSupportQt.h:
458
459 2010-04-21  No'am Rosenthal  <noam.rosenthal@nokia.com>
460
461         Reviewed by Simon Fraser.
462
463         [Qt] Fix or remove the runtime flag for accelerated compositing.
464         https://bugs.webkit.org/show_bug.cgi?id=37313
465
466         This lets the QWebPageClient "veto" the settings value for accelerated compositing.
467         In this case we allow accelerated compositing only on QGraphicsWebView.
468
469         * Api/qgraphicswebview.cpp:
470         (QGraphicsWebViewPrivate::allowsAcceleratedCompositing):
471         * WebCoreSupport/ChromeClientQt.cpp:
472         (WebCore::ChromeClientQt::allowsAcceleratedCompositing):
473         * WebCoreSupport/ChromeClientQt.h:
474
475 2010-04-20  Adam Barth  <abarth@webkit.org>
476
477         Unreviewed build fix.
478
479         * Api/qwebframe.cpp:
480         (QWebFrame::setUrl):
481
482 2010-04-20  Adam Barth  <abarth@webkit.org>
483
484         Reviewed by Eric Seidel.
485
486         Factor DocumentWriter out of FrameLoader
487         https://bugs.webkit.org/show_bug.cgi?id=37175
488
489         Update these callsites because the method moved to DocumentWriter.
490
491         * WebCoreSupport/FrameLoaderClientQt.cpp:
492         (WebCore::FrameLoaderClientQt::finishedLoading):
493         (WebCore::FrameLoaderClientQt::setMainDocumentError):
494         (WebCore::FrameLoaderClientQt::committedLoad):
495         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
496
497 2010-04-20  Kent Tamura  <tkent@chromium.org>
498
499         Reviewed by Darin Adler.
500
501         Change a parameter type of chooseIconForFiles()
502         https://bugs.webkit.org/show_bug.cgi?id=37504
503
504         * WebCoreSupport/ChromeClientQt.cpp:
505         (WebCore::ChromeClientQt::chooseIconForFiles):
506         * WebCoreSupport/ChromeClientQt.h:
507
508 2010-04-19  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
509
510         Reviewed by Simon Hausmann.
511
512         [Qt] Fix compilation against namespaced Qt.
513
514         * WebCoreSupport/ChromeClientQt.h:
515         * WebCoreSupport/QtFallbackWebPopup.h:
516
517 2010-04-18  Robert Hogan  <robert@webkit.org>
518
519         Reviewed by Simon Hausmann.
520
521         [Qt] Add support for LayoutTestController commands:
522                    setSmartInsertDeleteEnabled
523                    setSelectTrailingWhitespaceEnabled
524                    execCommand
525                    isCommandEnabled
526
527         https://bugs.webkit.org/show_bug.cgi?id=35844
528
529         * Api/qwebpage.cpp:
530         (QWebPagePrivate::QWebPagePrivate):
531         * Api/qwebpage_p.h:
532         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
533         (DumpRenderTreeSupportQt::setSmartInsertDeleteEnabled):
534         (DumpRenderTreeSupportQt::setSelectTrailingWhitespaceEnabled):
535         (DumpRenderTreeSupportQt::executeCoreCommandByName):
536         (DumpRenderTreeSupportQt::isCommandEnabled):
537         * WebCoreSupport/DumpRenderTreeSupportQt.h:
538         * WebCoreSupport/EditorClientQt.cpp:
539         (WebCore::EditorClientQt::smartInsertDeleteEnabled):
540         (WebCore::EditorClientQt::toggleSmartInsertDelete):
541         (WebCore::EditorClientQt::isSelectTrailingWhitespaceEnabled):
542         * WebCoreSupport/EditorClientQt.h:
543
544 2010-04-15  Kent Hansen  <kent.hansen@nokia.com>
545
546         Reviewed by Kenneth Rohde Christiansen.
547
548         [Qt] Mark QWebFrame::overloadedSlots autotest as expected failure
549
550         https://bugs.webkit.org/show_bug.cgi?id=37319
551
552         * tests/qwebframe/tst_qwebframe.cpp:
553
554 2010-04-09  Antonio Gomes  <tonikitoo@webkit.org>
555
556         Reviewed by Kenneth Christiansen and Tor Arne Vestbø.
557
558         REGRESSION(r56552): Broken scrollbars size
559         https://bugs.webkit.org/show_bug.cgi?id=36853
560
561         The regression was caused by r56552, which introduced a fix to bug
562         webkit.org/b/21300. The bug solved an issue with the resize handle on mac,
563         but did it in a way that affected all Qt platforms and thus broke the behavior
564         on non-mac platforms.
565
566         This patch makes the mac specific change ifdef'ed and only applied for the mac
567         platform.
568
569         * WebCoreSupport/ChromeClientQt.cpp:
570         (WebCore::ChromeClientQt::windowResizerRect):
571
572 2010-04-15  Bruno Schmidt  <bruno.schmidt@gmail.com>
573
574         Reviewed by Kenneth Rohde Christiansen.
575
576         [Qt] Null QObjects properties cause Segmentation Fault
577         https://bugs.webkit.org/show_bug.cgi?id=34730
578
579         QObjects exported to the QWebkit javascript with properties that are
580         a null "QObject*" cause Segmentation Fault.
581
582         If an QObject is added to the javascript context and it contains
583         properties of the type QObject* with NULL value, calling the property
584         causes Segmentation Fault.
585
586         Follow the tests for the corrections done over WebCore.
587
588         * tests/qwebframe/tst_qwebframe.cpp:
589         (MyQObject::MyQObject): init the field m_objectStar
590         (MyQObject::objectStarProperty): read the Object* prop
591         (MyQObject::setObjectStarProperty): write the Object* prop
592         (tst_QWebFrame::getSetStaticProperty): new tests for the new prop
593
594 2010-04-14  Luiz Agostini  <luiz.agostini@openbossa.org>
595
596         Reviewed by Kenneth Rohde Christiansen.
597
598         Changing view mode names due to specification changes
599         https://bugs.webkit.org/show_bug.cgi?id=37615
600
601         test: fast/media/media-feature-wgt-view-mode.html
602
603         specification: http://dev.w3.org/2006/waf/widgets-vmmf/
604
605         * WebCoreSupport/ChromeClientQt.cpp:
606         (WebCore::ChromeClientQt::isWindowed):
607         (WebCore::ChromeClientQt::isFullscreen):
608         (WebCore::ChromeClientQt::isMaximized):
609         (WebCore::ChromeClientQt::isMinimized):
610         * WebCoreSupport/ChromeClientQt.h:
611
612 2010-04-14  Luiz Agostini  <luiz.agostini@openbossa.org>
613
614         Reviewed by Simon Hausmann.
615
616         [Qt] Moving setViewMode from DumpRenderTreeSupportQt to qwebpage.cpp
617         https://bugs.webkit.org/show_bug.cgi?id=37622
618
619         Method qt_wrt_setViewMode was removed from qwebpage.cpp by mistake in r57433
620         (bug 35844). Moving it back.
621
622         * Api/qwebpage.cpp:
623         (qt_wrt_setViewMode):
624         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
625         (DumpRenderTreeSupportQt::setMediaType):
626         * WebCoreSupport/DumpRenderTreeSupportQt.h:
627
628 2010-04-14  Andreas Kling  <andreas.kling@nokia.com>
629
630         Reviewed by Kenneth Rohde Christiansen.
631
632         [Qt] Rendering artifacts on Qt plugins when scrolling the page
633         https://bugs.webkit.org/show_bug.cgi?id=37152
634
635         Because we no longer repaint the entire viewport on scroll,
636         we must trigger a repaint of QtPluginWidgets when their geometry changes.
637
638         * WebCoreSupport/FrameLoaderClientQt.cpp:
639
640 2010-04-14  Aaron Boodman  <aa@chromium.org>
641
642         Reviewed by David Levin.
643
644         Support relative URLs for notifications on Chromium. They weren't working previously because WebCore was inserting
645         the relative URL into a KURL instance, but when KURL is backed by GURL as it is on Chromium, relative URLs are
646         unsupported. Fixed by resolving the relative URL first.
647
648         https://bugs.webkit.org/show_bug.cgi?id=36623
649
650         Adding tests for this is difficult because we don't currently have DRT support for notifications on Mac, only Windows.
651
652         * WebCoreSupport/NotificationPresenterClientQt.cpp:
653         (NotificationPresenterClientQt::show): Return type of NotificationContents::iconURL() changed.
654
655 2010-04-13  Timothy Hatcher  <timothy@apple.com>
656
657         Rename SecurityOrigin::whiteListAccessFromOrigin to addOriginAccessWhitelistEntry.
658         And SecurityOrigin::resetOriginAccessWhiteLists to resetOriginAccessWhitelists.
659
660         SecurityOrigin needs a way to remove individual OriginAccessEntries
661         https://bugs.webkit.org/show_bug.cgi?id=37449
662
663         Reviewed by Dave Hyatt.
664
665         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
666         (DumpRenderTreeSupportQt::whiteListAccessFromOrigin):
667         (DumpRenderTreeSupportQt::resetOriginAccessWhiteLists):
668
669 2010-04-11  Sheriff Bot  <webkit.review.bot@gmail.com>
670
671         Unreviewed, rolling out r57468.
672         http://trac.webkit.org/changeset/57468
673         https://bugs.webkit.org/show_bug.cgi?id=37433
674
675         Broke the world...  Must have applied the patch wrong
676         (Requested by abarth on #webkit).
677
678         * WebCoreSupport/FrameLoaderClientQt.cpp:
679         (WebCore::FrameLoaderClientQt::finishedLoading):
680         (WebCore::FrameLoaderClientQt::setMainDocumentError):
681         (WebCore::FrameLoaderClientQt::committedLoad):
682         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
683
684 2010-04-11  Adam Barth  <abarth@webkit.org>
685
686         Reviewed by Eric Seidel.
687
688         Factor DocumentWriter out of FrameLoader
689         https://bugs.webkit.org/show_bug.cgi?id=37175
690
691         Update these callsites because the method moved to DocumentWriter.
692
693         * WebCoreSupport/FrameLoaderClientQt.cpp:
694         (WebCore::FrameLoaderClientQt::finishedLoading):
695         (WebCore::FrameLoaderClientQt::setMainDocumentError):
696         (WebCore::FrameLoaderClientQt::committedLoad):
697         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
698
699 2010-04-11  Robert Hogan  <robert@webkit.org>
700
701         Reviewed by Simon Hausmann.
702
703         [Qt] Add setWillSendRequestReturnsNull and setWillSendRequestClearHeader
704
705         https://bugs.webkit.org/show_bug.cgi?id=37410
706
707         * WebCoreSupport/FrameLoaderClientQt.cpp:
708         (qt_set_will_send_request_returns_null):
709         (qt_set_will_send_request_clear_headers):
710         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
711
712 2010-04-10  Robert Hogan  <robert@webkit.org>
713
714         Reviewed by Kenneth Rohde Christiansen.
715
716         Refactor Qt DRT support in QtWebKit
717
718         Move all QT DRT support functions to a static class.
719
720         https://bugs.webkit.org/show_bug.cgi?id=35844
721
722         * Api/qwebframe.cpp: Remove static functions.
723         * Api/qwebframe.h: Make DumpRenderTreeSupportQt a friend.
724         * Api/qwebpage.cpp: Remove static functions.
725         * Api/qwebpage.h: Make DumpRenderTreeSupportQt a friend.
726         * Api/qwebsecurityorigin.cpp: Remove static functions.
727         * WebCoreSupport/DumpRenderTreeSupportQt.cpp: Added.
728         (DumpRenderTreeSupportQt::DumpRenderTreeSupportQt):
729         (DumpRenderTreeSupportQt::~DumpRenderTreeSupportQt):
730         (DumpRenderTreeSupportQt::overwritePluginDirectories):
731         (DumpRenderTreeSupportQt::workerThreadCount):
732         (DumpRenderTreeSupportQt::setDumpRenderTreeModeEnabled):
733         (DumpRenderTreeSupportQt::setFrameFlatteningEnabled):
734         (DumpRenderTreeSupportQt::webPageSetGroupName):
735         (DumpRenderTreeSupportQt::webPageGroupName):
736         (DumpRenderTreeSupportQt::webInspectorExecuteScript):
737         (DumpRenderTreeSupportQt::webInspectorClose):
738         (DumpRenderTreeSupportQt::webInspectorShow):
739         (DumpRenderTreeSupportQt::setTimelineProfilingEnabled):
740         (DumpRenderTreeSupportQt::hasDocumentElement):
741         (DumpRenderTreeSupportQt::setJavaScriptProfilingEnabled):
742         (DumpRenderTreeSupportQt::pauseAnimation):
743         (DumpRenderTreeSupportQt::pauseTransitionOfProperty):
744         (DumpRenderTreeSupportQt::pauseSVGAnimation):
745         (DumpRenderTreeSupportQt::numberOfActiveAnimations):
746         (DumpRenderTreeSupportQt::clearFrameName):
747         (DumpRenderTreeSupportQt::javaScriptObjectsCount):
748         (DumpRenderTreeSupportQt::garbageCollectorCollect):
749         (DumpRenderTreeSupportQt::garbageCollectorCollectOnAlternateThread):
750         (DumpRenderTreeSupportQt::counterValueForElementById):
751         (DumpRenderTreeSupportQt::pageNumberForElementById):
752         (DumpRenderTreeSupportQt::numberOfPages):
753         (DumpRenderTreeSupportQt::suspendActiveDOMObjects):
754         (DumpRenderTreeSupportQt::resumeActiveDOMObjects):
755         (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
756         (DumpRenderTreeSupportQt::whiteListAccessFromOrigin):
757         (DumpRenderTreeSupportQt::resetOriginAccessWhiteLists):
758         (DumpRenderTreeSupportQt::setDomainRelaxationForbiddenForURLScheme):
759         (DumpRenderTreeSupportQt::setCaretBrowsingEnabled):
760         (DumpRenderTreeSupportQt::setMediaType):
761         (DumpRenderTreeSupportQt::setViewMode):
762         * WebCoreSupport/DumpRenderTreeSupportQt.h: Added.
763         * WebCoreSupport/EditorClientQt.h:
764         * tests/qwebpage/tst_qwebpage.cpp:
765         (tst_QWebPage::multiplePageGroupsAndLocalStorage):
766         (tst_QWebPage::inputMethodsTextFormat):
767         (tst_QWebPage::protectBindingsRuntimeObjectsFromCollector):
768
769 2010-04-11  Robert Hogan  <robert@webkit.org>
770
771         Reviewed by Simon Hausmann.
772
773         [Qt] Update layoutTestController.DumpResourceLoadCallbacks to match other ports.
774
775         Unskip  http/tests/xmlhttprequest/abort-should-cancel-load.html
776                 http/tests/misc/will-send-request-returns-null-on-redirect.html
777                 fast/loader/user-style-sheet-resource-load-callbacks.html
778                 http/tests/misc/window-dot-stop.html
779                 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-allow.html
780                 http/tests/security/XFrameOptions/x-frame-options-deny.html
781                 http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow.html
782                 http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny.html
783                 http/tests/xmlhttprequest/abort-should-cancel-load.html
784
785         QNetworkReply::OperationCanceledError has a value of 5, so update expected results accordingly.
786
787         https://bugs.webkit.org/show_bug.cgi?id=37237
788
789         * WebCoreSupport/FrameLoaderClientQt.cpp:
790         (qt_set_will_send_request_returns_null_on_redirect):
791         (drtDescriptionSuitableForTestResult):
792         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
793         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
794         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
795         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
796
797 2010-04-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
798
799         Reviewed by Kenneth Rohde Christiansen.
800
801         [Qt] Implement Desktop Notifications API for QtWebKit
802         https://bugs.webkit.org/show_bug.cgi?id=35503
803
804         Map WebKit notifications to Qt's SystemTray API and
805         implement DRT tracing.
806
807         This patch does not implement the security part of
808         WebKit notifications.
809
810         * Api/qwebpage.cpp:
811         (QWebPagePrivate::QWebPagePrivate):
812         * Api/qwebpage.h:
813         * Api/qwebpage_p.h:
814         * WebCoreSupport/ChromeClientQt.cpp:
815         (WebCore::ChromeClientQt::notificationPresenter):
816         * WebCoreSupport/ChromeClientQt.h:
817         * WebCoreSupport/NotificationPresenterClientQt.cpp: Added.
818         (qt_dump_notification):
819         (NotificationPresenterClientQt::NotificationPresenterClientQt):
820         (NotificationPresenterClientQt::show):
821         (NotificationPresenterClientQt::cancel):
822         (NotificationPresenterClientQt::notificationObjectDestroyed):
823         (NotificationPresenterClientQt::requestPermission):
824         (NotificationPresenterClientQt::checkPermission):
825         * WebCoreSupport/NotificationPresenterClientQt.h: Added.
826
827 2010-04-09  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
828
829         Reviewed by Simon Hausmann.
830
831         [Qt]Fix compile error with QT_NO_IM
832         https://bugs.webkit.org/show_bug.cgi?id=36533
833
834         * WebCoreSupport/QtFallbackWebPopup.cpp:
835         (WebCore::QtFallbackWebPopupCombo::hidePopup):
836
837 2010-04-09  Yi Shen  <yi.4.shen@nokia.com>
838
839         Reviewed by Kenneth Rohde Christiansen.
840
841         [Qt] tst_QWebFrame::popupFocus() fails
842         https://bugs.webkit.org/show_bug.cgi?id=37320
843
844         The QWebPopup class has been moved & renamed, so tst_QWebFrame::popupFocus() should use
845         the class name "QComboBox", rather than "WebCore::QWebPopup" to find the popup menu.
846
847         * tests/qwebframe/tst_qwebframe.cpp:
848
849 2010-04-09  Antonio Gomes  <tonikitoo@webkit.org>
850
851         Reviewed by Holger Freyther.
852
853         Removing the use of topLevelWidget of QWidget class since it is deprecated/obsolete
854         since Qt 4.5. window() method is being used instead now.
855
856         See http://doc.trolltech.com/4.5/qwidget-obsolete.html#topLevelWidget for more info.
857
858         * WebCoreSupport/ChromeClientQt.cpp:
859         (WebCore::ChromeClientQt::windowRect):
860         (WebCore::ChromeClientQt::show):
861         (WebCore::ChromeClientQt::windowResizerRect):
862
863 2010-04-09  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
864
865         Reviewed by Simon Hausmann.
866
867         [Qt] Fix compile error with QT_NO_ACTION
868         https://bugs.webkit.org/show_bug.cgi?id=36529
869
870         Make sure QT_NO_ACTION is not defined to use QAction
871
872         * Api/qgraphicswebview.cpp:
873         (QGraphicsWebView::pageAction):
874         * Api/qwebpage.cpp:
875         (QWebPagePrivate::updateAction):
876         (QWebPage::updatePositionDependentActions):
877         * Api/qwebpage.h:
878         * Api/qwebview.cpp:
879         * Api/qwebview.h:
880
881 2010-04-09  Simon Hausmann  <simon.hausmann@nokia.com>
882
883         Reviewed by Lars Knoll.
884
885         [Qt] tests/qgraphicswebview fails
886         https://bugs.webkit.org/show_bug.cgi?id=37317
887
888         * Api/qwebpage.cpp:
889         (QWebPage::userAgentForUrl): Don't crash if the ownerWidget is null.
890
891 2010-04-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
892
893         Reviewed by Simon Hausmann.
894
895         [Qt] Warnings when compiling InspectorClientQt.cpp
896         https://bugs.webkit.org/show_bug.cgi?id=37266
897
898         Add a default: for the switch()-case to avoid
899         warnings.
900
901         * WebCoreSupport/InspectorClientQt.cpp:
902         (WebCore::variantToSetting):
903
904 2010-04-01  Antonio Gomes  <tonikitoo@webkit.org>
905
906         Reviewed by David Hyatt.
907
908         [Qt] REGRESSION:(r50665) QWebFrame::setScrollBarPolicy(Qt::Vertical,Qt::ScrollBarAlwaysOff) has no effect.
909         https://bugs.webkit.org/show_bug.cgi?id=29431
910
911         Make use of the new lock parameter of set{Vertical,Horizontal}ScrollbarMode.
912
913         Always added a qt auto test for set scrollbar policy feature.
914
915         * Api/qwebframe.cpp:
916         (QWebFrame::setScrollBarPolicy):
917         * tests/qwebframe/tst_qwebframe.cpp:
918         * WebCoreSupport/FrameLoaderClientQt.cpp:
919         (FrameLoaderClientQt::transitionToCommittedForNewPage):
920
921 2010-04-08  Joe Ligman  <joseph.ligman@nokia.com>
922
923         Reviewed by Simon Hausmann.
924
925         [Qt] WebKit crashes while input text through input method.
926         The formatted text underline painting crashes when painting with invalid indexes.
927         https://bugs.webkit.org/show_bug.cgi?id=36870
928
929         * Api/qwebpage.cpp:
930         (QWebPagePrivate::inputMethodEvent):
931         * tests/qwebpage/tst_qwebpage.cpp:
932         (tst_QWebPage::inputMethodsTextFormat_data):
933         (tst_QWebPage::inputMethodsTextFormat):
934
935 2010-04-08  Joe Ligman  <joseph.ligman@nokia.com>
936
937         Reviewed by Simon Hausmann.
938
939         [Qt] qtwebkit_webframe_scrollRecursively scrolls when body.style.overflow="hidden"
940         https://bugs.webkit.org/show_bug.cgi?id=36674
941
942         The scrolling check was based on the frameview's scrolloffset, and
943         maximumScrollPosition, which does not acknowledge the overflow properties.
944
945         I am now basing the scrolling off the scrollbar position. The scrollbars are
946         affected by the overflow properties indicating when not to scroll. The scrollbar
947         positions also continue to work for CSS ::-webkit-scrollbar styles.
948
949         * Api/qwebframe.cpp:
950         (qtwebkit_webframe_scrollRecursively):
951
952 2010-04-07  Andrey Kosyakov  <caseq@chromium.org>
953
954         Reviewed by Yury Semikhatsky.
955
956         Removed redundant FrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest()
957         https://bugs.webkit.org/show_bug.cgi?id=36949
958
959         * WebCoreSupport/FrameLoaderClientQt.cpp:
960         * WebCoreSupport/FrameLoaderClientQt.h:
961
962 2010-04-07  Dawit Alemayehu  <adawit@kde.org>
963
964         Reviewed by Simon Hausmann.
965
966         https://bugs.webkit.org/show_bug.cgi?id=36827
967
968         Updated the WebCore::shouldTreatAsAttachement function call with the
969         new more generic replacement WebCore::contentDispositionType.
970
971         See comments 39-42 in https://bugs.webkit.org/show_bug.cgi?id=36395
972
973         * WebCoreSupport/FrameLoaderClientQt.cpp:
974         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
975
976 2010-04-07  Andreas Kling  <andreas.kling@nokia.com>
977
978         Reviewed by Simon Hausmann.
979
980         [Qt] When providing a widget for the PDF mime type it will cause a crash
981
982         m_pluginView may actually be a Widget (for embedded Qt widgets),
983         so always check isPluginView() before calling PluginView specific methods.
984
985         https://bugs.webkit.org/show_bug.cgi?id=29450
986
987         * WebCoreSupport/FrameLoaderClientQt.cpp:
988         (WebCore::FrameLoaderClientQt::finishedLoading):
989         (WebCore::FrameLoaderClientQt::setMainDocumentError):
990         (WebCore::FrameLoaderClientQt::committedLoad):
991
992 2010-04-06  Diego Gonzalez  <diego.gonzalez@openbossa.org>
993
994         Reviewed by Simon Hausmann.
995
996         [Qt] Add mechanism to detect QtWebKit 2.0 via the preprocessor
997         https://bugs.webkit.org/show_bug.cgi?id=36538
998
999         * Api/qwebkitglobal.h:
1000
1001 2010-04-02  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1002
1003         Reviewed by Kenneth Rohde Christiansen.
1004
1005         [Qt] [Symbian] Rebaseline Symbian def file
1006         https://bugs.webkit.org/show_bug.cgi?id=37038
1007
1008         Switch the ordinal numbers for qtwebkit_webframe_scrollRecursively
1009         and QWebInspector::closeEvent to match QtWebkit 4.6 branch
1010
1011         Fix the signature for qt_drt_setFrameFlatteningEnabled
1012         after r56718.
1013
1014         Add new QtWebKit API symbols introduced not listed in the file yet.
1015
1016         * symbian/eabi/QtWebKitu.def:
1017
1018 2010-03-30  Antonio Gomes  <tonikitoo@webkit.org>
1019
1020         Reviewed by Adam Treat.
1021
1022         Stored focused frame and document in a vars, instead of querying for them many times.
1023
1024         * Api/qwebpage.cpp:
1025         (QWebPagePrivate::mousePressEvent(QEvent* ev)):
1026         (QWebPagePrivate::mousePressEvent(QGraphicsSceneMouseEvent* ev):
1027
1028 2010-04-02  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
1029
1030         Reviewed by Eric Seidel.
1031
1032         [Qt]Fix compile error with QT_NO_SETTINGS
1033         https://bugs.webkit.org/show_bug.cgi?id=36533
1034
1035         If QT_NO_SETTINGS is defined, QSettings is not available.
1036
1037         * WebCoreSupport/InspectorClientQt.cpp:
1038         (WebCore::InspectorClientQt::populateSetting):
1039         (WebCore::InspectorClientQt::storeSetting):
1040
1041 2010-04-02  Luiz Agostini  <luiz.agostini@openbossa.org>
1042
1043         Reviewed by Kenneth Rohde Christiansen.
1044
1045         [Qt] Maemo5 theme - customized popup for <select multiple> elements
1046         https://bugs.webkit.org/show_bug.cgi?id=36368
1047
1048         Using QtMaemoWebPopup instead of QtFallbackWebPopup for Maemo.
1049
1050         * WebCoreSupport/ChromeClientQt.cpp:
1051         (WebCore::ChromeClientQt::createSelectPopup):
1052         * WebCoreSupport/QtFallbackWebPopup.cpp:
1053         (WebCore::QtFallbackWebPopup::show):
1054         (WebCore::QtFallbackWebPopup::populate):
1055
1056 2010-04-01  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
1057
1058         Reviewed by Kenneth Rohde Christiansen.
1059
1060         Add Single and Multiple Selection Popup for Maemo 5.
1061
1062         [Qt] Maemo5 theme - popup dialogs
1063         https://bugs.webkit.org/show_bug.cgi?id=36789
1064
1065         * WebCoreSupport/QtMaemoWebPopup.cpp:
1066         (WebCore::Maemo5Popup::populateList):
1067         (WebCore::Maemo5Popup::onItemSelected):
1068         (WebCore::QtMaemoWebPopup::createSingleSelectionPopup):
1069         (WebCore::QtMaemoWebPopup::createMultipleSelectionPopup):
1070         (WebCore::Maemo5SingleSelectionPopup::Maemo5SingleSelectionPopup):
1071         (WebCore::MultipleItemListDelegate::MultipleItemListDelegate):
1072         (WebCore::MultipleItemListDelegate::paint):
1073         (WebCore::Maemo5MultipleSelectionPopup::Maemo5MultipleSelectionPopup):
1074         * WebCoreSupport/QtMaemoWebPopup.h:
1075
1076 2010-03-31  Marcus Bulach  <bulach@chromium.org>
1077
1078         Reviewed by Jeremy Orlow.
1079
1080         Adds Geolocation param for cancelGeolocationPermissionRequestForFrame.
1081         https://bugs.webkit.org/show_bug.cgi?id=35031
1082
1083         * WebCoreSupport/ChromeClientQt.h:
1084         (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
1085
1086 2010-03-31  Antti Koivisto  <koivisto@iki.fi>
1087
1088         Reviewed by Kenneth Rohde Christiansen.
1089
1090         https://bugs.webkit.org/show_bug.cgi?id=36446
1091         [Qt] QWebSettings::TiledBackingStoreEnabled attribute lacks documentation and default value
1092
1093         * Api/qgraphicswebview.cpp:
1094         * Api/qwebsettings.cpp:
1095         (QWebSettings::QWebSettings):
1096
1097 2010-03-30  Gavin Barraclough  <barraclough@apple.com>
1098
1099         Rubber stamped by Sam Weinig.
1100
1101         https://bugs.webkit.org/show_bug.cgi?id=36866
1102         Move CString to WTF
1103
1104         * Api/qwebelement.cpp:
1105
1106 2010-03-30  Joe Ligman  <joseph.ligman@nokia.com>
1107
1108         Reviewed by Kenneth Rohde Christiansen.
1109
1110         [Qt] QGraphicsScene mousePressEvent does not set the clickCausedFocus flag
1111         https://bugs.webkit.org/show_bug.cgi?id=35259
1112
1113         The clickCausedFocus flag is not being set in method
1114         mousePressEvent(QGraphicsSceneMouseEvent* ev). This flag is used 
1115         in conjunction with QStyle::RSIP_OnMouseClickAndAlreadyFocused when
1116         deciding to launch the software input panel.
1117
1118         * Api/qwebpage.cpp:
1119         (QWebPagePrivate::mousePressEvent):
1120
1121 2010-03-30  Luiz Agostini  <luiz.agostini@openbossa.org>
1122
1123         Reviewed by Kenneth Rohde Christiansen.
1124
1125         [Qt] Maemo5 theme - QtMaemoWebPopup class
1126         https://bugs.webkit.org/show_bug.cgi?id=36790
1127
1128         A new QtAbstractWebPopup descendant class to be used for maemo menu lists.
1129         This is the first step. The next step will be the dialogs implementation that
1130         will come in bug 36789 and finally to use QtMaemoWebPopup instead of QtFallbackWebPopup
1131         that will come in bug 36368.
1132
1133         * WebCoreSupport/QtMaemoWebPopup.cpp: Added.
1134         (WebCore::QtMaemoWebPopup::QtMaemoWebPopup):
1135         (WebCore::QtMaemoWebPopup::~QtMaemoWebPopup):
1136         (WebCore::QtMaemoWebPopup::createSingleSelectionPopup):
1137         (WebCore::QtMaemoWebPopup::createMultipleSelectionPopup):
1138         (WebCore::QtMaemoWebPopup::createPopup):
1139         (WebCore::QtMaemoWebPopup::show):
1140         (WebCore::QtMaemoWebPopup::hide):
1141         (WebCore::QtMaemoWebPopup::popupClosed):
1142         (WebCore::QtMaemoWebPopup::itemClicked):
1143         * WebCoreSupport/QtMaemoWebPopup.h: Added.
1144         (WebCore::Maemo5Popup::Maemo5Popup):
1145
1146 2010-03-29  Dawit Alemayehu  <adawit@kde.org>
1147
1148         Reviewed by Simon Hausmann.
1149
1150         [Qt] Added support for handling the HTTP "Content-Disposition" header.
1151
1152         https://bugs.webkit.org/show_bug.cgi?id=36395
1153
1154         Whenever a server response contains a "Content-Disposition: attachment..." header, 
1155         treat the request as a download and emit the unsupportedContent signal.
1156
1157         * Api/qwebpage.cpp:
1158         * WebCoreSupport/FrameLoaderClientQt.cpp:
1159         (WebCore::FrameLoaderClientQt::download):
1160         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
1161
1162 2010-03-22  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1163
1164         Reviewed by Simon Fraser.
1165
1166         Add support for Widgets 1.0: View Mode Media Feature
1167         https://bugs.webkit.org/show_bug.cgi?id=35446
1168
1169         Add an internal Qt API for changing the view mode media feature
1170         (http://www.w3.org/TR/widgets-vmmf/).
1171
1172         * Api/qwebpage.cpp:
1173         (qt_wrt_setViewMode):
1174         (QWebPagePrivate::priv):
1175         * Api/qwebpage_p.h:
1176         * WebCoreSupport/ChromeClientQt.cpp:
1177         (WebCore::ChromeClientQt::isDocked):
1178         (WebCore::ChromeClientQt::isFloating):
1179         (WebCore::ChromeClientQt::isApplication):
1180         (WebCore::ChromeClientQt::isFullscreen):
1181         * WebCoreSupport/ChromeClientQt.h:
1182
1183 2010-03-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1184
1185         Reviewed by Antti Koivisto.
1186
1187         Use 'Mobile Safari' instead of 'Safari' on mobile Qt platforms.
1188
1189         * Api/qwebpage.cpp:
1190         (QWebPage::userAgentForUrl):
1191
1192 2010-03-29  Simon Hausmann  <simon.hausmann@nokia.com>
1193
1194         Reviewed by Tor Arne Vestbø.
1195
1196         [Qt] unit tests don't compile inside of Qt
1197
1198         https://bugs.webkit.org/show_bug.cgi?id=36756
1199
1200         * tests/tests.pri: Don't do the target substitution inside Qt and find the sources
1201         through VPATH instead of relying on the location of the .pro file exclusively.
1202
1203 2010-03-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1204
1205         Reviewed by Antti Koivisto.
1206
1207         Change due to renaming of frame flattening setting.
1208
1209         * Api/qwebpage.cpp:
1210         (qt_drt_setFrameFlatteningEnabled):
1211         * Api/qwebsettings.cpp:
1212         (QWebSettingsPrivate::apply):
1213         * symbian/eabi/QtWebKitu.def:
1214
1215 2010-03-28  Alexey Proskuryakov  <ap@apple.com>
1216
1217         Build fix. Include WindowsKeyboardCodes.h instead of KeyboardCodes.h.
1218
1219         * WebCoreSupport/EditorClientQt.cpp:
1220
1221 2010-03-26  Olivier Goffart  <ogoffart@trolltech.com>
1222
1223         Reviewed by Simon Hausmann.
1224
1225         [Qt] Compile with QT_USE_FAST_OPERATOR_PLUS
1226
1227         * WebCoreSupport/InspectorClientQt.cpp:
1228         (WebCore::InspectorClientQt::populateSetting):
1229         (WebCore::InspectorClientQt::storeSetting):
1230
1231 2010-03-26  David Boddie  <dboddie@trolltech.com>
1232
1233         Reviewed by Simon Hausmann.
1234
1235         [Qt] Doc: Simplified Commercial Editions for Qt 4.7.
1236
1237         * docs/qtwebkit.qdoc:
1238
1239 2010-03-26  Simon Hausmann  <simon.hausmann@nokia.com>
1240
1241         Symbian build fix.
1242
1243         [Qt] Updated the def file with new exports used by QtLauncher.
1244
1245         * symbian/eabi/QtWebKitu.def:
1246
1247 2010-03-25  Yael Aharon  <yael.aharon@nokia.com>
1248
1249         Reviewed by Kenneth Rohde Christiansen.
1250
1251         [Qt] QtLauncher crashes on Mac OS and Linux when exiting with QGraphicsView mode enabled
1252         https://bugs.webkit.org/show_bug.cgi?id=35251
1253
1254         Followed the way QWebView registers for the signal QWebPage::destroyed(), to prevent
1255         QGraphicsWebView from referencing QWebPage after it was deleted.        
1256
1257         * Api/qgraphicswebview.cpp:
1258         (QGraphicsWebViewPrivate::_q_pageDestroyed):
1259         (QGraphicsWebView::setPage):
1260         * Api/qgraphicswebview.h:
1261
1262 2010-03-25  Kent Hansen  <kent.hansen@nokia.com>
1263
1264         Reviewed by Simon Hausmann.
1265
1266         [Qt] QWebFrame::pageChanged() signal is not documented
1267         https://bugs.webkit.org/show_bug.cgi?id=36609
1268
1269         * Api/qwebframe.cpp:
1270
1271 2010-03-25  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1272
1273         Reviewed by Simon Hausmann.
1274
1275         [Qt] Implement ChromeClient::windowResizerRect()
1276
1277         https://bugs.webkit.org/show_bug.cgi?id=21300
1278
1279         We assume the resize corner to be in the lower right corner of
1280         the window and having the width and height of the scrollbars.
1281
1282         The helper function geometryRelativeToOwnerWidget() in the page
1283         client is used to clip the resize rect to the actual size of the
1284         viewport, not the size of the QGraphicsView.
1285
1286         * Api/qgraphicswebview.cpp:
1287         * Api/qwebpage.cpp:
1288         * WebCoreSupport/ChromeClientQt.cpp:
1289
1290 2010-03-25  Shu Chang  <chang.shu@nokia.com>
1291
1292         Reviewed by Simon Hausmann.
1293
1294         [Qt] Added documentation for delete button.
1295         https://bugs.webkit.org/show_bug.cgi?id=31560
1296
1297         * Api/qwebsettings.cpp:
1298
1299 2010-03-25  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
1300
1301         Reviewed by Eric Seidel.
1302
1303         [Qt]Fix compile error with QT_NO_DESKTOPSERVICES
1304         https://bugs.webkit.org/show_bug.cgi?id=36533
1305
1306         * Api/qwebsettings.cpp:
1307         (QWebSettings::enablePersistentStorage):
1308
1309 2010-03-25  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
1310
1311         Reviewed by Eric Seidel.
1312
1313         [Qt]Fix compile error with QT_NO_DEBUG_STREAM
1314         https://bugs.webkit.org/show_bug.cgi?id=36533
1315
1316         * Api/qgraphicswebview.cpp:
1317         (QGraphicsWebViewPrivate::graphicsItemVisibleRect):
1318
1319 2010-03-25  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1320
1321         Reviewed by Eric Seidel.
1322
1323         Make QWebPage not depend on view() but use the client->ownerWidget()
1324         instead. Also, handle the case where there is not page client.
1325
1326         * Api/qwebpage.cpp:
1327         (QWebPagePrivate::createContextMenu):
1328         (QWebPagePrivate::keyPressEvent):
1329         (QWebPage::javaScriptAlert):
1330         (QWebPage::javaScriptConfirm):
1331         (QWebPage::javaScriptPrompt):
1332         (QWebPage::shouldInterruptJavaScript):
1333         (QWebPage::createWindow):
1334         (QWebPage::action):
1335         (QWebPage::extension):
1336         (QWebPage::chooseFile):
1337         (QWebPage::userAgentForUrl):
1338
1339 2010-03-24  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
1340
1341         Reviewed by Kenneth Rohde Christiansen.
1342
1343         Add the FrameFlatteningEnabled WebAttribute to QWebSettings.
1344
1345         [Qt] Missing QWebSettings for Frame Flattening
1346         https://bugs.webkit.org/show_bug.cgi?id=36553
1347
1348         * Api/qwebsettings.cpp:
1349         (QWebSettingsPrivate::apply):
1350         (QWebSettings::QWebSettings):
1351         * Api/qwebsettings.h:
1352
1353 2010-03-24  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
1354
1355         Reviewed by Laszlo Gombos.
1356
1357         Auto-uppercase and predictive text need to be disabled for S60 (as for maemo)
1358         https://bugs.webkit.org/show_bug.cgi?id=33176
1359
1360         * WebCoreSupport/EditorClientQt.cpp:
1361
1362 2010-03-24  Kent Hansen  <kent.hansen@nokia.com>
1363
1364         Reviewed by Simon Hausmann.
1365
1366         [Qt] Rename QWebSettings::XSSAuditorEnabled to XSSAuditingEnabled
1367         https://bugs.webkit.org/show_bug.cgi?id=36522
1368
1369         For consistency with other QWebSettings attributes.
1370
1371         * Api/qwebsettings.cpp:
1372         (QWebSettingsPrivate::apply):
1373         * Api/qwebsettings.h:
1374
1375 2010-03-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1376
1377         Reviewed by Simon Hausmann.
1378
1379         Calling setView(0) on a QWebPage being shown by a QGraphicsWebView,
1380         would uninstall the page client, deleting the QGraphicsWebViewPrivate
1381         instance. If called with an argument, it would do a wrong static_cast
1382         and crash.
1383
1384         * Api/qwebpage.cpp:
1385         (QWebPageWidgetClient::QWebPageWidgetClient):
1386         (QWebPageWidgetClient::isQWidgetClient):
1387         (QWebPageWidgetClient::screenNumber):
1388         (QWebPage::QWebPage):
1389         (QWebPage::setView):
1390         * Api/qgraphicswebview.cpp:
1391         (QGraphicsWebViewPrivate::unsetPageIfExists):
1392         (QGraphicsWebView::setPage):
1393         * Api/qwebpage.cpp:
1394         (QWebPageWidgetClient::isQWidgetClient):
1395         (QWebPageWidgetClient::screenNumber):
1396         (QWebPage::QWebPage):
1397         (QWebPage::setView):
1398         * Api/qwebpage.h:
1399         * Api/qwebview.cpp:
1400         (QWebViewPrivate::unsetPageIfExists):
1401         (QWebView::setPage):
1402
1403 2010-03-24  Kent Tamura  <tkent@chromium.org>
1404
1405         Reviewed by Darin Adler.
1406
1407         Make Icon::createIconForFiles() optional.
1408         https://bugs.webkit.org/show_bug.cgi?id=35072
1409
1410         - Rename iconForFiles() to chooseIconForFiles().
1411         - Call Icon::createIconForFiles() from chooseIconForFiles().
1412
1413         * WebCoreSupport/ChromeClientQt.cpp:
1414         (WebCore::ChromeClientQt::chooseIconForFiles):
1415         * WebCoreSupport/ChromeClientQt.h:
1416
1417 2010-03-23  Luiz Agostini  <luiz.agostini@openbossa.org>
1418
1419         Reviewed by Kenneth Rohde Christiansen.
1420
1421         QGraphicsWebView crash when calling setView on the QWebPage...
1422         https://bugs.webkit.org/show_bug.cgi?id=36436
1423
1424         Checking for pageClient existance before showing popups.
1425
1426         * WebCoreSupport/QtFallbackWebPopup.cpp:
1427         (WebCore::QtFallbackWebPopup::show):
1428
1429 2010-03-23  Anders Bakken <anders.bakken@nokia.com>, Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
1430
1431         Reviewed by Kenneth Rohde Christiansen.
1432
1433         Check if q->scene() is available before actually using it
1434         on QGraphicsWebViewPrivate.
1435
1436         QGraphicsWebView crash
1437         https://bugs.webkit.org/show_bug.cgi?id=32670
1438
1439         * Api/qgraphicswebview.cpp:
1440         (QGraphicsWebViewPrivate::screenNumber):
1441         (QGraphicsWebViewPrivate::ownerWidget):
1442
1443 2010-03-23  David Leong  <david.leong@nokia.com>
1444
1445         Reviewed by Laszlo Gombos.
1446
1447         Build fix for Symbian Def file.
1448
1449         * symbian/eabi/QtWebKitu.def:
1450
1451 2010-03-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1452
1453         Reviewed by Kenneth Rohde Christiansen.
1454
1455         [Qt] Remove support for Qt v4.4
1456         https://bugs.webkit.org/show_bug.cgi?id=36389
1457
1458         * Api/qwebelement.cpp:
1459         (QWebElement::classes):
1460         * Api/qwebpage.cpp:
1461         (QWebPagePrivate::editorActionForKeyEvent):
1462         (QWebPage::userAgentForUrl):
1463         * WebCoreSupport/EditorClientQt.cpp:
1464         (WebCore::EditorClientQt::handleKeyboardEvent):
1465         * tests/tests.pro:
1466
1467 2010-03-22  Kent Hansen  <kent.hansen@nokia.com>
1468
1469         Reviewed by Laszlo Gombos.
1470
1471         [Qt] Fix qdoc warnings
1472         https://bugs.webkit.org/show_bug.cgi?id=36447
1473
1474         * Api/qgraphicswebview.cpp: Add missing ().
1475         * Api/qwebframe.cpp: Remove reference to non-existent parameter "url".
1476         * Api/qwebsettings.cpp:  Document parameter "location".
1477
1478 2010-03-22  Jakub Wieczorek  <jwieczorek@webkit.org>
1479
1480         Reviewed by Simon Hausmann.
1481
1482         [Qt] Don't construct a QLineEdit every time when painting a text field
1483         https://bugs.webkit.org/show_bug.cgi?id=36373
1484
1485         Add a simple benchmark covering this area.
1486
1487         * tests/benchmarks/painting/tst_painting.cpp:
1488         (tst_Painting::textAreas):
1489
1490 2010-03-22  Yi Shen  <shenyi2006@gmail.com>
1491
1492         Reviewed by Simon Hausmann.
1493
1494         https://bugs.webkit.org/show_bug.cgi?id=35933  
1495         [Qt] [Symbian] Can not backward select (highlight) text using virtual keyboard
1496         Make sure the selection start index is smaller than the selection end index.
1497
1498         * Api/qwebpage.cpp:
1499         (QWebPagePrivate::inputMethodEvent):
1500         * tests/qwebpage/tst_qwebpage.cpp:
1501         (tst_QWebPage::inputMethods):
1502
1503 2010-03-21  Kristian Amlie  <kristian.amlie@nokia.com>
1504
1505         Reviewed by Simon Hausmann.
1506
1507         Fixed updating the VKB display when inputting into QGraphicsWebView.
1508         https://bugs.webkit.org/show_bug.cgi?id=36292
1509
1510         * Api/qgraphicswebview.cpp:
1511         (QGraphicsWebViewPrivate::_q_updateMicroFocus):
1512         (QGraphicsWebView::setPage):
1513         * Api/qgraphicswebview.h:
1514
1515 2010-03-19  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1516
1517         Unreviewed.
1518
1519         Buildfix for Qt v4.5.
1520
1521         * Api/qgraphicswebview.cpp:
1522         (QGraphicsWebViewOverlay::q):
1523
1524 2010-03-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1525
1526         Reviewed by Darin Adler.
1527
1528         Make it possible for the Qt DRT to set the media type from
1529         the LayoutTestController.
1530
1531         * Api/qwebframe.cpp:
1532         (qt_drt_setMediaType):
1533
1534 2010-03-18  Joe Ligman  <joseph.ligman@nokia.com>
1535
1536         Reviewed by Simon Hausmann.
1537
1538         [Qt] New API scrollRecursively has several problems.
1539         https://bugs.webkit.org/show_bug.cgi?id=35873
1540
1541         Remove scrollRecursively from the Qt 4.7 API
1542         Update the internal API to accept a hit test position 
1543         for nested scrolling
1544
1545         * Api/qwebframe.cpp:
1546         (webframe_scrollOverflow):
1547         (qtwebkit_webframe_scrollRecursively):
1548         * Api/qwebframe.h:
1549         * Api/qwebframe_p.h:
1550         * tests/qwebframe/tst_qwebframe.cpp:
1551
1552 2010-03-18  Antti Koivisto  <koivisto@iki.fi>
1553
1554         Reviewed by Kenneth Rohde Christiansen.
1555
1556         https://bugs.webkit.org/show_bug.cgi?id=36102
1557         [Qt] Scaling control API for tiled backing store
1558         
1559         The scale is set by passing the QGraphicsWebView scale to the backing store. The
1560         only new API is the tiledBackingStoreFrozen property which allows disabling
1561         all updates (for example during zoom animation).
1562
1563         * Api/qgraphicswebview.cpp:
1564         (QGraphicsWebViewPrivate::_q_scaleChanged):
1565         (QGraphicsWebViewPrivate::updateTiledBackingStoreScale):
1566         (QGraphicsWebView::QGraphicsWebView):
1567         (QGraphicsWebView::isTiledBackingStoreFrozen):
1568         (QGraphicsWebView::setTiledBackingStoreFrozen):
1569         * Api/qgraphicswebview.h:
1570         * Api/qwebframe.cpp:
1571         * Api/qwebframe_p.h:
1572
1573 2010-03-17  Antti Koivisto  <koivisto@iki.fi>
1574
1575         Reviewed by Tor Arne Vestbø.
1576
1577         Fix Qt build with tiled backing store disabled.
1578
1579         * Api/qwebframe.cpp:
1580         * Api/qwebframe_p.h:
1581
1582 2010-03-17  Chang Shu  <chang.shu@nokia.com>
1583
1584         Reviewed by Laszlo Gombos.
1585
1586         https://bugs.webkit.org/show_bug.cgi?id=36139
1587         [Qt] Clean up cache while setting cache quota. This behavior matches other platforms,
1588         such as mac and gtk.
1589
1590          * Api/qwebsettings.cpp:
1591         (QWebSettings::setOfflineWebApplicationCacheQuota):
1592
1593 2010-03-17  Csaba Osztrogonác  <ossy@webkit.org>
1594
1595         Reviewed by Kenneth Rohde Christiansen.
1596
1597         [Qt] Enable accelerated compositing by default
1598         https://bugs.webkit.org/show_bug.cgi?id=35866
1599
1600         * Api/qwebsettings.cpp:
1601         (QWebSettings::QWebSettings):
1602
1603 2010-03-15  Antti Koivisto  <koivisto@iki.fi>
1604
1605         Reviewed by Simon Hausmann.
1606
1607         https://bugs.webkit.org/show_bug.cgi?id=36121
1608         [Qt] Make WebKit scrollbars work with tiling
1609         
1610         - Use the scrollbar overlay (implemented for accelerated compositing) when in tiled mode. 
1611         - Make overlay compile unconditionally, enable on demand. This removes bunch of unneeded ifdefs.
1612         - Update the scroll position to the backing store as needed.
1613         - Renamed some methods.
1614
1615         * Api/qgraphicswebview.cpp:
1616         (QGraphicsWebViewPrivate::):
1617         (QGraphicsWebViewPrivate::createOrDeleteOverlay):
1618         (QGraphicsWebViewPrivate::setRootGraphicsLayer):
1619         (QGraphicsWebViewPrivate::updateCompositingScrollPosition):
1620         (QGraphicsWebViewPrivate::scroll):
1621         (QGraphicsWebViewPrivate::update):
1622         (QGraphicsWebViewPrivate::graphicsItemVisibleRect):
1623         (QGraphicsWebView::paint):
1624         (QGraphicsWebView::setPage):
1625         (QGraphicsWebView::updateGeometry):
1626         (QGraphicsWebView::setGeometry):
1627         * Api/qwebframe.cpp:
1628         (QWebFramePrivate::renderFromTiledBackingStore):
1629         * Api/qwebframe_p.h:
1630
1631 2010-03-15  Robert Hogan  <robert@webkit.org>
1632
1633         Reviewed by Simon Hausmann.
1634
1635         [Qt] Fix crash in QWebView::setPage()
1636
1637         tst_qwebpage was crashing on setPage(0)
1638
1639         https://bugs.webkit.org/show_bug.cgi?id=36137
1640
1641         * Api/qwebview.cpp:
1642         (QWebView::setPage):
1643
1644 2010-03-16  Yury Semikhatsky <yurys@chromium.org>
1645
1646         Reviewed by Pavel Feldman.
1647
1648         Introduce InspectorFrontendClient that provides InspectorFrontend with an interface to the embedder. InspectorClient now serves as a delegate for InspectorController and does not contain methods for managing inspector frontend window. That allows to create remote InspectorFrontendHost.
1649
1650         Introduce InspectorFrontendClient that would provide InspectorFrontend with an interface to the embedder
1651         https://bugs.webkit.org/show_bug.cgi?id=35036
1652
1653         * Api/qwebinspector.cpp:
1654         (QWebInspector::hideEvent):
1655         (QWebInspector::closeEvent):
1656         * Api/qwebinspector.h:
1657         * Api/qwebpage.h:
1658         * WebCoreSupport/InspectorClientQt.cpp:
1659         (WebCore::InspectorClientQt::openInspectorFrontend):
1660         (WebCore::InspectorFrontendClientQt::InspectorFrontendClientQt):
1661         (WebCore::InspectorFrontendClientQt::frontendLoaded):
1662         (WebCore::InspectorFrontendClientQt::localizedStringsURL):
1663         (WebCore::InspectorFrontendClientQt::hiddenPanels):
1664         (WebCore::InspectorFrontendClientQt::bringToFront):
1665         (WebCore::InspectorFrontendClientQt::closeWindow):
1666         (WebCore::InspectorFrontendClientQt::attachWindow):
1667         (WebCore::InspectorFrontendClientQt::detachWindow):
1668         (WebCore::InspectorFrontendClientQt::setAttachedWindowHeight):
1669         (WebCore::InspectorFrontendClientQt::inspectedURLChanged):
1670         (WebCore::InspectorFrontendClientQt::updateWindowTitle):
1671         * WebCoreSupport/InspectorClientQt.h:
1672
1673 2010-03-15  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1674
1675         Unreviewed.
1676
1677         [Qt] Build fix if TILED_BACKING_STORE is disabled.
1678
1679         * Api/qwebframe.cpp:
1680         (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
1681
1682 2010-03-14  Chang Shu  <chang.shu@nokia.com>
1683
1684         Reviewed by Simon Hausmann.
1685
1686         [Qt] [Symbian] Use Symbian native dialog providers for combo pupups.
1687         https://bugs.webkit.org/show_bug.cgi?id=35919
1688
1689         * WebCoreSupport/QtFallbackWebPopup.cpp:
1690         (WebCore::QtFallbackWebPopup::show):
1691         (WebCore::ResetAndDestroy):
1692         (WebCore::QtFallbackWebPopup::showS60BrowserDialog):
1693         * WebCoreSupport/QtFallbackWebPopup.h:
1694
1695 2010-03-14  Antti Koivisto  <koivisto@iki.fi>
1696
1697         Reviewed by Simon Hausmann.
1698
1699         https://bugs.webkit.org/show_bug.cgi?id=35146
1700         Support tiled backing store
1701
1702         Implements a basic tiled backing store mechanism. Tiles are created and 
1703         deleted on demand. The page content is cached to the tiles. Tile content
1704         is kept in sync with the document. Since the backing store covers area
1705         larger than the currently visible viewport, the document can be scrolled
1706         quickly without having to enter rendering tree painting.
1707         
1708         The tile management code is platform independent. This patch has simple QPixmap
1709         based tile implementation for Qt.
1710         
1711         The feature is behind ENABLE_TILED_BACKING_STORE flag.
1712
1713         * Api/qgraphicswebview.cpp:
1714         (QGraphicsWebViewPrivate::visibleRect):
1715         (QGraphicsWebView::paint):
1716         * Api/qwebframe.cpp:
1717         (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
1718         * Api/qwebframe.h:
1719         * Api/qwebsettings.cpp:
1720         (QWebSettingsPrivate::apply):
1721         * Api/qwebsettings.h:
1722
1723 2010-03-13  Csaba Osztrogonác  <ossy@webkit.org>
1724
1725         [Qt] Enable accelerated compositing by default
1726         https://bugs.webkit.org/show_bug.cgi?id=35866
1727
1728         Unreviewed. Roll-out r55955, because it broke 3 tests:
1729         - animations/fill-mode-transform.html
1730         - animations/play-state.html
1731         - animations/simultaneous-start-left.html
1732
1733         * Api/qwebsettings.cpp:
1734         (QWebSettings::QWebSettings):
1735
1736 2010-03-13  Simon Hausmann  <simon.hausmann@nokia.com>
1737
1738         Reviewed by Kenneth Rohde Christiansen.
1739
1740         [Qt] Enable accelerated compositing by default
1741         https://bugs.webkit.org/show_bug.cgi?id=35866
1742
1743         * Api/qwebsettings.cpp:
1744         (QWebSettings::QWebSettings):
1745
1746 2010-03-11  Anders Carlsson  <andersca@apple.com>
1747
1748         Reviewed by David Hyatt.
1749
1750         Remove invalidateContents, it isn't used and it never makes sense to only invalidate the contents.
1751
1752         * WebCoreSupport/ChromeClientQt.cpp:
1753         * WebCoreSupport/ChromeClientQt.h:
1754
1755 2010-03-10  Robert Hogan  <robert@webkit.org>
1756
1757         Reviewed by Simon Hausmann.
1758
1759         [Qt] Add Support for WebKitEnableCaretBrowsing to Qt DRT
1760
1761         Unskip test fast/events/multiline-link-arrow-navigation.html
1762         Fix typo (superfluous space) in QWebSettings docs.
1763
1764         https://bugs.webkit.org/show_bug.cgi?id=35593
1765
1766         * Api/qwebpage.cpp:
1767         (qt_drt_enableCaretBrowsing):
1768         * Api/qwebsettings.cpp:
1769         (QWebSettingsPrivate::apply): fix typo in docs
1770
1771 2010-03-02  Adam Treat  <atreat@rim.com>
1772
1773         Reviewed by Dave Hyatt.
1774
1775         Adapt the qt port to the refactoring of repaint methods.
1776
1777         https://bugs.webkit.org/show_bug.cgi?id=34214
1778
1779         * WebCoreSupport/ChromeClientQt.cpp:
1780         (WebCore::ChromeClientQt::invalidateContents):
1781         (WebCore::ChromeClientQt::invalidateWindow):
1782         (WebCore::ChromeClientQt::invalidateContentsAndWindow):
1783         (WebCore::ChromeClientQt::invalidateContentsForSlowScroll):
1784         * WebCoreSupport/ChromeClientQt.h:
1785
1786 2010-03-08  Eric Uhrhane  <ericu@chromium.org>
1787
1788         Reviewed by David Levin.
1789
1790         Remove the now-redundant Settings fields for the Database
1791         https://bugs.webkit.org/show_bug.cgi?id=35763
1792
1793         No new tests; this code isn't called.
1794
1795         * Api/qwebsettings.cpp:
1796         (QWebSettingsPrivate::apply): Remove the call into Settings.
1797
1798 2010-03-08  Simon Hausmann  <simon.hausmann@nokia.com>
1799
1800         Reviewed by Laszlo Gombos.
1801
1802         [Qt] Binary incompatibility between Qt 4.6's WebKit and trunk in QWebSettings
1803         https://bugs.webkit.org/show_bug.cgi?id=35858
1804
1805         Moved the enum value added in r54873 to the end of the enum, to preserve
1806         binary compatibility. DnsPrefetchEnabled was in the last release and needs
1807         to remain after LocalContentCanAccessRemoteUrls.
1808
1809         * Api/qwebsettings.h:
1810
1811 2010-03-06  Mark Rowe  <mrowe@apple.com>
1812
1813         Rubber-stamped by Sam Weinig.
1814
1815         Remove unnecessary includes of wtf/Platform.h.  This is already pulled in by the prefix header.
1816
1817         * WebCoreSupport/EditCommandQt.cpp:
1818
1819 2010-03-02  Antonio Gomes  <tonikitoo@webkit.org>
1820
1821         Reviewed by Simon Hausmann.
1822         Patch by Antonio Gomes <tonikitoo@webkit.org>
1823
1824         [Qt] QWebSettings attribute for toggle Spatial Navigation on/off
1825         https://bugs.webkit.org/show_bug.cgi?id=33714 (Qt API part)
1826
1827         Added 'SpatialNavigationEnabled' attribute to QWebSettings.
1828
1829         * Api/qwebsettings.cpp:
1830         (QWebSettingsPrivate::apply):
1831         * Api/qwebsettings.h:
1832
1833 2010-03-04  Simon Hausmann  <simon.hausmann@nokia.com>
1834
1835         Reviewed by Kenneth Rohde Christiansen.
1836
1837         [Qt] qwebelement.h does not include QtCore headers correctly
1838         https://bugs.webkit.org/show_bug.cgi?id=35748
1839
1840         The header files of QtCore must be included as QtCore/foo.h.
1841
1842         See also http://bugreports.qt.nokia.com/browse/QTBUG-8661
1843
1844         * Api/qwebelement.h:
1845
1846 2010-03-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1847
1848         Reviewed by Tor Arne Vestbø.
1849
1850         [Qt] Make the OUTPUT_DIR variable in qmake projects independent of build-webkit's logic.
1851
1852         This also allows shadow builds relying only on qmake to work properly.
1853
1854         * tests/benchmarks/loading/loading.pro:
1855         * tests/benchmarks/painting/painting.pro:
1856         * tests/hybridPixmap/hybridPixmap.pro:
1857         * tests/qgraphicswebview/qgraphicswebview.pro:
1858         * tests/qwebelement/qwebelement.pro:
1859         * tests/qwebframe/qwebframe.pro:
1860         * tests/qwebhistory/qwebhistory.pro:
1861         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
1862         * tests/qwebinspector/qwebinspector.pro:
1863         * tests/qwebpage/qwebpage.pro:
1864         * tests/qwebplugindatabase/qwebplugindatabase.pro:
1865
1866 2010-03-02  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1867
1868         Reviewed by Kenneth Rohde Christiansen.
1869
1870         [Qt] Fix generation of forwarding headers
1871
1872         The dependencies were a bit wrong, so we ended up not generating
1873         forwarding headers for qwebkitversion.h and qwebkitglobal.h
1874
1875         The forwarding headers are now the only targets depending on the
1876         real headers. All other targets either depend on the generated
1877         class headers, or the forwarding headers.
1878
1879         * Api/DerivedSources.pro:
1880
1881 2010-03-02  Eric Uhrhane  <ericu@chromium.org>
1882
1883         Reviewed by David Levin.
1884
1885         Move database enable bit fully out of settings
1886         This is stage one of a three-stage commit [webkit, then chromium, then
1887         webkit again].  In this change I'm adding calls to
1888         Database::setIsAvailable inside Settings::setDatabaseEnabled and
1889         anywhere else that called it, and switching webkit fully over to using
1890         that flag [added in a previous checkin].  Phase two will remove
1891         Chromium's use of Settings for the Database, and phase three will remove
1892         the Setting for the Database enable entirely, leaving only
1893         Database::isAvailable/setIsAvailable.
1894
1895         No new tests; tested by existing storage tests.
1896
1897         https://bugs.webkit.org/show_bug.cgi?id=35310
1898
1899         * Api/qwebsettings.cpp:
1900         (QWebSettingsPrivate::apply):  Add a call to Database::setIsAvailable
1901
1902 2010-03-02  Simon Hausmann  <simon.hausmann@nokia.com>
1903
1904         Symbian build fix.
1905
1906         [Qt] Updated the def file with one new export, to fix
1907         QtLauncher linkage.
1908
1909         * symbian/eabi/QtWebKitu.def:
1910
1911 2010-03-01  Jakob Petsovits  <jpetsovits@rim.com>
1912
1913         Reviewed by Adam Barth.
1914
1915         Adapt to the new ZoomMode enum.
1916         https://bugs.webkit.org/show_bug.cgi?id=35347
1917
1918         * Api/qwebframe.cpp:
1919         (QWebFrame::setTextSizeMultiplier):
1920         (QWebFrame::setZoomFactor):
1921         * Api/qwebsettings.cpp:
1922         (QWebSettingsPrivate::apply):
1923
1924 2010-02-26  Diego Gonzalez  <diego.gonzalez@openbossa.org>
1925
1926         Reviewed by Simon Hausmann.
1927
1928         Fix documentation of QWebSettings::setUserStyleSheetUrl method
1929
1930         The base 64 data in the exemple shows a not valid code.
1931
1932         REGRESSION: QWebSettings::setUserStyleSheetUrl is not working with a data URL (Base64)
1933         https://bugs.webkit.org/show_bug.cgi?id=34802
1934
1935         * Api/qwebsettings.cpp:
1936
1937 2010-02-26  Jamey Hicks  <jamey.hicks@nokia.com>
1938
1939         Reviewed by Laszlo Gombos.
1940
1941         [Qt] added QWebSettings::setInspectorUrl() and QWebSettings::inspectorUrl()
1942
1943         Enables the use of alternate Web Inspector frontends by changing
1944         the location of the frontend.
1945
1946         This is required so that the Web Inspector may be run from an
1947         external process or an external tool such as Eclipse or Aptana may
1948         be used instead of the in-process Web Inspector UI.
1949         
1950         https://bugs.webkit.org/show_bug.cgi?id=35340
1951
1952         * Api/qwebsettings.cpp:
1953         (QWebSettings::QWebSettings):
1954         (QWebSettings::setInspectorUrl):
1955         (QWebSettings::inspectorUrl):
1956         * Api/qwebsettings.h:
1957         * WebCoreSupport/InspectorClientQt.cpp:
1958         (WebCore::InspectorClientQt::createPage):
1959
1960 2010-02-25  Jarkko Sakkinen  <jarkko.sakkinen@tieto.com>
1961
1962         Reviewed by Kenneth Rohde Christiansen.
1963
1964         Qt WebGL support
1965
1966         Adds enabling and disabling of WebGL support to QWebSettings.
1967         https://bugs.webkit.org/show_bug.cgi?id=35153
1968
1969         * Api/qwebsettings.cpp:
1970         (QWebSettingsPrivate::apply):
1971         (QWebSettings::QWebSettings):
1972         * Api/qwebsettings.h:
1973
1974 2010-02-19  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
1975
1976         Reviewed by Kenneth Rohde Christiansen.
1977
1978         [Qt] Remove QGVLauncher
1979
1980         https://bugs.webkit.org/show_bug.cgi?id=35292
1981
1982         * QGVLauncher/QGVLauncher.pro: Removed.
1983         * QGVLauncher/main.cpp: Removed.
1984
1985 2010-02-23  Steve Block  <steveblock@google.com>
1986
1987         Reviewed by Darin Adler.
1988
1989         Adds ChromeClient::cancelGeolocationPermissionRequestForFrame
1990         https://bugs.webkit.org/show_bug.cgi?id=34962
1991
1992         This method is required so that a Geolocation object can cancel an
1993         asynchronous permission request. This allows the chrome client to cancel
1994         any UI it is showing for the permission request.
1995
1996         * WebCoreSupport/ChromeClientQt.h:
1997         (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
1998
1999 2010-02-22  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2000
2001         Unreviewed Symbian build fix.
2002
2003         [Qt] Updated the def file with new exports to enable
2004         building DumpRenderTree.
2005
2006         * symbian/eabi/QtWebKitu.def:
2007
2008 2010-02-18  Noam Rosenthal  <noam.rosenthal@nokia.com>
2009
2010         Reviewed by Kenneth Rohde Christiansen.
2011
2012         [Qt] Minor improvement to hybrid QPixmap
2013         https://bugs.webkit.org/show_bug.cgi?id=34507
2014
2015         * tests/hybridPixmap/test.html: use assignToHTMLImageElement on an
2016         existing element instead of toHTMLImageElement which creates a new one
2017
2018 2010-02-17  Dmitry Titov  <dimich@chromium.org>
2019
2020         Reviewed by David Levin, Darin Fisher, Simon Hausmann.
2021
2022         When a live iframe element is moved between pages, it still depends on the old page.
2023         https://bugs.webkit.org/show_bug.cgi?id=34382
2024
2025         * Api/qwebframe_p.h:
2026         (QWebFramePrivate::setPage): Added.
2027         * WebCoreSupport/FrameLoaderClientQt.cpp:
2028         (WebCore::FrameLoaderClientQt::didTransferChildFrameToNewDocument):
2029         The QWebFrame caches a QWebPage which should be replaced when Frame is re-parented.
2030         Also, the QWebFrame is a child (in QT terms) of QWebPage - so update that relationship as well.
2031         Emit a signal that QWebFrame moved to a different QWebPage.
2032
2033         * WebCoreSupport/FrameLoaderClientQt.h:
2034
2035 2010-02-17  Kent Tamura  <tkent@chromium.org>
2036
2037         Reviewed by Eric Seidel.
2038
2039         Introduces new Icon loading interface in order to support
2040         asynchronous loading.
2041         https://bugs.webkit.org/show_bug.cgi?id=32054
2042
2043         Add an empty implementation of ChromeClient::iconForFiles().
2044
2045         * WebCoreSupport/ChromeClientQt.cpp:
2046         (WebCore::ChromeClientQt::iconForFiles):
2047         * WebCoreSupport/ChromeClientQt.h:
2048
2049 2010-02-17  Diego Gonzalez  <diego.gonzalez@openbossa.org>
2050
2051         Reviewed by Ariya Hidayat.
2052
2053         Make possible Qt DRT to get total number of pages to be printed
2054
2055         LayoutTests:
2056             printing/numberOfPages.html
2057
2058         [Qt] DRT: Get total number of pages to be printed
2059         https://bugs.webkit.org/show_bug.cgi?id=34955
2060
2061         * Api/qwebframe.cpp:
2062         (qt_drt_numberOfPages):
2063         (qt_drt_evaluateScriptInIsolatedWorld):
2064
2065 2010-02-16  Ariya Hidayat  <ariya.hidayat@gmail.com>
2066
2067         Reviewed by Simon Hausmann.
2068
2069         [Qt] Allow scrolling to an anchor programmatically.
2070         https://bugs.webkit.org/show_bug.cgi?id=29856
2071
2072         * Api/qwebframe.cpp:
2073         (QWebFrame::scrollToAnchor): New API function.
2074         * Api/qwebframe.h:
2075         * tests/qwebframe/tst_qwebframe.cpp: New tests for scrollToAnchor().
2076
2077 2010-02-16  Ariya Hidayat  <ariya.hidayat@gmail.com>
2078
2079         Reviewed by Laszlo Gombos.
2080
2081         Fix building with Qt < 4.6.
2082         https://bugs.webkit.org/show_bug.cgi?id=34885
2083
2084         * Api/qgraphicswebview.cpp:
2085         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
2086
2087 2010-02-16  Simon Hausmann  <simon.hausmann@nokia.com>
2088
2089         Unreviewed Symbian build fix.
2090
2091         Updated the def file with two new exports used by QtLauncher.
2092
2093         * symbian/eabi/QtWebKitu.def:
2094
2095 2010-02-16  Ismail Donmez  <ismail@namtrac.org>
2096
2097         Reviewed by Pavel Feldman.
2098
2099         Fix compilation with inspector disabled.
2100         https://bugs.webkit.org/show_bug.cgi?id=32724
2101
2102         * Api/qwebpage.cpp:
2103         (qt_drt_webinspector_executeScript):
2104         (qt_drt_webinspector_close):
2105         (qt_drt_webinspector_show):
2106         (qt_drt_setTimelineProfilingEnabled):
2107
2108 2010-02-16  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2109
2110         Reviewed by Simon Hausman.
2111
2112         [Qt] Fix include paths for forwarding headers in standalone builds.
2113
2114         * Api/DerivedSources.pro: Use relative paths for package builds and added some
2115         documentation.
2116
2117 2010-02-15  Noam Rosenthal  <noam.rosenthal@nokia.com>
2118
2119         Reviewed by Simon Hausmann.
2120
2121         [Qt] QtWebkit bridge: enable passing a QWebElement to a signal/slot/property
2122         Add Q_DECLARE_METATYPE to QWebElement, add relevant tests to
2123         tst_qwebframe
2124         https://bugs.webkit.org/show_bug.cgi?id=34901
2125
2126         * Api/qwebelement.h: declare metatype
2127         * tests/qwebframe/tst_qwebframe.cpp:
2128         (MyQObject::webElementProperty): new test for QWebElement
2129         (MyQObject::setWebElementProperty): new test for QWebElement
2130         (MyQObject::myOverloadedSlot): new test for QWebElement
2131
2132 2010-02-15  Robert Hogan  <robert@roberthogan.net>, Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2133
2134         Reviewed by Simon Hausmann.
2135
2136         [Qt] DRT: Support evaluateInWebInspector(), setTimelineProfilingEnabled().
2137
2138         Support LayoutTestController.evaluateInWebInspector(), setTimelineProfilingEnabled() in Qt DRT.
2139
2140         https://bugs.webkit.org/show_bug.cgi?id=33096
2141
2142         This allows the following tests to pass:
2143
2144         inspector/console-format-collections.html
2145         inspector/styles-iframe.html
2146         inspector/syntax-highlight-css.html
2147         inspector/syntax-highlight-javascript.html
2148         inspector/timeline-enum-stability.html
2149         inspector/timeline-layout.html
2150         inspector/timeline-mark-timeline.html
2151         inspector/timeline-paint.html
2152         inspector/timeline-parse-html.html
2153         inspector/timeline-recalculate-styles.html
2154         inspector/timeline-script-tag-1.html
2155         inspector/timeline-script-tag-2.html
2156         inspector/timeline-trivial.html
2157         inspector/cookie-resource-match.html
2158         inspector/elements-img-tooltip.html
2159         inspector/elements-panel-selection-on-refresh.html
2160         inspector/inspected-objects-not-overriden.html
2161         inspector/timeline-event-dispatch.html
2162         inspector/timeline-network-resource.html
2163         inspector/elements-panel-rewrite-href.html
2164         inspector/console-dir.html
2165         inspector/console-dirxml.html
2166         inspector/console-format.html
2167         inspector/console-tests.html
2168         inspector/elements-panel-structure.html
2169         inspector/evaluate-in-frontend.html
2170         inspector/console-clear.html
2171
2172         * Api/qwebpage.cpp:
2173         (qt_drt_webinspector_executeScript):
2174         (qt_drt_webinspector_close):
2175         (qt_drt_webinspector_show):
2176         (qt_drt_setTimelineProfilingEnabled):
2177
2178         * WebCoreSupport/InspectorClientQt.cpp:
2179         (InspectorClientQt::createPage)
2180
2181 2010-02-12  Antti Koivisto  <koivisto@iki.fi>
2182
2183         Reviewed by Kenneth Rohde Christiansen and Simon Hausmann.
2184         
2185         https://bugs.webkit.org/show_bug.cgi?id=34885
2186         Add a QGraphicsWebView mode that makes it automatically resize itself to the size of the content.
2187
2188         This is useful for cases where the client wants to implement page panning and zooming by manipulating
2189         the graphics item.
2190         
2191         Add a option to QGVLauncher to test this mode.
2192
2193         * Api/qgraphicswebview.cpp:
2194         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
2195         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
2196         (QGraphicsWebViewPrivate::_q_contentsSizeChanged):
2197         (QGraphicsWebView::setPage):
2198         (QGraphicsWebView::setResizesToContents):
2199         (QGraphicsWebView::resizesToContents):
2200         * Api/qgraphicswebview.h:
2201         * QGVLauncher/main.cpp:
2202         (WebView::WebView):
2203         (MainView::MainView):
2204         (MainView::setMainWidget):
2205         (MainView::resizeEvent):
2206         (main):
2207
2208 2010-02-12  Diego Gonzalez  <diego.gonzalez@openbossa.org>
2209
2210         Reviewed by Kenneth Rohde Christiansen.
2211
2212         Qt DRT now dump the frame loader callbacks when LayoutTestController()
2213         method is called.
2214
2215         LayoutTests:
2216             http/tests/security/mixedContent/data-url-script-in-iframe.html
2217             http/tests/security/mixedContent/empty-url-plugin-in-frame.html
2218             http/tests/security/mixedContent/insecure-css-in-iframe.html
2219             http/tests/security/mixedContent/insecure-iframe-in-iframe.html
2220             http/tests/security/mixedContent/insecure-image-in-iframe.html
2221             http/tests/security/mixedContent/insecure-plugin-in-iframe.html
2222             http/tests/security/mixedContent/insecure-script-in-iframe.html
2223             http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe.html
2224             http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe.html
2225
2226         [Qt] Make possible Qt DRT dump frame load callbacks
2227         https://bugs.webkit.org/show_bug.cgi?id=34702
2228
2229         * WebCoreSupport/FrameLoaderClientQt.cpp:
2230         (WebCore::FrameLoaderClientQt::didDisplayInsecureContent):
2231         (WebCore::FrameLoaderClientQt::didRunInsecureContent):
2232
2233 2010-02-10  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2234
2235         Reviewed by Tor Arne Vestbø.
2236
2237         [Qt] Make qtlauncher and qgvlauncher use the generated headers
2238         path to make sure they are correctly generated.
2239
2240         * tests/tests.pri:
2241
2242 2010-02-10  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2243
2244         Reviewed by Tor Arne Vestbø.
2245
2246         [Qt] Ensure relative paths in generated .pri files to ensure that
2247         a source package with pre-generated derived sources can be compiled.
2248
2249         - Re-add a separate headers.pri file for WEBKIT_API_HEADERS
2250         - Rename the generated headers.pri to classheaders.pri to avoid
2251         confusion with the one generated by synqt since they don't have the
2252         same content.
2253         - Remove private headers list variable from classheaders.pri
2254         - Use $$PWD in classheaders.pri
2255         - Remove classheaders.pri from the installed files
2256
2257         * Api/DerivedSources.pro:
2258
2259 2010-02-10  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2260
2261         Reviewed by Tor Arne Vestbø.
2262
2263         [Qt] Minor fixes on QtWebKit headers generation.
2264
2265         - Adds QtWebKit to the generated headers destination path
2266         - Improve compatibility with MinGW
2267
2268         * Api/DerivedSources.pro:
2269
2270 2010-02-09  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2271
2272         Reviewed by nobody, build fix.
2273
2274         [Qt] Fix standalone build with MinGW.
2275
2276         * tests/qwebelement/tst_qwebelement.cpp:
2277         * tests/tests.pri:
2278
2279 2010-02-10  Diego Gonzalez  <diego.gonzalez@openbossa.org>
2280
2281         Reviewed by Kenneth Rohde Christiansen.
2282
2283         Implement pageNumberForElementById() method in Qt DRT LayoutTestController,
2284         to make Qt DRT able to get page number.
2285
2286         LayoutTests:
2287             printing/page-break-always.html
2288             printing/pageNumerForElementById.html
2289             printing/css2.1/page-break-before-000.html
2290             printing/css2.1/page-break-after-000.html
2291             printing/css2.1/page-break-after-004.html
2292             printing/css2.1/page-break-before-001.html
2293             printing/css2.1/page-break-after-001.html
2294             printing/css2.1/page-break-after-002.html
2295             printing/css2.1/page-break-before-002.html
2296             printing/css2.1/page-break-inside-000.html
2297
2298         [Qt] Make possible Qt DRT get a page number for element by ID
2299         https://bugs.webkit.org/show_bug.cgi?id=34777
2300
2301         * Api/qwebframe.cpp:
2302         (qt_drt_pageNumberForElementById):
2303
2304 2010-02-09  Yael Aharon  <yael.aharon@nokia.com>
2305
2306         Reviewed by Adam Barth.
2307
2308         [Qt] Unit test for window.runModalDialog
2309         https://bugs.webkit.org/show_bug.cgi?id=34755
2310
2311         * tests/qwebpage/tst_qwebpage.cpp:
2312         (TestModalPage::TestModalPage):
2313         (TestModalPage::createWindow):
2314         (tst_QWebPage::showModalDialog):
2315
2316 2010-02-09  Andreas Kling  <andreas.kling@nokia.com>
2317
2318         Reviewed by Kenneth Rohde Christiansen.
2319
2320         [Qt] Sync with API changes in Maemo 5 kinetic scrolling
2321
2322         https://bugs.webkit.org/show_bug.cgi?id=34747
2323
2324         This is a forward-port of http://qt.gitorious.org/+qt-developers/qt/x11-maemo/commit/08497561
2325
2326         * Api/qwebview.cpp:
2327         (qt_sendSpontaneousEvent):
2328         (QWebViewKineticScroller::QWebViewKineticScroller):
2329         (QWebViewKineticScroller::setWidget):
2330         (QWebViewKineticScroller::eventFilter):
2331         (QWebViewKineticScroller::cancelLeftMouseButtonPress):
2332         (QWebViewKineticScroller::currentFrame):
2333         (QWebViewKineticScroller::scrollingFrameAt):
2334         (QWebViewKineticScroller::maximumScrollPosition):
2335         (QWebViewKineticScroller::scrollPosition):
2336         (QWebViewKineticScroller::viewportSize):
2337         (QWebViewKineticScroller::setScrollPosition):
2338         (QWebViewKineticScroller::sendEvent):
2339         (QWebView::QWebView):
2340
2341 2010-02-09  Yael Aharon  <yael.aharon@nokia.com>
2342
2343         Reviewed by Kenneth Rohde Christiansen.
2344
2345         [Qt] Webkit in Qt does not have window.showModalDialog
2346         https://bugs.webkit.org/show_bug.cgi?id=25585
2347
2348         Create a new eventloop when runModal() is called.
2349         Added comemnt in QWebPage::createWindow that the application is responsible
2350         for setting the modality of the appropriate window.
2351
2352         * Api/qwebpage.cpp:
2353         * WebCoreSupport/ChromeClientQt.cpp:
2354         (WebCore::ChromeClientQt::ChromeClientQt):
2355         (WebCore::ChromeClientQt::~ChromeClientQt):
2356         (WebCore::ChromeClientQt::canRunModal):
2357         (WebCore::ChromeClientQt::runModal):
2358         * WebCoreSupport/ChromeClientQt.h:
2359
2360 2010-01-19  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2361
2362         Reviewed by Dave Hyatt.
2363
2364         Implement flattening of framesets
2365         https://bugs.webkit.org/show_bug.cgi?id=32717
2366
2367         Privately export the setFrameSetFlatteningEnabled setting for
2368         use with the Qt DRT.
2369
2370         * Api/qwebpage.cpp:
2371         (qt_drt_setFrameSetFlatteningEnabled):
2372         (QWebPagePrivate::core):
2373         * Api/qwebpage_p.h:
2374
2375 2010-02-05  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2376
2377         [Qt] Fix build on Windows
2378
2379         Reviewed by Kenneth Rohde Christiansen.
2380
2381         DerivedSources for our API headers failed on Windows,
2382         due to Windows not accepting ; as a command separator,
2383         not needing quotes for echo, and needing < and > escaped.
2384
2385         We now detect Windows and set these quote markers and
2386         escape markers accordingly, as well as use && for separating
2387         individual commands.
2388
2389         * Api/DerivedSources.pro:
2390
2391 2010-02-05  Yury Semikhatsky  <yurys@chromium.org>
2392
2393         Reviewed by Pavel Feldman.
2394
2395         Remove unused inmport of ScriptFunctionCall.h
2396
2397         https://bugs.webkit.org/show_bug.cgi?id=33592
2398
2399         * Api/qwebelement.cpp:
2400
2401 2010-02-05  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2402
2403         Reviewed by Simon Hausmann.
2404
2405         [Qt] Generate convenience headers (QWebView, etc) using qmake
2406
2407         In Qt this is done using syncqt, but we use a pro-file instead
2408         that generates makefile-rules for each of the extra headers.
2409
2410         These extra headers are installed alongside the normal headers.
2411
2412         * Api/DerivedSources.pro: Added. List of headers + pro file magic
2413         * Api/headers.pri: Removed, list of headers is now in the above file
2414
2415 2010-02-04  No'am Rosenthal  <noam.rosenthal@nokia.com>
2416
2417         Reviewed by Ariya Hidayat.
2418
2419         [Qt] Tuning and optimizations to GraphicsLayerQt. Mainly reduced usage
2420         of QTimer::singleShot, and moved syncLayers() from paint() to update()
2421         https://bugs.webkit.org/show_bug.cgi?id=34062
2422
2423         * Api/qgraphicswebview.cpp:
2424         (QGraphicsWebViewPrivate::update): Moved the sync operation to update
2425         (QGraphicsWebView::paint): Moved the sync operation to update
2426
2427 2010-02-03  Andras Becsi  <abecsi@webkit.org>
2428
2429         Unreviewed build fix.
2430
2431         [Qt] Roll-out r54281 because it broke the build on the Qt Release bot.
2432
2433         * Api/qgraphicswebview.cpp:
2434         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
2435         (QGraphicsWebViewPrivate::markForSync):
2436         (QGraphicsWebViewPrivate::update):
2437         (QGraphicsWebView::paint):
2438
2439 2010-02-02  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2440
2441         Reviewed by Ariya Hidayat.
2442
2443         Do not use a proxy widget for the QComboBox on Maemo 5, as it
2444         is not working properly and it is not needed at all, as the
2445         comboboxes comes up in their full width on the screen and
2446         do not depend on view.
2447
2448         * WebCoreSupport/QtFallbackWebPopup.cpp:
2449         (WebCore::QtFallbackWebPopup::show):
2450
2451 2010-02-02  Jessie Berlin  <jberlin@webkit.org>
2452
2453         Rubber Stamped by Holger Freyther.
2454
2455         [Qt] Fix style issue identified in bug:
2456         https://bugs.webkit.org/show_bug.cgi?id=34329
2457
2458         * WebCoreSupport/InspectorClientQt.cpp:
2459         (WebCore::InspectorClientWebPage::InspectorClientWebPage):
2460         Fix indentation.
2461
2462 2010-02-01  Jessie Berlin  <jberlin@webkit.org>
2463
2464         Reviewed by Holger Freyther.
2465
2466         [Qt] Enable inspecting the Web Inspector in QtLauncher
2467
2468         https://bugs.webkit.org/show_bug.cgi?id=34329
2469
2470         * WebCoreSupport/InspectorClientQt.cpp:
2471         (WebCore::InspectorClientWebPage::InspectorClientWebPage):
2472         Allow the DeveloperExtrasEnabled setting to default to true for the page containing the Web Inspector.
2473
2474 2010-02-02  Andreas Kling  <andreas.kling@nokia.com>
2475
2476         Reviewed by Kenneth Rohde Christiansen.
2477
2478         [Qt] Display HTML tags verbatim in JS alert/confirm/prompt boxes
2479
2480         https://bugs.webkit.org/show_bug.cgi?id=34429
2481
2482         * Api/qwebpage.cpp:
2483         (QWebPage::javaScriptAlert):
2484         (QWebPage::javaScriptConfirm):
2485         (QWebPage::javaScriptPrompt):
2486
2487 2010-02-02  Noam Rosenthal  <noam.rosenthal@nokia.com>
2488
2489         Reviewed by Kenneth Rohde Christiansen.
2490
2491         [Qt] Enable a way to measure FPS in QGVLauncher
2492         run QGVLauncher with --show-fps to see ongoing fps measurements
2493         This is not meant as accurate FPS, but rather as a way to find
2494         improvements/regressions
2495         https://bugs.webkit.org/show_bug.cgi?id=34450
2496
2497         * QGVLauncher/main.cpp:
2498         (MainView::MainView): initialize FPS values
2499         (MainView::paintEvent): count a painted frame here
2500         (MainView::printFps): we print the fps with qDebug every 5 seconds.
2501
2502 2010-01-29  Ben Murdoch  <benm@google.com>
2503
2504         Reviewed by Dimitri Glazkov.
2505
2506         [Android] Android needs functionality in the ChromeClient to be informed when touch events are and are not needed by the webpage.
2507         https://bugs.webkit.org/show_bug.cgi?id=34215
2508
2509         Add needTouchEvents() to the ChromeClient which is called when the page decides it needs or no longer needs to be informed of touch events.
2510
2511         * WebCoreSupport/ChromeClientQt.h:
2512         (WebCore::ChromeClientQt::needTouchEvents): Add an empty implementation.
2513
2514 2010-01-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2515
2516         Reviewed by Simon Hausmann
2517
2518         Disable auto-uppercase and predictive text on Maemo5, just like the
2519         build-in MicroB Browser.
2520
2521         * WebCoreSupport/EditorClientQt.cpp:
2522         (WebCore::EditorClientQt::setInputMethodState):
2523
2524 2010-01-28  Andreas Kling  <andreas.kling@nokia.com>
2525
2526         Reviewed by Kenneth Rohde Christiansen.
2527
2528         [Qt] Support kinetic scrolling on Maemo 5
2529
2530         https://bugs.webkit.org/show_bug.cgi?id=34267
2531
2532         Patch by Ralf Engels <ralf.engels@nokia.com> and
2533         Robert Griebl <rgriebl@trolltech.com>
2534
2535         * Api/qwebview.cpp:
2536         (QWebViewKineticScroller::QWebViewKineticScroller):
2537         (QWebViewKineticScroller::eventFilter):
2538         (QWebViewKineticScroller::currentFrame):
2539         (QWebViewKineticScroller::scrollingFrameAt):
2540         (QWebViewKineticScroller::attachToWidget):
2541         (QWebViewKineticScroller::removeFromWidget):
2542         (QWebViewKineticScroller::positionRange):
2543         (QWebViewKineticScroller::position):
2544         (QWebViewKineticScroller::viewportSize):
2545         (QWebViewKineticScroller::setPosition):
2546         (QWebView::QWebView):
2547
2548 2010-01-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2549
2550         Reviewed by Simon Hausmann.
2551
2552         Do not set the combobox font on Maemo5 and S60; use the
2553         default instead.
2554
2555         * WebCoreSupport/QtFallbackWebPopup.cpp:
2556         (WebCore::QtFallbackWebPopup::populate):
2557
2558 2010-01-28  Trond Kjernåsen <trond@trolltech.com>
2559
2560         Reviewed by Simon Hausmann.
2561
2562         [Qt] Fix for endless print loop when printing web pages
2563
2564         * Api/qwebframe.cpp:
2565         (QWebFrame::print):
2566
2567 2010-01-27  Diego Gonzalez  <diego.gonzalez@openbossa.org>
2568
2569         Reviewed by Kenneth Rohde Christiansen.
2570
2571         [Qt] DRT Provide worker thread ability to track counters
2572         https://bugs.webkit.org/show_bug.cgi?id=34221
2573
2574         Implement workerThreadCount() in LayoutTestController of Qt DRT
2575
2576         Tests:
2577         fast/workers/dedicated-worker-lifecycle.html
2578         fast/workers/shared-worker-frame-lifecycle.html
2579         fast/workers/shared-worker-lifecycle.html
2580         fast/workers/worker-lifecycle.html
2581
2582         * Api/qwebpage.cpp:
2583         (qt_drt_workerThreadCount):
2584
2585 2010-01-27  Simon Hausmann  <simon.hausmann@nokia.com>
2586
2587         Reviewed by Laszlo Gombos.
2588
2589         [Qt] Update the .def files with exported symbols
2590
2591         * symbian/eabi/QtWebKitu.def: Add two mangled missing new symbols for arm eabi.
2592
2593 2010-01-27  Kent Hansen  <kent.hansen@nokia.com>
2594
2595         Reviewed by Simon Hausmann.
2596
2597         [Qt] Meta-methods can't be introspected using ES5 API
2598         https://bugs.webkit.org/show_bug.cgi?id=34087
2599
2600         Test that Object.getOwnPropertyDescriptor and
2601         Object.getOwnPropertyNames work with meta-methods.
2602
2603         * tests/qwebframe/tst_qwebframe.cpp:
2604
2605 2010-01-26  Simon Hausmann  <simon.hausmann@nokia.com>
2606
2607         Reviewed by Kenneth Rohde Christiansen.
2608
2609         [Qt] Show comboboxes on Maemo 5
2610         https://bugs.webkit.org/show_bug.cgi?id=34088
2611
2612         Don't try to show the combobox by simulating a mouse event from QCursor::pos() to
2613         get the combobox position right. The position on Maemo 5 is independent from the mouse
2614         and there's no QCursor::pos().
2615
2616         * WebCoreSupport/QtFallbackWebPopup.cpp:
2617         (WebCore::QtFallbackWebPopup::show):
2618
2619 2010-01-26  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
2620
2621         Reviewed by Simon Hausmann.
2622
2623         First steps of the QtScript API.
2624         
2625         Two new classes were created; QScriptEngine and QScriptValue.
2626         The first should encapsulate a javascript context and the second a script
2627         value.
2628         
2629         This API is still in development, so it isn't compiled by default.
2630         To trigger compilation, pass --qmakearg="CONFIG+=build-qtscript" to
2631         build-webkit.
2632
2633         https://bugs.webkit.org/show_bug.cgi?id=32565
2634
2635         * docs/qtwebkit.qdocconf:
2636
2637 2010-01-26  Holger Hans Peter Freyther  <zecke@selfish.org>
2638
2639         Reviewed by Simon Hausmann.
2640
2641         [Qt] JavaScript prompt is currently broken
2642         https://bugs.webkit.org/show_bug.cgi?id=30914
2643
2644         In r52152 a patch was landed to convert a null QString
2645         to an empty WebCore::String in case the prompt was accepted
2646         but the default implementation returned the null QString.
2647
2648         The patch tried to avoid assign to result twice and
2649         was not checking the QString if it is null but the default
2650         value. This lead to always returning an empty string on
2651         successful prompts. Fix it by checking the variable 'x'
2652         for isNull.
2653
2654         The manual test case used didn't cover the case of non
2655         empty input, replace it with an automatic test case that
2656         should cover all cases.
2657
2658         * WebCoreSupport/ChromeClientQt.cpp:
2659         (WebCore::ChromeClientQt::runJavaScriptPrompt): Fix the bug.
2660         * tests/qwebpage/tst_qwebpage.cpp: Add automatic test case
2661         (JSPromptPage::JSPromptPage):
2662         (JSPromptPage::javaScriptPrompt):
2663         (tst_QWebPage::testJSPrompt):
2664
2665 2010-01-25  Simon Hausmann  <hausmann@webkit.org>
2666
2667         Reviewed by Kenneth Rohde Christiansen.
2668
2669         [Qt] In RenderThemeQt determine the QStyle from the page client instead of the page's view
2670         https://bugs.webkit.org/show_bug.cgi?id=34053
2671
2672         * Api/qgraphicswebview.cpp:
2673         (QGraphicsWebViewPrivate::style): Implement QWebPageClient::style() and return the graphics
2674         widget's style.
2675         * Api/qwebpage.cpp:
2676         (QWebPageWidgetClient::style): Implement QWebPageClient::style() and return the widget's style.
2677
2678 2010-01-25  Janne Koskinen  <janne.p.koskinen@digia.com>
2679
2680         Reviewed by Simon Hausmann.
2681
2682         [Qt] Phone backup support for QtWebkit for Symbian devices.
2683         https://bugs.webkit.org/show_bug.cgi?id=34077
2684
2685         * symbian/backup_registration.xml: Added.
2686
2687 2010-01-23  Girish Ramakrishnan  <girish@forwardbias.in>
2688
2689         Reviewed by Kenneth Rohde Christiansen.
2690
2691         [Qt] Fix positioning of ComboBox popup in QGraphicsWebView.
2692         
2693         Wrap the popup in a QGraphicsProxyWidget, so that the popup
2694         transforms with the item.
2695         
2696         https://bugs.webkit.org/show_bug.cgi?id=33887
2697
2698         * WebCoreSupport/QtFallbackWebPopup.cpp:
2699         (WebCore::QtFallbackWebPopupCombo::hidePopup):
2700         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
2701         (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
2702         (WebCore::QtFallbackWebPopup::show):
2703         * WebCoreSupport/QtFallbackWebPopup.h:
2704
2705 2010-01-22  Peter Kasting  <pkasting@google.com>
2706
2707         Not reviewed, backout.
2708
2709         Back out r52673, which caused several regressions.
2710         https://bugs.webkit.org/show_bug.cgi?id=32533
2711
2712         * WebCoreSupport/QtFallbackWebPopup.cpp:
2713         (WebCore::QtFallbackWebPopupCombo::hidePopup):
2714
2715 2010-01-22  Girish Ramakrishnan  <girish@forwardbias.in>
2716
2717         Reviewed by Simon Hausmann.
2718
2719         [Qt] Save the QWebPageClient instead of the ownerWidget in QtAbstractWebPopup
2720         
2721         The QWebPageClient is required for the QtFallbackWebPopup. QtFallbackWebPopup will
2722         need it to create a QGraphicsProxyWidget (in a future commit) for the 
2723         QGraphicsWebView's web popup.
2724
2725         * WebCoreSupport/QtFallbackWebPopup.cpp:
2726         (WebCore::QtFallbackWebPopup::show):
2727
2728 2010-01-22  Girish Ramakrishnan  <girish@forwardbias.in>
2729
2730         Reviewed by Kenneth Rohde Christiansen.
2731
2732         QState::polished() was renamed to QState::propertiesAssigned() when
2733         Qt 4.6.0 was released.
2734
2735         * QGVLauncher/main.cpp:
2736         (MainWindow::init):
2737
2738 2010-01-21  Diego Gonzalez  <diego.gonzalez@openbossa.org>
2739
2740         Reviewed by Kenneth Rohde Christiansen.
2741
2742         [Qt] add setDomainRelaxationForbiddenForURLScheme in Qt DRT
2743         https://bugs.webkit.org/show_bug.cgi?id=33945
2744
2745         * Api/qwebsecurityorigin.cpp:
2746         (qt_drt_setDomainRelaxationForbiddenForURLScheme):
2747
2748 2010-01-21  No'am Rosenthal  <noam.rosenthal@nokia.com>
2749
2750         Reviewed by Antti Koivisto.
2751
2752         [Qt] Implement GraphicsLayer for accelerated layer compositing
2753         https://bugs.webkit.org/show_bug.cgi?id=33514
2754
2755         Here we have the QGraphicsWebView support for accelerated compositing
2756
2757         * Api/qgraphicswebview.cpp:
2758         (QGraphicsWebViewOverlay::q): access to container object
2759         (QGraphicsWebViewOverlay::boundingRect): overlay has same rect as the
2760         webview
2761         (QGraphicsWebViewOverlay::paint): paint everything but the contents
2762         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate): some vars needed
2763         for accelerated compositing
2764         (QGraphicsWebViewPrivate::):
2765         (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate):
2766         (QGraphicsWebViewPrivate::setRootGraphicsLayer): make sure we have a
2767         scrollbar overlay, and that the new graphics layer is parented by the
2768         web-view
2769         (QGraphicsWebViewPrivate::markForSync): flush changes at earliest
2770         convenience or during the next draw
2771
2772         (QGraphicsWebViewPrivate::updateCompositingScrollPosition): sync the
2773         position of the compositing layer with the scroll position
2774         (QGraphicsWebViewPrivate::syncLayers): flush changes now
2775         (QGraphicsWebViewPrivate::scroll): make sure we also move the
2776         compositing layer
2777         (QGraphicsWebViewPrivate::update): also update the overlay if needed
2778         (QGraphicsWebView::QGraphicsWebView): initialize overlay with 0
2779         (QGraphicsWebView::paint): paint only contents if we have an overlay,
2780         sync the compositing layers now if needed
2781         (QGraphicsWebView::setPage): also clean up the compositing
2782         (QGraphicsWebView::updateGeometry): also update overlay geo
2783         (QGraphicsWebView::setGeometry): also update overlay geo
2784         * Api/qgraphicswebview.h: reimp compositing stuff from QWebPageClient
2785         * Api/qwebsettings.cpp: init new settings flag for compositing as
2786         false
2787         (QWebSettingsPrivate::apply): apply new settings flag for compositing
2788         (QWebSettings::QWebSettings):
2789         * Api/qwebsettings.h: new settings flag for compositing
2790         * Api/qwebview.cpp: 
2791         (QWebView::setPage): qwebview doesn't support compositing: always false
2792         * QGVLauncher/main.cpp:
2793         (WebView::WebView): some more cmdline arguments + compositing
2794         (MainWindow::init): some more cmdline arguments
2795         (main): ditto
2796         * WebCoreSupport/ChromeClientQt.cpp:
2797         (WebCore::ChromeClientQt::attachRootGraphicsLayer): reimp for
2798         accel-compositing
2799         (WebCore::ChromeClientQt::setNeedsOneShotDrawingSynchronization):
2800         reimp for accel compositing
2801         (WebCore::ChromeClientQt::scheduleCompositingLayerSync): reimp for
2802         accel compositing
2803         * WebCoreSupport/ChromeClientQt.h: reimps for accel compositing
2804
2805 2010-01-21  Benjamin Poulain  <benjamin.poulain@nokia.com>
2806
2807         Reviewed by Simon Hausmann.
2808
2809         [Qt] Improve the autotests of QtWebkit
2810         https://bugs.webkit.org/show_bug.cgi?id=32216
2811
2812         Remove qWait() of the test when possible.
2813
2814         * tests/qwebpage/tst_qwebpage.cpp:
2815         (tst_QWebPage::loadFinished):
2816         (tst_QWebPage::database):
2817         (tst_QWebPage::testEnablePersistentStorage):
2818         (tst_QWebPage::errorPageExtension):
2819         (tst_QWebPage::screenshot):
2820
2821 2010-01-21  Simon Hausmann  <simon.hausmann@nokia.com>
2822
2823         Prospective build fix for the Qt build.
2824
2825         Fix compilation against Qt without WebKit support by not including QtWebKit/QWebView
2826         but widget.h instead and instantiating QWebView through a typedef, to ensure we're using
2827         our locally built WebKit.
2828
2829         * tests/hybridPixmap/widget.h:
2830         * tests/hybridPixmap/widget.ui:
2831
2832 2010-01-21  No'am Rosenthal  <noam.rosenthal@nokia.com>
2833
2834         Reviewed by Simon Hausmann.
2835
2836         [Qt] Adding QPixmap/QImage support for the Qt hybrid layer
2837         https://bugs.webkit.org/show_bug.cgi?id=32461
2838
2839         * tests/hybridPixmap: Added.
2840         * tests/hybridPixmap/hybridPixmap.pro: Added.
2841         * tests/hybridPixmap/resources.qrc: Added.
2842         * tests/hybridPixmap/test.html: Added.
2843         * tests/hybridPixmap/tst_hybridPixmap.cpp: Added.
2844         (tst_hybridPixmap::tst_hybridPixmap): tests most of the use cases for
2845         hybrid pixmap/image manipulation 
2846         (tst_hybridPixmap::init): QTestLib initialization
2847         (tst_hybridPixmap::cleanup): QTestLib cleanup
2848         (tst_hybridPixmap::hybridPixmap): run the html file
2849         * tests/hybridPixmap/widget.cpp: Added.
2850         (Widget::Widget):
2851         (Widget::refreshJS):
2852         (Widget::start):
2853         (Widget::completeTest):
2854         (Widget::setPixmap):
2855         (Widget::pixmap):
2856         (Widget::setImage):
2857         (Widget::image):
2858         (Widget::~Widget):
2859         (Widget::changeEvent):
2860         (Widget::compare):
2861         (Widget::imageSlot):
2862         (Widget::pixmapSlot):
2863         (Widget::randomSlot):
2864         * tests/hybridPixmap/widget.h: Added.
2865         * tests/hybridPixmap/widget.ui: Added.
2866         * tests/tests.pro:
2867
2868 2010-01-21  Luiz Agostini  <luiz.agostini@openbossa.org>
2869
2870         Reviewed by Kenneth Rohde Christiansen.
2871
2872         [Qt] Custom select popups.
2873         https://bugs.webkit.org/show_bug.cgi?id=33418
2874
2875         Adjusting QtFallbackWebPopupCombo to the changes in WebCore layer.
2876
2877         * WebCoreSupport/ChromeClientQt.cpp:
2878         (WebCore::ChromeClientQt::createSelectPopup):
2879         * WebCoreSupport/ChromeClientQt.h:
2880         * WebCoreSupport/QtFallbackWebPopup.cpp:
2881         (WebCore::QtFallbackWebPopupCombo::QtFallbackWebPopupCombo):
2882         (WebCore::QtFallbackWebPopupCombo::showPopup):
2883         (WebCore::QtFallbackWebPopupCombo::hidePopup):
2884         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
2885         (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
2886         (WebCore::QtFallbackWebPopup::show):
2887         (WebCore::QtFallbackWebPopup::hide):
2888         (WebCore::QtFallbackWebPopup::populate):
2889         * WebCoreSupport/QtFallbackWebPopup.h:
2890
2891 2010-01-19  Steve Block  <steveblock@google.com>
2892
2893         Reviewed by Adam Barth.
2894
2895         Renames WebCore/bridge/runtime.[cpp|h] to WebCore/bridge/Bridge.[cpp|h]
2896         https://bugs.webkit.org/show_bug.cgi?id=33801
2897
2898         * Api/qwebframe.cpp:
2899
2900 2010-01-14  Brian Weinstein  <bweinstein@apple.com>
2901
2902         Reviewed by Adam Roben.
2903
2904         Drag and Drop source/destination code needs cleanup.
2905         <https://bugs.webkit.org/show_bug.cgi?id=33691>.
2906         
2907         Update to new way of calling sourceOperation.
2908
2909         * WebCoreSupport/DragClientQt.cpp:
2910         (WebCore::DragClientQt::startDrag):
2911
2912 2010-01-14  Simon Hausmann  <simon.hausmann@nokia.com>
2913
2914         Reviewed by Tor Arne Vestbø.
2915
2916         [Qt] Symbian build fixes.
2917
2918         * tests/qwebpage/tst_qwebpage.cpp: Include util.h
2919         * tests/tests.pri: Don't define TESTS_SOURCE_DIR, it doesn't work.
2920         * tests/util.h: Define TESTS_SOURCE_DIR here, just like it's done in Qt.
2921
2922 2010-01-14  Simon Hausmann  <simon.hausmann@nokia.com>
2923
2924         Reviewed by Kenneth Rohde Christiansen.
2925
2926         [Qt] Update Symbian .def symbol export files after private API additions.
2927
2928         * symbian/bwins/QtWebKitu.def:
2929         * symbian/eabi/QtWebKitu.def:
2930
2931 2010-01-13  Darin Adler  <darin@apple.com>
2932
2933         Reviewed by Dan Bernstein.
2934
2935         Move more of the selection and caret painting code from Frame to SelectionController.
2936         https://bugs.webkit.org/show_bug.cgi?id=33619
2937
2938         * Api/qwebpage.cpp:
2939         (QWebPagePrivate::inputMethodEvent): Seems possibly wrong to be directly invoking this
2940         setCaretVisible here, but I updated it to call it in its new location.
2941
2942 2010-01-11  Simon Hausmann  <simon.hausmann@nokia.com>
2943
2944         Reviewed by Holger Freyther.
2945
2946         [Qt] Add private API for QWebFrame scrolling, to maintain binary compatibility with Qt 4.6.
2947
2948         This is just a temporary addition until we have introduced #ifdefs to allow
2949         safely removing the private API again.
2950
2951         * Api/qwebframe.cpp:
2952         (qtwebkit_webframe_scrollRecursively):
2953
2954 2010-01-10  Robert Hogan  <robert@roberthogan.net>
2955
2956         Reviewed by Adam Barth.
2957
2958         [Qt] Add enableXSSAuditor support to QWebSettings and DRT.
2959
2960         https://bugs.webkit.org/show_bug.cgi?id=33419
2961
2962         * Api/qwebsettings.cpp:
2963         (QWebSettingsPrivate::apply):
2964         * Api/qwebsettings.h:
2965
2966 2010-01-09  Daniel Bates  <dbates@webkit.org>
2967
2968         No review, rolling out r53044.
2969         http://trac.webkit.org/changeset/53044
2970         https://bugs.webkit.org/show_bug.cgi?id=33419
2971         
2972         We need to look into this some more because the Qt
2973         bot is failing the XSSAuditor tests. See bug #33419
2974         for more details.
2975
2976         * Api/qwebsettings.cpp:
2977         * Api/qwebsettings.h:
2978
2979 2010-01-09  Daniel Bates  <dbates@webkit.org>
2980
2981         Reviewed by Adam Barth.
2982
2983         https://bugs.webkit.org/show_bug.cgi?id=33419
2984
2985         Adds support for the XSSAuditor to the Qt DRT.
2986
2987         * Api/qwebsettings.cpp: Updated comment to reflect added key XSSAuditorEnabled.
2988         * Api/qwebsettings.h: Adds settings key XSSAuditorEnabled.
2989
2990 2010-01-08  Luiz Agostini  <luiz.agostini@openbossa.org>
2991
2992         Reviewed by Kenneth Rohde Christiansen.
2993
2994         [Qt] Delegation client
2995         https://bugs.webkit.org/show_bug.cgi?id=32826
2996
2997         Added method createPopup to ChromeClientQt used to create popups.
2998         QtFallbackWebPopup moved from WebCore/platform/qt to
2999         WebKit/qt/WebCoreSupport.
3000
3001         * WebCoreSupport/ChromeClientQt.cpp:
3002         (WebCore::ChromeClientQt::createPopup):
3003         * WebCoreSupport/ChromeClientQt.h:
3004         * WebCoreSupport/QtFallbackWebPopup.cpp: Added.
3005         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
3006         (WebCore::QtFallbackWebPopup::show):
3007         (WebCore::QtFallbackWebPopup::populate):
3008         (WebCore::QtFallbackWebPopup::showPopup):
3009         (WebCore::QtFallbackWebPopup::hidePopup):
3010         (WebCore::QtFallbackWebPopup::activeChanged):
3011         (WebCore::QtFallbackWebPopup::setParent):
3012         * WebCoreSupport/QtFallbackWebPopup.h: Added.
3013         (WebCore::QtFallbackWebPopup::hide):
3014
3015 2010-01-07  Yael Aharon  <yael.aharon@nokia.com>
3016
3017         Reviewed by Kenneth Rohde Christiansen.
3018
3019         [Qt] Allow the application to override online/offline network status
3020         https://bugs.webkit.org/show_bug.cgi?id=32684
3021
3022         Add a setting so that applications can overide the network status.
3023         Applications that use this setting still need to block network access
3024         through QNAM.
3025
3026         * Api/qwebsettings.cpp:
3027         (qt_networkAccessAllowed):
3028
3029 2010-01-07  Yongjun Zhang  <yongjun.zhang@nokia.com>, Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3030
3031         Reviewed by Simon Hausmann.
3032
3033         [Qt] need an API to suspend and resume active Javascript DOM objects.
3034         https://bugs.webkit.org/show_bug.cgi?id=31673
3035
3036         Add suspend and resume DOM objects private API to QWebFrame.
3037
3038         * Api/qwebframe.cpp:
3039         (qt_suspendActiveDOMObjects):
3040         (qt_resumeActiveDOMObjects):
3041
3042 2010-01-06  Andreas Kling  <andreas.kling@nokia.com>
3043
3044         Reviewed by Simon Hausmann.
3045
3046         [Qt] Return an invalid Qt::ImMicroFocus if queried while the view needs to layout.
3047
3048         https://bugs.webkit.org/show_bug.cgi?id=33204
3049
3050         * Api/qwebpage.cpp:
3051         (QWebPage::inputMethodQuery):
3052
3053 2010-01-05  Yael Aharon  <yael.aharon@nokia.com>
3054
3055         Reviewed by Kenneth Rohde Christiansen.
3056
3057         Drag & drop layout tests fail even when run manually
3058         https://bugs.webkit.org/show_bug.cgi?id=33055
3059
3060         No new tests. Fix 3 layout tests when run manually.
3061         fast/events/drag-and-drop.html
3062         fast/events/drag-and-drop-dataTransfer-types-nocrash.html
3063         fast/events/drag-and-drop-fire-drag-dragover.html
3064         Running these tests in DRT will be fixed in 31332.
3065
3066         * Api/qwebpage.cpp:
3067         (dropActionToDragOp):
3068         (dragOpToDropAction):
3069         (QWebPagePrivate::dragEnterEvent):
3070         (QWebPagePrivate::dragMoveEvent):
3071         (QWebPagePrivate::dropEvent):
3072         Accept drag events even if they are not over a drop target. 
3073         This is to ensure that drag events will continue to be delivered.
3074
3075         * Api/qwebpage_p.h:
3076         * WebCoreSupport/DragClientQt.cpp:
3077         (WebCore::dragOperationToDropActions):
3078         (WebCore::dropActionToDragOperation):
3079         (WebCore::DragClientQt::startDrag):
3080         Send dragEnd event.
3081
3082 2010-01-04  Daniel Bates  <dbates@webkit.org>
3083
3084         Reviewed by Eric Seidel.
3085
3086         https://bugs.webkit.org/show_bug.cgi?id=33097
3087
3088         Cleans up the File menu to better conform to the File menu in Safari
3089         both in terms of options and keyboard shortcuts. Adds a "Quit" menu
3090         options to close all open windows.
3091
3092         * QGVLauncher/main.cpp:
3093         (MainWindow::buildUI):
3094
3095 2009-12-31  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3096
3097         Reviewed by Kenneth Rohde Christiansen.
3098
3099         [Qt] Enable all HTML5 persistent features for QGVLauncher
3100         https://bugs.webkit.org/show_bug.cgi?id=33086
3101
3102         * QGVLauncher/main.cpp: Call enablePersistentStorage()
3103         (main):
3104
3105 2009-12-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3106
3107         Reviewed by Simon Hausmann.
3108
3109         [Qt] It should be possible to disable inspector
3110         https://bugs.webkit.org/show_bug.cgi?id=32724
3111
3112         This change fixes the build break. Some QtWebKit interfaces
3113         will not be fully functional (most notable QWebInspector) if
3114         INSPECTOR is disabled.
3115
3116         * Api/qwebinspector.cpp:
3117         (QWebInspector::showEvent):
3118         (QWebInspector::closeEvent):
3119         * Api/qwebpage.cpp:
3120         (webActionForContextMenuAction):
3121         (QWebPagePrivate::getOrCreateInspector):
3122         (QWebPagePrivate::inspectorController):
3123         (QWebPage::triggerAction):
3124         (QWebPage::updatePositionDependentActions):
3125         * WebCoreSupport/InspectorClientQt.cpp:
3126         (WebCore::InspectorClientQt::showWindow):
3127         (WebCore::InspectorClientQt::closeWindow):
3128
3129 2009-12-30  Janne Koskinen  <janne.p.koskinen@digia.com>
3130
3131         Reviewed by Simon Hausmann.
3132
3133         Upstream Symbian def files from Qt 4.6.
3134
3135         These files define the ABI of QtWebKit on Symbian.
3136
3137         * symbian/bwins/QtWebKitu.def: Added.
3138         * symbian/eabi/QtWebKitu.def: Added.
3139
3140 2009-12-29  Daniel Bates  <dbates@webkit.org>
3141
3142         Reviewed by Ariya Hidayat.
3143
3144         https://bugs.webkit.org/show_bug.cgi?id=32925
3145
3146         Adds an Open File dialog to make it convenient to open a file
3147         to view in the browser.
3148
3149         * QGVLauncher/main.cpp:
3150         (MainWindow::load): Modified to call loadURL.
3151         (MainWindow::openFile): Added.
3152         (MainWindow::loadURL): Added.
3153         (MainWindow::buildUI): Added menu item Open File.
3154
3155 2009-12-29  Robert Hogan  <robert@roberthogan.net>
3156
3157         Reviewed by Eric Seidel.
3158
3159         [Qt] Fix crash on LayoutTests/fast/loader/empty-embed-src-attribute.html
3160         
3161         Related to https://bugs.webkit.org/show_bug.cgi?id=23806
3162         
3163         If an embedded document is loaded within a page and it has an empty
3164         URL, use a blank URL for the load request.
3165         
3166         https://bugs.webkit.org/show_bug.cgi?id=33017
3167
3168         * WebCoreSupport/FrameLoaderClientQt.cpp:
3169         (WebCore::FrameLoaderClientQt::createFrame):
3170
3171 2009-12-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3172
3173         Rubber-stamped by Simon Hausmann and Holger Freyther.
3174
3175         [Qt] Remove WebKit/qt/WebKitPart empty directory
3176
3177         The content of the directory has been removed by r34888.
3178
3179         * WebKitPart: Removed.
3180
3181 2009-12-29  Jakub Wieczorek  <faw217@gmail.com>
3182
3183         Reviewed by Eric Seidel.
3184
3185         [Qt] DRT: Frame loader callbacks differ from the Mac port
3186         https://bugs.webkit.org/show_bug.cgi?id=32989
3187
3188         Remove messages from the callbacks that should not dump them to match
3189         the expected results for the http/loading tests.
3190
3191         Unskip some http/loading tests which succeed now.
3192
3193         * WebCoreSupport/FrameLoaderClientQt.cpp:
3194         (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
3195         (WebCore::FrameLoaderClientQt::dispatchWillClose):
3196         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
3197         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
3198
3199 2009-12-29  Robert Hogan  <robert@roberthogan.net>
3200
3201         Reviewed by Eric Seidel.
3202
3203         [Qt] fix fast/dom/Window/window-onFocus.html
3204         
3205         Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
3206         window.onblur was getting dispatched twice from QtWebKit.
3207         
3208         https://bugs.webkit.org/show_bug.cgi?id=32990
3209
3210         * Api/qwebpage.cpp:
3211         (QWebPagePrivate::focusOutEvent):
3212
3213 2009-12-24  Girish Ramakrishnan  <girish@forwardbias.in>
3214
3215         Reviewed by Gustavo Noronha.
3216
3217         Doc : QGraphicsWebView::zoomFactor was introduced in 4.6.
3218         
3219         * Api/qgraphicswebview.cpp:
3220
3221 2009-12-22  Simon Hausmann  <simon.hausmann@nokia.com>
3222
3223         Rubber-stamped by Holger Freyther.
3224
3225         Moved QtLauncher to WebKitTools/
3226
3227         * QtLauncher: Removed.
3228         * QtLauncher/QtLauncher.pro: Removed.
3229         * QtLauncher/main.cpp: Removed.
3230
3231 2009-12-21  David Boddie  <dboddie@trolltech.com>
3232
3233         Reviewed by Simon Hausmann.
3234
3235         Doc: Minor fixes to language.
3236
3237         * Api/qwebpage.cpp:
3238
3239 2009-12-21  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3240
3241         Reviewed by Simon Hausmann.
3242
3243         [Qt] Clean up the WebKit layer unit-tests
3244
3245             - Use tests.pri for common options
3246             - Standardize file naming
3247             - Move all resources to 'resources' subdir
3248             - Standardize how TESTS_SOURCE_DIR is used
3249             - Get rid of UID3 for symbian (autogenerated)
3250             - Don't build app bundles on Mac OS X
3251
3252         * tests/benchmarks/loading/loading.pro: Added.
3253         * tests/benchmarks/loading/tst_loading.pro: Removed.
3254         * tests/benchmarks/painting/painting.pro: Added.
3255         * tests/benchmarks/painting/tst_painting.pro: Removed.
3256         * tests/qgraphicswebview/qgraphicswebview.pro:
3257         * tests/qwebelement/qwebelement.pro:
3258         * tests/qwebelement/qwebelement.qrc: Removed.
3259         * tests/qwebelement/resources/image.png: Renamed from WebKit/qt/tests/qwebelement/image.png.
3260         * tests/qwebelement/resources/style.css: Renamed from WebKit/qt/tests/qwebelement/style.css.
3261         * tests/qwebelement/resources/style2.css: Renamed from WebKit/qt/tests/qwebelement/style2.css.
3262         * tests/qwebelement/tst_qwebelement.qrc: Added.
3263         * tests/qwebframe/qwebframe.pro:
3264         * tests/qwebframe/qwebframe.qrc: Removed.
3265         * tests/qwebframe/resources/image.png: Renamed from WebKit/qt/tests/qwebframe/image.png.
3266         * tests/qwebframe/resources/style.css: Renamed from WebKit/qt/tests/qwebframe/style.css.
3267         * tests/qwebframe/resources/test1.html: Renamed from WebKit/qt/tests/qwebframe/test1.html.
3268         * tests/qwebframe/resources/test2.html: Renamed from WebKit/qt/tests/qwebframe/test2.html.
3269         * tests/qwebframe/resources/testiframe.html: Renamed from WebKit/qt/tests/qwebframe/testiframe.html.
3270         * tests/qwebframe/resources/testiframe2.html: Renamed from WebKit/qt/tests/qwebframe/testiframe2.html.
3271         * tests/qwebframe/tst_qwebframe.cpp:
3272         * tests/qwebframe/tst_qwebframe.qrc: Added.
3273         * tests/qwebhistory/qwebhistory.pro:
3274         * tests/qwebhistory/resources/page1.html: Renamed from WebKit/qt/tests/qwebhistory/data/page1.html.
3275         * tests/qwebhistory/resources/page2.html: Renamed from WebKit/qt/tests/qwebhistory/data/page2.html.
3276         * tests/qwebhistory/resources/page3.html: Renamed from WebKit/qt/tests/qwebhistory/data/page3.html.
3277         * tests/qwebhistory/resources/page4.html: Renamed from WebKit/qt/tests/qwebhistory/data/page4.html.
3278         * tests/qwebhistory/resources/page5.html: Renamed from WebKit/qt/tests/qwebhistory/data/page5.html.
3279         * tests/qwebhistory/resources/page6.html: Renamed from WebKit/qt/tests/qwebhistory/data/page6.html.
3280         * tests/qwebhistory/tst_qwebhistory.cpp:
3281         (tst_QWebHistory::):
3282         * tests/qwebhistory/tst_qwebhistory.qrc:
3283         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
3284         * tests/qwebinspector/qwebinspector.pro:
3285         * tests/qwebpage/qwebpage.pro:
3286         * tests/qwebpage/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebpage/frametest/frame_a.html.
3287         * tests/qwebpage/resources/iframe.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe.html.
3288         * tests/qwebpage/resources/iframe2.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe2.html.
3289         * tests/qwebpage/resources/iframe3.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe3.html.
3290         * tests/qwebpage/resources/index.html: Renamed from WebKit/qt/tests/qwebpage/frametest/index.html.
3291         * tests/qwebpage/tst_qwebpage.cpp:
3292         (tst_QWebPage::backActionUpdate):
3293         (tst_QWebPage::frameAt):
3294         (tst_QWebPage::errorPageExtensionInFrameset):
3295         (tst_QWebPage::screenshot):
3296         * tests/qwebpage/tst_qwebpage.qrc:
3297         * tests/qwebplugindatabase/qwebplugindatabase.pro:
3298         * tests/qwebview/qwebview.pro:
3299         * tests/qwebview/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebview/data/frame_a.html.
3300         * tests/qwebview/resources/index.html: Renamed from WebKit/qt/tests/qwebview/data/index.html.
3301         * tests/qwebview/tst_qwebview.cpp:
3302         (tst_QWebView::reusePage):
3303         (tst_QWebView::crashTests):
3304         * tests/qwebview/tst_qwebview.qrc:
3305         * tests/resources/image2.png: Renamed from WebKit/qt/tests/qwebframe/resources/image2.png.
3306         * tests/tests.pri: Added.
3307         * tests/tests.pro:
3308
3309 2009-12-18  Ariya Hidayat  <ariya.hidayat@gmail.com>
3310
3311         Build fix, not reviewed.
3312
3313         * QtLauncher/main.cpp:
3314         (MainWindow::setTouchMocking): Leave setTouchMocking as an empty
3315         function for Qt < 4.6 so that moc still creates a slot for that.
3316         Otherwise, it would have generated a linker error.
3317
3318 2009-12-18  Adam Roben  <aroben@apple.com>
3319
3320         Qt build fix
3321
3322         * Api/qwebpage.cpp: Added #include.
3323
3324 2009-12-18  Adam Roben  <aroben@apple.com>
3325
3326         Qt build fix
3327
3328         * Api/qwebpage.cpp:
3329         Added #includes.
3330
3331 2009-12-18  Joe Ligman  <joseph.ligman@nokia.com>
3332
3333         Reviewed by Kenneth Rohde Christiansen.
3334
3335         [Qt] Add new API to QWebFrame to scrollRecursively starting with any css overflow 
3336         then checking current frame and then ancestors
3337         https://bugs.webkit.org/show_bug.cgi?id=32668
3338
3339         * Api/qwebframe.cpp:
3340         (QWebFramePrivate::scrollOverflow):
3341         (QWebFrame::scrollRecursively):
3342         * Api/qwebframe.h:
3343         * Api/qwebframe_p.h:
3344         * tests/qwebframe/qwebframe.qrc:
3345         * tests/qwebframe/testiframe.html: Added.
3346         * tests/qwebframe/testiframe2.html: Added.
3347         * tests/qwebframe/tst_qwebframe.cpp:
3348
3349 2009-12-18  Simon Hausmann  <simon.hausmann@nokia.com>
3350
3351         Reviewed by Tor Arne Vestbø.
3352
3353         [Qt] Fix infinite recursion in touch mocking.
3354
3355         Don't send the fake touch events to the view, as that'll trigger the
3356         event filter again.
3357
3358         * QtLauncher/main.cpp:
3359         (MainWindow::sendTouchEvent):
3360
3361 2009-12-17  Benjamin Poulain  <benjamin.poulain@nokia.com>
3362
3363         Reviewed by Simon Hausmann.
3364
3365         [Qt] Add support for mocking touch events with Q(GV)Launcher
3366         https://bugs.webkit.org/show_bug.cgi?id=32434
3367
3368         The event delivery should go through QCoreApplication::sendEvent()
3369
3370         * QtLauncher/main.cpp:
3371         (MainWindow::sendTouchEvent):
3372
3373 2009-12-17  Kim Grönholm  <kim.gronholm@nomovok.com>
3374
3375         Reviewed by Simon Hausmann.
3376
3377         [Qt] Add support for touch events in QWebView and QGraphicsWebView
3378         https://bugs.webkit.org/show_bug.cgi?id=32432
3379
3380         * Api/qgraphicswebview.cpp:
3381         (QGraphicsWebView::QGraphicsWebView):
3382         (QGraphicsWebView::sceneEvent):
3383         * Api/qwebview.cpp:
3384         (QWebView::QWebView):
3385         (QWebView::event):
3386
3387 2009-12-17  Kim Grönholm  <kim.gronholm@nomovok.com>
3388
3389         Reviewed by Simon Hausmann.
3390
3391         [Qt] Add support for mocking touch events with QtLauncher
3392         https://bugs.webkit.org/show_bug.cgi?id=32434
3393
3394         * QtLauncher/main.cpp:
3395         (MainWindow::MainWindow):
3396         (MainWindow::sendTouchEvent):
3397         (MainWindow::eventFilter):
3398         (MainWindow::setTouchMocking):
3399         (MainWindow::setupUI):
3400
3401 2009-12-14  Holger Hans Peter Freyther  <zecke@selfish.org>
3402
3403         Reviewed by Kenneth Rohde Christiansen.
3404
3405         [Qt] Fix JavaScript prompt behavior for empty/null strings.
3406         https://bugs.webkit.org/show_bug.cgi?id=30914
3407
3408         The patch is based on the work done by Gupta Manish.
3409
3410         In the default implementation of the JavaScript prompt
3411         we are using a QInputDialog to get the text and this has
3412         one quirk with regard to not entering any text.
3413
3414         In other WebKit ports and in Firefox an empty string is
3415         returned but in the Qt case it is a null string.
3416
3417         Change the API documentation in QWebPage to mention we want to
3418         have a non null string but do the fixup in the ChromeClientQt
3419         to support existing code.
3420
3421         * Api/qwebpage.cpp:
3422         (QWebPage::javaScriptPrompt): Change API documentation
3423         * WebCoreSupport/ChromeClientQt.cpp:
3424         (WebCore::ChromeClientQt::runJavaScriptPrompt): Fixup null QString
3425
3426 2009-11-24  Holger Hans Peter Freyther  <zecke@selfish.org>
3427
3428         Reviewed by Simon Hausmann.
3429
3430         [Qt] Do not disable the inspector on show and hide
3431         https://bugs.webkit.org/show_bug.cgi?id=31851
3432
3433         On Qt/X11 with some window managers the window will be
3434         hidden when switching windows. In this case all the results
3435         are gone when coming back to the window.
3436
3437         Attempt to use the CloseEvent to figure out if the window
3438         was closed and withdrawn as this is more friendly to the
3439         user of the inspector client.
3440
3441         * Api/qwebinspector.cpp:
3442         (QWebInspector::hideEvent):
3443         (QWebInspector::closeEvent):
3444         * Api/qwebinspector.h:
3445
3446 2009-12-14  Benjamin Poulain  <benjamin.poulain@nokia.com>
3447
3448         Reviewed by Kenneth Rohde Christiansen.
3449
3450         [Qt] Improve the autotests of QtWebkit
3451         https://bugs.webkit.org/show_bug.cgi?id=32216
3452
3453         Refactor tst_qwebelement to remove the qWait()
3454
3455         * tests/qwebelement/tst_qwebelement.cpp:
3456         (tst_QWebElement::style):
3457
3458 2009-12-14  Andreas Kling  <andreas.kling@nokia.com>
3459
3460         Reviewed by Simon Hausmann.
3461
3462         Fix the QWebPage inputMethods() autotest after r51758
3463         to compare the Qt::ImFont property's family against an explicitly
3464         previously configured family.
3465
3466         https://bugs.webkit.org/show_bug.cgi?id=32491
3467
3468         * tests/qwebpage/tst_qwebpage.cpp:
3469         (tst_QWebPage::inputMethods):
3470
3471 2009-12-13  Sam Weinig  <sam@webkit.org>
3472
3473         Reviewed by Dan Bernstein.
3474
3475         Fix for https://bugs.webkit.org/show_bug.cgi?id=32499
3476         Add client based Geolocation provider
3477
3478         Add first cut of a client based Geolocation provider. This is guarded by
3479         ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a
3480         GeolocationControllerClient interface that no-one currently implements,
3481         but will in a subsequent patch.
3482
3483         * Api/qwebpage.cpp:
3484         (QWebPagePrivate::QWebPagePrivate):
3485
3486 2009-12-13  Benjamin Poulain  <benjamin.poulain@nokia.com>
3487
3488         Reviewed by Simon Hausmann.
3489
3490         Add a test in Qt for https://bugs.webkit.org/show_bug.cgi?id=29005
3491         https://bugs.webkit.org/show_bug.cgi?id=29008
3492
3493         * tests/qwebframe/tst_qwebframe.cpp:
3494
3495 2009-12-13  Simon Hausmann  <hausmann@webkit.org>
3496
3497         Reviewed by Holger Freyther.
3498
3499         [Qt] Re-enable QWebView::renderHints property for Qt for Symbian
3500
3501         https://bugs.webkit.org/show_bug.cgi?id=28273
3502
3503         The bug in Qt's moc that triggered a linking error when declaring this
3504         property has been fixed and we can remove the workaround.
3505
3506         * Api/qwebview.h:
3507
3508 2009-12-11  Yael Aharon  <yael.aharon@nokia.com>
3509
3510         Unreviewed build fix for Qt versions < 4.6.
3511
3512         * tests/qwebframe/tst_qwebframe.cpp:
3513         * tests/qwebview/tst_qwebview.cpp:
3514         (tst_QWebView::reusePage):
3515
3516 2009-12-11  Girish Ramakrishnan  <girish@forwardbias.in>
3517
3518         Reviewed by Tor Arne Vestbø.
3519
3520         [Qt] Updated QWebElement documentation
3521         
3522         findAll() returns a QWebElementCollection, not QList<QWebElement>.
3523
3524         * docs/webkitsnippets/webelement/main.cpp:
3525         (findAll):
3526
3527 2009-12-11  Simon Hausmann  <hausmann@webkit.org>, Kim Grönholm  <kim.gronholm@nomovok.com>
3528
3529         Reviewed by Antti Koivisto.
3530
3531         Forward Qt touch events to the event handler as platform touch events.
3532
3533         https://bugs.webkit.org/show_bug.cgi?id=32114
3534
3535         * Api/qwebpage.cpp:
3536         (QWebPagePrivate::touchEvent):
3537         (QWebPage::event):
3538         * Api/qwebpage_p.h:
3539
3540 2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
3541
3542         Reviewed by Kenneth Rohde Christiansen.
3543
3544         [Qt] Improve the autotests of QtWebkit
3545         https://bugs.webkit.org/show_bug.cgi?id=32216
3546
3547         Remove the calls to qWait() of the autotest of QWebView
3548
3549         * tests/qwebview/tst_qwebview.cpp:
3550         (tst_QWebView::reusePage):
3551
3552 2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
3553
3554         Reviewed by Kenneth Rohde Christiansen.
3555
3556         [Qt] Improve the autotests of QtWebkit
3557         https://bugs.webkit.org/show_bug.cgi?id=32216
3558
3559         Refactor tst_qwebframe to remove qWait() and use
3560         the function waitForSignal() from util.h
3561
3562         * tests/qwebframe/tst_qwebframe.cpp:
3563
3564 2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
3565
3566         Reviewed by Kenneth Rohde Christiansen.
3567
3568         [Qt] Improve the autotests of QtWebkit
3569         https://bugs.webkit.org/show_bug.cgi?id=32216
3570
3571         Refactor the test of QGraphicsWebView:
3572         -make waitForSignal() available to all the tests.
3573         -remove QTest::qWait()
3574
3575         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
3576         (tst_QGraphicsWebView::crashOnViewlessWebPages):
3577         * tests/util.h:
3578         (waitForSignal):
3579
3580 2009-12-07  Girish Ramakrishnan  <girish@forwardbias.in>
3581
3582         Reviewed by Simon Hausmann.
3583
3584         [Qt] Plugins: Force windowless mode when there is no native window handle
3585         
3586         Inject wmode=opaque while instantiating the plugin for the case when the
3587         webpage is not backed by a native window handle.
3588         
3589         https://bugs.webkit.org/show_bug.cgi?id=32059
3590
3591         * WebCoreSupport/FrameLoaderClientQt.cpp:
3592         (WebCore::FrameLoaderClientQt::createPlugin):
3593
3594 2009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3595
3596         Reviewed by Kenneth Rohde Christiansen.
3597
3598         [Qt] Corrects QtLauncher style
3599
3600         * QtLauncher/main.cpp:
3601         (WebPage::acceptNavigationRequest):
3602         (MainWindow::MainWindow):
3603         (MainWindow::webPage):
3604         (MainWindow::webView):
3605         (MainWindow::changeLocation):
3606         (MainWindow::loadFinished):
3607         (MainWindow::showLinkHover):
3608         (MainWindow::zoomIn):
3609         (MainWindow::zoomOut):
3610         (MainWindow::print):
3611         (MainWindow::setEditable):
3612         (MainWindow::dumpHtml):
3613         (MainWindow::selectElements):
3614         (MainWindow::newWindow):
3615         (MainWindow::setupUI):
3616         (WebPage::createWindow):
3617         (WebPage::createPlugin):
3618         (main):
3619
3620 2009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3621
3622         Reviewed by Kenneth Rohde Christiansen.
3623
3624         [Qt] QtLauncher: add a menu to show or hide the web inspector.
3625         https://bugs.webkit.org/show_bug.cgi?id=32149
3626
3627         * QtLauncher/main.cpp:
3628         (WebInspector::WebInspector):
3629         (WebInspector::showEvent):
3630         (WebInspector::hideEvent):
3631         (MainWindow::MainWindow):
3632         (MainWindow::setupUI):
3633
3634 2009-12-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3635
3636         Reviewed by Antti Koivisto.
3637
3638         Split out the renderPrivate in two methods, one for working on
3639         relative coordinates (relative to the viewport) and one for
3640         working on absolute coordinates. The latter is more effecient
3641         for implementing tiling, as you don't need translate the coords,
3642         and because it avoid clipping to the viewport.
3643
3644         No behaviour changes, so no new tests.
3645
3646         * Api/qwebframe.cpp:
3647         (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
3648         (QWebFramePrivate::renderRelativeCoords):
3649         (QWebFrame::render):
3650         * Api/qwebframe_p.h:
3651
3652 2009-12-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3653
3654         Reviewed by Simon Hausmann.
3655
3656         [Qt] Allow removing 'qrc' as a local security origin scheme
3657
3658         * tests/qwebpage/tst_qwebpage.cpp:
3659
3660 2009-12-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3661
3662         Reviewed by Simon Hausmann.
3663
3664         [Qt] Clean up argument parsing in the QtLauncher
3665
3666         * QtLauncher/main.cpp:
3667
3668 2009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3669
3670         Reviewed by Kenneth Rohde Christiansen.
3671
3672         [Qt] Prevent the inspector from closing its wrapping widget.
3673         This is not necessary anymore since we now hide the embedded
3674         close button.
3675         https://bugs.webkit.org/show_bug.cgi?id=32149
3676
3677         * WebCoreSupport/InspectorClientQt.cpp:
3678         (WebCore::InspectorClientQt::showWindow):
3679         (WebCore::InspectorClientQt::closeWindow):
3680
3681 2009-12-03  İsmail Dönmez  <ismail@namtrac.org>
3682
3683         Reviewed by Eric Seidel.
3684
3685         Fix compilation when SVG is disabled.
3686
3687         * Api/qwebframe.cpp:
3688         (qt_drt_pauseSVGAnimation):
3689
3690 2009-12-03  Brady Eidson  <beidson@apple.com>
3691
3692         Reviewed by Sam Weinig.
3693
3694         <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
3695
3696         * WebCoreSupport/FrameLoaderClientQt.cpp:
3697         (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
3698         (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
3699         (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):