2010-11-24 Kristian Amlie <kristian.amlie@nokia.com>
[WebKit.git] / WebKit / qt / ChangeLog
1 2010-11-24  Kristian Amlie  <kristian.amlie@nokia.com>
2
3         Reviewed by Andreas Kling.
4
5         Fixed handling of QInputMethodEvents with nonzero replacementLength.
6
7         These types of events replace text that is already in the widget, but
8         WebKit did not check for replacementLength at all.
9
10         https://bugs.webkit.org/show_bug.cgi?id=49787
11
12         * Api/qwebpage.cpp:
13         (QWebPagePrivate::inputMethodEvent):
14         * tests/qwebpage/tst_qwebpage.cpp:
15         (tst_QWebPage::inputMethods):
16
17 2010-11-24  Andras Becsi  <abecsi@inf.u-szeged.hu>
18
19         Reviewed by Kenneth Rohde Christiansen.
20
21         Make WebKit2 compile with !ENABLE(INSPECTOR).
22         https://bugs.webkit.org/show_bug.cgi?id=49973
23
24         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
25         (DumpRenderTreeSupportQt::setJavaScriptProfilingEnabled):
26
27 2010-11-24  Sheriff Bot  <webkit.review.bot@gmail.com>
28
29         Unreviewed, rolling out r72650.
30         http://trac.webkit.org/changeset/72650
31         https://bugs.webkit.org/show_bug.cgi?id=50010
32
33         breaks focus in scenes focus item other than graphicswebiview
34         (Requested by tronical_ on #webkit).
35
36         * Api/qgraphicswebview.cpp:
37         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
38         (QGraphicsWebView::QGraphicsWebView):
39         (QGraphicsWebView::itemChange):
40         * Api/qgraphicswebview.h:
41         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
42
43 2010-11-24  Jan Erik Hanssen  <jhanssen@sencha.com>
44
45         Reviewed by Kenneth Rohde Christiansen.
46
47         [Qt] Html autofocus not working with QGraphicsWebView
48         https://bugs.webkit.org/show_bug.cgi?id=43169
49
50         QGraphicsScene does not propagate Qt::ActivateWindowFocusReason focus
51         events when there are no active items.
52
53         * Api/qgraphicswebview.cpp:
54         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
55         (QGraphicsWebView::QGraphicsWebView):
56         (QGraphicsWebView::eventFilter):
57         (QGraphicsWebView::itemChange):
58         * Api/qgraphicswebview.h:
59         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
60         (FocusPage::FocusPage):
61         (FocusPage::event):
62         (FocusPage::gotFocus):
63         (tst_QGraphicsWebView::receivesFocusInOnShow):
64
65 2010-11-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
66
67         Reviewed by Andreas Kling.
68
69         Adapt to setShouldDelegateScrolling not being a real setting anymore.
70         We now similarily to setUseFixedLayout and setPaintEntireContents
71         set it on the FrameView wen transitioning to a new page.
72
73         * Api/qgraphicswebview.cpp:
74         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
75         * WebCoreSupport/FrameLoaderClientQt.cpp:
76         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
77
78 2010-11-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
79
80         Reviewed by Kenneth Rohde Christiansen.
81
82         [Qt] Fix compilation with !ENABLE(INSPECTOR)
83         https://bugs.webkit.org/show_bug.cgi?id=49942
84
85         Add ENABLE(INSPECTOR) to the Qt specific files following r71981.
86
87         * WebCoreSupport/InspectorClientQt.cpp:
88         (WebCore::InspectorClientQt::inspectorDestroyed):
89         (WebCore::InspectorClientQt::openInspectorFrontend):
90         (WebCore::InspectorClientQt::sendMessageToFrontend):
91         * WebCoreSupport/InspectorServerQt.cpp:
92         (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
93
94 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
95
96         Reviewed by Andreas Kling.
97
98         [Qt] Restore binary compatibility with the QtWebKit 2.1 branch
99
100         Re-order the enums by adding new enum entries to the end.
101
102         * Api/qwebsettings.h:
103
104 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
105
106         Reviewed by Tor Arne Vestbø.
107
108         [Qt] Review the setUserPermission & friends API
109         https://bugs.webkit.org/show_bug.cgi?id=46810
110
111         Renamed requestPermissionFromUser to featurePermissionRequested
112         and cancelRequestsForPermission to featurePermissionRequestCanceled.
113
114         * Api/qwebpage.h:
115         * WebCoreSupport/GeolocationPermissionClientQt.cpp:
116         (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
117         (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
118         * WebCoreSupport/NotificationPresenterClientQt.cpp:
119         (WebCore::NotificationPresenterClientQt::requestPermission):
120         (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
121
122 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
123
124         Reviewed by Tor Arne Vestbø.
125
126         [Qt] Review the setUserPermission & friends API
127         https://bugs.webkit.org/show_bug.cgi?id=46810
128
129         Rename setUserPermission to setFeaturePermission
130
131         * Api/qwebpage.cpp:
132         (QWebPage::setFeaturePermission):
133         * Api/qwebpage.h:
134         * tests/qwebpage/tst_qwebpage.cpp:
135         (JSTestPage::requestPermission):
136
137 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
138
139         Reviewed by Tor Arne Vestbø.
140
141         [Qt] Review the setUserPermission & friends API
142         https://bugs.webkit.org/show_bug.cgi?id=46810
143
144         Rename PermissionDomain to Feature, NotificationsPermissionDomain to Notifications
145         and GeolocationPermissionDomain to Geolocation.
146
147         * Api/qwebpage.cpp:
148         (QWebPage::setUserPermission):
149         * Api/qwebpage.h:
150         * WebCoreSupport/GeolocationPermissionClientQt.cpp:
151         (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
152         (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
153         * WebCoreSupport/NotificationPresenterClientQt.cpp:
154         (WebCore::NotificationPresenterClientQt::requestPermission):
155         (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
156         * tests/qwebpage/tst_qwebpage.cpp:
157         (JSTestPage::requestPermission):
158         (tst_QWebPage::geolocationRequestJS):
159
160 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
161
162         Reviewed by Tor Arne Vestbø.
163
164         [Qt] Review the setUserPermission & friends API
165         https://bugs.webkit.org/show_bug.cgi?id=46810
166
167         Add a ByUser suffix to PermissionGranted/Denied. In the future
168         we can add PermissionGrantedByDefault.
169
170         * Api/qwebpage.cpp:
171         (QWebPage::setUserPermission):
172         * Api/qwebpage.h:
173         * WebCoreSupport/GeolocationPermissionClientQt.cpp:
174         (WebCore::GeolocationPermissionClientQt::setPermission):
175         * tests/qwebpage/tst_qwebpage.cpp:
176         (JSTestPage::requestPermission):
177
178 2010-11-22  Jan Erik Hanssen  <jhanssen@sencha.com>
179
180         Reviewed by Kenneth Rohde Christiansen.
181
182         [Qt] QWebElement::appendInside() doesn't work on head elements
183         https://bugs.webkit.org/show_bug.cgi?id=49166
184
185         Make QWebElement::appendInside() call 
186         Element::deprecatedCreateContextualFragment(), bypassing the check for
187         the HEAD tag in the HTMLElement implementation of this function.
188
189         * Api/qwebelement.cpp:
190         (QWebElement::appendInside):
191         * tests/qwebelement/tst_qwebelement.cpp:
192         (tst_QWebElement::addElementToHead):
193
194 2010-11-20  Andreas Kling  <kling@webkit.org>
195
196         Reviewed by Antonio Gomes.
197
198         [Qt] Dragging a selection should use a rendering of the selection as "cursor" for the drag
199         https://bugs.webkit.org/show_bug.cgi?id=49870
200
201         * WebCoreSupport/DragClientQt.cpp:
202         (WebCore::DragClientQt::startDrag): Pass the DragImage to QDrag::setPixmap()
203
204 2010-11-20  Sam Magnuson  <smagnuso@gmail.com>
205
206         Reviewed by Andreas Kling.
207
208         [Qt] crash when attempting to add a JS object
209         https://bugs.webkit.org/show_bug.cgi?id=49287
210
211         * Api/qwebframe.cpp:
212         (QWebFrame::addToJavaScriptWindowObject):
213
214         Test: LayoutTests/fast/frames/sandboxed-iframe-plugins.html
215
216 2010-11-20  Sheriff Bot  <webkit.review.bot@gmail.com>
217
218         Unreviewed, rolling out r72471.
219         http://trac.webkit.org/changeset/72471
220         https://bugs.webkit.org/show_bug.cgi?id=49865
221
222         broke two IME tests on Qt (Requested by kling on #webkit).
223
224         * Api/qwebpage.cpp:
225         (QWebPagePrivate::inputMethodEvent):
226         * tests/qwebpage/tst_qwebpage.cpp:
227         (tst_QWebPage::inputMethods):
228
229 2010-11-19  Kristian Amlie  <kristian.amlie@nokia.com>
230
231         Reviewed by Andreas Kling.
232
233         Fixed handling of QInputMethodEvents with nonzero replacementLength.
234
235         These types of events replace text that is already in the widget, but
236         WebKit did not check for replacementLength at all.
237
238         Also made sure that the preeditString is always respected, even if
239         there is committed text. This is how QLineEdit does it.
240
241         https://bugs.webkit.org/show_bug.cgi?id=49787
242
243         * Api/qwebpage.cpp:
244         (QWebPagePrivate::inputMethodEvent):
245         * tests/qwebpage/tst_qwebpage.cpp:
246         (tst_QWebPage::inputMethods):
247
248 2010-11-19  Benjamin Poulain  <benjamin.poulain@nokia.com>
249
250         Reviewed by Kenneth Rohde Christiansen.
251
252         [Qt] Transition and animation do not work with QWebView anymore
253         https://bugs.webkit.org/show_bug.cgi?id=49797
254
255         Accelerated compositing should not be enabled on QWebView without
256         texture mapper.
257
258         * WebCoreSupport/PageClientQt.h:
259         (WebCore::PageClientQWidget::allowsAcceleratedCompositing):
260
261 2010-11-19  Yi Shen  <yi.4.shen@nokia.com>
262
263         Reviewed by Laszlo Gombos.
264
265         [Qt] Memory leak in QWebInspector
266         https://bugs.webkit.org/show_bug.cgi?id=49765
267
268         Delete QWebInspectorPrivate in ~QWebInspector()
269
270         * Api/qwebinspector.cpp:
271         (QWebInspector::~QWebInspector):
272
273 2010-11-19  Sam Magnuson  <smagnuso@gmail.com>
274
275         Reviewed by Andreas Kling.
276
277         [Qt] Compile with QT_NO_UNDOCOMMAND
278         https://bugs.webkit.org/show_bug.cgi?id=49752
279
280         * WebCoreSupport/EditCommandQt.cpp:
281         (EditCommandQt::EditCommandQt):
282         * WebCoreSupport/EditCommandQt.h:
283
284 2010-11-19  Yi Shen  <yi.4.shen@nokia.com>
285
286         Reviewed by Andreas Kling.
287
288         https://bugs.webkit.org/show_bug.cgi?id=49200
289         [Qt] bugs in Composition mode for QWebPage::inputMethodEvent & inputMethodQuery()
290
291         Make QWebPage work as following when editor is in composition mode:
292         1. anchor position and cursor position are the same and always >= 0
293         2. current selection is always null
294
295         * Api/qwebpage.cpp:
296         (QWebPagePrivate::inputMethodEvent):
297         (QWebPage::inputMethodQuery):
298         * tests/qwebpage/tst_qwebpage.cpp:
299         (tst_QWebPage::inputMethods):
300
301 2010-11-18  Gavin Barraclough  <barraclough@apple.com>
302
303         Build fix - update error messages folllowing r72360.
304
305         * tests/qwebframe/tst_qwebframe.cpp:
306
307 2010-11-12  Luiz Agostini  <luiz.agostini@openbossa.org>
308
309         Reviewed by Andreas Kling.
310
311         [Qt] Static platform plugin support
312         https://bugs.webkit.org/show_bug.cgi?id=49470
313
314         Adding support for statically linked platform plugins.
315
316         * WebCoreSupport/QtPlatformPlugin.cpp:
317         (WebCore::QtPlatformPlugin::loadStaticallyLinkedPlugin):
318         (WebCore::QtPlatformPlugin::plugin):
319         * WebCoreSupport/QtPlatformPlugin.h:
320
321 2010-11-17  Andreas Kling  <kling@webkit.org>
322
323         Reviewed by Kenneth Rohde Christiansen.
324
325         Reuse the size of the actualVisibleContentRect when loading a new page
326         or navigating session history.
327
328         * WebCoreSupport/FrameLoaderClientQt.cpp:
329         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
330
331 2010-11-17  Dimitri Glazkov  <dglazkov@chromium.org>
332
333         Reviewed by Darin Adler.
334
335         Converge means of querying a parent node into one way, which is Node::parentNode.
336         https://bugs.webkit.org/show_bug.cgi?id=49686
337
338         * Api/qwebelement.cpp:
339         (QWebElement::prependOutside): Changed to use parentNode.
340         (QWebElement::appendOutside): Ditto.
341         (QWebElement::encloseContentsWith): Ditto.
342         (QWebElement::encloseWith): Ditto.
343
344 2010-11-16  Simon Hausmann  <simon.hausmann@nokia.com>
345
346         Reviewed by Andreas Kling.
347
348         [Qt] Remove synchronous QWebPage::checkPermissions signal
349         https://bugs.webkit.org/show_bug.cgi?id=46810
350
351         As decided in the API review, we remove this signal and replace its only use currently
352         with cached credentials.
353
354         * Api/qwebpage.cpp:
355         (QWebPage::setUserPermission): Pass the WebCore frame instead of the QWebFrame.
356         * Api/qwebpage.h:
357         * WebCoreSupport/NotificationPresenterClientQt.cpp:
358         (WebCore::NotificationPresenterClientQt::checkPermission): Replaced explicit
359         signal emission with hash lookup of previously granted permission (or not).
360         (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission): Remove
361         any previously cached/granted permission for the given script execution context.
362         (WebCore::NotificationPresenterClientQt::allowNotificationForFrame): Do not
363         only serve pending permission requests but before calling the JS callbacks, remember
364         the permission for subsequent synchronous checkPermission() calls.
365         * WebCoreSupport/NotificationPresenterClientQt.h: Add cache for permissions.
366
367 2010-11-15  Gavin Barraclough  <barraclough@apple.com>
368
369         Reviewed by NOBODY build fix.
370
371         Fix test broken by earlier patch.
372
373         * tests/qwebframe/tst_qwebframe.cpp:
374
375 2010-11-15  Yi Shen  <yi.4.shen@nokia.com>
376
377         Reviewed by Andreas Kling.
378
379         [Qt] ZoomTextOnly doesn't work
380         https://bugs.webkit.org/show_bug.cgi?id=49568
381
382         Check QWebSettings::ZoomTextOnly attribute before applying zoom
383
384         * Api/qwebframe.cpp:
385         (QWebFrame::textSizeMultiplier):
386         (QWebFrame::setZoomFactor):
387         (QWebFrame::zoomFactor):
388         * Api/qwebframe_p.h:
389         (QWebFramePrivate::QWebFramePrivate):
390
391 2010-11-14  Andreas Kling  <kling@webkit.org>
392
393         Reviewed by Antonio Gomes.
394
395         REGRESSION(r71895): API test javaScriptWindowObjectCleared fails
396         https://bugs.webkit.org/show_bug.cgi?id=49466
397
398         As of r71895 empty inline scripts are no longer executed and so
399         the javaScriptWindowObjectCleared() signal is no longer triggered
400         by <script></script>.
401
402         * tests/qwebframe/tst_qwebframe.cpp:
403
404 2010-11-12  Jacob Dinu  <dinu.jacob@nokia.com>
405
406         Reviewed by Andreas Kling.
407
408         [Qt] Update .def file for Symbian
409         https://bugs.webkit.org/show_bug.cgi?id=49456
410
411         Added missing symbols from revisions r69825, r70470, r71806
412
413         * symbian/eabi/QtWebKitu.def:
414
415 2010-11-12  Benjamin Poulain  <benjamin.poulain@nokia.com>
416
417         Reviewed by Andreas Kling.
418
419         [Qt] Need to implement WebKit::pluginWillHandleLoadError for WebKit2
420         https://bugs.webkit.org/show_bug.cgi?id=48764
421
422         Add the missing error.
423
424         * WebCoreSupport/FrameLoaderClientQt.cpp:
425         (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
426
427 2010-11-11  Yi Shen  <yi.4.shen@nokia.com>
428
429         Reviewed by Andreas Kling.
430
431         [Qt] QWebScriptWorld::world() may crash
432         https://bugs.webkit.org/show_bug.cgi?id=49342
433
434         * Api/qwebscriptworld.cpp:
435         (QWebScriptWorld::world):
436
437 2010-11-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
438
439         Reviewed by Andreas Kling.
440
441         [Qt] Add an API for overriding the actual visible content rect in WebCore
442         https://bugs.webkit.org/show_bug.cgi?id=49373
443
444         * Api/qwebpage.cpp:
445         (QWebPage::setActualVisibleContentRect):
446         * Api/qwebpage.h:
447
448 2010-11-11  Andreas Kling  <kling@webkit.org>
449
450         Reviewed by Kenneth Rohde Christiansen.
451
452         FrameView: Don't clip to visibleContentRect in paintEntireContents mode
453         https://bugs.webkit.org/show_bug.cgi?id=49375
454
455         Use paintEntireContents in combination with tiling, allowing to
456         actually set visibleContentRect to something different from
457         the actual contents size.
458
459         * Api/qgraphicswebview.cpp:
460         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
461         * WebCoreSupport/FrameLoaderClientQt.cpp:
462         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
463
464 2010-11-10  Sheriff Bot  <webkit.review.bot@gmail.com>
465
466         Unreviewed, rolling out r71733.
467         http://trac.webkit.org/changeset/71733
468         https://bugs.webkit.org/show_bug.cgi?id=49319
469
470         made qt bot crashy and sad (Requested by kling on #webkit).
471
472         * Api/qgraphicswebview.cpp:
473         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
474         * WebCoreSupport/FrameLoaderClientQt.cpp:
475         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
476
477 2010-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
478
479         Reviewed by Andreas Kling.
480
481         Use paintEntireContents in combination with tiling, allowing to
482         actually set visibleContentRect to something different from
483         the actual contents size.
484
485         * Api/qgraphicswebview.cpp:
486         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
487         * WebCoreSupport/FrameLoaderClientQt.cpp:
488         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
489
490 2010-11-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
491
492         Reviewed by Andreas Kling.
493
494         [Qt] build error in WebKit/qt/Api/qwebpage.cpp in Qt 4.7.0
495         https://bugs.webkit.org/show_bug.cgi?id=47427
496
497         Add a missing guard in order to be able to compile when
498         ENABLE(TOUCH_EVENTS) is not defined.
499
500         * Api/qwebpage.cpp:
501         (QWebPagePrivate::touchEvent):
502
503 2010-11-08  Alexey Proskuryakov  <ap@apple.com>
504
505         Reviewed by Darin Adler.
506
507         https://bugs.webkit.org/show_bug.cgi?id=48685
508         Notify UI process about focused frame
509
510         Added an empty implementation of the new ChromeClient method.
511
512         * WebCoreSupport/ChromeClientQt.cpp:
513         (WebCore::ChromeClientQt::focusedNodeChanged): Removed unneeded namespace prefix.
514         (WebCore::ChromeClientQt::focusedFrameChanged):
515         * WebCoreSupport/ChromeClientQt.h:
516
517 2010-11-08  Noam Rosenthal  <noam.rosenthal@nokia.com>
518
519         Reviewed by Kenneth Rohde Christiansen.
520
521         [Texmap] [Qt] Texture mapper initial implementation
522         https://bugs.webkit.org/show_bug.cgi?id=47070
523
524         Reorganized the textureMapper to be a member of QWebFramePrivate, to help with making
525         TextureMapper thread-safe.
526
527         * Api/qwebframe.cpp:
528         (QWebFramePrivate::renderCompositedLayers):
529         * Api/qwebframe_p.h:
530         * WebCoreSupport/PageClientQt.cpp:
531         (WebCore::PlatformLayerProxyQt::setTextureMapper):
532         (WebCore::PlatformLayerProxyQt::textureMapper):
533         (WebCore::PlatformLayerProxyQWidget::PlatformLayerProxyQWidget):
534         (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsObject):
535
536 2010-11-07  Adam Barth  <abarth@webkit.org>
537
538         Reviewed by Eric Seidel.
539
540         Rename Cache to MemoryCache
541         https://bugs.webkit.org/show_bug.cgi?id=49159
542
543         * Api/qwebpage.cpp:
544         * Api/qwebsettings.cpp:
545
546 2010-11-07  Chang Shu  <chang.shu@nokia.com>
547
548         Reviewed by Antonio Gomes.
549
550         Add a helper function to avoid duplicated code.
551         https://bugs.webkit.org/show_bug.cgi?id=49085
552
553         * WebCoreSupport/EditorClientQt.cpp:
554         (WebCore::EditorClientQt::handleKeyboardEvent):
555
556 2010-11-05  Chris Marrin  <cmarrin@apple.com>
557
558         Reviewed by Simon Fraser.
559
560         Move resumeAnimations/suspendAnimations from Frame to AnimationController.
561         https://bugs.webkit.org/show_bug.cgi?id=49073
562
563         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
564         (DumpRenderTreeSupportQt::suspendAnimations):
565         (DumpRenderTreeSupportQt::resumeAnimations):
566
567 2010-11-03  Antonio Gomes  <tonikitoo@webkit.org>, Andre Pedralho  <andre.pedralho@gmail.com>
568
569         Reviewed by Kenneth Rohde Christiansen and Antti Koivisto.
570
571         [Qt] Making effective use of nodesFromRect.
572         https://bugs.webkit.org/show_bug.cgi?id=44089
573
574         Patch adds a helper class (named TouchAdjuster) to improve tap actions
575         on mobile touch devices. TouchAdjuster makes use of the newly added rect
576         based hit test extension through the Document::nodesFromRect method.
577         Given a rectangle as input, nodesFromRect returns a z-index ordered list
578         of nodes whose boundaries intersect the rectangle.
579
580         Basically the TouchAdjuster class intercepts the QGraphicsSceneMouseEvent
581         passed to both QWebPagePrivate::mouse{Press,Release}Event methods before
582         they are passed down to WebCore. The goal is to infer the target click position.
583         For that, a rectangle is built up using the event position as a center point and
584         expanding it based on the values and directions set in the Platform Plugin
585         QWebTouchModifier::hitTestPadding.
586
587         TouchAdjuster iterates over the list of nodes returned by nodesFromRect and
588         picks the clickable one that has the largest intersection area with the hit
589         test rectangle. The target position is then the center point of this intersection
590         area.
591
592         In case of no clickable node intersects the hit test area, the click position
593         is not altered.
594
595         TouchAdjuster is *only* working for QGraphicsWebView based views.
596
597         * Api/qwebpage.cpp:
598         (QWebPagePrivate::mousePressEvent):
599         (QWebPagePrivate::mouseReleaseEvent):
600         (QWebPagePrivate::adjustPointForClicking):
601         (QWebPagePrivate::TouchAdjuster::TouchAdjuster):
602         (QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch):
603         (isClickableElement):
604         (hasMouseListener):
605         (isValidFrameOwner):
606         (nodeToElement):
607         * Api/qwebpage_p.h:
608
609 2010-10-20  Chang Shu  <chang.shu@nokia.com>, Antonio Gomes <tonikitoo@webkit.org>
610
611         Reviewed by Simon Fraser.
612
613         [Qt] Makes <input type=text> and <textarea> functional with
614         Spatial Navigation enabled. Before this patch, the focus cannot
615         move away from input box once it is in. This patch allows focus
616         move to neighbor nodes when the caret reaches the edge of the texts.
617         This patch does not support yet cases where the focused <input>
618         has a JS handler for the arrow keys.
619         https://bugs.webkit.org/show_bug.cgi?id=37153
620
621         * WebCoreSupport/EditorClientQt.cpp:
622         (WebCore::EditorClientQt::handleKeyboardEvent):
623
624 2010-11-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
625
626         Reviewed by David Hyatt.
627
628         Delegate scrolling via a separate method
629         https://bugs.webkit.org/show_bug.cgi?id=48988
630
631         Implement delegatedScrollRequested and make it emit the
632         scrollRequested signal for Qt.
633
634         * WebCoreSupport/ChromeClientQt.cpp:
635         (WebCore::ChromeClientQt::delegatedScrollRequested):
636         * WebCoreSupport/ChromeClientQt.h:
637
638 2010-11-04  Robert Hogan  <robert@webkit.org>
639
640         Reviewed by Andreas Kling.
641
642         [Qt] Clarify expected return values of innerXml(), outerXml()
643
644         If you put HTML in (e.g. using setHTML()) you will get HTML out,
645         even if you marked it up as XML.
646
647         https://bugs.webkit.org/show_bug.cgi?id=44876
648
649         * Api/qwebelement.cpp:
650
651 2010-11-03  Andre Pedralho  <andre.pedralho@gmail.com>
652
653         Reviewed by Kenneth Rohde Christiansen.
654
655         Using the Platform Plugin to define the default values for the padding of HitTestResult.
656         https://bugs.webkit.org/show_bug.cgi?id=48450
657
658         * Api/qwebkitplatformplugin.h:
659         (QWebTouchModifier::~QWebTouchModifier):
660         * WebCoreSupport/QtPlatformPlugin.cpp:
661         (WebCore::QtPlatformPlugin::createTouchModifier):
662         * WebCoreSupport/QtPlatformPlugin.h:
663         * examples/platformplugin/WebPlugin.cpp:
664         (WebPlugin::supportsExtension):
665         (WebPlugin::createExtension):
666         * examples/platformplugin/WebPlugin.h:
667         (TouchModifier::hitTestPaddingForTouch):
668         * examples/platformplugin/qwebkitplatformplugin.h:
669         (QWebTouchModifier::~QWebTouchModifier):
670
671 2010-11-03  Andreas Kling  <kling@webkit.org>
672
673         Reviewed by Kenneth Rohde Christiansen.
674
675         [Qt] QGWV: Keep the scrolling delegation intact when switching pages
676
677         * Api/qgraphicswebview.cpp:
678         (QGraphicsWebViewPrivate::updateResizesToContentsForPage): Turn on/off
679         scrolling delegation depending on the resizeToContents mode.
680         (QGraphicsWebViewPrivate::detachCurrentPage): Turn off scrolling delegation.
681         (QGraphicsWebView::setResizesToContents):
682
683 2010-11-03  Kenneth Rohde Christiansen  <kenneth@webkit.org>
684
685         Reviewed by Andreas Kling.
686
687         Make it possible to delegate scrolling to the UI
688         https://bugs.webkit.org/show_bug.cgi?id=48907
689
690         Enable scrolling delegation when setResizesToContents is active.
691
692         * Api/qgraphicswebview.cpp:
693         (QGraphicsWebView::setResizesToContents):
694
695 2010-11-03  Daniel Bates  <dbates@rim.com>
696
697         For unnamed frames, window.name returns a generated name
698         https://bugs.webkit.org/show_bug.cgi?id=6751
699
700         Part 1 of 2.
701
702         Substitute FrameTree::uniqueName() for FrameTree::name() in the Qt port.
703
704         * Api/qwebframe.cpp:
705         (QWebFrame::frameName):
706
707 2010-11-02  Noam Rosenthal  <noam.rosenthal@nokia.com>
708
709         Reviewed by Kenneth Rohde Christiansen.
710
711         Some refactor for texmap to enable WebKit2: remove globals, and allow TextureMapper to exist without a GraphicsContext.
712         This will allow rendering the TextureMapperNode tree without an active QPainter, into the current GL context.
713         Most of the changes simply move the globas in TextureMapperGL into members of that class.
714
715         [Texmap] [Qt] Texture mapper initial implementation
716         https://bugs.webkit.org/show_bug.cgi?id=47070
717
718         * Api/qwebframe.cpp:
719         (QWebFramePrivate::renderFromTiledBackingStore):
720         (QWebFramePrivate::renderCompositedLayers):
721         (QWebFramePrivate::renderRelativeCoords):
722         * Api/qwebframe_p.h:
723
724 2010-11-01  Brady Eidson  <beidson@apple.com>
725
726         Reviewed by Anders Carlsson.
727
728         <rdar://problem/7660547> and https://bugs.webkit.org/show_bug.cgi?id=48699
729         Context menu support for WebKit 2.
730
731         * WebCoreSupport/ChromeClientQt.h:
732         (WebCore::ChromeClientQt::showContextMenu):
733
734 2010-10-31  Robert Hogan  <robert@webkit.org>
735
736         Reviewed by Antonio Gomes.
737
738         [Qt] Support nodesFromRect in DRT
739
740         https://bugs.webkit.org/show_bug.cgi?id=48716
741
742         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
743         (DumpRenderTreeSupportQt::nodesFromRect):
744         * WebCoreSupport/DumpRenderTreeSupportQt.h:
745
746 2010-10-31  Andreas Kling  <kling@webkit.org>
747
748         Reviewed by Kenneth Rohde Christiansen.
749
750         [Qt] Short-circuit QWebPage::selectedText() if frame has no selection
751         https://bugs.webkit.org/show_bug.cgi?id=48736
752
753         Do an early return if the selection is empty.
754
755         No new tests, this is covered by tst_QWebPage::findText().
756
757         * Api/qwebpage.cpp:
758         (QWebPage::selectedText):
759
760 2010-10-30  Andreas Kling  <kling@webkit.org>
761
762         Reviewed by Antonio Gomes.
763
764         [Qt] IM: Don't manipulate selection via RenderTextControl
765         https://bugs.webkit.org/show_bug.cgi?id=48700
766
767         Go directly through the Frame's SelectionController instead.
768
769         No new tests, this is covered by tst_QWebPage::inputMethods.
770
771         * Api/qwebpage.cpp:
772         (QWebPagePrivate::inputMethodEvent):
773         (QWebPage::inputMethodQuery):
774
775 2010-10-29  Daniel Bates  <dbates@rim.com>
776
777         No review, rolling out 70971.
778         http://trac.webkit.org/changeset/70971
779         https://bugs.webkit.org/show_bug.cgi?id=6751
780
781         Rolling out changeset 70971 <http://trac.webkit.org/changeset/70971> since
782         it caused layout test failures on all bots. In particular, the
783         child count in a generated frame name differs after this patch. We need
784         to look into this further.
785
786         * Api/qwebframe.cpp:
787         (QWebFrame::frameName):
788
789 2010-10-28  Antonio Gomes  <agomes@rim.com>
790
791         Reviewed by Ojan Vafai.
792
793         Needs a "LinuxEditingBehavior", perhaps with a better name
794         https://bugs.webkit.org/show_bug.cgi?id=36627
795
796         Adding support to Qt's DRTSupport class to test the newly introduced Unix editing behavior.
797
798         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
799         (DumpRenderTreeSupportQt::setEditingBehavior):
800
801 2010-10-29  Daniel Bates  <dbates@rim.com>
802
803         Reviewed by Adam Barth.
804
805         For unnamed frames, window.name returns a generated name
806         https://bugs.webkit.org/show_bug.cgi?id=6751
807
808         Modified Qt-port to use FrameTree::uniqueName().
809
810         * Api/qwebframe.cpp:
811         (QWebFrame::frameName):
812
813 2010-10-29  Andreas Kling  <kling@webkit.org>
814
815         Reviewed by Ariya Hidayat.
816
817         [Qt] QWebPage's InputMethod event handling calls ShortcutOverride handler too
818         https://bugs.webkit.org/show_bug.cgi?id=48692
819
820         * Api/qwebpage.cpp:
821         (QWebPage::event): Add missing break statement.
822
823 2010-10-29  Ryosuke Niwa  <rniwa@webkit.org>
824
825         Reviewed by Darin Adler.
826
827         Remove RenderTextControl::setSelectionRange
828         https://bugs.webkit.org/show_bug.cgi?id=47870
829
830         Converted RenderTextControll::setSelectionRange to a global function.
831
832         * Api/qwebpage.cpp:
833         (QWebPagePrivate::inputMethodEvent): Calls setSelectionRange.
834
835 2010-10-29  Darin Adler  <darin@apple.com>
836
837         Reviewed by Sam Weinig.
838
839         Change BackForwardList clients to use BackForwardListImpl to prepare for further refactoring
840         https://bugs.webkit.org/show_bug.cgi?id=48574
841
842         * Api/qwebhistory.cpp:
843         (QWebHistory::clear):
844         * Api/qwebhistory_p.h:
845         * Api/qwebpage.cpp:
846         (QWebPagePrivate::QWebPagePrivate):
847         Use BackForwardListImpl.
848
849 2010-10-29  Alexey Proskuryakov  <ap@apple.com>
850
851         Reviewed by Darin Adler.
852
853         https://bugs.webkit.org/show_bug.cgi?id=48576
854         Let WebKit2 client know when a frame is a frameset
855
856         Added a blank implementation of the new FrameLoaderClient method.
857
858         * WebCoreSupport/FrameLoaderClientQt.h:
859         * WebCoreSupport/FrameLoaderClientQt.cpp:
860         (WebCore::FrameLoaderClientQt::dispatchDidBecomeFrameset):
861
862 2010-10-29  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
863
864         Reviewed by Andreas Kling.
865
866         [Qt] Fix tst_QWebFrame on XVFB.
867         https://bugs.webkit.org/show_bug.cgi?id=48637
868
869         These tests relied on a window manager to activate the window.
870
871         Fixes:
872         - tst_QWebFrame::popupFocus()
873         - tst_QwebFrame::inputFieldFocus()
874
875         * tests/qwebframe/tst_qwebframe.cpp:
876
877 2010-10-28  Noam Rosenthal  <noam.rosenthal@nokia.com>
878
879         Reviewed by Ariya Hidayat.
880
881         [Texmap] [Qt] Texture mapper initial implementation
882         https://bugs.webkit.org/show_bug.cgi?id=47070
883
884         Build fix,
885
886         * WebCoreSupport/PageClientQt.cpp:
887         (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsObject):
888         (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
889         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
890         * WebCoreSupport/PageClientQt.h:
891
892 2010-10-28  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
893
894         Reviewed by Andreas Kling.
895
896         [Qt] QWebElement: Don't retrieve CSS rules through DOMWindow.
897         https://bugs.webkit.org/show_bug.cgi?id=48519
898
899         JavaScript is prevented from retrieving cross-domain CSS rules since r70335.
900         This patch allow QWebElement to retrive style without this limitation
901         by asking the Document directly instead of going through DOMWindow.
902
903         Fixes:
904         - tst_QWebFrame::setHtmlWithResource()
905         - tst_QWebElement::style()
906
907         * Api/qwebelement.cpp:
908         (QWebElement::styleProperty):
909
910 2010-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
911
912         Reviewed by Andreas Kling.
913
914         Make Qt viewportAttributesForSize not assert on (0, 0) size
915         https://bugs.webkit.org/show_bug.cgi?id=48524
916
917         We now return an invalid (isValid() == false) ViewportAttributes
918         instance when the supplied size is (0, 0).
919
920         * Api/qwebpage.cpp:
921         (QWebPage::viewportAttributesForSize):
922
923 2010-10-27  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
924
925         Reviewed by Kenneth Rohde Christiansen.
926
927         [Qt] Fix tst_QWebFrame::popupFocus().
928         https://bugs.webkit.org/show_bug.cgi?id=48432
929
930         - Call setFocus() before show() to work around a but in Qt.
931         - Remove the check on combo at the end since hidePopup() leads
932           indirectly to its destruction and segfault.
933
934         * tests/qwebframe/tst_qwebframe.cpp:
935
936 2010-10-26  Jenn Braithwaite  <jennb@chromium.org>
937
938         Reviewed by Dmitry Titov.
939
940         Resource tracking failure when trying to move a frame between documents
941         https://bugs.webkit.org/show_bug.cgi?id=44713
942
943         * WebCoreSupport/FrameLoaderClientQt.cpp:
944         (WebCore::FrameLoaderClientQt::transferLoadingResourceFromPage):
945         Emtpy method.
946         * WebCoreSupport/FrameLoaderClientQt.h:
947
948 2010-10-26  Yi Shen  <yi.4.shen@nokia.com>
949
950         Reviewed by Andreas Kling.
951
952         [Qt] Skipping popup focus test for symbian
953         https://bugs.webkit.org/show_bug.cgi?id=48324
954
955         * tests/qwebframe/tst_qwebframe.cpp:
956
957 2010-10-26  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
958
959         Reviewed by Andreas Kling.
960
961         [Qt] Unit tests: setHtml("data:text/html,...") -> load(QUrl("data:text/html,..."))
962         https://bugs.webkit.org/show_bug.cgi?id=48319
963
964         These tests were failing since the new HTML parser.
965         This patch removes the content type from the error page as well.
966
967         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
968         (tst_QGraphicsWebView::crashOnViewlessWebPages):
969         * tests/qwebelement/tst_qwebelement.cpp:
970         (tst_QWebElement::frame):
971         * tests/qwebpage/tst_qwebpage.cpp:
972         (tst_QWebPage::loadFinished):
973         (ErrorPage::extension):
974         (tst_QWebPage::errorPageExtension):
975         (tst_QWebPage::errorPageExtensionInIFrames):
976         (tst_QWebPage::errorPageExtensionInFrameset):
977
978 2010-10-25  No'am Rosenthal  <noam.rosenthal@nokia.com>
979
980         Reviewed by Kenneth Rohde Christiansen.
981
982         [Texmap] [Qt] Texture mapper initial implementation
983         https://bugs.webkit.org/show_bug.cgi?id=47070
984
985         Glue layer (WebCoreSupport) changes to allow connecting TextureMapper to a Qt PageClient, i.e.
986         a QWebView or a QGraphicsWebView. This enables the new type, TextureMapperPlatformLayer, to be recognized both by
987         the compositor and by the page client.
988         Note that this is temporarily an opt-in, under USE(TEXTURE_MAPPER)
989
990         * Api/qwebframe.h:
991         * Api/qwebframe_p.h:
992         (QWebFramePrivate::QWebFramePrivate):
993         * Api/qwebpage.cpp:
994         (QWebPage::setView):
995         * WebCoreSupport/ChromeClientQt.cpp:
996         (WebCore::ChromeClientQt::attachRootGraphicsLayer):
997         * WebCoreSupport/PageClientQt.cpp:
998         (WebCore::PlatformLayerProxyQt::PlatformLayerProxyQt):
999         (WebCore::PlatformLayerProxyQt::~PlatformLayerProxyQt):
1000         (WebCore::PlatformLayerProxyQt::setSizeChanged):
1001         (WebCore::PlatformLayerProxyQWidget::PlatformLayerProxyQWidget):
1002         (WebCore::PlatformLayerProxyQWidget::eventFilter):
1003         (WebCore::PlatformLayerProxyQWidget::setNeedsDisplay):
1004         (WebCore::PlatformLayerProxyQWidget::setNeedsDisplayInRect):
1005         (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsWidget):
1006         (WebCore::PlatformLayerProxyQGraphicsObject::setNeedsDisplay):
1007         (WebCore::PlatformLayerProxyQGraphicsObject::setNeedsDisplayInRect):
1008         (WebCore::PageClientQWidget::setRootGraphicsLayer):
1009         (WebCore::PageClientQWidget::markForSync):
1010         (WebCore::PageClientQWidget::syncLayers):
1011         (WebCore::PageClientQGraphicsWidget::updateCompositingScrollPosition):
1012         (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
1013         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
1014         * WebCoreSupport/PageClientQt.h:
1015         (WebCore::PageClientQWidget::PageClientQWidget):
1016         (WebCore::PageClientQWidget::allowsAcceleratedCompositing):
1017         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
1018
1019 2010-10-25  Johnny Ding  <jnd@chromium.org>
1020
1021         Reviewed by Tony Chang.
1022
1023         Dump the gesture status of frame in frame load callbacks in DumpRenderTree
1024         by adding a new method dumpUserGestureInFrameLoadCallbacks.
1025         Now only dump the gesture status in "DidStartProvisionalLoad" callback.
1026         https://bugs.webkit.org/show_bug.cgi?id=47849
1027
1028         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1029         (DumpRenderTreeSupportQt::dumpUserGestureInFrameLoader):
1030         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1031         * WebCoreSupport/FrameLoaderClientQt.cpp:
1032         (drtPrintFrameUserGestureStatus):
1033         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
1034         (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
1035         (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
1036         (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
1037         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
1038         * WebCoreSupport/FrameLoaderClientQt.h:
1039
1040 2010-10-22  Sam Weinig  <sam@webkit.org>
1041
1042         Reviewed by Anders Carlsson.
1043
1044         WebKit2 needs to pass the current event modifier flags when requesting a new window
1045         https://bugs.webkit.org/show_bug.cgi?id=48140
1046
1047         * Api/qwebpage.cpp:
1048         (openNewWindow):
1049         * WebCoreSupport/ChromeClientQt.cpp:
1050         (WebCore::ChromeClientQt::createWindow):
1051         * WebCoreSupport/ChromeClientQt.h:
1052         * WebCoreSupport/FrameLoaderClientQt.cpp:
1053         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
1054         * WebCoreSupport/FrameLoaderClientQt.h:
1055         Add NavigationAction parameter.
1056
1057 2010-10-22  Yi Shen  <yi.4.shen@nokia.com>
1058
1059         Reviewed by Andreas Kling.
1060
1061         [Qt] InspectorClientQt crashes when deleting a qwebpage which has an inspector
1062         https://bugs.webkit.org/show_bug.cgi?id=48079
1063
1064         * Api/qwebpage.cpp:
1065         (QWebPagePrivate::~QWebPagePrivate):
1066         (QWebPage::~QWebPage):
1067
1068 2010-10-22  Benjamin Poulain  <benjamin.poulain@nokia.com>
1069
1070         Reviewed by Simon Hausmann.
1071
1072         [Qt] All widgets are rendered incorrectly when rendered through a cache
1073         https://bugs.webkit.org/show_bug.cgi?id=47767
1074
1075         Add a new test for rendering with tiling.
1076
1077         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1078         (tst_QGraphicsWebView::widgetsRenderingThroughCache):
1079
1080 2010-10-21  Robert Hogan  <robert@webkit.org>
1081
1082         Reviewed by Simon Hausmann.
1083
1084         [Qt] Sending a QInputMethodEvent::Selection event forces the
1085              Editor to go into Composition mode
1086
1087         Improve QWebPage handling of input method events:
1088          - Selections don't trigger entering composition mode.
1089          - Handle multiple selections
1090
1091         Also remove redundant cancellation of composition in tst_qwebpage.
1092         There is no composition in progress at that point.
1093
1094         Finally, move infiniteLoopJS() to the end of the tst_qwebpage unit
1095         tests - so you don't have to wait for it to complete when running
1096         other tests.
1097
1098         https://bugs.webkit.org/show_bug.cgi?id=39625
1099
1100         * Api/qwebpage.cpp:
1101         (QWebPagePrivate::inputMethodEvent):
1102         (QWebPage::inputMethodQuery):
1103         * tests/qwebpage/tst_qwebpage.cpp:
1104         (tst_QWebPage::inputMethods):
1105
1106 2010-10-20  Luiz Agostini  <luiz.agostini@openbossa.org>
1107
1108         Reviewed by Antonio Gomes.
1109
1110         [Qt] Wrong null check in PopupMenuQt
1111         https://bugs.webkit.org/show_bug.cgi?id=47945
1112
1113         Wrong null check in PopupMenuQt.
1114
1115         * WebCoreSupport/PopupMenuQt.cpp:
1116         (WebCore::PopupMenuQt::hide):
1117
1118 2010-10-18  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
1119
1120         Reviewed by Laszlo Gombos.
1121
1122         [Qt] Export QWebPage::ViewportAttributes class.
1123         https://bugs.webkit.org/show_bug.cgi?id=47845
1124
1125         * Api/qwebpage.h:
1126         * symbian/eabi/QtWebKitu.def:
1127
1128 2010-10-18  Pavel Feldman  <pfeldman@chromium.org>
1129
1130         Reviewed by Simon Fraser.
1131
1132         Web Inspector: [crash] when Inspector Open in CSSStyleSelector::loadPendingImages().
1133         https://bugs.webkit.org/show_bug.cgi?id=46224
1134
1135         * WebCoreSupport/InspectorClientQt.cpp:
1136         (WebCore::InspectorClientQt::sendMessageToFrontend):
1137
1138 2010-10-18  No'am Rosenthal  <noam.rosenthal@nokia.com>
1139
1140         Reviewed by Andreas Kling.
1141
1142         [Qt] AC rendering bugs
1143
1144         This fixes a regression that was introduced by making scrolling in accelerated compositing automatic,
1145         which made our explicit function to scroll the compositing layers superfluous, making the scrolling behavior
1146         when graphics layers are present incorrect. The fix simply removes those redundant functions.
1147
1148         https://bugs.webkit.org/show_bug.cgi?id=47571
1149
1150         * WebCoreSupport/PageClientQt.cpp:
1151         (WebCore::PageClientQGraphicsWidget::scroll):
1152         (WebCore::PageClientQGraphicsWidget::update):
1153         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
1154         * WebCoreSupport/PageClientQt.h:
1155
1156 2010-10-18  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1157
1158         Reviewed by nobody, build fix.
1159
1160         [Qt] Fix the build with MSVC.
1161
1162         Splitting the condition in two to prevent qmake parentheses issues.
1163
1164         * Api/DerivedSources.pro:
1165
1166 2010-10-18  Yi Shen  <yi.4.shen@nokia.com>
1167
1168         Reviewed by Antonio Gomes.
1169
1170         [QT] Unable to load pages on QtTestBrowser after canceling a page load. 
1171         https://bugs.webkit.org/show_bug.cgi?id=43827
1172
1173         * Api/qwebpage.cpp:
1174         (QWebPage::triggerAction):
1175
1176 2010-10-15  Qi Zhang  <qi.2.zhang@nokia.com>
1177
1178         Reviewed by Andreas Kling.
1179
1180         [Qt] window.close() doesn't work in qt
1181         https://bugs.webkit.org/show_bug.cgi?id=46186
1182
1183         Introduce new attribute in QWebSettings to trigger "setAllowScriptsToCloseWindow"
1184
1185         * Api/qwebsettings.cpp:
1186         (QWebSettingsPrivate::apply):
1187         * Api/qwebsettings.h:
1188
1189 2010-10-15  Andreas Kling  <kling@webkit.org>
1190
1191         Reviewed by Kenneth Rohde Christiansen.
1192
1193         [Qt] Unbreak scrolling the ContentsLayer with QWebView
1194
1195         r69777 broke scrolling the contents layer in QWebView by not restoring
1196         the painter clip after painting each part of the dirty region.
1197
1198         * Api/qwebframe.cpp:
1199         (QWebFramePrivate::renderRelativeCoords):
1200
1201 2010-09-27 Dawit Alemayehu  <adawit@kde.org>
1202
1203         Reviewed by Andreas Kling.
1204
1205         [Qt] Added functions for obtaining and checking the supported content types.
1206         http://webkit.org/b/37880
1207
1208         * Api/qwebpage.cpp:
1209         (extractContentTypeFromHash):
1210         (extractContentTypeFromPluginVector):
1211         (QWebPage::supportedContentTypes):
1212         (QWebPage::supportsContentType):
1213         * tests/qwebpage/tst_qwebpage.cpp:
1214         (tst_QWebPage::supportedContentType):
1215
1216 2010-10-14  Sheriff Bot  <webkit.review.bot@gmail.com>
1217
1218         Unreviewed, rolling out r69795.
1219         http://trac.webkit.org/changeset/69795
1220         https://bugs.webkit.org/show_bug.cgi?id=47687
1221
1222         'See discussion at webkit.org/b/47609' (Requested by mwenge on
1223         #webkit).
1224
1225         * WebCoreSupport/FrameLoaderClientQt.cpp:
1226         (WebCore::FrameLoaderClientQt::canHandleRequest):
1227         (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
1228
1229 2010-10-14  Robert Hogan  <robert@webkit.org>
1230
1231         Reviewed by Antonio Gomes.
1232
1233         [Qt] Fix http/tests/misc/redirect-to-external-url.html
1234
1235         Support the test in FrameLoaderClientQt and unskip.
1236
1237         https://bugs.webkit.org/show_bug.cgi?id=47609
1238
1239         * WebCoreSupport/FrameLoaderClientQt.cpp:
1240         (WebCore::FrameLoaderClientQt::canHandleRequest):
1241         (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
1242
1243 2010-10-14  No'am Rosenthal  <noam.rosenthal@nokia.com>
1244
1245         Reviewed by Kenneth Rohde Christiansen.
1246
1247         [Texmap] [Qt] Texture mapper initial implementation
1248         https://bugs.webkit.org/show_bug.cgi?id=47070
1249
1250         Allow rendering of accelerated-compositing with TextureMapper, inside a QWebFrame. The frame will render the regular content,
1251         either normally or through tiled backingstore, then let the TextureMapper layer render itself to the active context, and
1252         then render the scrollbar and pan icon. This is different from the current implementation, which uses additional QGraphicsItems for AC
1253         and the scrollbar overlay.
1254
1255         * Api/qgraphicswebview.cpp:
1256         (QGraphicsWebView::paint):
1257         * Api/qwebframe.cpp:
1258         (QWebFramePrivate::renderFromTiledBackingStore):
1259         (QWebFramePrivate::renderRelativeCoords):
1260
1261 2010-10-13  Gavin Barraclough  <barraclough@apple.com>
1262
1263         Reviewed by Oliver Hunt.
1264
1265         https://bugs.webkit.org/show_bug.cgi?id=43987
1266         Switch XMLHttpRequest, FileReader, and FileReaderSync to use a Stringbuilder
1267         to construct their internal result string.  Remove ScriptString (this is now
1268         redundant).
1269
1270         * WebCoreSupport/FrameLoaderClientQt.cpp:
1271
1272 2010-10-13  Dinu Jacob  <dinu.jacob@nokia.com>
1273
1274         Reviewed by Andreas Kling.
1275
1276         [Qt] Update .def file for Symbian
1277         https://bugs.webkit.org/show_bug.cgi?id=47540
1278
1279         Updated symbols for Symbian - added viewportAttributesForSize and
1280         made viewportConfigurationForSize absent based on the API change in
1281         47325
1282
1283         * symbian/eabi/QtWebKitu.def:
1284
1285 2010-10-12  David Leong  <david.leong@nokia.com>
1286
1287         Reviewed by Laszlo Gombos.
1288
1289         [Qt] Enable Netscape plugin metadata caching on Linux 
1290         https://bugs.webkit.org/show_bug.cgi?id=46287
1291         
1292         QWebSettings::enablePersistentStorage will now store the netscape
1293         plugin cache to QDesktopServices::CacheLocation.
1294         
1295         * Api/qwebsettings.cpp:
1296         (QWebSettings::enablePersistentStorage):
1297
1298 2010-10-12  Yael Aharon  <yael.aharon@nokia.com>
1299
1300         Reviewed by Antonio Gomes.
1301
1302         [Qt] Editing commands should not be executed on non-editable content.
1303         https://bugs.webkit.org/show_bug.cgi?id=47426
1304
1305         Remove calls to editor()->command() when we are not in editable content.
1306         There is no value in doing that, and in some cases, it prevents scrolling.
1307
1308         * WebCoreSupport/EditorClientQt.cpp:
1309         (WebCore::EditorClientQt::handleKeyboardEvent):
1310
1311 2010-10-08  Hui Huang  <hui.2.huang@nokia.com>
1312
1313         Reviewed by Simon Hausmann.
1314
1315         ifdef out code that rewrites Flash Plug-in wmode for Symbian build
1316         https://bugs.webkit.org/show_bug.cgi?id=43484
1317
1318         * WebCoreSupport/FrameLoaderClientQt.cpp:
1319         (WebCore::FrameLoaderClientQt::createPlugin):
1320
1321 2010-10-07  Andreas Kling  <kling@webkit.org>
1322
1323         Reviewed by Simon Hausmann.
1324
1325         [Qt] API: ViewportConfiguration => ViewportArguments
1326         https://bugs.webkit.org/show_bug.cgi?id=47325
1327
1328         * Api/qwebpage.cpp:
1329         (QWebPage::ViewportAttributes::ViewportAttributes):
1330         (QWebPage::ViewportAttributes::~ViewportAttributes):
1331         (QWebPage::ViewportAttributes::operator=):
1332         (QWebPage::viewportAttributesForSize):
1333         * Api/qwebpage.h:
1334         * Api/qwebpage_p.h:
1335         (QtViewportAttributesPrivate::QtViewportAttributesPrivate):
1336
1337 2010-10-07  Luiz Agostini  <luiz.agostini@openbossa.org>
1338
1339         Reviewed by Kenneth Rohde Christiansen.
1340
1341         Fixing viewport meta tag user-scalable handling
1342         https://bugs.webkit.org/show_bug.cgi?id=47330
1343
1344         user-scalable attribute was not considered in viewport meta tag handling.
1345
1346         * Api/qwebpage.cpp:
1347         (QWebPage::viewportConfigurationForSize):
1348
1349 2010-10-05  Diego Gonzalez  <diegohcg@webkit.org>
1350
1351         Reviewed by Andreas Kling.
1352
1353         [Qt] Hook up accelerometer data via Qt DeviceMotion
1354         https://bugs.webkit.org/show_bug.cgi?id=47105
1355
1356         Get accelerometer necessary data via Qt mobility library using a
1357         provider class. Enable, also the RotationRate using the current device
1358         orientation provider.
1359
1360         * WebCoreSupport/DeviceMotionClientQt.cpp:
1361         (WebCore::DeviceMotionClientQt::DeviceMotionClientQt):
1362         (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt):
1363         (WebCore::DeviceMotionClientQt::startUpdating):
1364         (WebCore::DeviceMotionClientQt::stopUpdating):
1365         (WebCore::DeviceMotionClientQt::currentDeviceMotion):
1366         (WebCore::DeviceMotionClientQt::changeDeviceMotion):
1367         * WebCoreSupport/DeviceMotionClientQt.h:
1368         * WebCoreSupport/DeviceMotionProviderQt.cpp: Added.
1369         (WebCore::DeviceMotionProviderQt::DeviceMotionProviderQt):
1370         (WebCore::DeviceMotionProviderQt::~DeviceMotionProviderQt):
1371         (WebCore::DeviceMotionProviderQt::start):
1372         (WebCore::DeviceMotionProviderQt::stop):
1373         (WebCore::DeviceMotionProviderQt::filter):
1374         * WebCoreSupport/DeviceMotionProviderQt.h: Added.
1375         (WebCore::DeviceMotionProviderQt::currentDeviceMotion):
1376
1377 2010-10-07  Luiz Agostini  <luiz.agostini@openbossa.org>
1378
1379         Reviewed by Kenneth Rohde Christiansen.
1380
1381         Some viewport meta tag api refactoring
1382         https://bugs.webkit.org/show_bug.cgi?id=47334
1383
1384         WebCore::findConfigurationForViewportData renamed to computeViewportAttributes.
1385         WebCore::ViewportAttributes::layoutViewport renamed to layoutSize.
1386
1387         * Api/qwebpage.cpp:
1388         (QWebPage::viewportConfigurationForSize):
1389         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1390         (DumpRenderTreeSupportQt::viewportAsText):
1391
1392 2010-10-07  Keith Kyzivat  <keith.kyzivat@nokia.com>
1393
1394         Reviewed by Simon Hausmann.
1395
1396         [Qt] Update .def file for Symbian
1397         https://bugs.webkit.org/show_bug.cgi?id=47336
1398         Fix and re-freeze symbols for symbian - viewportConfigurationForSize
1399         API changed, allowGeolocationRequest removed from API, several
1400         DumpRenderTree support calls added.
1401
1402         * symbian/eabi/QtWebKitu.def:
1403
1404 2010-10-06  Ragner Magalhaes  <ragner.magalhaes@openbossa.org>
1405
1406         Reviewed by Antonio Gomes.
1407
1408         [Qt] Duplicated code in QWebPagePrivate
1409         https://bugs.webkit.org/show_bug.cgi?id=47195
1410
1411         Remove duplicated code from QWebPagePrivate class for QGraphicsView and QWidget's mouse events.
1412
1413         * Api/qwebpage.cpp:
1414         (QWebPagePrivate::mouseMoveEvent):
1415         (QWebPagePrivate::mousePressEvent):
1416         (QWebPagePrivate::mouseDoubleClickEvent):
1417         (QWebPagePrivate::mouseTripleClickEvent):
1418         (QWebPagePrivate::mouseReleaseEvent):
1419         (QWebPagePrivate::wheelEvent):
1420         (QWebPagePrivate::dragEnterEvent):
1421         (QWebPagePrivate::dragLeaveEvent):
1422         (QWebPagePrivate::dragMoveEvent):
1423         (QWebPagePrivate::dropEvent):
1424         * Api/qwebpage_p.h:
1425
1426 2010-10-06  Luiz Agostini  <luiz.agostini@openbossa.org>
1427
1428         Reviewed by Kenneth Rohde Christiansen.
1429
1430         Renaming WebCore::ViewportConfiguration to WebCore::ViewportAttributes
1431         https://bugs.webkit.org/show_bug.cgi?id=47268
1432
1433         Renaming WebCore::ViewportConfiguration to WebCore::ViewportAttributes
1434
1435         * Api/qwebpage.cpp:
1436         (QWebPage::viewportConfigurationForSize):
1437         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1438         (DumpRenderTreeSupportQt::viewportAsText):
1439
1440 2010-10-05  Andrew Wilson  <atwilson@chromium.org>
1441
1442         Reviewed by Andreas Kling.
1443
1444         Notification onclick() events don't act like user gestures
1445         https://bugs.webkit.org/show_bug.cgi?id=47137
1446
1447         * WebCoreSupport/NotificationPresenterClientQt.cpp:
1448         (WebCore::NotificationPresenterClientQt::notificationClicked):
1449         Use UserGestureIndicator to make sure click events are treated like user gestures.
1450
1451 2010-10-05  Robert Hogan  <robert@webkit.org>
1452
1453         Reviewed by Andreas Kling.
1454
1455         [Qt] Fix url conversion in QWebHistory
1456
1457         Converting from KURL to WFT::String to QUrl does not
1458         permit proper percent encoding later.
1459
1460         https://bugs.webkit.org/show_bug.cgi?id=47048
1461
1462         * Api/qwebhistory.cpp:
1463         (QWebHistoryItem::originalUrl):
1464         (QWebHistoryItem::url):
1465
1466 2010-10-05  Jakob Petsovits  <jpetsovits@rim.com>
1467
1468         Reviewed by Andreas Kling.
1469
1470         [Qt] Make build work with QT_NO_CURSOR
1471         https://bugs.webkit.org/show_bug.cgi?id=46097
1472
1473         Add a missing semicolon.
1474
1475         * WebCoreSupport/ChromeClientQt.cpp:
1476         (WebCore::ChromeClientQt::setCursor):
1477
1478 2010-10-05  Simon Hausmann  <simon.hausmann@nokia.com>
1479
1480         Unreviewed build fix.
1481
1482         [Symbian] Fix build issue due to gaps in ordinals in the def file
1483
1484         Restore previously removed symbols and mark them absent instead. We must
1485         not remove symbols from this file, because it breaks binary compatibility
1486         (when re-assigning the ordinals of the following symbols) or it causes build
1487         breakage when instead having a gap in the ordinal sequence. Instead removing
1488         a symbol is done by marking it as absent.
1489
1490         * symbian/eabi/QtWebKitu.def:
1491
1492 2010-10-04  Adam Barth  <abarth@webkit.org>
1493
1494         Reviewed by Darin Adler.
1495
1496         Rename RedirectScheduler to NavigationScheduler
1497         https://bugs.webkit.org/show_bug.cgi?id=47037
1498
1499         Update for name change.
1500
1501         * Api/qwebpage.cpp:
1502         (QWebPage::triggerAction):
1503
1504 2010-10-04  Diego Gonzalez  <diegohcg@webkit.org>
1505
1506         Reviewed by Kenneth Rohde Christiansen.
1507
1508         [Qt] Hook up DeviceOrientation data for Qt support
1509         https://bugs.webkit.org/show_bug.cgi?id=47052
1510
1511         Get DeviceOrientation necessary data via Qt mobility library
1512         using a provider class.
1513
1514         * WebCoreSupport/DeviceOrientationClientQt.cpp:
1515         (WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt):
1516         (WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt):
1517         (WebCore::DeviceOrientationClientQt::startUpdating):
1518         (WebCore::DeviceOrientationClientQt::stopUpdating):
1519         (WebCore::DeviceOrientationClientQt::lastOrientation):
1520         (WebCore::DeviceOrientationClientQt::changeDeviceOrientation):
1521         * WebCoreSupport/DeviceOrientationClientQt.h:
1522         * WebCoreSupport/DeviceOrientationProviderQt.cpp: Added.
1523         (WebCore::DeviceOrientationProviderQt::DeviceOrientationProviderQt):
1524         (WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt):
1525         (WebCore::DeviceOrientationProviderQt::start):
1526         (WebCore::DeviceOrientationProviderQt::stop):
1527         (WebCore::DeviceOrientationProviderQt::filter):
1528         * WebCoreSupport/DeviceOrientationProviderQt.h: Added.
1529         (WebCore::DeviceOrientationProviderQt::isActive):
1530         (WebCore::DeviceOrientationProviderQt::orientation):
1531         (WebCore::DeviceOrientationProviderQt::hasAlpha):
1532
1533 2010-09-28  Luiz Agostini  <luiz.agostini@openbossa.org>
1534
1535         Reviewed by Kenneth Rohde Christiansen.
1536
1537         Viewport data change notifications
1538         https://bugs.webkit.org/show_bug.cgi?id=46755
1539
1540         Regarding viewport meta tags, what matters for browser developers is to know when the viewport data has
1541         changed and its current value. Viewport data belongs to the document, but it is useful to keep the current
1542         viewport data in Page as a reference, to be able to send notifications only when the current viewport
1543         has changed.
1544
1545         * Api/qwebframe.cpp:
1546         * Api/qwebframe_p.h:
1547         * Api/qwebpage.cpp:
1548         (QWebPagePrivate::viewportArguments):
1549         (QWebPage::viewportConfigurationForSize):
1550         * Api/qwebpage_p.h:
1551         * WebCoreSupport/ChromeClientQt.cpp:
1552         (WebCore::ChromeClientQt::viewportDataChanged):
1553         * WebCoreSupport/ChromeClientQt.h:
1554         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1555         (DumpRenderTreeSupportQt::viewportAsText):
1556
1557 2010-10-04  Simon Hausmann  <simon.hausmann@nokia.com>
1558
1559         Rubber-stamped by Tor Arne Vestbø.
1560
1561         [Qt] Fix platform plugin support after r68128
1562
1563         Replaced the qobject_cast from the QObject derived extension to a
1564         static_cast. qobject_cast works by comparing pointers to meta-object
1565         instances, of which there are two each: one compiled into WebKit and
1566         one compiled into the plugin.
1567
1568         The platform plugin ensures the validity of the interface contract
1569         through its version and the initial safe qobject_cast from QObject
1570         to QWebKitPlatformPlugin. After that it is safe to use static_cast,
1571         and with the recent changes even required.
1572
1573         * WebCoreSupport/QtPlatformPlugin.cpp:
1574         (WebCore::QtPlatformPlugin::createSelectInputMethod):
1575         (WebCore::QtPlatformPlugin::createNotificationPresenter):
1576         (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):
1577
1578 2010-10-02  Diego Gonzalez  <diegohcg@webkit.org>
1579
1580         Reviewed by Kenneth Rohde Christiansen.
1581
1582         [Qt] Provide Qt support for DeviceMotion/Orientation clients
1583         https://bugs.webkit.org/show_bug.cgi?id=47051
1584
1585         Dummy implementation of DeviceMotion/Orientation client classes
1586         to make possible to hook up motion/orientation data
1587         in further implementations.
1588
1589         * Api/qwebpage.cpp:
1590         (QWebPagePrivate::QWebPagePrivate):
1591         * WebCoreSupport/DeviceMotionClientQt.cpp: Added.
1592         (WebCore::DeviceMotionClientQt::DeviceMotionClientQt):
1593         (WebCore::DeviceMotionClientQt::setController):
1594         (WebCore::DeviceMotionClientQt::startUpdating):
1595         (WebCore::DeviceMotionClientQt::stopUpdating):
1596         (WebCore::DeviceMotionClientQt::currentDeviceMotion):
1597         (WebCore::DeviceMotionClientQt::deviceMotionControllerDestroyed):
1598         * WebCoreSupport/DeviceMotionClientQt.h: Added.
1599         (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt):
1600         * WebCoreSupport/DeviceOrientationClientQt.cpp: Added.
1601         (WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt):
1602         (WebCore::DeviceOrientationClientQt::setController):
1603         (WebCore::DeviceOrientationClientQt::startUpdating):
1604         (WebCore::DeviceOrientationClientQt::stopUpdating):
1605         (WebCore::DeviceOrientationClientQt::lastOrientation):
1606         (WebCore::DeviceOrientationClientQt::deviceOrientationControllerDestroyed):
1607         * WebCoreSupport/DeviceOrientationClientQt.h: Added.
1608         (WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt):
1609
1610 2010-09-30  Robert Hogan  <robert@webkit.org>
1611
1612         Reviewed by Andreas Kling.
1613
1614         [Qt] Support for PlainTextController
1615
1616         Unskip editing/text-iterator/basic-iteration.html
1617
1618         https://bugs.webkit.org/show_bug.cgi?id=38805
1619
1620         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1621         (DumpRenderTreeSupportQt::plainText):
1622         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1623
1624 2010-09-30  Andreas Kling  <andreas.kling@nokia.com>
1625
1626         Reviewed by Tor Arne Vestbø.
1627
1628         [Qt] V8 port: Unbreak build
1629
1630         Add missing <wtf/text/CString.h> include.
1631
1632         * WebCoreSupport/InspectorServerQt.cpp:
1633
1634 2010-09-30  Benjamin Poulain  <benjamin.poulain@nokia.com>
1635
1636         Reviewed by Andreas Kling.
1637
1638         [Qt] Crash if an scene with accelerated compositing layout during the paint event
1639         https://bugs.webkit.org/show_bug.cgi?id=46812
1640
1641         Delay the deletion of the overlay after the current event is processed.
1642
1643         Removing the overlay can sometimes be done inside the rendering code of
1644         the overlay itself. When the rendering code is using the reference after
1645         the deletion of the overlay, WebKit crashes.
1646
1647         * Api/qgraphicswebview.cpp:
1648         (QGraphicsWebViewPrivate::overlay):
1649         * WebCoreSupport/PageClientQt.cpp:
1650         (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
1651         (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
1652         * WebCoreSupport/PageClientQt.h:
1653         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
1654
1655 2010-09-30  Benjamin Poulain  <benjamin.poulain@nokia.com>
1656
1657         Reviewed by Andreas Kling.
1658
1659         [Qt] Fix tst_QWebPage::geolocationRequestJS()
1660         https://bugs.webkit.org/show_bug.cgi?id=46814
1661
1662         Disable the test. This test cannot pass with a
1663         standard build of WebKit, it is disabled until the API is finilized.
1664
1665         * tests/qwebpage/tst_qwebpage.cpp:
1666         (tst_QWebPage::geolocationRequestJS):
1667
1668 2010-09-29  Andreas Kling  <andreas.kling@nokia.com>
1669
1670         Reviewed by Ariya Hidayat.
1671
1672         [Qt] Don't keep local reference to QGraphicsItemOverlay in QGWVPrivate
1673         https://bugs.webkit.org/show_bug.cgi?id=46812
1674
1675         Get the QGraphicsItemOverlay* via the QWebPageClient (d->page->d->client)
1676         instead of keeping a local pointer to it.
1677
1678         This is cleanup for a follow-up patch.
1679
1680         * Api/qgraphicswebview.cpp:
1681         (QGraphicsWebViewPrivate::overlay):
1682         (QGraphicsWebView::paint):
1683         (QGraphicsWebView::setPage):
1684         (QGraphicsWebView::updateGeometry):
1685         (QGraphicsWebView::setGeometry):
1686
1687 2010-09-28  Jenn Braithwaite  <jennb@chromium.org>
1688
1689         Reviewed by Dmitry Titov.
1690
1691         Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument.
1692         https://bugs.webkit.org/show_bug.cgi?id=46663
1693
1694         * WebCoreSupport/FrameLoaderClientQt.cpp:
1695         (WebCore::FrameLoaderClientQt::didTransferChildFrameToNewDocument):
1696         * WebCoreSupport/FrameLoaderClientQt.h:
1697
1698 2010-09-28  Andreas Kling  <andreas.kling@nokia.com>
1699
1700         Reviewed by Kenneth Rohde Christiansen.
1701
1702         [Qt] Clean up QWebPage::ViewportConfiguration API
1703         https://bugs.webkit.org/show_bug.cgi?id=46730
1704
1705         - Pass QSize parameter as const-reference
1706         - Style fixes
1707
1708         * Api/qwebpage.cpp:
1709         (QWebPage::viewportConfigurationForSize):
1710         * Api/qwebpage.h:
1711
1712 2010-09-28  Andras Becsi  <abecsi@webkit.org>
1713
1714         Reviewed by Csaba Osztrogonác.
1715
1716         Undefined reference errors when linking due to gperf and inlining.
1717         webkit.org/b/29244
1718
1719         EFL CMake changes by Leandro Pereira <leandro@profusion.mobi>
1720
1721         Refactor gperf code generation and usage to fix the debug build with gcc>4.4.
1722         Hitherto gperf generated C code, these files were included in multiple C++ files across WebCore
1723         to access the functionality provided. This resulted in debug build failure with newer gcc versions
1724         because of a behaviour change of gcc, which disables C style inlining in debug mode.
1725         The make-hash-tools.pl script lets gperf generate C++ code for all gperf files now, which are compiled
1726         in their own compilation unit.
1727         The functionality provided by the generated code is wrapped behind HashTools.h, so there is no need
1728         for multiple inclusions of generated C files to access these functions.
1729
1730         * WebCoreSupport/FrameLoaderClientQt.cpp:
1731         (WebCore::FrameLoaderClientQt::createPlugin):
1732
1733 2010-09-28  Benjamin Poulain  <benjamin.poulain@nokia.com>
1734
1735         Reviewed by Andreas Kling.
1736
1737         [Qt] Remove support for Qt 4.5
1738         https://bugs.webkit.org/show_bug.cgi?id=46718
1739
1740         Remove the code for versions of Qt prior to 4.6.
1741
1742         * Api/qgraphicswebview.cpp:
1743         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1744         (QGraphicsWebView::QGraphicsWebView):
1745         (QGraphicsWebView::sceneEvent):
1746         (QGraphicsWebViewPrivate::detachCurrentPage):
1747         * Api/qwebframe.cpp:
1748         (QWebFrame::load):
1749         * Api/qwebpage.cpp:
1750         (QWebPagePrivate::QWebPagePrivate):
1751         (QWebPagePrivate::handleSoftwareInputPanel):
1752         (QWebPagePrivate::inputMethodEvent):
1753         (QWebPagePrivate::touchEvent):
1754         (QWebPage::inputMethodQuery):
1755         (QWebPage::view):
1756         (QWebPage::event):
1757         * Api/qwebpage_p.h:
1758         * Api/qwebview.cpp:
1759         (QWebView::QWebView):
1760         (QWebViewPrivate::detachCurrentPage):
1761         (QWebView::event):
1762         * WebCoreSupport/EditorClientQt.cpp:
1763         (WebCore::EditorClientQt::setInputMethodState):
1764         * WebCoreSupport/FrameLoaderClientQt.cpp:
1765         (WebCore::FrameLoaderClientQt::createPlugin):
1766         * WebCoreSupport/PageClientQt.cpp:
1767         (WebCore::PageClientQWidget::setInputMethodHints):
1768         (WebCore::PageClientQGraphicsWidget::setInputMethodEnabled):
1769         (WebCore::PageClientQGraphicsWidget::inputMethodEnabled):
1770         (WebCore::PageClientQGraphicsWidget::setInputMethodHints):
1771         * WebCoreSupport/PageClientQt.h:
1772         (WebCore::QGraphicsItemOverlay::page):
1773         * tests/qwebframe/tst_qwebframe.cpp:
1774         * tests/qwebpage/tst_qwebpage.cpp:
1775         (tst_QWebPage::inputMethods_data):
1776         (inputMethodHints):
1777         (inputMethodEnabled):
1778         (tst_QWebPage::inputMethods):
1779         (tst_QWebPage::originatingObjectInNetworkRequests):
1780         * tests/qwebview/tst_qwebview.cpp:
1781         (tst_QWebView::reusePage):
1782
1783 2010-09-28  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1784
1785         Reviewed by Simon Hausmann.
1786
1787         Clean up QWebPage initialization
1788
1789         * Api/qwebpage.cpp:
1790         * Api/qwebpage_p.h:
1791
1792 2010-09-28  Benjamin Poulain  <benjamin.poulain@nokia.com>
1793
1794         Reviewed by Kenneth Rohde Christiansen.
1795
1796         [Qt] tst_QWebPage::testStopScheduledPageRefresh() fails on MeeGo handset
1797         https://bugs.webkit.org/show_bug.cgi?id=46706
1798
1799         The test require the network to succeed or fail in order to work.
1800         On MeeGo, the network can simply timeout the because of the netword access
1801         management. This patch makes the test use local URLs to avoid the
1802         problem.
1803
1804         * tests/qwebpage/tst_qwebpage.cpp:
1805         (TestNetworkManager::TestNetworkManager):
1806
1807 2010-09-27  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
1808
1809         Reviewed by Antonio Gomes.
1810
1811         [Qt] Remove setDeviceSize methods
1812         https://bugs.webkit.org/show_bug.cgi?id=46347
1813
1814         Remove our setDeviceHeight() API and obtain it automatically from the
1815         system. Also for testing purposes, make it possible to override the
1816         values via two newly introduced environment variables.
1817
1818         * Api/qgraphicswebview.cpp:
1819         * Api/qgraphicswebview.h:
1820         * Api/qwebpage.cpp:
1821         (getintenv):
1822         (queryDeviceSizeForScreenContainingWidget):
1823         (QWebPage::viewportConfigurationForSize):
1824         * WebCoreSupport/PageClientQt.cpp:
1825         (WebCore::PageClientQGraphicsWidget::windowRect):
1826         * symbian/eabi/QtWebKitu.def:
1827
1828 2010-09-27  Girish Ramakrishnan  <girish@forwardbias.in>
1829
1830         Reviewed by Antonio Gomes.
1831
1832         Enable local rendering of NPAPI plugins on Maemo6.
1833
1834         https://bugs.webkit.org/show_bug.cgi?id=46618
1835
1836         * WebCoreSupport/FrameLoaderClientQt.cpp:
1837         (WebCore::FrameLoaderClientQt::createPlugin):
1838
1839 2010-09-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
1840
1841         Reviewed by Andreas Kling.
1842
1843         [Qt] tst_QWebFrame::popupFocus() randomly fail on MeeGo handset because the focus is not set on the window
1844         https://bugs.webkit.org/show_bug.cgi?id=46617
1845
1846         This patch avoid the race condition by waiting for the window
1847         to be mapped on screen before attempting any actions.
1848
1849         * tests/qwebframe/tst_qwebframe.cpp:
1850
1851 2010-09-24  Luiz Agostini  <luiz.agostini@openbossa.org>
1852
1853         Reviewed by Kenneth Rohde Christiansen.
1854
1855         Keep viewport information in Document
1856         https://bugs.webkit.org/show_bug.cgi?id=46385
1857
1858         The viewport meta data (layout viewport, scale) needs to be set again when bringing
1859         back a page from the page cache. As the viewport metadata is only retrieved while parsing
1860         the document, we need to store it in the Document class.
1861
1862         * Api/qwebframe.cpp:
1863         (QWebFramePrivate::viewportArguments):
1864         * Api/qwebframe_p.h:
1865         * Api/qwebpage.cpp:
1866         (QWebPage::viewportConfigurationForSize):
1867         * WebCoreSupport/ChromeClientQt.cpp:
1868         (WebCore::ChromeClientQt::didReceiveViewportArguments):
1869         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1870         (DumpRenderTreeSupportQt::viewportAsText):
1871         * WebCoreSupport/FrameLoaderClientQt.cpp:
1872         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
1873
1874 2010-09-23  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
1875
1876         Reviewed by Kenneth Rohde Christiansen.
1877
1878         Fix QWebHapticFeedbackPlayer exposure via QWebKitPlatformPlugin
1879
1880         [Qt] QWebHapticFeedbackPlayer needs correct exposure through QWebKitPlatformPlugin
1881         https://bugs.webkit.org/show_bug.cgi?id=46402
1882
1883         QWebHapticFeedbackPlayer is exported through
1884         QWebKitPlatformPlugin::createExtension(), but
1885         createHapticFeedbackPlayer() and the correct
1886         inheritage are missing.
1887
1888         * Api/qwebkitplatformplugin.h:
1889         * WebCoreSupport/QtPlatformPlugin.cpp:
1890         (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):
1891         * WebCoreSupport/QtPlatformPlugin.h:
1892
1893 2010-09-23  Nate Chapin  <japhet@chromium.org>
1894
1895         Reviewed by Darin Fisher.
1896
1897         Add hyperlink auditing settings (i.e., <a ping>).
1898         https://bugs.webkit.org/show_bug.cgi?id=30458
1899
1900         * Api/qwebsettings.cpp:
1901         (QWebSettingsPrivate::apply):
1902         (QWebSettings::QWebSettings):
1903         * Api/qwebsettings.h:
1904
1905 2010-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1906
1907         Reviewed by Simon Hausmann.
1908
1909         [Qt] Refactor QtWebKitPlatformPlugin interface
1910
1911         Make it easier to keep source-compability for the 
1912         QtWebKitPlatformPlugin interface, and run qmake
1913         on the example (but not build) for convenience.
1914
1915         https://bugs.webkit.org/show_bug.cgi?id=46345
1916
1917         * Api/qwebkitplatformplugin.h:
1918         * WebCoreSupport/QtPlatformPlugin.cpp:
1919         * examples/platformplugin/README:
1920         * examples/platformplugin/WebPlugin.cpp:
1921         * examples/platformplugin/WebPlugin.h:
1922         * examples/platformplugin/qwebkitplatformplugin.h:
1923
1924 2010-09-22  Andras Becsi  <abecsi@webkit.org>
1925
1926         Speculative build fix for the Qt Windows bots.
1927
1928         * Api/DerivedSources.pro:
1929
1930 2010-09-22  Jamey Hicks  <jamey.hicks@nokia.com>
1931
1932         Reviewed by Kenneth Rohde Christiansen.
1933
1934         [Qt] Web Inspector: Remote Web Inspector support for QtWebKit
1935         https://bugs.webkit.org/show_bug.cgi?id=43988
1936
1937         Runs a web debug server on port specified by QtTestBrowser
1938         argument -remote-inspector-port. Property
1939         _q_webInspectorServerPort of the QWebPage instance will be set
1940         according to the argument. All pages with that property set will
1941         be remotely inspectable.
1942
1943         URL for remote inspection of first QWebPage is
1944             http://localhost:9222/webkit/inspector/inspector.html?page=1
1945         where 1 is the number of the QWebPage instance.
1946
1947         The base URL yields an index page with links to the individual inspectors:
1948             http://localhost:9222/
1949
1950         * Api/qwebinspector.cpp:
1951         (QWebInspectorPrivate::attachAndReplaceRemoteFrontend):
1952         (QWebInspectorPrivate::detachRemoteFrontend):
1953         * Api/qwebinspector_p.h:
1954         (QWebInspectorPrivate::QWebInspectorPrivate):
1955         * Api/qwebpage.cpp:
1956         (QWebPagePrivate::dynamicPropertyChangeEvent):
1957         (QWebPagePrivate::inspectorServerPort):
1958         * Api/qwebpage.h:
1959         * Api/qwebpage_p.h:
1960         * WebCoreSupport/InspectorClientQt.cpp:
1961         (WebCore::InspectorClientQt::InspectorClientQt):
1962         (WebCore::InspectorClientQt::inspectorDestroyed):
1963         (WebCore::InspectorClientQt::openInspectorFrontend):
1964         (WebCore::InspectorClientQt::attachAndReplaceRemoteFrontend):
1965         (WebCore::InspectorClientQt::detachRemoteFrontend):
1966         (WebCore::InspectorClientQt::sendMessageToFrontend):
1967         * WebCoreSupport/InspectorClientQt.h:
1968         * WebCoreSupport/InspectorServerQt.cpp: Added.
1969         (WebCore::generateWebSocketChallengeResponse):
1970         (WebCore::parseWebSocketChallengeNumber):
1971         (WebCore::InspectorServerQt::server):
1972         (WebCore::InspectorServerQt::InspectorServerQt):
1973         (WebCore::InspectorServerQt::~InspectorServerQt):
1974         (WebCore::InspectorServerQt::listen):
1975         (WebCore::InspectorServerQt::close):
1976         (WebCore::InspectorServerQt::inspectorClientForPage):
1977         (WebCore::InspectorServerQt::registerClient):
1978         (WebCore::InspectorServerQt::unregisterClient):
1979         (WebCore::InspectorServerQt::newConnection):
1980         (WebCore::InspectorServerRequestHandlerQt::InspectorServerRequestHandlerQt):
1981         (WebCore::InspectorServerRequestHandlerQt::~InspectorServerRequestHandlerQt):
1982         (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
1983         (WebCore::InspectorServerRequestHandlerQt::tcpConnectionDisconnected):
1984         (WebCore::InspectorServerRequestHandlerQt::webSocketSend):
1985         (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
1986         (WebCore::RemoteFrontendChannel::RemoteFrontendChannel):
1987         (WebCore::RemoteFrontendChannel::sendMessageToFrontend):
1988         * WebCoreSupport/InspectorServerQt.h: Added.
1989
1990 2010-09-22  Balazs Kelemen  <kb@inf.u-szeged.hu>
1991
1992         Reviewed by Kenneth Rohde Christiansen.
1993
1994         [Qt] PluginStrategy implementation is broken
1995         https://bugs.webkit.org/show_bug.cgi?id=46078
1996
1997         Remove the QWebPage* member from WebPlatformStrategies.
1998         Get the originator QWebPage of the getPluginInfo call via
1999         the Page* argument.
2000         * Api/qwebpage.cpp:
2001         (QWebPagePrivate::QWebPagePrivate):
2002         * WebCoreSupport/WebPlatformStrategies.cpp:
2003         (WebPlatformStrategies::initialize): 
2004         (WebPlatformStrategies::WebPlatformStrategies):
2005         (WebPlatformStrategies::getPluginInfo):
2006         Use the ChromeClient for accessing the originator QWebPage.
2007         * WebCoreSupport/WebPlatformStrategies.h:
2008
2009 2010-09-22  İsmail Dönmez  <ismail@namtrac.org>
2010
2011         Reviewed by Andreas Kling.
2012
2013         [Qt] Buildfix for WinCE
2014
2015         * Api/DerivedSources.pro:
2016
2017 2010-09-20  Philippe Normand  <pnormand@igalia.com>
2018
2019         Reviewed by Eric Carlson.
2020
2021         [GTK] enhanced context menu for media elements
2022         https://bugs.webkit.org/show_bug.cgi?id=45021
2023
2024         * WebCoreSupport/WebPlatformStrategies.cpp:
2025         * WebCoreSupport/WebPlatformStrategies.h:
2026         (WebPlatformStrategies::contextMenuItemTagOpenVideoInNewWindow):
2027         (WebPlatformStrategies::contextMenuItemTagOpenAudioInNewWindow):
2028         (WebPlatformStrategies::contextMenuItemTagCopyVideoLinkToClipboard):
2029         (WebPlatformStrategies::contextMenuItemTagCopyAudioLinkToClipboard):
2030         (WebPlatformStrategies::contextMenuItemTagToggleMediaControls)
2031         (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop)
2032         (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen)
2033         (WebPlatformStrategies::contextMenuItemTagMediaPlay)
2034         (WebPlatformStrategies::contextMenuItemTagMediaPause)
2035         (WebPlatformStrategies::contextMenuItemTagMediaMute)
2036
2037 2010-09-20  Jacob Dinu  <dinu.jacob@nokia.com>
2038
2039         Reviewed by Adam Barth.
2040
2041         Added a new qwebpage test for loading a cached page
2042         https://bugs.webkit.org/show_bug.cgi?id=41155
2043
2044         * tests/qwebpage/tst_qwebpage.cpp:
2045         (tst_QWebPage::loadCachedPage):
2046
2047 2010-09-08  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2048
2049         Reviewed by Simon Hausmann.
2050
2051         [Qt] Fix forward includes generation for MSVC when sh is in PATH.
2052
2053         MSVC's nmake isn't affected by having sh in PATH.
2054
2055         * Api/DerivedSources.pro:
2056
2057 2010-09-18  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
2058
2059         Reviewed by Kenneth Rohde Christiansen.
2060
2061         Enable Platform Strategies on Qt
2062
2063         [Qt] Turn on PLATFORM_STRATEGIES
2064         https://bugs.webkit.org/show_bug.cgi?id=45831
2065
2066         * Api/qwebpage.cpp:
2067         (QWebPagePrivate::QWebPagePrivate): Initialize the PlatformStrategy
2068         singleton.
2069         * WebCoreSupport/WebPlatformStrategies.cpp: Added, code was moved
2070         from platform/qt/Localizations.cpp and plugins/qt/PluginDataQt.cpp
2071         (WebPlatformStrategies::initialize): create the singleton,
2072         following the same "pattern" used by Mac and Win ports.
2073         (WebPlatformStrategies::WebPlatformStrategies):
2074         (WebPlatformStrategies::createPluginStrategy):
2075         (WebPlatformStrategies::createLocalizationStrategy):
2076         (WebPlatformStrategies::createVisitedLinkStrategy):
2077         (WebPlatformStrategies::refreshPlugins):
2078         (WebPlatformStrategies::getPluginInfo):
2079         (WebPlatformStrategies::inputElementAltText):
2080         (WebPlatformStrategies::resetButtonDefaultLabel):
2081         (WebPlatformStrategies::searchableIndexIntroduction):
2082         (WebPlatformStrategies::submitButtonDefaultLabel):
2083         (WebPlatformStrategies::fileButtonChooseFileLabel):
2084         (WebPlatformStrategies::fileButtonNoFileSelectedLabel):
2085         (WebPlatformStrategies::contextMenuItemTagOpenLinkInNewWindow):
2086         (WebPlatformStrategies::contextMenuItemTagDownloadLinkToDisk):
2087         (WebPlatformStrategies::contextMenuItemTagCopyLinkToClipboard):
2088         (WebPlatformStrategies::contextMenuItemTagOpenImageInNewWindow):
2089         (WebPlatformStrategies::contextMenuItemTagDownloadImageToDisk):
2090         (WebPlatformStrategies::contextMenuItemTagCopyImageToClipboard):
2091         (WebPlatformStrategies::contextMenuItemTagOpenFrameInNewWindow):
2092         (WebPlatformStrategies::contextMenuItemTagCopy):
2093         (WebPlatformStrategies::contextMenuItemTagGoBack):
2094         (WebPlatformStrategies::contextMenuItemTagGoForward):
2095         (WebPlatformStrategies::contextMenuItemTagStop):
2096         (WebPlatformStrategies::contextMenuItemTagReload):
2097         (WebPlatformStrategies::contextMenuItemTagCut):
2098         (WebPlatformStrategies::contextMenuItemTagPaste):
2099         (WebPlatformStrategies::contextMenuItemTagNoGuessesFound):
2100         (WebPlatformStrategies::contextMenuItemTagIgnoreSpelling):
2101         (WebPlatformStrategies::contextMenuItemTagLearnSpelling):
2102         (WebPlatformStrategies::contextMenuItemTagSearchWeb):
2103         (WebPlatformStrategies::contextMenuItemTagLookUpInDictionary):
2104         (WebPlatformStrategies::contextMenuItemTagOpenLink):
2105         (WebPlatformStrategies::contextMenuItemTagIgnoreGrammar):
2106         (WebPlatformStrategies::contextMenuItemTagSpellingMenu):
2107         (WebPlatformStrategies::contextMenuItemTagShowSpellingPanel):
2108         (WebPlatformStrategies::contextMenuItemTagCheckSpelling):
2109         (WebPlatformStrategies::contextMenuItemTagCheckSpellingWhileTyping):
2110         (WebPlatformStrategies::contextMenuItemTagCheckGrammarWithSpelling):
2111         (WebPlatformStrategies::contextMenuItemTagFontMenu):
2112         (WebPlatformStrategies::contextMenuItemTagBold):
2113         (WebPlatformStrategies::contextMenuItemTagItalic):
2114         (WebPlatformStrategies::contextMenuItemTagUnderline):
2115         (WebPlatformStrategies::contextMenuItemTagOutline):
2116         (WebPlatformStrategies::contextMenuItemTagWritingDirectionMenu):
2117         (WebPlatformStrategies::contextMenuItemTagTextDirectionMenu):
2118         (WebPlatformStrategies::contextMenuItemTagDefaultDirection):
2119         (WebPlatformStrategies::contextMenuItemTagLeftToRight):
2120         (WebPlatformStrategies::contextMenuItemTagRightToLeft):
2121         (WebPlatformStrategies::contextMenuItemTagInspectElement):
2122         (WebPlatformStrategies::searchMenuNoRecentSearchesText):
2123         (WebPlatformStrategies::searchMenuRecentSearchesText):
2124         (WebPlatformStrategies::searchMenuClearRecentSearchesText):
2125         (WebPlatformStrategies::AXWebAreaText):
2126         (WebPlatformStrategies::AXLinkText):
2127         (WebPlatformStrategies::AXListMarkerText):
2128         (WebPlatformStrategies::AXImageMapText):
2129         (WebPlatformStrategies::AXHeadingText):
2130         (WebPlatformStrategies::AXDefinitionListTermText):
2131         (WebPlatformStrategies::AXDefinitionListDefinitionText):
2132         (WebPlatformStrategies::AXButtonActionVerb):
2133         (WebPlatformStrategies::AXRadioButtonActionVerb):
2134         (WebPlatformStrategies::AXTextFieldActionVerb):
2135         (WebPlatformStrategies::AXCheckedCheckBoxActionVerb):
2136         (WebPlatformStrategies::AXUncheckedCheckBoxActionVerb):
2137         (WebPlatformStrategies::AXMenuListActionVerb):
2138         (WebPlatformStrategies::AXMenuListPopupActionVerb):
2139         (WebPlatformStrategies::AXLinkActionVerb):
2140         (WebPlatformStrategies::missingPluginText):
2141         (WebPlatformStrategies::crashedPluginText):
2142         (WebPlatformStrategies::multipleFileUploadText):
2143         (WebPlatformStrategies::unknownFileSizeText):
2144         (WebPlatformStrategies::imageTitle):
2145         (WebPlatformStrategies::mediaElementLoadingStateText):
2146         (WebPlatformStrategies::mediaElementLiveBroadcastStateText):
2147         (WebPlatformStrategies::localizedMediaControlElementString):
2148         (WebPlatformStrategies::localizedMediaControlElementHelpText):
2149         (WebPlatformStrategies::localizedMediaTimeDescription):
2150         (WebPlatformStrategies::validationMessageValueMissingText):
2151         (WebPlatformStrategies::validationMessageTypeMismatchText):
2152         (WebPlatformStrategies::validationMessagePatternMismatchText):
2153         (WebPlatformStrategies::validationMessageTooLongText):
2154         (WebPlatformStrategies::validationMessageRangeUnderflowText):
2155         (WebPlatformStrategies::validationMessageRangeOverflowText):
2156         (WebPlatformStrategies::validationMessageStepMismatchText):
2157         (WebPlatformStrategies::isLinkVisited):
2158         (WebPlatformStrategies::addVisitedLink):
2159         * WebCoreSupport/WebPlatformStrategies.h: Added, based on Mac and Win
2160         versions.
2161
2162 2010-09-18  Andreas Kling  <andreas.kling@nokia.com>
2163
2164         Reviewed by Antonio Gomes.
2165
2166         [Qt] V8 port: Add FrameLoaderClientQt::allowScriptExtension()
2167         https://bugs.webkit.org/show_bug.cgi?id=46034
2168
2169         r67749 added FrameLoaderClient::allowScriptExtension() (V8-specific)
2170         Add a stub implementation that simply returns false for now.
2171
2172         * WebCoreSupport/FrameLoaderClientQt.h:
2173         (WebCore::FrameLoaderClientQt::allowScriptExtension):
2174
2175 2010-09-17  Darin Adler  <darin@apple.com>
2176
2177         Reviewed by Sam Weinig.
2178
2179         REGRESSION (r60104): Zoom level is unexpectedly reset on page reload
2180         https://bugs.webkit.org/show_bug.cgi?id=42863
2181
2182         * Api/qwebframe.cpp:
2183         (QWebFrame::setTextSizeMultiplier):
2184         (QWebFrame::textSizeMultiplier):
2185         (QWebFrame::setZoomFactor):
2186         (QWebFrame::zoomFactor):
2187         Call functions on Frame instead of FrameView.
2188
2189 2010-09-16  Darin Adler  <darin@apple.com>
2190
2191         Fix build.
2192
2193         * WebCoreSupport/EditorClientQt.cpp:
2194         (WebCore::EditorClientQt::setInputMethodState): Updated for change
2195         in name of isUrlField to isURLField.
2196
2197 2010-09-16  Darin Adler  <darin@apple.com>
2198
2199         Reviewed by Andreas Kling.
2200
2201         Reduce use of HTMLInputElement::inputType so we can remove it later
2202         https://bugs.webkit.org/show_bug.cgi?id=45903
2203
2204         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2205         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
2206         Use isPasswordField.
2207
2208 2010-09-16  Robert Hogan  <robert@webkit.org>
2209
2210         Reviewed by Antonio Gomes.
2211
2212         [Qt] Support globalhistory tests
2213         https://bugs.webkit.org/show_bug.cgi?id=45774
2214
2215         * WebCoreSupport/ChromeClientQt.cpp:
2216         (WebCore::ChromeClientQt::populateVisitedLinks):
2217         * WebCoreSupport/ChromeClientQt.h:
2218         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2219         (DumpRenderTreeSupportQt::dumpHistoryCallbacks):
2220         (DumpRenderTreeSupportQt::dumpVisitedLinksCallbacks):
2221         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2222         * WebCoreSupport/FrameLoaderClientQt.cpp:
2223         (WebCore::FrameLoaderClientQt::setTitle):
2224         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
2225         (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
2226         * WebCoreSupport/FrameLoaderClientQt.h:
2227
2228 2010-09-16  Diego Gonzalez  <diegohcg@webkit.org>
2229
2230         Reviewed by Kenneth Rohde Christiansen.
2231
2232         [Qt] Remove FrameLoaderClientQt::webFrame() to use NetworkingContext to get the WebFrame to avoid layering violations
2233         https://bugs.webkit.org/show_bug.cgi?id=42293
2234
2235         * Api/qwebframe.cpp:
2236         (QWebFrame::childFrames):
2237         (QWebFramePrivate::kit):
2238         * Api/qwebpage.cpp:
2239         (QWebPage::currentFrame):
2240         * WebCoreSupport/ChromeClientQt.cpp:
2241         (WebCore::ChromeClientQt::runJavaScriptAlert):
2242         (WebCore::ChromeClientQt::runJavaScriptConfirm):
2243         (WebCore::ChromeClientQt::runJavaScriptPrompt):
2244         (WebCore::ChromeClientQt::contentsSizeChanged):
2245         * WebCoreSupport/FrameLoaderClientQt.cpp:
2246         (WebCore::FrameLoaderClientQt::chooseFile):
2247         * WebCoreSupport/FrameLoaderClientQt.h:
2248
2249 2010-09-15  Simon Hausmann  <simon.hausmann@nokia.com>
2250
2251         [Qt] Update the Symbian def files
2252
2253         Re-freeze with the viewport meta tag updates.
2254
2255         * symbian/eabi/QtWebKitu.def:
2256
2257 2010-09-14  Andreas Kling  <andreas.kling@nokia.com>
2258
2259         Reviewed by Kenneth Rohde Christiansen.
2260
2261         [Qt] V8 port: Get inspector up and running
2262         https://bugs.webkit.org/show_bug.cgi?id=45771
2263
2264         * WebCoreSupport/InspectorClientQt.cpp:
2265         (WebCore::ensureDebuggerScriptLoaded): Added, loads DebuggerScript.js into ScriptDebugServer.
2266         (WebCore::InspectorClientQt::openInspectorFrontend): Ensure that DebuggerScript.js is loaded
2267         before opening an inspector.
2268
2269 2010-09-14  Enrico Ros  <eros@codeaurora.org>
2270
2271         Reviewed by Andreas Kling.
2272
2273         [Qt] Respect title attribute on option elements
2274         https://bugs.webkit.org/show_bug.cgi?id=45084
2275
2276         Set the tooltip in the combo box model, so it's reflected in the view.
2277
2278         * WebCoreSupport/QtFallbackWebPopup.cpp:
2279         (WebCore::QtFallbackWebPopup::populate):
2280
2281 2010-09-13  Daniel Bates  <dbates@rim.com>
2282
2283         https://bugs.webkit.org/show_bug.cgi?id=45732
2284
2285         Fix the Qt build. I missed this when reviewing the patch
2286         for Bug #45732.
2287
2288         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2289         (DumpRenderTreeSupportQt::suspendActiveDOMObjects): Change enum value ActiveDOMObject::JavaScriptPaused to
2290         ActiveDOMObject::JavaScriptDebuggerPaused
2291
2292 2010-09-13  Eric Carlson  <eric.carlson@apple.com>
2293
2294         Reviewed by Daniel Bates.
2295
2296         [Qt] DumpRenderTreeSupportQt::suspendActiveDOMObjects needs a new parameter
2297         https://bugs.webkit.org/show_bug.cgi?id=45732
2298
2299         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2300         (DumpRenderTreeSupportQt::suspendActiveDOMObjects): Pass ActiveDOMObject::JavaScriptPaused
2301         to suspendActiveDOMObjects.
2302
2303 2010-09-13  Enrica Casucci  <enrica@apple.com>
2304
2305         Reviewed by Sam Weinig.
2306
2307         Paste should be implemented in WebCore like Copy and Cut for Mac also.
2308         https://bugs.webkit.org/show_bug.cgi?id=45494
2309         <rdar://problem/7660537>
2310
2311         On the Mac platform, the implementation of the paste operation is all done
2312         at the WebKit level. In order to support it on WebKit2 it is necessary to
2313         refactor the code and move this functionality at the level of WebCore like
2314         we already have on Windows.
2315         The original code relies on some in AppKit functions that call back into
2316         WebKit causing problems in WebKit2. All this functionality has been moved
2317         at the level of the editor client where it can be dealt with appropriately.
2318
2319         * WebCoreSupport/FrameLoaderClientQt.cpp:
2320         (WebCore::FrameLoaderClientQt::canShowMIMETypeAsHTML): Added stub.
2321         * WebCoreSupport/FrameLoaderClientQt.h:
2322
2323 2010-08-27  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
2324
2325         Reviewed by Antti Koivisto.
2326
2327         Add a Qt API for the viewport meta tag support based on the
2328         following draft spec:
2329
2330         http://people.opera.com/rune/TR/ED-css-viewport-20100806/
2331
2332         Add common handling of viewport meta tag based on new Opera spec
2333         https://bugs.webkit.org/show_bug.cgi?id=44201
2334
2335         * Api/qwebframe_p.h:
2336         (QWebFramePrivate::QWebFramePrivate):
2337         * Api/qwebpage.cpp:
2338         (QWebPage::ViewportConfiguration::ViewportConfiguration):
2339         (QWebPage::ViewportConfiguration::~ViewportConfiguration):
2340         (QWebPage::ViewportConfiguration::operator=):
2341         (QWebPage::viewportConfigurationForSize):
2342         (QWebPage::setPreferredContentsSize):
2343         * Api/qwebpage.h:
2344         * Api/qwebpage_p.h:
2345         (QtViewportConfigurationPrivate::QtViewportConfigurationPrivate):
2346         * WebCoreSupport/ChromeClientQt.cpp:
2347         (WebCore::ChromeClientQt::didReceiveViewportArguments):
2348         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2349         (DumpRenderTreeSupportQt::viewportAsText):
2350         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2351         * WebCoreSupport/FrameLoaderClientQt.cpp:
2352         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2353         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
2354
2355 2010-09-12  Martin Smith  <martin.smith@nokia.com>
2356
2357         Reviewed by Simon Hausmann.
2358
2359         doc: Changed the title so lists of contents sort better.
2360
2361         * docs/qtwebkit.qdoc:
2362
2363 2010-09-12  David Boddie  <david.boddie@nokia.com>
2364
2365         Reviewed by Simon Hausmann.
2366
2367         Doc: More work on the QML documentation.
2368
2369         * declarative/qdeclarativewebview.cpp:
2370
2371 2010-09-12  Martin Jones  <martin.jones@nokia.com>
2372
2373         Reviewed by Simon Hausmann.
2374
2375         [Qml] Ensure WebView gets focus when an editable node is clicked on.
2376
2377         Task-number: QTBUG-13342
2378
2379         * declarative/qdeclarativewebview.cpp:
2380         (GraphicsWebView::mousePressEvent):
2381
2382 2010-09-12  David Boddie  <david.boddie@nokia.com>
2383
2384         Reviewed by Simon Hausmann.
2385
2386         Doc: qdoc fixes.
2387
2388         * declarative/qdeclarativewebview.cpp:
2389
2390 2010-09-12  Oswald Buddenhagen  <oswald.buddenhagen@nokia.com>
2391
2392         Reviewed by Simon Hausmann.
2393
2394         [Qt] let WebKit inject itself into the qt configuration
2395
2396         Task-number: QTBUG-12379
2397
2398         * qt_webkit_version.pri: Use the faster + instead of *
2399         operator to add webkit to the config.
2400
2401 2010-09-12  Martin Smith  <martin.smith@nokia.com>
2402
2403         Reviewed by Simon Hausmann.
2404
2405         [Qt] Fix group of declarative web view in QML docs.
2406
2407         * declarative/qdeclarativewebview.cpp:
2408
2409 2010-09-12  Simon Hausmann  <simon.hausmann@nokia.com>
2410
2411         Reviewed by Andreas Kling.
2412
2413         [Qt] Partial implementation of Qt bridge using V8 and QtScript.
2414
2415         * Api/qwebelement.cpp:
2416         (QWebElement::evaluateJavaScript): Stub it out for now,
2417         to compile, until we have a conversion path between v8::Object
2418         and QScriptValue.
2419         * Api/qwebframe.cpp:
2420         (QWebFrame::addToJavaScriptWindowObject): Implemented using
2421         few lines of QtScript code.
2422         (QWebFrame::evaluateJavaScript): Ditto.
2423
2424 2010-09-12  Simon Hausmann  <simon.hausmann@nokia.com>
2425
2426         Reviewed by Andreas Kling.
2427
2428         Fix the build with V8.
2429
2430         This is a temporary kludge until the scriptworld stuff is properly
2431         ported, as part of the upcoming DRT work.
2432
2433         * Api/qwebscriptworld.cpp:
2434         (QWebScriptWorld::QWebScriptWorld):
2435
2436 2010-09-11  Andreas Kling  <andreas.kling@nokia.com>
2437
2438         Reviewed by Simon Hausmann.
2439
2440         [Qt] V8 port for Qt platform: Qt WebCoreSupport changes
2441         https://bugs.webkit.org/show_bug.cgi?id=45149
2442
2443         Original patch by Vlad Burlik <volodimir.burlik@nokia.com>
2444
2445         Implemented the V8 specifics needed in DumpRenderTreeSupportQt and
2446         FrameLoaderClientQt.
2447
2448         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2449         (DumpRenderTreeSupportQt::javaScriptObjectsCount):
2450         (DumpRenderTreeSupportQt::garbageCollectorCollect):
2451         (DumpRenderTreeSupportQt::garbageCollectorCollectOnAlternateThread):
2452         (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
2453         * WebCoreSupport/FrameLoaderClientQt.cpp:
2454         (WebCore::FrameLoaderClientQt::didCreateScriptContextForFrame):
2455         (WebCore::FrameLoaderClientQt::didDestroyScriptContextForFrame):
2456         (WebCore::FrameLoaderClientQt::didCreateIsolatedScriptContext):
2457         (WebCore::FrameLoaderClientQt::createDocumentLoader):
2458         * WebCoreSupport/FrameLoaderClientQt.h:
2459
2460 2010-09-11  Vlad Burlik  <volodimir.burlik@nokia.com>
2461
2462         Reviewed by Andreas Kling.
2463
2464         [Qt] V8 port for QT platform: QT API implementation changes
2465         https://bugs.webkit.org/show_bug.cgi?id=45148
2466
2467         V8 Implementation of QWebFrame::addToJavaScriptWindowObject()
2468         and QWebFrame::evaluateJavaScript()
2469
2470         * Api/qwebelement.cpp:
2471         (setupScriptContext): JSC and V8 variations
2472         (QWebElement::evaluateJavaScript):
2473         * Api/qwebelement.h:
2474         * Api/qwebframe.cpp: QObject injection to V8 world
2475         (QWebFrame::addToJavaScriptWindowObject):
2476         (QWebFrame::evaluateJavaScript):
2477         * Api/qwebpage.cpp: Use ScriptController type definitions instead of direct references to JSC or V8
2478         (QWebPagePrivate::QWebPagePrivate):
2479
2480 2010-09-10  yi shen  <yi.4.shen@nokia.com>
2481
2482         Reviewed by Antonio Gomes.
2483
2484         [Qt] selected text gets deleted when qgraphicswebview losts focus
2485         https://bugs.webkit.org/show_bug.cgi?id=45539
2486
2487         * Api/qwebpage.cpp:
2488         (QWebPagePrivate::inputMethodEvent):
2489         * tests/qwebpage/tst_qwebpage.cpp:
2490         (tst_QWebPage::inputMethods):
2491
2492 2010-09-10  Sam Weinig  <sam@webkit.org>
2493
2494         Fix Qt build.
2495
2496         * Api/qwebsettings.cpp:
2497         (QWebSettingsPrivate::apply):
2498
2499 2010-09-10  Sam Weinig  <sam@webkit.org>
2500
2501         Reviewed by Darin Adler.
2502
2503         Remove unnecessary constraint in WebCore of choosing either text zoom or full page zoom.
2504         Precursor to <rdar://problem/7660657>
2505         https://bugs.webkit.org/show_bug.cgi?id=45522
2506
2507         * Api/qwebframe.cpp:
2508         (QWebFrame::setTextSizeMultiplier):
2509         (QWebFrame::textSizeMultiplier):
2510         (QWebFrame::setZoomFactor):
2511         (QWebFrame::zoomFactor):
2512         * Api/qwebframe_p.h:
2513         (QWebFramePrivate::QWebFramePrivate):
2514         Move tracking of text only zoom here from WebCore.
2515
2516 2010-09-10  Yael Aharon  <yael.aharon@nokia.com>
2517
2518         Reviewed by Andreas Kling.
2519
2520         [Qt] Support click event for notifications
2521         https://bugs.webkit.org/show_bug.cgi?id=44836
2522
2523         Propagate click events to JavaScript from either the
2524         platform plugn or from QSystemTrayIcon.
2525         Also added the method NotificationWrapper::openerPageUrl so that
2526         if the platform plugin can reopen the page that created the
2527         notification directly, when the user clicks the notification.
2528
2529         Added DumpRenderTreeSupportQt::simulateDesktopNotificationClick
2530         for testing purpose.
2531
2532         * Api/qwebkitplatformplugin.h:
2533         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2534         (DumpRenderTreeSupportQt::simulateDesktopNotificationClick):
2535         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2536         * WebCoreSupport/NotificationPresenterClientQt.cpp:
2537         (WebCore::NotificationWrapper::openerPageUrl):
2538         (WebCore::NotificationWrapper::notificationClicked):
2539         (WebCore::NotificationPresenterClientQt::displayNotification):
2540         (WebCore::NotificationPresenterClientQt::notificationClicked):
2541         * WebCoreSupport/NotificationPresenterClientQt.h:
2542         * examples/platformplugin/WebNotificationPresenter.cpp:
2543         (WebNotificationWidget::event):
2544         * examples/platformplugin/WebNotificationPresenter.h:
2545         (WebNotificationPresenter::WebNotificationPresenter):
2546         * examples/platformplugin/qwebkitplatformplugin.h:
2547
2548 2010-09-10  Adam Barth  <abarth@webkit.org>
2549
2550         Attempt to fix the failign Qt tests.  This patch adapts code from
2551         Chromium.  The long-term fix is to remove the need for this code, but
2552         that's a bit too complicated for a buildfix patch.
2553
2554         * WebCoreSupport/FrameLoaderClientQt.cpp:
2555         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2556         (WebCore::FrameLoaderClientQt::makeRepresentation):
2557         (WebCore::FrameLoaderClientQt::revertToProvisionalState):
2558         (WebCore::FrameLoaderClientQt::finishedLoading):
2559         * WebCoreSupport/FrameLoaderClientQt.h:
2560
2561 2010-09-10  Adam Barth  <abarth@webkit.org>
2562
2563         Reviewed by Darin Fisher.
2564
2565         Move code from WebKit-layer to DocumentLoader
2566         https://bugs.webkit.org/show_bug.cgi?id=45569
2567
2568         This code didn't know that setEncoding can be called multiple times.
2569
2570         * WebCoreSupport/FrameLoaderClientQt.cpp:
2571         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2572         (WebCore::FrameLoaderClientQt::finishedLoading):
2573         (WebCore::FrameLoaderClientQt::setMainDocumentError):
2574         (WebCore::FrameLoaderClientQt::committedLoad):
2575         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
2576         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2577         * WebCoreSupport/FrameLoaderClientQt.h:
2578
2579 2010-09-10  Adam Barth  <abarth@webkit.org>
2580
2581         Reviewed by Eric Seidel.
2582
2583         Main resource bytes shouldn't bounce through FrameLoader
2584         https://bugs.webkit.org/show_bug.cgi?id=45496
2585
2586         Now return the bytes to the DocumentLoader.
2587
2588         * WebCoreSupport/FrameLoaderClientQt.cpp:
2589         (WebCore::FrameLoaderClientQt::committedLoad):
2590
2591 2010-09-08  Darin Adler  <darin@apple.com>
2592
2593         Reviewed by Adam Barth.
2594
2595         Move functions from Frame to Editor as planned
2596         https://bugs.webkit.org/show_bug.cgi?id=45218
2597
2598         * Api/qwebpage.cpp:
2599         (QWebPage::selectedText):
2600         (QWebPage::setContentEditable):
2601         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2602         (DumpRenderTreeSupportQt::firstRectForCharacterRange):
2603         Changed call sites to use editor().
2604
2605 2010-09-08  Peter Kasting  <pkasting@google.com>
2606
2607         Reviewed by David Hyatt.
2608
2609         Add smooth scrolling framework, and a Windows implementation.
2610         https://bugs.webkit.org/show_bug.cgi?id=32356
2611
2612         * Api/qwebframe.cpp:
2613         (QWebFrame::setScrollBarValue):
2614
2615 2010-09-06  Diego Gonzalez  <diegohcg@webkit.org>
2616
2617         Reviewed by Antonio Gomes.
2618
2619         [Qt] Update NetworkAccessManager in Qt FrameNetworkingContext
2620         https://bugs.webkit.org/show_bug.cgi?id=45231
2621
2622         Make possible to get the current QNAM when NetwokingContext request it.
2623
2624         * WebCoreSupport/FrameNetworkingContextQt.cpp:
2625         (WebCore::FrameNetworkingContextQt::networkAccessManager):
2626
2627 2010-09-06  Csaba Osztrogonác  <ossy@webkit.org>
2628
2629         Reviewed by Antonio Gomes.
2630
2631         Web Inspector: Tests crash on Qt bots revealed by r66720
2632         https://bugs.webkit.org/show_bug.cgi?id=45256
2633
2634         * WebCoreSupport/InspectorClientQt.cpp:
2635         (WebCore::InspectorClientQt::InspectorClientQt): m_frontendClient must be initialized by constructor
2636
2637 2010-09-06  Yury Semikhatsky  <yurys@chromium.org>
2638
2639         Unreviewed. Attempt to fix random test crashes after r66720.
2640
2641         * WebCoreSupport/InspectorClientQt.cpp:
2642         (WebCore::InspectorFrontendClientQt::~InspectorFrontendClientQt):
2643         * WebCoreSupport/InspectorClientQt.h:
2644
2645 2010-09-05  Sheriff Bot  <webkit.review.bot@gmail.com>
2646
2647         Unreviewed, rolling out r66801.
2648         http://trac.webkit.org/changeset/66801
2649         https://bugs.webkit.org/show_bug.cgi?id=45242
2650
2651         'breaks editing/pasteboard/onpaste-text-html.html' (Requested
2652         by mwenge4 on #webkit).
2653
2654         * WebCoreSupport/ChromeClientQt.cpp:
2655         (WebCore::ChromeClientQt::addMessageToConsole):
2656
2657 2010-09-05  Robert Hogan  <robert@webkit.org>
2658
2659         Reviewed by Antonio Gomes.
2660
2661         [Qt] utf8 encoding of console() messages
2662
2663         http/tests/security/xssAuditor/embed-tag-null-char.html
2664         http/tests/security/xssAuditor/object-embed-tag-null-char.html
2665
2666         both fail because ChromeClientQt::addMessageToConsole() is
2667         casting String to QString rather than String::utf8().data()
2668
2669         https://bugs.webkit.org/show_bug.cgi?id=45240
2670
2671         * WebCoreSupport/ChromeClientQt.cpp:
2672         (WebCore::ChromeClientQt::addMessageToConsole):
2673
2674 2010-09-03  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
2675
2676         Reviewed by Darin Adler.
2677
2678         Add NetworkingContext to avoid layer violations
2679         https://bugs.webkit.org/show_bug.cgi?id=42292
2680
2681         Add Qt's specific implementation of NetworkingContext.
2682
2683         * WebCoreSupport/FrameLoaderClientQt.cpp:
2684         (WebCore::FrameLoaderClientQt::setFrame):
2685         (WebCore::FrameLoaderClientQt::createNetworkingContext):
2686         * WebCoreSupport/FrameLoaderClientQt.h:
2687         * WebCoreSupport/FrameNetworkingContextQt.cpp:
2688         (WebCore::FrameNetworkingContextQt::FrameNetworkingContextQt):
2689         (WebCore::FrameNetworkingContextQt::create):
2690         (WebCore::FrameNetworkingContextQt::originatingObject):
2691         (WebCore::FrameNetworkingContextQt::networkAccessManager):
2692
2693 2010-09-02  Yury Semikhatsky  <yurys@chromium.org>
2694
2695         Reviewed by Pavel Feldman.
2696
2697         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
2698         https://bugs.webkit.org/show_bug.cgi?id=44230
2699
2700         * WebCoreSupport/InspectorClientQt.cpp:
2701         (WebCore::InspectorClientQt::inspectorDestroyed):
2702         (WebCore::InspectorClientQt::openInspectorFrontend):
2703         (WebCore::InspectorClientQt::releaseFrontendPage):
2704         (WebCore::InspectorFrontendClientQt::closeWindow):
2705         (WebCore::InspectorFrontendClientQt::disconnectFromBackend):
2706         (WebCore::InspectorFrontendClientQt::destroyInspectorView):
2707         (WebCore::InspectorFrontendClientQt::inspectorClientDestroyed):
2708         * WebCoreSupport/InspectorClientQt.h:
2709
2710 2010-09-02  Andreas Kling  <andreas.kling@nokia.com>
2711
2712         Rubber-stamped by Simon Hausmann.
2713
2714         [Qt] REGRESSION(r62898): tst_QWebFrame crashing
2715         https://bugs.webkit.org/show_bug.cgi?id=43039
2716
2717         Rolling out the offending change <http://trac.webkit.org/changeset/62898>
2718
2719         * tests/qwebframe/tst_qwebframe.cpp:
2720         (tst_QWebFrame::evalJSV):
2721
2722 2010-09-01  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
2723
2724         Reviewed by Laszlo Gombos.
2725
2726         [Qt] QWebPage::allowGeolocationRequest should be async API
2727         https://bugs.webkit.org/show_bug.cgi?id=41364
2728
2729         Provides a new async API for geolocation permission. Using
2730         Notification API approach from qtwebkit. GeolocationPermissionClientQt 
2731         maintains list of pending requests from WebCore and intimates them
2732         when client either allowes/denies the request. Also implements
2733         ChromeClientQt::cancelGeolocationPermissionRequestForFrame.  
2734
2735         * Api/qwebpage.cpp:
2736         (QWebPage::setUserPermission):
2737         * Api/qwebpage.h:
2738         * WebCoreSupport/ChromeClientQt.cpp:
2739         (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
2740         (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
2741         * WebCoreSupport/ChromeClientQt.h:
2742         * WebCoreSupport/GeolocationPermissionClientQt.cpp: Added.
2743         (WebCore::GeolocationPermissionClientQt::geolocationPermissionClient):
2744         (WebCore::GeolocationPermissionClientQt::GeolocationPermissionClientQt):
2745         (WebCore::GeolocationPermissionClientQt::~GeolocationPermissionClientQt):
2746         (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
2747         (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
2748         (WebCore::GeolocationPermissionClientQt::setPermission):
2749         * WebCoreSupport/GeolocationPermissionClientQt.h: Added.
2750         * tests/qwebpage/tst_qwebpage.cpp:
2751         (JSTestPage::requestPermission):
2752         (tst_QWebPage::geolocationRequestJS):
2753
2754 2010-08-31  Dave Hyatt  <hyatt@apple.com>
2755
2756         Reviewed by Sam Weinig.
2757
2758         https://bugs.webkit.org/show_bug.cgi?id=44863, disentangle style recalc from layout, so that
2759         the former can occur in more places without having to do the latter.
2760
2761         * Api/qwebelement.cpp:
2762         (QWebElement::render):
2763         * Api/qwebframe.cpp:
2764         (QWebFramePrivate::renderRelativeCoords):
2765
2766 2010-08-31  Benjamin Poulain  <benjamin.poulain@nokia.com>
2767
2768         Reviewed by Kenneth Rohde Christiansen.
2769
2770         [Qt] tst_QWebPage::originatingObjectInNetworkRequests() fails on trunk
2771         https://bugs.webkit.org/show_bug.cgi?id=45001
2772
2773         Fix the test, we should not use data encoded URL since we are not
2774         setting an URL but setting the substituteData directly.
2775
2776         * tests/qwebpage/tst_qwebpage.cpp:
2777         (tst_QWebPage::originatingObjectInNetworkRequests):
2778
2779 2010-08-31  Benjamin Poulain  <benjamin.poulain@nokia.com>
2780
2781         Reviewed by Kenneth Rohde Christiansen.
2782
2783         JSC TimeoutChecker::didTimeOut overflows on ARM
2784         https://bugs.webkit.org/show_bug.cgi?id=38538
2785
2786         Re-enabled the test that was skipped for Maemo 5.
2787
2788         * tests/qwebpage/tst_qwebpage.cpp:
2789         (tst_QWebPage::infiniteLoopJS):
2790
2791 2010-08-30  Sheriff Bot  <webkit.review.bot@gmail.com>
2792
2793         Unreviewed, rolling out r66198.
2794         http://trac.webkit.org/changeset/66198
2795         https://bugs.webkit.org/show_bug.cgi?id=44856
2796
2797         It made tests crash on Qt bot (Requested by Ossy_ on #webkit).
2798
2799         * WebCoreSupport/InspectorClientQt.cpp:
2800         (WebCore::InspectorClientQt::inspectorDestroyed):
2801         (WebCore::InspectorClientQt::openInspectorFrontend):
2802         (WebCore::InspectorClientQt::releaseFrontendPage):
2803         (WebCore::InspectorFrontendClientQt::closeWindow):
2804         * WebCoreSupport/InspectorClientQt.h:
2805
2806 2010-08-28  Daniel Bates  <dbates@rim.com>
2807
2808         Attempt to fix the Qt Windows and Qt Linux Release minimal builds
2809         after changeset 66297 <http://trac.webkit.org/changeset/66297>.
2810
2811         * Api/qwebplugindatabase.cpp:
2812         (QWebPluginDatabase::plugins): Wrap the call to PluginPackage::ensurePluginLoaded
2813         in #if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE).
2814
2815 2010-08-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
2816
2817         Reviewed by Antonio Gomes.
2818
2819         [Qt] tst_QWebView::focusInputTypes() fails on MeeGo Handset with WebKit 2.1
2820         https://bugs.webkit.org/show_bug.cgi?id=44761
2821
2822         Make the test more robust to changes in the execution environment. The click
2823         are now correctly simulated, and the position are determined from the content.
2824
2825         The test also create the view and page on the stack to avoid the leak when the
2826         test is failing.
2827
2828         * tests/qwebview/tst_qwebview.cpp:
2829         (tst_QWebView::focusInputTypes):
2830
2831 2010-08-27  Kimmo Kinnunen  <kimmo.t.kinnunen@nokia.com>
2832
2833         Reviewed by Kenneth Rohde Christiansen.
2834
2835         [Qt] Cache plugin info to a persistent database
2836
2837         https://bugs.webkit.org/show_bug.cgi?id=43179
2838
2839         Implement a cache of NPAPI plugin metadata. Write the metadata to aa
2840         file that gets rewritten if any plugin is added / removed.  Compilation
2841         of the feature is controlled by #if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE)
2842
2843         Currently only enabled for Qt UNIX flavors.
2844
2845         * Api/qwebplugindatabase.cpp:
2846         (QWebPluginDatabase::plugins):  Match previous behavior: ensure all returned plugins are loaded.
2847         * Api/qwebsettings.cpp:
2848         (QWebSettings::enablePersistentStorage): Set plugin cache path.
2849
2850 2010-08-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
2851
2852         Reviewed by Kenneth Rohde Christiansen.
2853
2854         [Qt] tst_QWebFrame::inputFieldFocus() fails on MeeGo Handset with QtWebKit 2.1
2855         https://bugs.webkit.org/show_bug.cgi?id=44703
2856
2857         Make the test more robust to changes in the execution environment.
2858         The position where the mouse events are sent is now computed from the element geometry,
2859         this make the test less dependent on the fonts.
2860
2861         The test now also make sure the window manager mapped the window on screen
2862         before attempting to send the events.
2863
2864         * tests/qwebframe/tst_qwebframe.cpp:
2865
2866 2010-08-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
2867
2868         Reviewed by Kenneth Rohde Christiansen.
2869
2870         [Qt] tst_QWebFrame::hitTestContent() fails on Meego Handset
2871         https://bugs.webkit.org/show_bug.cgi?id=44701
2872
2873         Make the test more robust. The position of the text is not relying
2874         on the size of the fonts anymore.
2875
2876         * tests/qwebframe/tst_qwebframe.cpp:
2877
2878 2010-08-26  Antonio Gomes  <tonikitoo@webkit.org>
2879
2880         Reviewed by Simon Hausmann.
2881
2882         [Qt] Add support for automatically creating new windows in QWebView
2883         https://bugs.webkit.org/show_bug.cgi?id=29847
2884
2885         Improved the documentation of createWindow methods of both QWebView and
2886         QWebPage by mentioning that for any of them be called, QWebSettings'
2887         JavaScriptCanOpenWindows attribute must be set to true.
2888
2889         * Api/qwebpage.cpp:
2890         * Api/qwebview.cpp:
2891
2892 2010-08-27  Yury Semikhatsky  <yurys@chromium.org>
2893
2894         Reviewed by Pavel Feldman.
2895
2896         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
2897         https://bugs.webkit.org/show_bug.cgi?id=44230
2898
2899         * WebCoreSupport/InspectorClientQt.cpp:
2900         (WebCore::InspectorClientQt::inspectorDestroyed):
2901         (WebCore::InspectorClientQt::openInspectorFrontend):
2902         (WebCore::InspectorClientQt::releaseFrontendPage):
2903         (WebCore::InspectorFrontendClientQt::closeWindow):
2904         (WebCore::InspectorFrontendClientQt::disconnectFromBackend):
2905         (WebCore::InspectorFrontendClientQt::destroyInspectorView):
2906         (WebCore::InspectorFrontendClientQt::inspectorClientDestroyed):
2907         * WebCoreSupport/InspectorClientQt.h:
2908
2909 2010-08-26  Girish Ramakrishnan  <girish@forwardbias.in>
2910
2911         Reviewed by Antonio Gomes.
2912
2913         [Qt] Remove dead code.
2914
2915         * WebCoreSupport/ChromeClientQt.cpp:
2916         (WebCore::ChromeClientQt::statusbarVisible):
2917
2918 2010-08-26  Yury Semikhatsky  <yurys@chromium.org>
2919
2920         Unreviewed. Revert r66103 since Qt tests are failing.
2921
2922         * WebCoreSupport/InspectorClientQt.cpp:
2923         (WebCore::InspectorFrontendClientQt::closeWindow):
2924         * WebCoreSupport/InspectorClientQt.h:
2925
2926 2010-08-26  Yury Semikhatsky  <yurys@chromium.org>
2927
2928         Reviewed by Pavel Feldman.
2929
2930         REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
2931         https://bugs.webkit.org/show_bug.cgi?id=44230
2932
2933         * WebCoreSupport/InspectorClientQt.cpp:
2934         (WebCore::InspectorFrontendClientQt::closeWindow):
2935         (WebCore::InspectorFrontendClientQt::disconnectFromBackend):
2936         (WebCore::InspectorFrontendClientQt::destroyInspectorView):
2937         * WebCoreSupport/InspectorClientQt.h:
2938
2939 2010-08-26  Benjamin Poulain  <benjamin.poulain@nokia.com>
2940
2941         Reviewed by Simon Hausmann.
2942
2943         [Qt] tst_QWebFrame::popupFocus() hardcode the element position
2944         https://bugs.webkit.org/show_bug.cgi?id=44674
2945
2946         This patch dynamically find the position of the combo element instead
2947         of hardcoding a position to click.
2948
2949         * tests/qwebframe/tst_qwebframe.cpp:
2950
2951 2010-08-25  Leo Yang  <leo.yang@torchmobile.com.cn>
2952
2953         Reviewed by Simon Hausmann.
2954
2955         In FrameLoaderClientQt::createFrame we should call loadURLIntoChildFrame
2956         with parent frame's loader instead of child frame's loader.
2957         https://bugs.webkit.org/show_bug.cgi?id=43930
2958
2959         * WebCoreSupport/FrameLoaderClientQt.cpp:
2960         (WebCore::FrameLoaderClientQt::createFrame):
2961
2962 2010-08-25  Gabor Loki  <loki@webkit.org>
2963
2964         Reviewed by Gavin Barraclough.
2965
2966         Avoid increasing required alignment of target type warning
2967         https://bugs.webkit.org/show_bug.cgi?id=43963
2968
2969         Fix alignment warnings on Qt.
2970
2971         * Api/qwebelement.cpp:
2972         (QWebElement::evaluateJavaScript):
2973         * Api/qwebframe.cpp:
2974         (QWebFrame::addToJavaScriptWindowObject):
2975
2976 2010-08-24  Andras Becsi  <abecsi@inf.u-szeged.hu>
2977
2978         Reviewed by Simon Hausmann.
2979
2980         [Qt] Fix predeclared variables for Symbian to be able to build QtWebKit for Symbian on Linux.
2981
2982         * Api/DerivedSources.pro:
2983
2984 2010-08-20  Girish Ramakrishnan  <girish@forwardbias.in>
2985
2986         Reviewed by Ariya Hidayat.
2987
2988         [Qt] Allow wmode=transparent in QWebView on Maemo5 after r65775.
2989         
2990         https://bugs.webkit.org/show_bug.cgi?id=44043
2991
2992         * WebCoreSupport/FrameLoaderClientQt.cpp:
2993         (WebCore::FrameLoaderClientQt::createPlugin):
2994
2995 2010-08-22  Marc Mutz  <marc.mutz@kdab.com>
2996
2997         Reviewed by Antonio Gomes.
2998
2999         [Qt] Actually emit the QWebView::selectionChanged() signal
3000
3001         https://bugs.webkit.org/show_bug.cgi?id=44252
3002
3003         * Api/qwebview.cpp:
3004         (QWebView::setPage): Connect QWebPage::selectionChanged() to QWebView::selectionChanged()
3005
3006 2010-08-20  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
3007
3008         Reviewed by Ariya Hidayat.
3009
3010         [Qt] constify core() and kit() parameters
3011         https://bugs.webkit.org/show_bug.cgi?id=44347
3012
3013         * Api/qwebframe.cpp:
3014         (QWebFrame::evaluateJavaScript):
3015         * Api/qwebframe_p.h:
3016         * Api/qwebhistory.cpp:
3017         (QWebHistoryItemPrivate::core):
3018         * Api/qwebhistory_p.h:
3019         * Api/qwebpage.cpp:
3020         (QWebPagePrivate::core):
3021         * Api/qwebpage_p.h:
3022
3023 2010-08-19  Balazs Kelemen  <kb@inf.u-szeged.hu>
3024
3025         Reviewed by Antonio Gomes.
3026
3027         [Qt] Fix cursor change propagation
3028         https://bugs.webkit.org/show_bug.cgi?id=44250
3029
3030         * WebCoreSupport/ChromeClientQt.cpp:
3031         (WebCore::ChromeClientQt::setCursor): Implemented. Propagete the callback forward to the PageClient.
3032
3033 2010-08-19  David Kilzer  <ddkilzer@apple.com>
3034
3035         BUILD FIX #3: <http://webkit.org/b/44285> Fix compilation with NETSCAPE_PLUGIN_API disabled
3036
3037         Still trying to make Qt Linux Release minimal buildbot happy.
3038
3039         * WebCoreSupport/FrameLoaderClientQt.cpp:
3040         (WebCore::FrameLoaderClientQt::createPlugin): Wrap code that
3041         handles Netscape plugins in #if ENABLE(NETSCAPE_PLUGIN_API)
3042         and #endif.
3043
3044 2010-08-19  David Kilzer  <ddkilzer@apple.com>
3045
3046         BUILD FIX: FrameLoaderClientQt.h should include ResourceError.h
3047
3048         * WebCoreSupport/FrameLoaderClientQt.h: Include ResourceError.h.
3049
3050 2010-08-19  Girish Ramakrishnan  <girish@forwardbias.in>
3051
3052         Reviewed by Kenneth Christiansen.
3053
3054         [Qt] Inject wmode=opaque for both QWebView and QGraphicsWebView on Maemo5
3055         as Flash XEmbed support is flaky.
3056
3057         https://bugs.webkit.org/show_bug.cgi?id=44043
3058
3059         * WebCoreSupport/FrameLoaderClientQt.cpp:
3060         (WebCore::FrameLoaderClientQt::createPlugin):
3061
3062 2010-08-18  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3063
3064         Unreviewed, trivial Symbian build fix.
3065
3066         [Qt] Remove unnecessary QtGui include from NotificationPresenterClientQt.cpp
3067
3068         * WebCoreSupport/NotificationPresenterClientQt.cpp:
3069
3070 2010-08-17  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3071
3072         Reviewed by Ariya Hidayat.
3073
3074         [Qt] [Symbian] Consistently use Q_OS_SYMBIAN to guard all Symbian platform dependencies
3075         https://bugs.webkit.org/show_bug.cgi?id=44124
3076
3077         Q_WS_S60 is not defined for Symbian^4 devices as Q_WS_S60 used to guard
3078         Avkon UI framework dependencies. Use Q_OS_SYMBIAN everywhere to mark
3079         Symbian dependencies.
3080
3081         * WebCoreSupport/QtFallbackWebPopup.cpp:
3082         (WebCore::QtFallbackWebPopup::populate):
3083
3084 2010-08-17  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3085
3086         Reviewed by Darin Adler.
3087
3088         Add NetworkingContext to avoid layer violations
3089         https://bugs.webkit.org/show_bug.cgi?id=42292
3090
3091         Preparation: Just add the files to the build system.
3092
3093         * WebCoreSupport/FrameNetworkingContextQt.cpp: Added.
3094         Empty placeholder for now.
3095         * WebCoreSupport/FrameNetworkingContextQt.h: Added.
3096         Placeholder with tentative code that might be changed when landing
3097         the rest of it.
3098
3099 2010-08-17  Hui Huang  <hui.2.huang@nokia.com>
3100
3101         Reviewed by Laszlo Gombos.
3102
3103         [Qt] Fix ARM5 compiling error in FrameLoaderClientQt.cpp
3104         https://bugs.webkit.org/show_bug.cgi?id=43927
3105
3106         In the Symbian build chain QT_USE_FAST_OPERATOR_PLUS is defined,
3107         which means that the '+' will automatically be performed as the
3108         QStringBuilder '%'. Create a QString explicitly to make sure that
3109         toLocal8bit() member is available that the qPrintable Macro uses.
3110
3111         * WebCoreSupport/FrameLoaderClientQt.cpp:
3112         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3113
3114 2010-08-16  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3115
3116         Reviewed by Kenneth Christiansen.
3117
3118         [Qt] Implement ChromeClient's windowToScreen() and screenToWindow()
3119
3120         * WebCoreSupport/ChromeClientQt.cpp:
3121
3122 2010-08-14  Adam Barth  <abarth@webkit.org>
3123
3124         Propagate name change to Qt.
3125
3126         * Api/qwebelement.cpp:
3127         (QWebElement::appendInside):
3128         (QWebElement::prependInside):
3129         (QWebElement::prependOutside):
3130         (QWebElement::appendOutside):
3131         (QWebElement::encloseContentsWith):
3132         (QWebElement::encloseWith):
3133
3134 2010-08-12  Jeremy Orlow  <jorlow@chromium.org>
3135
3136         Revert for now
3137         https://bugs.webkit.org/show_bug.cgi?id=43794 
3138
3139         * Api/qwebsettings.cpp:
3140         (QWebSettingsPrivate::apply):
3141
3142 2010-08-11  Jeremy Orlow  <jorlow@chromium.org>
3143
3144         Reviewed by Adam Barth.
3145
3146         Some settings are linked to the PageGroup not the Page.  Create a new class for those.
3147         https://bugs.webkit.org/show_bug.cgi?id=43794
3148
3149         Change WebSettings to use the new GroupSettings class rather than Settings for the
3150         settings that moved.  This is sub-optimal since the settings aren't really
3151         per-view, but I don't see how we can change the API at this point.
3152
3153         * Api/qwebsettings.cpp:
3154         (QWebSettingsPrivate::apply):
3155
3156 2010-08-11  Simon Hausmann  <simon.hausmann@nokia.com>
3157
3158         [Qt] Update the Symbian def files
3159
3160         Re-freeze with various QGraphicsWebView and DRT updates.
3161         The uppper part of the diff is just whitespace, so 
3162         diff -w will show the real diff.
3163
3164         * symbian/eabi/QtWebKitu.def:
3165
3166 2010-08-10  Anders Bakken  <agbakken@gmail.com>
3167
3168         Reviewed by Kenneth Rohde Christiansen.
3169
3170         [Qt] Don't connect to microFocusChanged() if _q_updateMicroFocus is a noop.
3171         https://bugs.webkit.org/show_bug.cgi?id=40580
3172
3173         _q_updateMicroFocus() is a noop unless this ifdef evaluates to true:
3174         #if !defined(QT_NO_IM) && (defined(Q_WS_X11) || defined(Q_WS_QWS) || defined(Q_OS_SYMBIAN))
3175
3176         In such cases there's no need to carry the overhead of the extra
3177         signal/slot connection.
3178
3179         * Api/qgraphicswebview.cpp:
3180         (QGraphicsWebViewPrivate::_q_updateMicroFocus):
3181         (QGraphicsWebView::setPage):
3182
3183 2010-08-10  Chris Marrin  <cmarrin@apple.com>
3184
3185         Reviewed by Oliver Hunt.
3186
3187         Add suspendAnimations/resumeAnimation API to DRT
3188         https://bugs.webkit.org/show_bug.cgi?id=43733
3189         
3190         Qt specific API. Missing symbian symbol defines in:
3191         
3192             WebKit/qt/symbian/bwins/QtWebKitu.def
3193             WebKit/qt/symbian/eabi/QtWebKitu.def
3194
3195         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3196         (DumpRenderTreeSupportQt::suspendAnimations):
3197         (DumpRenderTreeSupportQt::resumeAnimations):
3198         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3199
3200 2010-08-06  Gavin Barraclough  <barraclough@apple.com>
3201
3202         Rubber stamped by Sam Weinig
3203
3204         Bug 43594 - Add string forwards to Forward.h
3205         This allows us to remove forward declarations for these classes from
3206         WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
3207
3208         * WebCoreSupport/FrameLoaderClientQt.h:
3209         * WebCoreSupport/InspectorClientQt.h:
3210
3211 2010-08-08  Ariya Hidayat  <ariya@sencha.com>
3212
3213         Reviewed by Antonio Gomes.
3214
3215         Inconsistent Qt version checks
3216         https://bugs.webkit.org/show_bug.cgi?id=43695
3217
3218         Use QT_VERSION_CHECK macro instead of encoded hex.
3219
3220         * Api/qgraphicswebview.cpp:
3221         (QGraphicsWebView::QGraphicsWebView):
3222         (QGraphicsWebViewPrivate::detachCurrentPage):
3223         * Api/qwebframe.cpp:
3224         (QWebFrame::load):
3225         * Api/qwebpage.cpp:
3226         (QWebPagePrivate::QWebPagePrivate):
3227         (QWebPagePrivate::inputMethodEvent):
3228         (QWebPage::inputMethodQuery):
3229         (QWebPage::view):
3230         * Api/qwebview.cpp:
3231         (QWebViewPrivate::detachCurrentPage):
3232         * WebCoreSupport/EditorClientQt.cpp:
3233         (WebCore::EditorClientQt::setInputMethodState):
3234         * WebCoreSupport/FrameLoaderClientQt.cpp:
3235         (WebCore::FrameLoaderClientQt::createPlugin):
3236         * WebCoreSupport/PageClientQt.cpp:
3237         * WebCoreSupport/PageClientQt.h:
3238
3239 2010-08-06  Jessie Berlin  <jberlin@apple.com>
3240
3241         Roll out http://trac.webkit.org/changeset/64801, which broke the Safari Windows Build.
3242         Unreviewed.
3243
3244         * WebCoreSupport/FrameLoaderClientQt.h:
3245         * WebCoreSupport/InspectorClientQt.h:
3246
3247 2010-08-06  Luiz Agostini  <luiz.agostini@openbossa.org>
3248
3249         Reviewed by Kenneth Rohde Christiansen.
3250
3251         [Qt] Move Qt's popup menu implementation from WebCore to WebKit layer
3252         https://bugs.webkit.org/show_bug.cgi?id=43427
3253
3254         After PopupMenu changes in bug 42592 class QtAbstractWebPopup became unecessary and
3255         there is no need to keep any Qt specific code for popup menus in WebCore/platform/qt.
3256
3257         PopupMenuQt has been moved from WebCore/platform/qt to WebKit/qt/WebCoreSupport and
3258         assumed the responsibilities of QtAbstractWebPopup. SearchPopupMenuQt has been moved
3259         to WebKit/qt/WebCoreSupport as well.
3260
3261         All classes that previously inherited from QtAbstractWebPopup now inherit from
3262         QWebSelectMethod and QtPlatformPlugin's method createSelectInputMethod now returns an
3263         instance of class QWebSelectMethod instead of QtAbstractWebPopup.
3264
3265         * WebCoreSupport/ChromeClientQt.cpp:
3266         (WebCore::ChromeClientQt::createSelectPopup):
3267         (WebCore::ChromeClientQt::createPopupMenu):
3268         (WebCore::ChromeClientQt::createSearchPopupMenu):
3269         * WebCoreSupport/ChromeClientQt.h:
3270         * WebCoreSupport/PopupMenuQt.cpp: Added.
3271         (SelectData::SelectData):
3272         (SelectData::itemText):
3273         (SelectData::itemToolTip):
3274         (SelectData::itemIsEnabled):
3275         (SelectData::itemCount):
3276         (SelectData::itemIsSelected):
3277         (SelectData::multiple):
3278         (SelectData::itemType):
3279         (WebCore::PopupMenuQt::PopupMenuQt):
3280         (WebCore::PopupMenuQt::~PopupMenuQt):
3281         (WebCore::PopupMenuQt::disconnectClient):
3282         (WebCore::PopupMenuQt::show):
3283         (WebCore::PopupMenuQt::didHide):
3284         (WebCore::PopupMenuQt::hide):
3285         (WebCore::PopupMenuQt::updateFromElement):
3286         (WebCore::PopupMenuQt::selectItem):
3287         * WebCoreSupport/PopupMenuQt.h: Added.
3288         * WebCoreSupport/QtFallbackWebPopup.cpp:
3289         (WebCore::QtFallbackWebPopupCombo::hidePopup):
3290         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
3291         (WebCore::QtFallbackWebPopup::show):
3292         (WebCore::QtFallbackWebPopup::populate):
3293         (WebCore::QtFallbackWebPopup::activeChanged):
3294         (WebCore::QtFallbackWebPopup::pageClient):
3295         * WebCoreSupport/QtFallbackWebPopup.h:
3296         (WebCore::QtFallbackWebPopup::setGeometry):
3297         (WebCore::QtFallbackWebPopup::geometry):
3298         (WebCore::QtFallbackWebPopup::setFont):
3299         (WebCore::QtFallbackWebPopup::font):
3300         * WebCoreSupport/QtMaemoWebPopup.cpp:
3301         (WebCore::Maemo5Popup::populateList):
3302         (WebCore::QtMaemoWebPopup::QtMaemoWebPopup):
3303         (WebCore::QtMaemoWebPopup::createSingleSelectionPopup):
3304         (WebCore::QtMaemoWebPopup::createMultipleSelectionPopup):
3305         (WebCore::QtMaemoWebPopup::createPopup):
3306         (WebCore::QtMaemoWebPopup::show):
3307         (WebCore::QtMaemoWebPopup::popupClosed):
3308         (WebCore::QtMaemoWebPopup::itemClicked):
3309         (WebCore::Maemo5SingleSelectionPopup::Maemo5SingleSelectionPopup):
3310         (WebCore::Maemo5MultipleSelectionPopup::Maemo5MultipleSelectionPopup):
3311         * WebCoreSupport/QtMaemoWebPopup.h:
3312         (WebCore::Maemo5Popup::Maemo5Popup):
3313         * WebCoreSupport/QtPlatformPlugin.cpp:
3314         (WebCore::QtPlatformPlugin::createSelectInputMethod):
3315         * WebCoreSupport/QtPlatformPlugin.h:
3316         * WebCoreSupport/SearchPopupMenuQt.cpp: Added.
3317         (WebCore::SearchPopupMenuQt::SearchPopupMenuQt):
3318         (WebCore::SearchPopupMenuQt::popupMenu):
3319         (WebCore::SearchPopupMenuQt::saveRecentSearches):
3320         (WebCore::SearchPopupMenuQt::loadRecentSearches):
3321         (WebCore::SearchPopupMenuQt::enabled):
3322         * WebCoreSupport/SearchPopupMenuQt.h: Added.
3323
3324 2010-08-06  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3325
3326         Reviewed by Antonio Gomes.
3327
3328         [Qt] Add support for the Android viewport meta tag extensions.
3329         http://webkit.org/b/43567
3330
3331         * Api/qwebpage.h:
3332         * WebCoreSupport/ChromeClientQt.cpp:
3333         (WebCore::ChromeClientQt::didReceiveViewportArguments):
3334
3335 2010-08-05  Gavin Barraclough  <barraclough@apple.com>
3336
3337         Rubber stamped by Sam Weinig
3338
3339         Bug 43594 - Add string forwards to Forward.h
3340         This allows us to remove forward declarations for these classes from
3341         WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
3342
3343         * WebCoreSupport/FrameLoaderClientQt.h:
3344         * WebCoreSupport/InspectorClientQt.h:
3345
3346 2010-08-05  Simon Hausmann  <simon.hausmann@nokia.com>
3347
3348         Reviewed by Tor Arne Vestbø.
3349
3350         [Qt] Clean up the input method handling
3351         https://bugs.webkit.org/show_bug.cgi?id=43545
3352
3353         Replace the way of individually setting input method hints by
3354         many calls to QWidget::setInputMethodHints with one single call.
3355
3356         This is more efficient by requiring less updates in the input
3357         method hint.
3358
3359         * WebCoreSupport/EditorClientQt.cpp:
3360         (WebCore::EditorClientQt::setInputMethodState):
3361         * WebCoreSupport/PageClientQt.cpp:
3362         (WebCore::PageClientQWidget::setInputMethodHints):
3363         (WebCore::PageClientQGraphicsWidget::setInputMethodHints):
3364         * WebCoreSupport/PageClientQt.h:
3365
3366 2010-08-05  David Leong  <david.leong@nokia.com>
3367
3368         Reviewed by Simon Hausmann.
3369
3370         [Qt] Input mode states are not reset after entering a password field
3371         https://bugs.webkit.org/show_bug.cgi?id=43530
3372
3373         Input mode hints are not reset if clicking on password <input> elements then 
3374         clicking on <textarea> elements
3375
3376         * WebCoreSupport/EditorClientQt.cpp:
3377         (WebCore::EditorClientQt::setInputMethodState):
3378         * tests/qwebview/resources/input_types.html:
3379         * tests/qwebview/tst_qwebview.cpp:
3380         (tst_QWebView::focusInputTypes):
3381
3382
3383 2010-08-04  Pierre Rossi  <pierre.rossi@nokia.com>
3384
3385         Reviewed by Antonio Gomes.
3386
3387         [Qt] QWebFrame::setContent() does not respect charset provided in the mimeType
3388         https://bugs.webkit.org/show_bug.cgi?id=43125
3389
3390         * Api/qwebframe.cpp:
3391         (QWebFrame::setContent):
3392         * tests/qwebframe/tst_qwebframe.cpp:
3393
3394 2010-08-03  Noam Rosenthal  <noam.rosenthal@nokia.com>
3395
3396         Reviewed by Kenneth Rohde Christiansen.
3397
3398         [Qt] Edits to bridge documentation
3399         https://bugs.webkit.org/show_bug.cgi?id=43012
3400
3401         * docs/qtwebkit-bridge.qdoc:
3402         * docs/webkitsnippets/qtwebkit_bridge_snippets.cpp:
3403         (wrapInFunction):
3404
3405 2010-08-03  Kim Grönholm  <kim.1.gronholm@nokia.com>
3406
3407         Reviewed by Simon Hausmann.
3408
3409         [Qt] Platform plugin interface for Haptics
3410         https://bugs.webkit.org/show_bug.cgi?id=43143
3411
3412         Platform plugin interface for playing haptic feedback
3413
3414         * Api/qwebkitplatformplugin.h:
3415         (QWebHapticFeedbackPlayer::):
3416         (QWebKitPlatformPlugin::):
3417         * examples/platformplugin/WebPlugin.h:
3418         (WebPlugin::createHapticFeedbackPlayer):
3419         * examples/platformplugin/qwebkitplatformplugin.h:
3420         (QWebHapticFeedbackPlayer::):
3421         (QWebKitPlatformPlugin::):
3422
3423 2010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
3424
3425         Reviewed by Darin Fisher.
3426
3427         PopupMenu refactoring in preparation to WebKit2
3428         https://bugs.webkit.org/show_bug.cgi?id=42592
3429
3430         As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
3431         instances, concrete classes that inherit from ChromeClient needed to be changed to
3432         implement the new methods.
3433
3434         * WebCoreSupport/ChromeClientQt.cpp:
3435         (WebCore::ChromeClientQt::selectItemWritingDirectionIsNatural):
3436         (WebCore::ChromeClientQt::createPopupMenu):
3437         (WebCore::ChromeClientQt::createSearchPopupMenu):
3438         * WebCoreSupport/ChromeClientQt.h:
3439
3440 2010-08-02  Jeremy Orlow  <jorlow@chromium.org>
3441
3442         Speculative revert of 64425 due to Chromium instability
3443         https://bugs.webkit.org/show_bug.cgi?id=43347
3444
3445         * WebCoreSupport/ChromeClientQt.cpp:
3446         * WebCoreSupport/ChromeClientQt.h:
3447
3448 2010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
3449
3450         Reviewed by Darin Fisher.
3451
3452         PopupMenu refactoring in preparation to WebKit2
3453         https://bugs.webkit.org/show_bug.cgi?id=42592
3454
3455         As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
3456         instances, concrete classes that inherit from ChromeClient needed to be changed to
3457         implement the new methods.
3458
3459         * WebCoreSupport/ChromeClientQt.cpp:
3460         (WebCore::ChromeClientQt::selectItemWritingDirectionIsNatural):
3461         (WebCore::ChromeClientQt::createPopupMenu):
3462         (WebCore::ChromeClientQt::createSearchPopupMenu):
3463         * WebCoreSupport/ChromeClientQt.h:
3464
3465 2010-07-31  Sheriff Bot  <webkit.review.bot@gmail.com>
3466
3467         Unreviewed, rolling out r64422.
3468         http://trac.webkit.org/changeset/64422
3469         https://bugs.webkit.org/show_bug.cgi?id=43304
3470
3471         Build fixes are needed for Snow Leopard and Windows.
3472         (Requested by lca on #webkit).
3473
3474         * WebCoreSupport/ChromeClientQt.cpp:
3475         * WebCoreSupport/ChromeClientQt.h:
3476
3477 2010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
3478
3479         Reviewed by Darin Fisher.
3480
3481         PopupMenu refactoring in preparation to WebKit2
3482         https://bugs.webkit.org/show_bug.cgi?id=42592
3483
3484         As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
3485         instances, concrete classes that inherit from ChromeClient needed to be changed to
3486         implement the new methods.
3487
3488         * WebCoreSupport/ChromeClientQt.cpp:
3489         (WebCore::ChromeClientQt::selectItemWritingDirectionIsNatural):
3490         (WebCore::ChromeClientQt::createPopupMenu):
3491         (WebCore::ChromeClientQt::createSearchPopupMenu):
3492         * WebCoreSupport/ChromeClientQt.h:
3493
3494 2010-07-30  Luiz Agostini  <luiz.agostini@openbossa.org>
3495
3496         Reviewed by Simon Fraser.
3497
3498         Enabling view modes to all platforms
3499         https://bugs.webkit.org/show_bug.cgi?id=37505
3500
3501         As view mode media feature is now supported by WebCore there is no need
3502         to keep its implementation here. QtWebKit now uses WebCore's view mode media feature
3503         implementation.
3504
3505         * Api/qwebpage.cpp:
3506         (QWebPagePrivate::dynamicPropertyChangeEvent):
3507         * Api/qwebpage_p.h:
3508         * WebCoreSupport/ChromeClientQt.cpp:
3509         * WebCoreSupport/ChromeClientQt.h:
3510
3511 2010-07-30  Joseph Pecoraro  <joepeck@webkit.org>
3512
3513         Reviewed by David Kilzer.
3514
3515         Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
3516         https://bugs.webkit.org/show_bug.cgi?id=40627
3517
3518         * WebCoreSupport/ChromeClientQt.cpp:
3519         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
3520         * WebCoreSupport/ChromeClientQt.h:
3521
3522 2010-07-29  Alexis Menard  <alexis.menard@nokia.com>
3523
3524         Reviewed by Antonio Gomes.
3525
3526         QWebFrame and QWebView documentation fix.
3527
3528         The QWebFrame and the QWebView setHtml() methods are a bit confusing.
3529         There are a few registered bugs in Webkit's bugzilla that source is
3530         in a bad usage of the function.
3531         Additional information were added.
3532
3533         https://bugs.webkit.org/show_bug.cgi?id=31115
3534
3535         * Api/qgraphicswebview.cpp:
3536         * Api/qwebframe.cpp:
3537         * Api/qwebview.cpp:
3538
3539 2010-07-28  Kim Grönholm  <kim.1.gronholm@nokia.com>
3540
3541         Reviewed by Antonio Gomes.
3542
3543         [Qt] Decouple QTouchEvent's accepted flag from JS prevent default
3544         https://bugs.webkit.org/show_bug.cgi?id=42892
3545
3546         Added comments to the touch event handling code.
3547
3548         * Api/qgraphicswebview.cpp:
3549         (QGraphicsWebView::sceneEvent):
3550         * Api/qwebpage.cpp:
3551         (QWebPagePrivate::touchEvent):
3552         (QWebPage::event):
3553         * Api/qwebpage_p.h:
3554         * Api/qwebview.cpp:
3555         (QWebView::event):
3556
3557 2010-07-26  Steve Block  <steveblock@google.com>
3558
3559         Reviewed by Jeremy Orlow.
3560
3561         Page clients should be passed to Page constructor via structure of pointers
3562         https://bugs.webkit.org/show_bug.cgi?id=42834
3563
3564         * Api/qwebpage.cpp:
3565         (QWebPagePrivate::QWebPagePrivate):
3566
3567 2010-07-27  Simon Hausmann  <simon.hausmann@nokia.com>
3568
3569         Reviewed by Tor Arne Vestbø.
3570
3571         [Qt] Incorrect input method hints
3572         https://bugs.webkit.org/show_bug.cgi?id=43037
3573
3574         Properly set or reset all input method hints when
3575         activating input fields.
3576
3577         * WebCoreSupport/EditorClientQt.cpp:
3578         (WebCore::EditorClientQt::setInputMethodState):
3579         * tests/qwebview/tst_qwebview.cpp:
3580         (tst_QWebView::focusInputTypes): Extended unit test to verify that we
3581         reset hints.
3582
3583 2010-07-27  Kim Grönholm  <kim.1.gronholm@nokia.com>
3584
3585         Reviewed by Simon Hausmann.
3586
3587         [Qt] Decouple QTouchEvent's accepted flag from JS prevent default
3588         https://bugs.webkit.org/show_bug.cgi?id=42892
3589
3590         We need to always accept the QTouchEvents in order to get TouchUpdate and
3591         TouchEnd events. QWebPage::event() return value is used to indicate
3592         whether the default action was prevented for the touch events.
3593
3594         * Api/qgraphicswebview.cpp:
3595         (QGraphicsWebView::sceneEvent):
3596         * Api/qwebpage.cpp:
3597         (QWebPagePrivate::touchEvent):
3598         (QWebPage::event):
3599         * Api/qwebpage_p.h:
3600         * Api/qwebview.cpp:
3601         (QWebView::event):
3602
3603 2010-07-26  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3604
3605         Reviewed by Simon Hausmann.
3606
3607         [Qt] Change default font from sans-serif to serif
3608
3609         This matches what other ports and browser engines do.
3610
3611         We now also use QFont's defaultFontFamily() to resolve the
3612         correct fonts for each platform. For Qt >= 4.7 we can take
3613         advantage of the new enums for generic font families.
3614
3615         * Api/qwebsettings.cpp:
3616
3617 2009-10-30  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3618
3619         Reviewed by Kenneth Rohde Christiansen.
3620
3621         [Qt] Use the default timeout interval for JS as the HTML tokenizer delay for setHtml()
3622
3623         This ensures that long-running JavaScript (for example due to a modal alert() dialog),
3624         will not trigger a deferred load after only 500ms (the default tokenizer delay) while
3625         still giving a reasonable timeout (10 seconds) to prevent deadlock.
3626
3627         https://bugs.webkit.org/show_bug.cgi?id=29381
3628
3629         * Api/qwebframe.cpp: Document the behaviour
3630         * WebCoreSupport/FrameLoaderClientQt.cpp: set the custom tokenizer delay for substitute loads
3631         * tests/qwebframe/tst_qwebframe.cpp: Add test
3632
3633 2010-07-23  David Boddie  <dboddie@trolltech.com>
3634
3635         Reviewed by Simon Hausmann.
3636
3637         Doc: Fixed incorrect QML property type.
3638
3639         * declarative/qdeclarativewebview.cpp:
3640
3641 2010-07-23  Simon Hausmann  <simon.hausmann@nokia.com>
3642
3643         [Qt] Build fix for Qt apps
3644
3645         Add webkit to QT_CONFIG. qconfig.pri will read qt_webkit_version.pri and
3646         that's how it will pick up webkit in QT_CONFIG.
3647
3648         * qt_webkit_version.pri:
3649
3650 2010-07-22  Yael Aharon  <yael.aharon@nokia.com>
3651
3652         Reviewed by Laszlo Gombos.
3653
3654         [Qt] QtWebKit needs public API for Notifications.
3655         https://bugs.webkit.org/show_bug.cgi?id=41413
3656
3657         Remove DumpRenderTree private API and introduce new API.
3658         Also add support for informing the UI when a notification request is cancelled.
3659
3660         * Api/qwebpage.cpp:
3661         (QWebPage::setUserPermission):
3662         * Api/qwebpage.h:
3663         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3664         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3665         * WebCoreSupport/NotificationPresenterClientQt.cpp:
3666         (WebCore::NotificationPresenterClientQt::requestPermission):
3667         (WebCore::NotificationPresenterClientQt::checkPermission):
3668         (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
3669         (WebCore::NotificationPresenterClientQt::allowNotificationForFrame):
3670         (WebCore::NotificationPresenterClientQt::toPage):
3671         (WebCore::NotificationPresenterClientQt::toFrame):
3672         * WebCoreSupport/NotificationPresenterClientQt.h:
3673
3674 2010-07-22  Jamey Hicks  <jamey.hicks@nokia.com>
3675
3676         Reviewed by Kenneth Rohde Christiansen.
3677
3678         [Qt] Enable binding of QObjects to JavaScript environment for inspector frontend
3679
3680         This patch enables QObjects to be bound to global variables in the
3681         javascript environment of the inspector frontend. This is useful
3682         for writing alternate inspector frontends in javascript which need
3683         additional native functionality. It's a lighter-weight alternative
3684         than using an NPAPI plugin.
3685  
3686         The code which instantiates QWebInspector uses this by setting the
3687         dynamic property "q_inspectorJavaScriptWindowObjects" on the
3688         QWebInspector. The value of this property should be a
3689         QMap<QString,QVariant> mapping global variable name to QObject.
3690
3691         I have used this to add support for eclipse/chrome remote
3692         debugging in QtTestBrowser.
3693
3694         https://bugs.webkit.org/show_bug.cgi?id=41995
3695
3696         * WebCoreSupport/InspectorClientQt.cpp:
3697         (WebCore::InspectorClientWebPage::InspectorClientWebPage):
3698         (WebCore::InspectorClientWebPage::javaScriptWindowObjectCleared):
3699         (WebCore::InspectorClientQt::openInspectorFrontend):
3700
3701 2010-07-22  Simon Hausmann  <simon.hausmann@nokia.com>
3702
3703         [Qt] Library versioning.
3704
3705         2.1 is branched, trunk will become 2.2.
3706
3707         * Api/qwebkitglobal.h:
3708         * qt_webkit_version.pri:
3709
3710 2010-07-21  Brady Eidson  <beidson@apple.com>
3711
3712         Reviewed by Geoffrey Garen.
3713
3714         Break out "scheme registration" functionality from SecurityOrigin to a SchemeRegistry
3715         https://bugs.webkit.org/show_bug.cgi?id=42783
3716
3717         * Api/qwebpage.cpp:
3718         (QWebPage::acceptNavigationRequest):
3719         * Api/qwebsecurityorigin.cpp:
3720         (QWebSecurityOrigin::addLocalScheme):
3721         (QWebSecurityOrigin::removeLocalScheme):
3722         (QWebSecurityOrigin::localSchemes):
3723
3724 2010-07-20  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
3725
3726         [Qt] Add API to define device-width and height for use with the viewport meta tag
3727         https://bugs.webkit.org/show_bug.cgi?id=42597
3728
3729         Reviewed by Antonio Gomes.
3730
3731         Add a new API for setting the deviceSize for use in conjunction with
3732         out viewport meta tag API.
3733
3734         * Api/qgraphicswebview.cpp:
3735         (QGraphicsWebView::setDeviceSize):
3736         (QGraphicsWebView::deviceSize):
3737         * Api/qgraphicswebview.h:
3738         * WebCoreSupport/PageClientQt.cpp:
3739         (WebCore::PageClientQGraphicsWidget::windowRect):
3740         * WebCoreSupport/PageClientQt.h:
3741         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
3742
3743 2010-07-20  Andreas Kling  <andreas.kling@nokia.com>
3744
3745         Reviewed by Kenneth Rohde Christiansen.
3746
3747         [Qt] DRT sideeffect revealed by r63657
3748         https://bugs.webkit.org/show_bug.cgi?id=42578
3749
3750         Don't set an automatic timeout for notifications when running in DRT.
3751         This fixes an issue with cancel() notifications in unrelated tests.
3752
3753         * WebCoreSupport/NotificationPresenterClientQt.cpp:
3754         (WebCore::NotificationPresenterClientQt::displayNotification):
3755
3756 2010-07-18  Andreas Kling  <andreas.kling@nokia.com>
3757
3758         Reviewed by Antonio Gomes.
3759
3760         [Qt] tst_QWebPage fails cursorMovements and textSelection
3761         https://bugs.webkit.org/show_bug.cgi?id=42531
3762
3763         Correct the HTML used by these tests.<