[Qt] Replace use of QApplication with QGuiApplication
[WebKit-https.git] / Source / WebKit / qt / ChangeLog-2011-02-16
1 2011-02-16  Aparna Nandyal  <aparna.nand@wipro.com>
2
3         Reviewed by Andreas Kling.
4
5         [Qt] QWebFrame: When a relative url is loaded then it will make it absolute internally, however this strips out any query/fragments
6         https://bugs.webkit.org/show_bug.cgi?id=29424
7
8         ensureAbsoluteUrl function was stripping the query and the
9         fragment part of the url. Corrected this.
10
11         * Api/qwebframe.cpp:
12         (ensureAbsoluteUrl):
13
14 2011-02-15  Csaba Osztrogonác  <ossy@webkit.org>
15
16         Unreviewed.
17
18         [Qt][V8] Buildfix. Add missing USE(JSC) guard.
19
20         * Api/qwebelement.cpp:
21
22 2011-02-15  Kenneth Russell  <kbr@google.com>
23
24         Reviewed by Darin Fisher.
25
26         Allow controlling minimum DOMTimer interval on a per-page basis
27         https://bugs.webkit.org/show_bug.cgi?id=54312
28
29         Added needed methods to implement LayoutTestController's new
30         setMinimumTimerInterval method.
31
32         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
33         (DumpRenderTreeSupportQt::defaultMinimumTimerInterval):
34         (DumpRenderTreeSupportQt::setMinimumTimerInterval):
35         * WebCoreSupport/DumpRenderTreeSupportQt.h:
36
37 2011-01-26  MORITA Hajime  <morrita@google.com>
38
39         Reviewed by Ryosuke Niwa.
40
41         Refactoring: Extract TextCheckerClient from EditorClient
42         https://bugs.webkit.org/show_bug.cgi?id=53213
43
44         * WebCoreSupport/EditorClientQt.h:
45         (WebCore::EditorClientQt::textChecker):
46
47 2011-02-07  Ryosuke Niwa  <rniwa@webkit.org>
48
49         Reviewed by Adam Barth.
50
51         Add EditorClient callbacks to override isDOMPasteAllowed and javaScriptCanAccessClipboard
52         https://bugs.webkit.org/show_bug.cgi?id=52417
53
54         Added two callback functions, canCopyCut and canPaste to EditorClient. They are currently
55         not implemented.
56
57         * WebCoreSupport/EditorClientQt.cpp:
58         (WebCore::EditorClientQt::canCopyCut): Added.
59         (WebCore::EditorClientQt::canPaste): Added.
60         * WebCoreSupport/EditorClientQt.h:
61
62 2011-02-14  Alexis Menard  <alexis.menard@nokia.com>
63
64         Reviewed by Andreas Kling.
65
66         [Qt] Crash on application exit after constructing and destroying a QWebView twice
67         https://bugs.webkit.org/show_bug.cgi?id=54000
68
69         Test case to cover the crash.
70
71         * tests/qwebpage/tst_qwebpage.cpp:
72         (tst_QWebPage::deleteQWebViewTwice):
73
74 2011-02-11  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
75
76         Reviewed by Tor Arne Vestbø.
77
78         [Qt] wmode gets overridden even if already windowless in QGraphicsWebView
79         Do not override wmode if it is not set to "window".
80         https://bugs.webkit.org/show_bug.cgi?id=50495
81
82         * WebCoreSupport/FrameLoaderClientQt.cpp:
83         (WebCore::FrameLoaderClientQt::createPlugin):
84
85 2011-02-10  Nate Chapin  <japhet@chromium.org>
86
87         Reviewed by Adam Barth.
88
89         Update calls to DocumentWriter.
90         https://bugs.webkit.org/show_bug.cgi?id=50489
91
92         * Api/qwebframe.cpp:
93         (QWebFrame::setUrl):
94         * WebCoreSupport/FrameLoaderClientQt.cpp:
95         (WebCore::FrameLoaderClientQt::finishedLoading):
96
97 2011-02-10  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
98
99         Reviewed by Andreas Kling.
100
101         [Qt] Ensure WebView press delay timer is cancelled when grab is taken
102         https://bugs.webkit.org/show_bug.cgi?id=54242
103
104         As reported in:
105         http://bugreports.qt.nokia.com/browse/QTBUG-15529
106
107         Flickable steals the grab, but the timer was not stopped and the
108         keepGrab flag is set and the mouse grabbed. This means that the WebView
109         now has the grab and subsequent clicks on another element are ignored.
110
111         Original patch from Martin Jones <martin.jones@nokia.com>
112         reviewed (there) by Joona Petrell
113         52068f57f9c32098a90cc217730a530f85590f65
114
115         * declarative/qdeclarativewebview.cpp:
116         (GraphicsWebView::sceneEvent):
117         * declarative/qdeclarativewebview_p.h:
118
119 2011-02-10  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
120
121         Reviewed by Andreas Kling.
122
123         [Qt] Fix assert in QDeclarativeWebView
124         https://bugs.webkit.org/show_bug.cgi?id=54240
125
126         As reported in:
127         http://bugreports.qt.nokia.com/browse/QTBUG-14278
128
129         Instantiating a QDeclarativeWebView twice will trigger an assertion
130         when in debug mode.
131
132         Original patch from Thomas Hartmann <Thomas.Hartmann@nokia.com>,
133         reviewed (there) by Aaron Kennedy
134         f532679ca11914b453e22342f2ae5e9f790ce47a
135
136         * declarative/qdeclarativewebview.cpp:
137         (QDeclarativeWebView::init):
138
139 2011-02-10  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
140
141         Reviewed by Andreas Kling.
142
143         [Qt] Misc documentation fixes/updates
144         https://bugs.webkit.org/show_bug.cgi?id=54236
145
146         There are a few commits in the Qt repository (master and 4.7 branches)
147         with QtWebKit documentation fixes:
148
149         84d278501a19eaccf9a77cccd95ca5d17a2dcd2b
150         Clarified documentation of loadFinished() signal
151
152         eebe205b306daaa3674d9746de11a73bef4bd0de
153         Doc: Fixed QML, unindented snippet
154
155         b0d64717d2c541976dc5524e4100c62f060e206f
156         doc: Changed a table into 3 tables to eliminate a \raw.
157
158         As these are all minor doc changes, I decided to group them
159         into one single patch.
160
161         * Api/qwebpage.cpp:
162         * declarative/qdeclarativewebview.cpp:
163         * docs/qtwebkit.qdoc:
164
165 2011-02-10  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
166
167         Reviewed by Andreas Kling.
168
169         [Qt] Remove the use of deprecated qVariant*
170         https://bugs.webkit.org/show_bug.cgi?id=54229
171
172         This was applied on the Qt repository and affects QtWebKit there.
173         (633f3f45e5420663cf4ceadea79e62fea44cd2eb)
174
175         The side effect of this change is that we won't be able to build
176         QtWebKit with MSVC 6, as it doesn't support member template functions
177         (not sure if it's possible today anyway).
178
179         Original patch from Olivier Goffart <olivier.goffart@nokia.com>, with
180         review reported as being from the mailing list.
181
182         The changes are result of the following commands:
183
184             git grep -O"sed -i 's/qVariantValue</qvariant_cast</'" qVariantValue
185             git grep -O"sed -i 's/qVariantSetValue(\([^&*\(),]*\), */\\1.setValue(/'" qVariantSetValue
186             git grep -O"sed -i 's/qVariantSetValue *<\([^>]*\)> *(\([^&*\(),]*\), */\\2.setValue<\\1>(/'" qVariantSetValue
187             git grep -O"sed -i 's/qVariantCanConvert *<\([^>]*\)> *(\([^&*\(),]*\))/\\2.canConvert<\\1>()/g'" qVariantCanConvert
188             git grep -O"sed -i 's/qVariantCanConvert *<\([^>]*\)> *(\([^&*\(),]*([^&*\(),]*)\))/\\2.canConvert<\\1>()/g'" qVariantCanConvert
189             git grep -O"sed -i 's/qVariantFromValue\( *[(<]\)/QVariant::fromValue\\1/'" qVariantFromValue
190
191
192         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
193         (DumpRenderTreeSupportQt::nodesFromRect):
194         * tests/qwebframe/tst_qwebframe.cpp:
195         (MyQObject::myInvokableWithQObjectListArg):
196         (MyQObject::myInvokableWithListOfIntArg):
197         (MyQObject::myInvokableWithQObjectStarArg):
198         (MyQObject::myInvokableWithQBrushArg):
199         (MyQObject::myInvokableWithBrushStyleArg):
200         (MyQObject::myInvokableWithVoidStarArg):
201         (MyQObject::myInvokableWithAmbiguousArg):
202         (MyQObject::myInvokableWithDefaultArgs):
203         (MyQObject::myInvokableWithPointArg):
204         (MyQObject::myOverloadedSlot):
205
206 2011-02-10  Robert Hogan  <robert@webkit.org>
207
208         Reviewed by Laszlo Gombos.
209
210         [Qt] Return menu items from eventSender.contextMenu()
211         https://bugs.webkit.org/show_bug.cgi?id=53039
212
213         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
214         (iterateContextMenu):
215         (DumpRenderTreeSupportQt::contextMenu):
216         * WebCoreSupport/DumpRenderTreeSupportQt.h:
217
218 2011-02-10  Alexis Menard  <alexis.menard@nokia.com>
219
220         Reviewed by Andreas Kling.
221
222         [Qt] In trunk with Qt Multimedia the full screen mode doesn't work.
223         https://bugs.webkit.org/show_bug.cgi?id=54201
224
225         Add a default fullscreen handler when there is no plaftform plugin
226         installed. This handler creates a fullscreen QVideoWidget and plays
227         the video. Space pause/resume the video playback and esc quit the
228         fullscreen mode.
229
230         * WebCoreSupport/FullScreenVideoQt.cpp:
231         (WebCore::DefaultFullScreenVideoHandler::DefaultFullScreenVideoHandler):
232         (WebCore::DefaultFullScreenVideoHandler::~DefaultFullScreenVideoHandler):
233         (WebCore::DefaultFullScreenVideoHandler::requiresFullScreenForVideoPlayback):
234         (WebCore::DefaultFullScreenVideoHandler::enterFullScreen):
235         (WebCore::DefaultFullScreenVideoHandler::exitFullScreen):
236         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
237         * WebCoreSupport/FullScreenVideoQt.h:
238         * WebCoreSupport/FullScreenVideoWidget.cpp: Added.
239         (WebCore::FullScreenVideoWidget::FullScreenVideoWidget):
240         (WebCore::FullScreenVideoWidget::~FullScreenVideoWidget):
241         (WebCore::FullScreenVideoWidget::show):
242         (WebCore::FullScreenVideoWidget::closeEvent):
243         (WebCore::FullScreenVideoWidget::event):
244         (WebCore::FullScreenVideoWidget::keyPressEvent):
245         (WebCore::FullScreenVideoWidget::hideCursor):
246         (WebCore::FullScreenVideoWidget::showCursor):
247         * WebCoreSupport/FullScreenVideoWidget.h: Added.
248
249 2011-02-10  kasthuri  <kasthuri.n-s@nokia.com>
250
251         Reviewed by Antonio Gomes.
252
253         [Qt] QWebFrame::setHtml doesn't emit loadFinished signal
254         https://bugs.webkit.org/show_bug.cgi?id=38634
255
256         QWebView->page()->mainFrame()->setHtml(html) is always emitting
257         the loadFinished() signal for all types of html files.
258         But the proposed test content was trying to catch the signal after
259         calling setHtml() api and becuase of this the emitted signal for a 
260         simple html page is never caught as its emitted before even the connect
261         call was successful.
262
263         updated the tst_QWebFrame::setHtml() in tst_qwebframe.cpp to check for 
264         signal using the QSignalSpy.
265          
266
267         * tests/qwebframe/tst_qwebframe.cpp:
268
269 2011-02-09  Robert Hogan  <robert@webkit.org>
270
271         Reviewed by Csaba Osztrogonác.
272
273         [Qt] REGRESSION (r73535): tst_QWebPage fails
274         https://bugs.webkit.org/show_bug.cgi?id=51331
275
276         Since r73535 a ContextMenu is only created when a context menu
277         event is received, so QWebPage::updatePositionDependentActions()
278         can't depend on one being there if it is called directly by
279         the client. QtWebKit itself only ever calls updatePositionDependentActions()
280         when a context menu event has been received.
281
282         Update tst_QWebPage:contextMenuCrash to create a context menu.
283         Add tst_QWebPage:updatePositionDependentActionsCrash to test for this crash.
284
285         There doesn't seem to be a good reason for creating a context menu if
286         clients call QWebPage::updatePositionDependentActions() when no
287         context menu event has ever been received.
288
289         * Api/qwebpage.cpp:
290         (QWebPagePrivate::createContextMenu):
291         * tests/qwebpage/tst_qwebpage.cpp:
292         (tst_QWebPage::contextMenuCrash):
293
294 2011-02-09  Robert Hogan  <robert@webkit.org>
295
296         Reviewed by Antonio Gomes.
297
298         [Qt] fast/dom/nodesFromRect-links-and-text.html crashes in debug mode
299         https://bugs.webkit.org/show_bug.cgi?id=53921
300
301         QDRTNode needs a copy constructor and an operator= in order to keep
302         proper refcounts.
303
304         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
305         (:m_node):
306         (QDRTNode::operator=):
307         (DumpRenderTreeSupportQt::nodesFromRect):
308         * WebCoreSupport/DumpRenderTreeSupportQt.h:
309
310 2011-02-08  Adam Barth  <abarth@webkit.org>
311
312         Reviewed by Eric Seidel.
313
314         Remove orphan code from old parser
315         https://bugs.webkit.org/show_bug.cgi?id=53984
316
317         * WebCoreSupport/ChromeClientQt.h:
318
319 2011-02-07  Aparna Nandyal  <aparna.nand@wipro.com>
320
321         Reviewed by Andreas Kling.
322
323         [Qt] - Context menu needs "Copy" as well when the selected text is a link.
324         https://bugs.webkit.org/show_bug.cgi?id=40983
325
326         Added a test case to create a context sensitive menu.
327         A check is made if it has Copy menu item when user
328         selects a link and opens context menu.
329
330         * tests/qwebpage/tst_qwebpage.cpp:
331         (tst_QWebPage::contextMenuCopy):
332
333 2011-02-07  Benjamin Poulain  <ikipou@gmail.com>
334
335         Reviewed by Kenneth Rohde Christiansen.
336
337         [Qt] cookiesEnabled could create the cookieJar on the wrong thread.
338         https://bugs.webkit.org/show_bug.cgi?id=52289
339
340         Test if the cookie jar is created in the right thread when accessed from
341         the navigator object.
342
343         * tests/qwebpage/tst_qwebpage.cpp:
344         (tst_QWebPage::navigatorCookieEnabledForNetworkAccessManagerOnDifferentThread):
345
346 2011-02-07  Qi Zhang  <qi.2.zhang@nokia.com>
347
348         Reviewed by Andreas Kling.
349
350         [Qt] enum QWebPage::WebAction doesn't have value QWebPage::CopyImageUrl
351         https://bugs.webkit.org/show_bug.cgi?id=52974
352
353         Add QWebPage::CopyImageUrlToClipboard into QWebPage::WebAction.
354
355         * Api/qwebpage.cpp:
356         (webActionForContextMenuAction):
357         (QWebPage::triggerAction):
358         (QWebPage::action):
359         * Api/qwebpage.h:
360         * WebCoreSupport/WebPlatformStrategies.cpp:
361         (WebPlatformStrategies::contextMenuItemTagCopyImageUrlToClipboard):
362         * WebCoreSupport/WebPlatformStrategies.h:
363
364 2011-02-07  Enrica Casucci  <enrica@apple.com>
365
366         Reviewed Adam Roben and Darin Adler.
367
368         WebKit2: drag and drop support on Windows.
369         https://bugs.webkit.org/show_bug.cgi?id=52775
370
371         Removed createDragImageForLink from DragClient.
372
373         * WebCoreSupport/DragClientQt.cpp:
374         * WebCoreSupport/DragClientQt.h:
375
376 2011-02-06  Robert Hogan  <robert@webkit.org>
377
378         Reviewed by Andreas Kling.
379
380         [Qt] Remove unnecessary QRect assignment
381         https://bugs.webkit.org/show_bug.cgi?id=53873
382
383         * Api/qwebframe.cpp:
384         (QWebFramePrivate::renderRelativeCoords):
385
386 2011-02-06  Robert Hogan  <robert@webkit.org>
387
388         Reviewed by Andreas Kling.
389
390         [Qt] Clear page's groupName even when not in DRT
391         https://bugs.webkit.org/show_bug.cgi?id=53874
392
393         Matches behaviour of other ports.
394
395         * WebCoreSupport/ChromeClientQt.cpp:
396         (WebCore::ChromeClientQt::closeWindowSoon):
397
398 2011-02-03  Yury Semikhatsky  <yurys@chromium.org>
399
400         Reviewed by Pavel Feldman.
401
402         Web Inspector: remove settings related methods from InspectorClient
403         https://bugs.webkit.org/show_bug.cgi?id=53686
404
405         * WebCoreSupport/InspectorClientQt.cpp:
406         (WebCore::InspectorFrontendClientQt::InspectorFrontendClientQt):
407         * WebCoreSupport/InspectorClientQt.h:
408
409 2011-02-03  Adam Langley  <agl@chromium.org>
410
411         Reviewed by Adam Barth.
412
413         Plumb mixed script URL to FrameLoaderClient
414         https://bugs.webkit.org/show_bug.cgi?id=52384
415
416         Regressions covered by http/tests/security/mixedContent/*
417
418         * WebCoreSupport/FrameLoaderClientQt.cpp:
419         (WebCore::FrameLoaderClientQt::didRunInsecureContent):
420         * WebCoreSupport/FrameLoaderClientQt.h:
421
422 2011-02-01  Csaba Osztrogonác  <ossy@webkit.org>
423
424         Unreviewed Qt buildfix after r77286.
425
426         https://bugs.webkit.org/show_bug.cgi?id=53520 
427         Remove the physical terminology from IntRect and FloatRect.
428
429         * WebCoreSupport/PopupMenuQt.cpp:
430         (WebCore::PopupMenuQt::show):
431
432 2011-01-31  No'am Rosenthal  <noam.rosenthal@nokia.com>
433
434         Reviewed by Kenneth Rohde Christiansen.
435
436         [Qt] QWebElements example from QtWebKit Bridge documentation does not work at all
437         https://bugs.webkit.org/show_bug.cgi?id=46748
438
439         Problem was that we need to register QWebElement's variant-type to Qt's meta type system at some point.
440         This wasn't caught by previous tests inside tst_QWebFrame because it only appears when there's also a QWebElement property.
441         Added a regression test to tst_QWebFrame.
442
443         * tests/qwebframe/tst_qwebframe.cpp:
444         (MyWebElementSlotOnlyObject::doSomethingWithWebElement):
445         (MyWebElementSlotOnlyObject::tagName):
446
447 2011-01-31  Srikumar Bonda  <srikumar.b@gmail.com>
448
449         Reviewed by Andreas Kling.
450
451         [Qt] ContextMenuClientQt.cpp has coding-style errors
452         "RefCounted.h" header inclusion style changed to <wtf/RefCounted.h> 
453         https://bugs.webkit.org/show_bug.cgi?id=40243
454
455         * WebCoreSupport/ContextMenuClientQt.cpp:
456
457 2011-01-28  Dan Bernstein  <mitz@apple.com>
458
459         Reviewed by Sam Weinig.
460
461         <select> can't display right-to-left (rtl) languages
462         https://bugs.webkit.org/show_bug.cgi?id=19785
463
464         * WebCoreSupport/ChromeClientQt.cpp:
465         (WebCore::ChromeClientQt::selectItemAlignmentFollowsMenuWritingDirection): Added.
466         * WebCoreSupport/ChromeClientQt.h:
467
468 2011-01-27  Nate Chapin  <japhet@chromium.org>
469
470         Reviewed by Adam Barth.
471
472         Use Document::url() instead of FrameLoader::url().
473         https://bugs.webkit.org/show_bug.cgi?id=41165
474
475         * Api/qwebframe.cpp:
476         (QWebFrame::url):
477
478 2011-01-27  Robert Hogan  <robert@webkit.org>
479
480         Rubber-stamped by Andreas Kling.
481
482         [Qt] Style Fix: correct indentation in FrameLoadeClientQt:createPlugin
483
484         * WebCoreSupport/FrameLoaderClientQt.cpp:
485         (WebCore::FrameLoaderClientQt::createPlugin):
486
487 2011-01-24  Chris Marrin  <cmarrin@apple.com>
488
489         Reviewed by Eric Seidel.
490
491         Change ENABLE_3D_CANVAS to ENABLE_WEBGL
492         https://bugs.webkit.org/show_bug.cgi?id=53041
493
494         * Api/qwebsettings.cpp:
495         (QWebSettingsPrivate::apply):
496
497 2011-01-24  Renata Hodovan  <reni@webkit.org>
498
499         Reviewed by Andreas Kling.
500
501         [Qt] QWebFramePrivate::renderRelativeCoords() calls QPainter::save/restore more than necessary
502         https://bugs.webkit.org/show_bug.cgi?id=49915
503
504         In the first loop of renderRelativeCoords() the call of QPainter::save/restore is useless, because
505         the context is saved/stored within the loop.
506         In the second loop the calls are also avoidable by using inverse translation on context.
507
508         * Api/qwebframe.cpp:
509         (QWebFramePrivate::renderRelativeCoords):
510
511 2011-01-24  Andras Becsi  <abecsi@webkit.org>
512
513         Reviewed by Csaba Osztrogonác.
514
515         [Qt] Move project files into Source
516         https://bugs.webkit.org/show_bug.cgi?id=52891
517
518         * declarative/declarative.pro:
519         * docs/docs.pri:
520         * tests/tests.pri:
521
522 2011-01-22  Ilya Tikhonovsky  <loislo@chromium.org>
523
524         Reviewed by Pavel Feldman.
525
526         Web Inspector: next step in splitting InspectorController.
527
528         #include "InspectorController.h" was added.
529
530         https://bugs.webkit.org/show_bug.cgi?id=52955
531
532         * WebCoreSupport/InspectorServerQt.cpp:
533
534 2011-01-22  Robert Hogan  <robert@webkit.org>
535
536         Reviewed by Andreas Kling.
537
538         [Qt] Support layoutTestController.addURLToRedirect()
539         https://bugs.webkit.org/show_bug.cgi?id=52956
540
541         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
542         (DumpRenderTreeSupportQt::addURLToRedirect):
543         * WebCoreSupport/DumpRenderTreeSupportQt.h:
544         * WebCoreSupport/FrameLoaderClientQt.cpp:
545         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
546         * WebCoreSupport/FrameLoaderClientQt.h:
547
548 2011-01-21  Sam Weinig  <sam@webkit.org>
549
550         Reviewed by Anders Carlsson.
551
552         Part 2 of "Cleanup Scrollbar/ScrollbarClient relationship"
553         https://bugs.webkit.org/show_bug.cgi?id=52779
554
555         Rename ScrollbarClient -> ScrollableArea.
556
557         * Api/qwebframe.cpp:
558         (QWebFrame::setScrollBarValue):
559
560 2011-01-20  Sam Weinig  <sam@webkit.org>
561
562         Fix build.
563
564         * Api/qwebframe.cpp:
565         (QWebFrame::setScrollBarValue):
566
567 2011-01-20  Sam Weinig  <sam@webkit.org>
568
569         Fix build.
570
571         * Api/qwebframe.cpp:
572         (QWebFrame::setScrollBarValue):
573
574 2011-01-20  Sam Weinig  <sam@webkit.org>
575
576         Reviewed by Dave Hyatt.
577
578         Cleanup Scrollbar/ScrollbarClient relationship
579         https://bugs.webkit.org/show_bug.cgi?id=52779
580
581         * Api/qwebframe.cpp:
582         (QWebFrame::setScrollBarValue):
583
584 2011-01-19  Simon Fraser  <simon.fraser@apple.com>
585
586         Reviewed by Sam Weinig.
587
588         GraphicsLayers in subframes can get sync'd multiple times
589         https://bugs.webkit.org/show_bug.cgi?id=52489
590
591         * WebCoreSupport/PageClientQt.cpp:
592         (WebCore::PageClientQWidget::syncLayers): syncCompositingStateRecursive()
593         was renamed to syncCompositingStateIncludingSubframes().
594
595 2011-01-19  Csaba Osztrogonác  <ossy@webkit.org>
596
597         Reviewed by Laszlo Gombos and Tor Arne Vestbø.
598
599         [Qt] Remove unnecessary "../Source" from paths
600         after moving source files into Source is finished.
601
602         * Api/DerivedSources.pro:
603
604 2011-01-18  Robert Hogan  <robert@webkit.org>
605
606         Reviewed by Simon Hausmann.
607
608         [Qt] http/tests/incremental/slow-utf8-text.pl fails
609         https://bugs.webkit.org/show_bug.cgi?id=44282
610
611         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
612         (DumpRenderTreeSupportQt::responseMimeType):
613         * WebCoreSupport/DumpRenderTreeSupportQt.h:
614
615 2011-01-17  Alexey Proskuryakov  <ap@apple.com>
616
617         https://bugs.webkit.org/show_bug.cgi?id=52495
618
619         * Api/qwebframe.cpp: (QWebFrame::print): Avoid breaking the build due to type mismatch.
620         Longer term, this code should be changed to use an unsigned type for page count.
621
622 2011-01-17  Yi Shen  <yi.4.shen@nokia.com>
623
624         Reviewed by Andreas Kling.
625
626         [Qt] Extend the Platform Plugin to support full screen video handler
627         https://bugs.webkit.org/show_bug.cgi?id=51249
628
629         Add a new webkit platform plugin interface to support full screen video handler.
630
631         * Api/qwebkitplatformplugin.h:
632         (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
633         (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
634         * WebCoreSupport/ChromeClientQt.cpp:
635         (WebCore::ChromeClientQt::ChromeClientQt):
636         (WebCore::ChromeClientQt::~ChromeClientQt):
637         (WebCore::ChromeClientQt::fullScreenVideo):
638         (WebCore::ChromeClientQt::supportsFullscreenForNode):
639         (WebCore::ChromeClientQt::requiresFullscreenForVideoPlayback):
640         (WebCore::ChromeClientQt::enterFullscreenForNode):
641         (WebCore::ChromeClientQt::exitFullscreenForNode):
642         * WebCoreSupport/ChromeClientQt.h:
643         * WebCoreSupport/FullScreenVideoQt.cpp: Added.
644         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
645         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
646         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
647         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
648         (WebCore::FullScreenVideoQt::aboutToClose):
649         (WebCore::FullScreenVideoQt::mediaPlayer):
650         (WebCore::FullScreenVideoQt::mediaPlayerForNode):
651         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
652         * WebCoreSupport/FullScreenVideoQt.h: Added.
653         (WebCore::FullScreenVideoQt::isValid):
654         * WebCoreSupport/QtPlatformPlugin.cpp:
655         (WebCore::QtPlatformPlugin::createFullScreenVideoHandler):
656         * WebCoreSupport/QtPlatformPlugin.h:
657         * examples/platformplugin/WebPlugin.cpp:
658         (FullScreenVideoWidget::FullScreenVideoWidget):
659         (FullScreenVideoWidget::event):
660         (FullScreenVideoWidget::keyPressEvent):
661         (FullScreenVideoHandler::FullScreenVideoHandler):
662         (FullScreenVideoHandler::~FullScreenVideoHandler):
663         (FullScreenVideoHandler::requiresFullScreenForVideoPlayback):
664         (FullScreenVideoHandler::enterFullScreen):
665         (FullScreenVideoHandler::exitFullScreen):
666         (WebPlugin::supportsExtension):
667         (WebPlugin::createExtension):
668         * examples/platformplugin/WebPlugin.h:
669         (FullScreenVideoWidget::~FullScreenVideoWidget):
670         * examples/platformplugin/platformplugin.pro:
671         * examples/platformplugin/qwebkitplatformplugin.h:
672         (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
673         (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
674
675 2011-01-16  Adam Barth  <abarth@webkit.org>
676
677         Rubber-stamped by Eric Seidel.
678
679         Move WebKit into Source
680         https://bugs.webkit.org/show_bug.cgi?id=52530
681
682         * Api/DerivedSources.pro:
683         * declarative/declarative.pro:
684         * docs/docs.pri:
685         * tests/tests.pri:
686
687 2011-01-15  Sheriff Bot  <webkit.review.bot@gmail.com>
688
689         Unreviewed, rolling out r75708.
690         http://trac.webkit.org/changeset/75708
691         https://bugs.webkit.org/show_bug.cgi?id=52521
692
693         Breaks Qt build if mobility is not installed. (Requested by
694         benjaminp on #webkit).
695
696         * Api/qwebkitplatformplugin.h:
697         * WebCoreSupport/ChromeClientQt.cpp:
698         (WebCore::ChromeClientQt::ChromeClientQt):
699         (WebCore::ChromeClientQt::~ChromeClientQt):
700         * WebCoreSupport/ChromeClientQt.h:
701         * WebCoreSupport/FullScreenVideoQt.cpp: Removed.
702         * WebCoreSupport/FullScreenVideoQt.h: Removed.
703         * WebCoreSupport/QtPlatformPlugin.cpp:
704         * WebCoreSupport/QtPlatformPlugin.h:
705         * examples/platformplugin/WebPlugin.cpp:
706         (WebPlugin::supportsExtension):
707         (WebPlugin::createExtension):
708         * examples/platformplugin/WebPlugin.h:
709         * examples/platformplugin/platformplugin.pro:
710         * examples/platformplugin/qwebkitplatformplugin.h:
711
712 2011-01-15  Robert Hogan  <robert@webkit.org>
713
714         Reviewed by Kenneth Rohde Christiansen.
715
716         [Qt] plugins/no-mime-with-valid-extension.html fails
717         Check extension of resource against installed
718         plugins when determining mime-type.
719
720         https://bugs.webkit.org/show_bug.cgi?id=52288
721         https://bugs.webkit.org/show_bug.cgi?id=50657
722
723         * WebCoreSupport/FrameLoaderClientQt.cpp:
724         (WebCore::FrameLoaderClientQt::objectContentType):
725
726 2011-01-14  Sam Magnuson  <smagnuso@gmail.com>
727
728         Reviewed by Kenneth Rohde Christiansen.
729
730         [Qt] Compile with QT_NO_GRAPHICSVIEW
731         https://bugs.webkit.org/show_bug.cgi?id=49750
732
733         * Api/qgraphicswebview.cpp:
734         * Api/qgraphicswebview.h:
735         * Api/qwebpage.cpp:
736         (QWebPage::event):
737         * Api/qwebpage_p.h:
738         * WebCoreSupport/FrameLoaderClientQt.cpp:
739         (WebCore::FrameLoaderClientQt::createPlugin):
740         * WebCoreSupport/PageClientQt.cpp:
741         * WebCoreSupport/PageClientQt.h:
742
743 2011-01-14  Yuzo Fujishima  <yuzo@google.com>
744
745         Reviewed by Antti Koivisto.
746
747         Rename cache() to memoryCache()
748         https://bugs.webkit.org/show_bug.cgi?id=52433
749
750         * Api/qwebpage.cpp:
751         (QWebPagePrivate::_q_cleanupLeakMessages):
752         * Api/qwebsettings.cpp:
753         (QWebSettings::clearMemoryCaches):
754         (QWebSettings::setObjectCacheCapacities):
755
756 2011-01-14  Konstantin Tokarev  <annulen@yandex.ru>
757
758         Reviewed by Laszlo Gombos.
759
760         [Qt] Fixed compilation when QT_NO_SHORTCUT is defined
761         https://bugs.webkit.org/show_bug.cgi?id=52460
762
763         This patch fixes compilation when QT_NO_SHORTCUT is defined in Qt
764         configuration.
765
766         * WebCoreSupport/EditorClientQt.cpp:
767         (WebCore::EditorClientQt::handleKeyboardEvent): Added QT_NO_SHORTCUT guards
768
769 2011-01-13  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
770
771         Reviewed by Simon Hausmann.
772
773         [Qt] Need a way to inform the application when a Netscape plugin is created.
774         https://bugs.webkit.org/show_bug.cgi?id=30179
775
776         Added "c" style static method for the application to hook up for
777         receiving notifications when a plugin is created.
778
779         * symbian/bwins/QtWebKitu.def:
780         * symbian/eabi/QtWebKitu.def:
781
782 2011-01-13  Yi Shen  <yi.4.shen@nokia.com>
783
784         Reviewed by Simon Hausmann.
785
786         [Qt] Extend the Platform Plugin to support full screen video handler
787         https://bugs.webkit.org/show_bug.cgi?id=51249
788
789         Add a new webkit platform plugin interface to support full screen video handler.
790
791         * Api/qwebkitplatformplugin.h:
792         (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
793         (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
794         * WebCoreSupport/ChromeClientQt.cpp:
795         (WebCore::ChromeClientQt::ChromeClientQt):
796         (WebCore::ChromeClientQt::~ChromeClientQt):
797         (WebCore::ChromeClientQt::fullScreenVideo):
798         (WebCore::ChromeClientQt::supportsFullscreenForNode):
799         (WebCore::ChromeClientQt::requiresFullscreenForVideoPlayback):
800         (WebCore::ChromeClientQt::enterFullscreenForNode):
801         (WebCore::ChromeClientQt::exitFullscreenForNode):
802         * WebCoreSupport/ChromeClientQt.h:
803         * WebCoreSupport/FullScreenVideoQt.cpp: Added.
804         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
805         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
806         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
807         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
808         (WebCore::FullScreenVideoQt::aboutToClose):
809         (WebCore::FullScreenVideoQt::mediaPlayer):
810         (WebCore::FullScreenVideoQt::mediaPlayerForNode):
811         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
812         * WebCoreSupport/FullScreenVideoQt.h: Added.
813         (WebCore::FullScreenVideoQt::isValid):
814         * WebCoreSupport/QtPlatformPlugin.cpp:
815         (WebCore::QtPlatformPlugin::createFullScreenVideoHandler):
816         * WebCoreSupport/QtPlatformPlugin.h:
817         * examples/platformplugin/WebPlugin.cpp:
818         (FullScreenVideoWidget::FullScreenVideoWidget):
819         (FullScreenVideoWidget::event):
820         (FullScreenVideoWidget::keyPressEvent):
821         (FullScreenVideoHandler::FullScreenVideoHandler):
822         (FullScreenVideoHandler::~FullScreenVideoHandler):
823         (FullScreenVideoHandler::requiresFullScreenForVideoPlayback):
824         (FullScreenVideoHandler::enterFullScreen):
825         (FullScreenVideoHandler::exitFullScreen):
826         (WebPlugin::supportsExtension):
827         (WebPlugin::createExtension):
828         * examples/platformplugin/WebPlugin.h:
829         (FullScreenVideoWidget::~FullScreenVideoWidget):
830         * examples/platformplugin/platformplugin.pro:
831         * examples/platformplugin/qwebkitplatformplugin.h:
832         (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
833         (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
834
835 2011-01-12  Robert Hogan  <robert@webkit.org>
836
837         Reviewed by Kenneth Rohde Christiansen.
838
839         [Qt] Search input field doesn't have cancel button
840
841         Add a cancel button to the search field and make it customizable
842         by the client. For now, use the close dialog button associated
843         with the application's style as the default.
844
845         https://bugs.webkit.org/show_bug.cgi?id=42887
846
847         * Api/qwebsettings.cpp:
848         (graphics):
849         * Api/qwebsettings.h:
850
851 2011-01-12  Sheriff Bot  <webkit.review.bot@gmail.com>
852
853         Unreviewed, rolling out r74344.
854         http://trac.webkit.org/changeset/74344
855         https://bugs.webkit.org/show_bug.cgi?id=52290
856
857         broke QWebPluginFactory for unusual mime-types (Requested by
858         kling on #webkit).
859
860         * WebCoreSupport/FrameLoaderClientQt.cpp:
861         (WebCore::FrameLoaderClientQt::createPlugin):
862
863 2011-01-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
864
865         Reviewed by Kenneth Rohde Christiansen.
866
867         [Qt] Remove uses of QFuture since it isn't supported on all platforms.
868         https://bugs.webkit.org/show_bug.cgi?id=51204
869
870         * tests/qwebpage/tst_qwebpage.cpp:
871         (QtNAMThread::QtNAMThread):
872         (QtNAMThread::networkAccessManager):
873         (QtNAMThread::run):
874
875 2011-01-11  Benjamin Poulain  <benjamin.poulain@nokia.com>
876
877         Reviewed by Kenneth Rohde Christiansen.
878
879         [Qt] Fix tst_QWebPage::geolocationRequestJS()
880         https://bugs.webkit.org/show_bug.cgi?id=46814
881
882         Skip the test when WebKit is compiled without geolocation.
883
884         * tests/qwebpage/tst_qwebpage.cpp:
885         (tst_QWebPage::geolocationRequestJS):
886
887 2011-01-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
888
889         Reviewed by Csaba Osztrogonác.
890
891         [Qt] Baseline qt_minimal configuration
892         https://bugs.webkit.org/show_bug.cgi?id=51313
893
894         * WebCoreSupport/PopupMenuQt.cpp:
895         (WebCore::PopupMenuQt::show): Add QT_NO_COMBOBOX guard.
896
897         * WebCoreSupport/QtFallbackWebPopup.cpp:
898         (WebCore::QtFallbackWebPopup::populate): Add QT_NO_TOOLTIP guard.
899
900         * tests/qwebframe/tst_qwebframe.cpp: Add QT_NO_COMBOBOX guard.
901         * tests/qwebpage/tst_qwebpage.cpp:
902         (PluginPage::createPlugin): Add QT_NO_INPUTDIALOG guard.
903
904 2011-01-10  Adam Barth  <abarth@webkit.org>
905
906         Reviewed by Darin Adler.
907
908         Introduce the notion of a "display-isolated" URL scheme for use by
909         Chrome-internal URLs
910         https://bugs.webkit.org/show_bug.cgi?id=50182
911
912         Update to new function name.
913
914         * Api/qwebsecurityorigin.cpp:
915         (QWebSecurityOrigin::localSchemes):
916
917 2011-01-10  Benjamin Poulain  <benjamin.poulain@nokia.com>
918
919         Reviewed by Kenneth Rohde Christiansen.
920
921         [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
922         https://bugs.webkit.org/show_bug.cgi?id=52081
923
924         Add an autotest for checking the result of Navigator.cookiesEnabled depending
925         on the status of the cookie jar.
926
927         * tests/qwebpage/tst_qwebpage.cpp:
928         (tst_QWebPage::navigatorCookieEnabled):
929
930 2011-01-09  Sheriff Bot  <webkit.review.bot@gmail.com>
931
932         Unreviewed, rolling out r75337.
933         http://trac.webkit.org/changeset/75337
934         https://bugs.webkit.org/show_bug.cgi?id=52137
935
936         It made fast/dom/navigator-detached-no-crash.html crash
937         (Requested by Ossy on #webkit).
938
939         * tests/qwebpage/tst_qwebpage.cpp:
940
941 2011-01-09  Xianzhu Wang <phnixwxz@gmail.com>
942
943         Reviewed by Darin Fisher.
944
945         https://bugs.webkit.org/show_bug.cgi?id=41441
946         createWindow method should only do window-creating without URL navigation
947
948         * Api/qwebpage.cpp:
949         (openNewWindow):
950         * WebCoreSupport/ChromeClientQt.cpp:
951         (WebCore::ChromeClientQt::createWindow):
952
953 2011-01-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
954
955         Reviewed by Kenneth Rohde Christiansen.
956
957         [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
958         https://bugs.webkit.org/show_bug.cgi?id=52081
959
960         Add an autotest for checking the result of Navigator.cookiesEnabled depending
961         on the status of the cookie jar.
962
963         * tests/qwebpage/tst_qwebpage.cpp:
964         (tst_QWebPage::navigatorCookieEnabled):
965
966 2011-01-07  Adam Barth  <abarth@webkit.org>
967
968         Rubber-stamped by Eric Seidel.
969
970         Move WebCore to Source
971         https://bugs.webkit.org/show_bug.cgi?id=52050
972
973         Update documentation to reference new location of WebCore.
974
975         * docs/qtwebkit.qdoc:
976
977 2011-01-07  Andreas Kling  <kling@webkit.org>
978
979         Reviewed by Adam Barth.
980
981         [Qt] Add selectedHtml function to QWebView
982         https://bugs.webkit.org/show_bug.cgi?id=35028
983
984         Add QWebView::selectedHtml() and QWebPage::selectedHtml()
985         which return the current selection range's HTML representation.
986
987         * Api/qwebpage.cpp:
988         (QWebPage::selectedHtml):
989         * Api/qwebpage.h:
990         * Api/qwebview.cpp:
991         (QWebView::selectedText):
992         (QWebView::selectedHtml):
993         * Api/qwebview.h:
994         * tests/qwebpage/tst_qwebpage.cpp:
995         (tst_QWebPage::cursorMovements):
996         (tst_QWebPage::textSelection):
997         (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
998         (tst_QWebPage::findText):
999
1000 2011-01-06  Robert Hogan  <robert@webkit.org>
1001
1002         Reviewed by Antonio Gomes.
1003
1004         [Qt] Introduce QDRTNode for passing WebCore::Node across JS bridge
1005
1006         This allows LayoutTestController to pass WebCore::Node back to
1007         layout tests.
1008
1009         Also amend nodesFromRect-links-and-text.html and
1010         nodesFromRect-inner-documents.html so that they do not produce
1011         platform-specific results.
1012
1013         Unskip:
1014         fast/dom/nodesFromRect-links-and-text.html
1015         fast/dom/nodesFromRect-inner-documents.html
1016
1017         https://bugs.webkit.org/show_bug.cgi?id=48957
1018
1019         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1020         (QDRTNode::QDRTNode):
1021         (QDRTNode::~QDRTNode):
1022         (DumpRenderTreeSupportQt::nodesFromRect):
1023         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1024
1025 2011-01-04  Girish Ramakrishnan  <girish@forwardbias.in>
1026
1027         Reviewed by Simon Hausmann.
1028         Acked by Aaron Kennedy <aaron.kennedy@nokia.com>
1029
1030         [Qt] QML WebView does not transfer focus to underlying QGraphicsWebView
1031
1032         QML WebView creates QGraphicsWebView as it's child. The WebView is not
1033         setup as a focus proxy of the QGraphicsWebView. Thus, even though the
1034         WebView gets focus, the QGraphicsWebView does not get focus.
1035         In QML, focus proxies or "focus scopes" are created using FocusScope.
1036         This change makes WebView a FocusScope and sets the focus on the
1037         QGraphicsWebView. 
1038
1039         https://bugs.webkit.org/show_bug.cgi?id=51094
1040
1041         * declarative/qdeclarativewebview.cpp:
1042         (QDeclarativeWebView::init):
1043
1044 2011-01-05  Yi Shen  <yi.4.shen@nokia.com>
1045
1046         Reviewed by Andreas Kling.
1047
1048         [Qt] Sync qwebkitplatformplugin.h in the plugin example
1049         https://bugs.webkit.org/show_bug.cgi?id=51882
1050
1051         Make examples/platformplugin/qwebkitplatformplugin.h exactly the same
1052         as the one in the Api folder.
1053
1054         * examples/platformplugin/qwebkitplatformplugin.h:
1055
1056 2011-01-04  Zhe Su  <suzhe@chromium.org>
1057
1058         Reviewed by Kenneth Russell.
1059
1060         Fix test LayoutTests/fast/events/ime-composition-events-001.html.
1061
1062         https://bugs.webkit.org/show_bug.cgi?id=51693
1063
1064         * Api/qwebpage.cpp:
1065         (QWebPagePrivate::inputMethodEvent): Calls editor->insertText() to
1066         insert the commit string when no composition text is available.
1067
1068 2011-01-03  Yi Shen  <yi.4.shen@nokia.com>
1069
1070         Reviewed by Adam Barth.
1071
1072         [Qt] Add SelectAll option to the context menu for the editor
1073         https://bugs.webkit.org/show_bug.cgi?id=50049
1074
1075         Enable SelectAll for the Qt context menu.
1076
1077         * Api/qwebpage.cpp:
1078         (webActionForContextMenuAction):
1079         (QWebPage::action):
1080         * WebCoreSupport/WebPlatformStrategies.cpp:
1081         (WebPlatformStrategies::contextMenuItemTagSelectAll):
1082         * WebCoreSupport/WebPlatformStrategies.h:
1083
1084 2011-01-03  Antonio Gomes  <agomes@rim.com>
1085
1086         Unreviewed crash fix.
1087
1088         Follow up of r74891: potential crash fix (bogus assertion).
1089
1090         * WebCoreSupport/EditorClientQt.cpp:
1091         (WebCore::editorCommandForKeyDownEvent):
1092
1093 2011-01-03  Noam Rosenthal  <noam.rosenthal@nokia.com>
1094
1095         Reviewed by Andreas Kling.
1096
1097         [Qt] document.getElementById(...) doesn't return the right object in combination with QGraphicsWidget
1098         https://bugs.webkit.org/show_bug.cgi?id=51464
1099
1100         Added a way to bind any QObject created as a plugin to JavaScript, 
1101         by adding a custom membe to WebCore::Widget. 
1102         Added a test to make sure plugins created as QGraphicsWidget are 
1103         accessible through JavaScript.
1104
1105         * WebCoreSupport/FrameLoaderClientQt.cpp:
1106         * tests/qwebpage/tst_qwebpage.cpp:
1107         (PluginPage::createPlugin):
1108         (tst_QWebPage::graphicsWidgetPlugin):
1109
1110 2011-01-02  Antonio Gomes  <agomes@rim.com>
1111
1112         Reviewed by Kenneth Rohde Christiansen.
1113
1114         [Qt] Refactor EditorClientQt::handleKeyboardEvent
1115         https://bugs.webkit.org/show_bug.cgi?id=51306
1116
1117         EditorClientQt::handleKeyboardEvent relies on QWebPagePrivate::editorActionForKeyEvent()
1118         to handle all editor commands that have a QAction associted with it.
1119         In practice, that covers most of editor commands (as one can see in editorCommandWebActions,
1120         in qwebpage.cpp). However, there are some key down events that are associated to no QAction
1121         or need special handling when features like spatial navigation or
1122         caret browsing are enabled. Currently, these cases are being handled with confusing
1123         and nested if/else switch's statements in EditorClientQt::handleKeyboardEvent(),
1124         and the code is hardly readable.
1125
1126         This patch introduces a mapping hash for those cases, simplifying much
1127         the code. Basically, nested switches statements mixed with if/else's were
1128         refactored, and early returns were added right after an event gets consumed
1129         by the Editor.
1130
1131         Since it is a refactor only patch, there is no funcionality change at
1132         all, and then no new tests are being added.
1133
1134         * WebCoreSupport/EditorClientQt.cpp:
1135         (WebCore::interpretKeyEvent):
1136         (WebCore::EditorClientQt::handleKeyboardEvent):
1137
1138 2011-01-01  Adam Barth  <abarth@webkit.org>
1139
1140         Reviewed by Eric Seidel.
1141
1142         Move JavaScriptCore to Source
1143         https://bugs.webkit.org/show_bug.cgi?id=51604
1144
1145         * WebKit_pch.h:
1146         * docs/qtwebkit.qdocconf:
1147           - Point to JavaScriptCore in its new location.
1148
1149 2010-12-29  Kent Hansen  <kent.hansen@nokia.com>
1150
1151         Reviewed by Simon Hausmann.
1152
1153         [Qt] Fix compilation with Qt in namespace
1154         https://bugs.webkit.org/show_bug.cgi?id=51701
1155
1156         * Api/qwebkitplatformplugin.h:
1157         * WebCoreSupport/InspectorServerQt.h:
1158         * tests/hybridPixmap/widget.h:
1159
1160 2010-12-23  Jan Erik Hanssen  <jhanssen@sencha.com>
1161
1162         Reviewed by Alexey Proskuryakov.
1163
1164         [Qt] Composition text is not removed from the editor when composition is cancelled
1165         https://bugs.webkit.org/show_bug.cgi?id=29391
1166
1167         Ensure that the composition text is cleared when an empty QInputMethodEvent
1168         is received and the editor is in composition mode.
1169
1170         * Api/qwebpage.cpp:
1171         (QWebPagePrivate::inputMethodEvent):
1172
1173 2010-12-23  Jan Erik Hanssen  <jhanssen@sencha.com>
1174
1175         Reviewed by Andreas Kling.
1176
1177         [Qt] copy and paste greek symbols to Word, TextEdit results in ?'s being shown
1178         https://bugs.webkit.org/show_bug.cgi?id=35635
1179
1180         Test that QClipboard contains the charset information and unicode data
1181         after copying unicode text.
1182
1183         * tests/qwebpage/tst_qwebpage.cpp:
1184         (tst_QWebPage::macCopyUnicodeToClipboard):
1185
1186 2010-12-22  Sam Weinig  <sam@webkit.org>
1187
1188         Reviewed by Darin Adler.
1189
1190         WebKit2 needs to mirror the frame tree in the UIProcess
1191         https://bugs.webkit.org/show_bug.cgi?id=51546
1192
1193         - Add client functions to notify that a frame has been added or
1194           removed from the page cache.
1195
1196         * WebCoreSupport/FrameLoaderClientQt.cpp:
1197         (WebCore::FrameLoaderClientQt::didSaveToPageCache):
1198         (WebCore::FrameLoaderClientQt::didRestoreFromPageCache):
1199         * WebCoreSupport/FrameLoaderClientQt.h:
1200
1201 2010-12-22  Ryosuke Niwa  <rniwa@webkit.org>
1202
1203         Reviewed by Eric Seidel.
1204
1205         Editor.h doesn't need to include SelectionController.h
1206         https://bugs.webkit.org/show_bug.cgi?id=51441
1207
1208         Renamed SelectionController::EDirection to SelectionDirection.
1209
1210         * WebCoreSupport/EditorClientQt.cpp:
1211         (WebCore::EditorClientQt::handleKeyboardEvent):
1212
1213 2010-12-23  Dawit Alemayehu  <adawit@kde.org>
1214
1215         Reviewed by Kenneth Rohde Christiansen.
1216
1217         [Qt] Add a 'hasSelection' function to QWebView and QWebPage.
1218         https://bugs.webkit.org/show_bug.cgi?id=48722
1219
1220         This is a convenience API that optimizes the case where checking for
1221         the presence of selected content and accessing the selected content
1222         are two separate actions in the client. See comment #12 in the above
1223         bug report link for details.
1224
1225         * Api/qwebpage.cpp:
1226         (QWebPage::hasSelection):
1227         * Api/qwebpage.h:
1228         * Api/qwebview.cpp:
1229         (QWebView::hasSelection):
1230         * Api/qwebview.h:
1231         * tests/qwebpage/tst_qwebpage.cpp:
1232         (tst_QWebPage::textSelection):
1233
1234 2010-12-20  Benjamin Poulain  <benjamin.poulain@nokia.com>
1235
1236         Reviewed by Andreas Kling.
1237
1238         [Qt] Improve the readability of FrameLoaderClientQt::createPlugin()
1239         https://bugs.webkit.org/show_bug.cgi?id=51330
1240
1241         Redefine the scopes to improve readability. Objects are now created in
1242         the scope they are used in.
1243
1244         * WebCoreSupport/FrameLoaderClientQt.cpp:
1245         (WebCore::FrameLoaderClientQt::createPlugin):
1246
1247 2010-12-17  Ariya Hidayat  <ariya@sencha.com>
1248
1249         Reviewed by Antonio Gomes.
1250
1251         [Qt] GraphicsContext should respect QWebView render hints
1252         https://bugs.webkit.org/show_bug.cgi?id=51208
1253
1254         Adjust the test since SmoothPixmapTransform is set by default.
1255
1256         * tests/qwebview/tst_qwebview.cpp:
1257         (tst_QWebView::renderHints):
1258
1259 2010-12-05  Antonio Gomes  <agomes@rim.com>
1260
1261         Reviewed by Ariya Hidayat.
1262
1263         [Qt] Fix caret browsing navigation mode
1264         https://bugs.webkit.org/show_bug.cgi?id=50536
1265
1266         Caret browsing can consume editing commands even when the start
1267         of current selection is not a editable content. r69582 missed this
1268         case because caret browsing feature testing is very poor today.
1269
1270         This commit reintroduces part of the removed code in r69582 but
1271         guarded by a isCaretBrowsingEnabled() check. No regression found.
1272
1273         * WebCoreSupport/EditorClientQt.cpp:
1274         (WebCore::EditorClientQt::handleKeyboardEvent):
1275
1276 2010-12-17  Yi Shen  <yi.4.shen@nokia.com>
1277
1278         Reviewed by Kenneth Rohde Christiansen.
1279
1280         [Qt] QWebPage sends out a RequestSoftwareInputPanel event 
1281         incorrectly in particular case
1282         https://bugs.webkit.org/show_bug.cgi?id=50419
1283
1284         Add HitTestResult check before firing RequestSoftwareInputPanel event.
1285
1286         * Api/qwebpage.cpp:
1287         (QWebPagePrivate::mouseReleaseEvent):
1288         (QWebPagePrivate::handleSoftwareInputPanel):
1289         * Api/qwebpage_p.h:
1290         * tests/qwebpage/tst_qwebpage.cpp:
1291         (clickOnPage):
1292         (tst_QWebPage::inputMethods):
1293
1294 2010-12-17  Eric Seidel  <eric@webkit.org>
1295
1296         Unreviewed, rolling out r74229.
1297         http://trac.webkit.org/changeset/74229
1298         https://bugs.webkit.org/show_bug.cgi?id=50536
1299
1300         Broken on Snow Leopard and possibly other platforms
1301
1302         * WebCoreSupport/EditorClientQt.cpp:
1303         (WebCore::EditorClientQt::handleKeyboardEvent):
1304
1305 2010-12-05  Antonio Gomes  <agomes@rim.com>
1306
1307         Reviewed by Ariya Hidayat.
1308
1309         [Qt] Fix caret browsing navigation mode
1310         https://bugs.webkit.org/show_bug.cgi?id=50536
1311
1312         Caret browsing can consume editing commands even when the start
1313         of current selection is not a editable content. r69582 missed this
1314         case because caret browsing feature testing is very poor today.
1315
1316         This commit reintroduces part of the removed code in r69582 but
1317         guarded by a isCaretBrowsingEnabled() check. No regression found.
1318
1319         * WebCoreSupport/EditorClientQt.cpp:
1320         (WebCore::EditorClientQt::handleKeyboardEvent):
1321
1322 2010-12-16  Ariya Hidayat  <ariya@sencha.com>
1323
1324         Reviewed by Andreas Kling.
1325
1326         [Qt] GraphicsContext should respect QWebView render hints
1327         https://bugs.webkit.org/show_bug.cgi?id=51208
1328
1329         Add some checks to ensure that GraphicsContext (via QWebFrame)
1330         does not clobber the render hints.
1331
1332         * Api/qwebview.cpp:
1333         (QWebViewPrivate::QWebViewPrivate):
1334         * tests/qwebframe/tst_qwebframe.cpp:
1335
1336 2010-12-15  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1337
1338         Reviewed by Antonio Gomes.
1339
1340         [Qt] Fix tst_QWebPage::geolocationRequestJS()
1341         https://bugs.webkit.org/show_bug.cgi?id=46814
1342
1343         Change the test case according to the changes introduced by
1344         r72603 and enable the test case.
1345
1346         * tests/qwebpage/tst_qwebpage.cpp:
1347         (tst_QWebPage::geolocationRequestJS):
1348
1349 2010-12-14  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
1350
1351         Reviewed by Laszlo Gombos.
1352
1353         [Qt] Flash plugins should be windowless on QGraphicsWebView on Symbian
1354         Remove #idef SYMBIAN introduced by r69396.
1355         https://bugs.webkit.org/show_bug.cgi?id=50487
1356
1357         * WebCoreSupport/FrameLoaderClientQt.cpp:
1358         (WebCore::FrameLoaderClientQt::createPlugin):
1359
1360 2010-10-28  MORITA Hajime  <morrita@google.com>
1361
1362         Reviewed by Ojan Vafai.
1363
1364         spellcheck does not check pasted text
1365         https://bugs.webkit.org/show_bug.cgi?id=40092
1366
1367         Added a stub implememntation.
1368
1369         * WebCoreSupport/EditorClientQt.h:
1370         (WebCore::EditorClientQt::requestCheckingOfString):
1371
1372 2010-12-11  Yi Shen  <yi.4.shen@nokia.com>
1373
1374         Reviewed by Kenneth Rohde Christiansen.
1375
1376         [Qt] Memory leaks for QWebPageClient
1377         https://bugs.webkit.org/show_bug.cgi?id=50267
1378
1379         Use OwnPtr to solve this memory leak issue.
1380
1381         * Api/qgraphicswebview.cpp:
1382         (QGraphicsWebViewPrivate::overlay):
1383         (QGraphicsWebViewPrivate::QWebViewPrivate::pageClient):
1384         (QGraphicsWebViewPrivate::syncLayers):
1385         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1386         (QGraphicsWebViewPrivate::_q_scaleChanged):
1387         (QGraphicsWebViewPrivate::detachCurrentPage):
1388         * Api/qwebpage_p.h:
1389         * Api/qwebview.cpp:
1390         (QWebViewPrivate::detachCurrentPage):
1391         * WebCoreSupport/ChromeClientQt.cpp:
1392         (WebCore::ChromeClientQt::platformPageClient):
1393         * WebCoreSupport/EditorClientQt.cpp:
1394         (WebCore::EditorClientQt::setInputMethodState):
1395         * WebCoreSupport/FrameLoaderClientQt.cpp:
1396         (WebCore::FrameLoaderClientQt::createPlugin):
1397
1398 2010-12-11  Jan Erik Hanssen  <jhanssen@sencha.com>
1399
1400         Reviewed by Andreas Kling.
1401
1402         [Qt] QWebFrame does not support QNetworkRequest::CacheLoadControl
1403         https://bugs.webkit.org/show_bug.cgi?id=35671
1404
1405         Make QWebFrame respect the QNetworkRequest::CacheLoadControl attribute
1406         set on the request, if any.
1407
1408         * Api/qwebframe.cpp:
1409         (cacheLoadControlToCachePolicy):
1410         (QWebFrame::load):
1411         * tests/qwebframe/tst_qwebframe.cpp:
1412
1413 2010-10-11  Diego Gonzalez  <diegohcg@webkit.org>
1414
1415         Reviewed by Kenneth Rohde Christiansen.
1416
1417         [Qt] Mock DeviceOrientation client for DRT
1418         https://bugs.webkit.org/show_bug.cgi?id=47490
1419
1420         * WebCoreSupport/DeviceOrientationClientMockQt.cpp: Added.
1421         (WebCore::DeviceOrientationClientMockQt::client):
1422         (WebCore::DeviceOrientationClientMockQt::DeviceOrientationClientMockQt):
1423         (WebCore::DeviceOrientationClientMockQt::~DeviceOrientationClientMockQt):
1424         (WebCore::DeviceOrientationClientMockQt::setController):
1425         (WebCore::DeviceOrientationClientMockQt::startUpdating):
1426         (WebCore::DeviceOrientationClientMockQt::stopUpdating):
1427         (WebCore::DeviceOrientationClientMockQt::lastOrientation):
1428         (WebCore::DeviceOrientationClientMockQt::deviceOrientationControllerDestroyed):
1429         (WebCore::DeviceOrientationClientMockQt::setOrientation):
1430         * WebCoreSupport/DeviceOrientationClientMockQt.h: Added.
1431         * WebCoreSupport/DeviceOrientationClientQt.cpp:
1432         * WebCoreSupport/DeviceOrientationProviderQt.cpp:
1433         (WebCore::DeviceOrientationProviderQt::DeviceOrientationProviderQt):
1434         (WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt):
1435         (WebCore::DeviceOrientationProviderQt::changeDeviceOrientation):
1436         * WebCoreSupport/DeviceOrientationProviderQt.h:
1437         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1438         (DumpRenderTreeSupportQt::activeMockDeviceOrientationClient):
1439         (DumpRenderTreeSupportQt::removeMockDeviceOrientation):
1440         (DumpRenderTreeSupportQt::setMockDeviceOrientation):
1441         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1442
1443 2010-12-10  Krithigassree Sambamurthy  <krithigassree.sambamurthy@nokia.com>
1444
1445         Reviewed by Joseph Pecoraro.
1446
1447         Bug 43455 - [Qt]: Implement Application Cache Quotas
1448         https://bugs.webkit.org/show_bug.cgi?id=43455
1449
1450         Added new signal to report ApplicationCache Database
1451         quota.
1452
1453         * Api/qwebpage.cpp:
1454         * Api/qwebpage.h:
1455
1456         Added new functions to accomodate new appcache layout
1457         test origin-quota.html.
1458
1459         * Api/qwebsecurityorigin.cpp:
1460         (QWebSecurityOrigin::setApplicationCacheQuota):
1461         * Api/qwebsecurityorigin.h:
1462         * WebCoreSupport/ChromeClientQt.cpp:
1463         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
1464         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1465         (DumpRenderTreeSupportQt::clearAllApplicationCaches):
1466         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1467
1468 2010-12-10  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1469
1470         Reviewed by Kenneth Rohde Christiansen.
1471
1472         [Qt] Support a QNetworkAccessManager affined to a different thread.
1473         https://bugs.webkit.org/show_bug.cgi?id=50080
1474
1475         This patch introduce thread safe proxy classes for QNetworkAccessManager
1476         and QNetworkReply.
1477         If run in the same thread, these objects will forward the calls with
1478         Qt::DirectConnection bindings, while in the other case they will use
1479         Qt::QueuedConnection to carry requests accross threads.
1480
1481         This patch basically:
1482         - Makes sure that all access goes through these objects
1483         - Reorders signal connections to make sure we are connected when the
1484           signal comes
1485         - Makes sure that no QObject in the WebCore thread is a child of the
1486           reply which might be in a different thread.
1487         - Forward the data directly in QByteArrays in signals instead of collecting
1488           the data when the signal is handled.
1489
1490         New test: tst_QWebPage::networkAccessManagerOnDifferentThread
1491
1492         * WebCoreSupport/FrameLoaderClientQt.cpp:
1493         (WebCore::FrameLoaderClientQt::download):
1494         * tests/qwebpage/tst_qwebpage.cpp:
1495         (QtNAMThread::QtNAMThread):
1496         (QtNAMThread::~QtNAMThread):
1497         (QtNAMThread::networkAccessManager):
1498         (QtNAMThread::run):
1499         (tst_QWebPage::networkAccessManagerOnDifferentThread):
1500
1501 2010-12-09  Sheriff Bot  <webkit.review.bot@gmail.com>
1502
1503         Unreviewed, rolling out r73635.
1504         http://trac.webkit.org/changeset/73635
1505         https://bugs.webkit.org/show_bug.cgi?id=50778
1506
1507         'Side-effects on 3 css tests needs closer review' (Requested
1508         by mwenge on #webkit).
1509
1510         * Api/qwebsettings.cpp:
1511         (graphics):
1512         * Api/qwebsettings.h:
1513
1514 2010-12-09  Robert Hogan  <robert@webkit.org>
1515
1516         Reviewed by Andreas Kling.
1517
1518         [Qt] Search input field doesn't have cancel button
1519
1520         Add a cancel button to the search field and make it customizable
1521         by the client. For now, use the close dialog button associated
1522         with the application's style as the default.
1523
1524         https://bugs.webkit.org/show_bug.cgi?id=42887
1525
1526         * Api/qwebsettings.cpp:
1527         (graphics):
1528         * Api/qwebsettings.h:
1529
1530 2010-12-09  Siddharth Mathur  <siddharth.mathur@nokia.com>
1531
1532         Reviewed by Laszlo Gombos.
1533
1534         Use BUILDING_WEBKIT like other ports
1535         https://bugs.webkit.org/show_bug.cgi?id=50713
1536
1537         * Api/qwebkitglobal.h: change BUILD_WEBKIT to BUILDING_WEBKIT
1538
1539 2010-12-08  Qi Zhang  <qi.2.zhang@nokia.com>
1540
1541         Reviewed by Kenneth Rohde Christiansen.
1542
1543         [Qt] Support OrientationChange event
1544         https://bugs.webkit.org/show_bug.cgi?id=50685
1545
1546         Get OrientationChange event from qtmobility then send to webkit.
1547
1548         * Api/qwebframe.cpp:
1549         (QWebFrame::orientationChanged):
1550         (QWebFrame::QWebFrame):
1551         * Api/qwebframe.h:
1552         * Api/qwebframe_p.h:
1553
1554 2010-12-07  Brian Weinstein  <bweinstein@apple.com>
1555
1556         Reviewed by John Sullivan.
1557
1558         Layering Violation in ContextMenu - member variable of type HitTestResult
1559         https://bugs.webkit.org/show_bug.cgi?id=50586
1560         
1561         Update users of ContextMenu and ContextMenuController to match where the new functions 
1562         are located.
1563
1564         * Api/qwebpage.cpp:
1565         (QWebPagePrivate::createContextMenu):
1566         (QWebPage::updatePositionDependentActions):
1567
1568 2010-12-07  Darin Adler  <darin@apple.com>
1569
1570         Try to fix build.
1571
1572         * Api/qwebpage.cpp:
1573         (frameLoadRequest): Added missing parentheses.
1574
1575 2010-12-06  Darin Adler  <darin@apple.com>
1576
1577         Reviewed by Sam Weinig.
1578
1579         Pass security origin to make local file decision correctly
1580         https://bugs.webkit.org/show_bug.cgi?id=48603
1581
1582         * Api/qwebpage.cpp:
1583         (frameLoadRequest): Pass security origin.
1584
1585 2010-12-07  Martin Robinson  <mrobinson@igalia.com>
1586
1587         Unreviewed, rolling out r73392.
1588         http://trac.webkit.org/changeset/73392
1589         https://bugs.webkit.org/show_bug.cgi?id=50489
1590
1591         This commit caused crashes on the GTK+ bots
1592
1593         * Api/qwebframe.cpp:
1594         (QWebFrame::setUrl):
1595         * WebCoreSupport/FrameLoaderClientQt.cpp:
1596         (WebCore::FrameLoaderClientQt::finishedLoading):
1597
1598 2010-12-06  Nate Chapin  <japhet@chromium.org>
1599
1600         Reviewed by Adam Barth.
1601
1602         Update calls to DocumentWriter.
1603         https://bugs.webkit.org/show_bug.cgi?id=50489
1604
1605         * Api/qwebframe.cpp:
1606         (QWebFrame::setUrl):
1607         * WebCoreSupport/FrameLoaderClientQt.cpp:
1608         (WebCore::FrameLoaderClientQt::finishedLoading):
1609
1610 2010-12-01  Jia Pu  <jpu@apple.com>
1611
1612         Reviewed by Darin Adler.
1613
1614         Support multiple correction candidates panel for misspelled word on Mac OS X.
1615         https://bugs.webkit.org/show_bug.cgi?id=50137
1616         <rdar://problem/8568059>
1617
1618         Adopted new function signature defined in base class.
1619
1620         * WebCoreSupport/EditorClientQt.cpp:
1621         (WebCore::EditorClientQt::getGuessesForWord):
1622         * WebCoreSupport/EditorClientQt.h:
1623
1624 2010-11-30  Benjamin Poulain  <benjamin.poulain@nokia.com>
1625
1626         Reviewed by Kenneth Rohde Christiansen.
1627
1628         [Qt] Implement layoutTestController.findString
1629         https://bugs.webkit.org/show_bug.cgi?id=50236
1630
1631         Add support for the new advanced findString().
1632
1633         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1634         (DumpRenderTreeSupportQt::findString):
1635         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1636
1637 2010-11-30  Ojan Vafai  <ojan@chromium.org>
1638
1639         Revert r72876. It caused a ~30% perf regression in chromium's bloat-http test
1640         https://bugs.webkit.org/show_bug.cgi?id=50288
1641
1642         2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
1643         Reviewed by Darin Adler.
1644         Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
1645         https://bugs.webkit.org/show_bug.cgi?id=50182
1646         A display-isolated URL can only be displayed (e.g., put in an iframe,
1647         hyperlinked to) by documents from that scheme. In a sense, this is a
1648         generalization of some of the protections we give file URLs, but
1649         instead of lumping them all together into one "local" bucket, this
1650         patch creates a separate bucket for each scheme.
1651         For a while, I tried using a separate bucket for each origin. That
1652         would have played nicely with what Blob URLs are trying to do, but some
1653         "chrome" URL pages rely on being able to display other chrome URL
1654         pages, even in different origins. For example, the New Tab Page shows
1655         thumbnails from the "thumbnail" host.
1656         This patch also removes a bunch of unused code. I've also propagated
1657         the "deprecated" status of deprecatedCanDisplay to
1658         deprecatedShouldTreatURLAsLocal because that method has no other
1659         callers and is really asking for uppercase/lowercase bugs. I dream of
1660         someday removing these functions.
1661         2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
1662         Reviewed by Darin Adler.
1663         Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
1664          https://bugs.webkit.org/show_bug.cgi?id=50182
1665         This patch adds a Chromium API for registering schemes as
1666         display-isolated. In a subsequent patch, I'll change the "chrome"
1667         scheme in Chrome to be display isolated instead of local. That will
1668         prevent file URLs from linking to chrome URLs.
1669
1670         * Api/qwebsecurityorigin.cpp:
1671         (QWebSecurityOrigin::localSchemes):
1672
1673 2010-11-29  Vangelis Kokkevis  <vangelis@chromium.org>
1674
1675         Reviewed by Simon Fraser.
1676
1677         Provide more fine grained control to ports over when to turn on accelerated
1678         compositing.
1679         https://bugs.webkit.org/show_bug.cgi?id=49998
1680
1681         As part of this change, the old hasAcceleratedCompositing method on the ChromeClient
1682         has now been replaced by allowedCompositingTriggers which returns a bitfield of
1683         all the features which can trigger the compositor.
1684
1685
1686         * WebCoreSupport/ChromeClientQt.cpp:
1687         (WebCore::ChromeClientQt::allowedCompositingTriggers):
1688         * WebCoreSupport/ChromeClientQt.h:
1689
1690 2010-11-30  Thiago Macieira  <thiago.macieira@nokia.com>
1691
1692         Reviewed by Andreas Kling.
1693
1694         [Qt] QWebFrame::load(QNetworkRequest) should respect the CustomVerbAttribute
1695
1696         For CustomOperation requests, pass the CustomVerbAttribute on to
1697         the WebCore::ResourceRequest.
1698
1699         * Api/qwebframe.cpp:
1700         (QWebFrame::load):
1701
1702 2010-11-25  Norbert Leser  <norbert.leser@nokia.com>
1703
1704         Reviewed by Laszlo Gombos.
1705
1706         Updated Symbian DEF file for ARM target due to API changes
1707         via committs r72600-72603 (see bug# 46810)
1708
1709         * symbian/eabi/QtWebKitu.def:
1710
1711 2010-11-25  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1712
1713         Reviewed by Andreas Kling and Simon Hausmann.
1714
1715         [Qt] Calculate the -webkit-pixel-radio using the device DPI.
1716         http://webkit.org/b/50059
1717
1718         Also, update the documentation on what a DIP is and how to override
1719         the device DPI in the case the system reports the wrong one (which
1720         unfortunately is common on X11).
1721
1722         * Api/qwebpage.cpp:
1723         (QWebPagePrivate::QWebPagePrivate):
1724         (QWebPage::viewportAttributesForSize):
1725         * Api/qwebpage_p.h:
1726         * WebCoreSupport/ChromeClientQt.cpp:
1727         (WebCore::ChromeClientQt::scaleFactor):
1728
1729 2010-11-24  Kristian Amlie  <kristian.amlie@nokia.com>
1730
1731         Reviewed by Andreas Kling.
1732
1733         Fixed handling of QInputMethodEvents with nonzero replacementLength.
1734
1735         These types of events replace text that is already in the widget, but
1736         WebKit did not check for replacementLength at all.
1737
1738         https://bugs.webkit.org/show_bug.cgi?id=49787
1739
1740         * Api/qwebpage.cpp:
1741         (QWebPagePrivate::inputMethodEvent):
1742         * tests/qwebpage/tst_qwebpage.cpp:
1743         (tst_QWebPage::inputMethods):
1744
1745 2010-11-24  Andras Becsi  <abecsi@inf.u-szeged.hu>
1746
1747         Reviewed by Kenneth Rohde Christiansen.
1748
1749         Make WebKit2 compile with !ENABLE(INSPECTOR).
1750         https://bugs.webkit.org/show_bug.cgi?id=49973
1751
1752         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1753         (DumpRenderTreeSupportQt::setJavaScriptProfilingEnabled):
1754
1755 2010-11-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1756
1757         Unreviewed, rolling out r72650.
1758         http://trac.webkit.org/changeset/72650
1759         https://bugs.webkit.org/show_bug.cgi?id=50010
1760
1761         breaks focus in scenes focus item other than graphicswebiview
1762         (Requested by tronical_ on #webkit).
1763
1764         * Api/qgraphicswebview.cpp:
1765         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1766         (QGraphicsWebView::QGraphicsWebView):
1767         (QGraphicsWebView::itemChange):
1768         * Api/qgraphicswebview.h:
1769         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1770
1771 2010-11-24  Jan Erik Hanssen  <jhanssen@sencha.com>
1772
1773         Reviewed by Kenneth Rohde Christiansen.
1774
1775         [Qt] Html autofocus not working with QGraphicsWebView
1776         https://bugs.webkit.org/show_bug.cgi?id=43169
1777
1778         QGraphicsScene does not propagate Qt::ActivateWindowFocusReason focus
1779         events when there are no active items.
1780
1781         * Api/qgraphicswebview.cpp:
1782         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1783         (QGraphicsWebView::QGraphicsWebView):
1784         (QGraphicsWebView::eventFilter):
1785         (QGraphicsWebView::itemChange):
1786         * Api/qgraphicswebview.h:
1787         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1788         (FocusPage::FocusPage):
1789         (FocusPage::event):
1790         (FocusPage::gotFocus):
1791         (tst_QGraphicsWebView::receivesFocusInOnShow):
1792
1793 2010-11-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1794
1795         Reviewed by Andreas Kling.
1796
1797         Adapt to setShouldDelegateScrolling not being a real setting anymore.
1798         We now similarily to setUseFixedLayout and setPaintEntireContents
1799         set it on the FrameView wen transitioning to a new page.
1800
1801         * Api/qgraphicswebview.cpp:
1802         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1803         * WebCoreSupport/FrameLoaderClientQt.cpp:
1804         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1805
1806 2010-11-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1807
1808         Reviewed by Kenneth Rohde Christiansen.
1809
1810         [Qt] Fix compilation with !ENABLE(INSPECTOR)
1811         https://bugs.webkit.org/show_bug.cgi?id=49942
1812
1813         Add ENABLE(INSPECTOR) to the Qt specific files following r71981.
1814
1815         * WebCoreSupport/InspectorClientQt.cpp:
1816         (WebCore::InspectorClientQt::inspectorDestroyed):
1817         (WebCore::InspectorClientQt::openInspectorFrontend):
1818         (WebCore::InspectorClientQt::sendMessageToFrontend):
1819         * WebCoreSupport/InspectorServerQt.cpp:
1820         (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
1821
1822 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
1823
1824         Reviewed by Andreas Kling.
1825
1826         [Qt] Restore binary compatibility with the QtWebKit 2.1 branch
1827
1828         Re-order the enums by adding new enum entries to the end.
1829
1830         * Api/qwebsettings.h:
1831
1832 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
1833
1834         Reviewed by Tor Arne Vestbø.
1835
1836         [Qt] Review the setUserPermission & friends API
1837         https://bugs.webkit.org/show_bug.cgi?id=46810
1838
1839         Renamed requestPermissionFromUser to featurePermissionRequested
1840         and cancelRequestsForPermission to featurePermissionRequestCanceled.
1841
1842         * Api/qwebpage.h:
1843         * WebCoreSupport/GeolocationPermissionClientQt.cpp:
1844         (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
1845         (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
1846         * WebCoreSupport/NotificationPresenterClientQt.cpp:
1847         (WebCore::NotificationPresenterClientQt::requestPermission):
1848         (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
1849
1850 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
1851
1852         Reviewed by Tor Arne Vestbø.
1853
1854         [Qt] Review the setUserPermission & friends API
1855         https://bugs.webkit.org/show_bug.cgi?id=46810
1856
1857         Rename setUserPermission to setFeaturePermission
1858
1859         * Api/qwebpage.cpp:
1860         (QWebPage::setFeaturePermission):
1861         * Api/qwebpage.h:
1862         * tests/qwebpage/tst_qwebpage.cpp:
1863         (JSTestPage::requestPermission):
1864
1865 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
1866
1867         Reviewed by Tor Arne Vestbø.
1868
1869         [Qt] Review the setUserPermission & friends API
1870         https://bugs.webkit.org/show_bug.cgi?id=46810
1871
1872         Rename PermissionDomain to Feature, NotificationsPermissionDomain to Notifications
1873         and GeolocationPermissionDomain to Geolocation.
1874
1875         * Api/qwebpage.cpp:
1876         (QWebPage::setUserPermission):
1877         * Api/qwebpage.h:
1878         * WebCoreSupport/GeolocationPermissionClientQt.cpp:
1879         (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
1880         (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
1881         * WebCoreSupport/NotificationPresenterClientQt.cpp:
1882         (WebCore::NotificationPresenterClientQt::requestPermission):
1883         (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
1884         * tests/qwebpage/tst_qwebpage.cpp:
1885         (JSTestPage::requestPermission):
1886         (tst_QWebPage::geolocationRequestJS):
1887
1888 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
1889
1890         Reviewed by Tor Arne Vestbø.
1891
1892         [Qt] Review the setUserPermission & friends API
1893         https://bugs.webkit.org/show_bug.cgi?id=46810
1894
1895         Add a ByUser suffix to PermissionGranted/Denied. In the future
1896         we can add PermissionGrantedByDefault.
1897
1898         * Api/qwebpage.cpp:
1899         (QWebPage::setUserPermission):
1900         * Api/qwebpage.h:
1901         * WebCoreSupport/GeolocationPermissionClientQt.cpp:
1902         (WebCore::GeolocationPermissionClientQt::setPermission):
1903         * tests/qwebpage/tst_qwebpage.cpp:
1904         (JSTestPage::requestPermission):
1905
1906 2010-11-22  Jan Erik Hanssen  <jhanssen@sencha.com>
1907
1908         Reviewed by Kenneth Rohde Christiansen.
1909
1910         [Qt] QWebElement::appendInside() doesn't work on head elements
1911         https://bugs.webkit.org/show_bug.cgi?id=49166
1912
1913         Make QWebElement::appendInside() call 
1914         Element::deprecatedCreateContextualFragment(), bypassing the check for
1915         the HEAD tag in the HTMLElement implementation of this function.
1916
1917         * Api/qwebelement.cpp:
1918         (QWebElement::appendInside):
1919         * tests/qwebelement/tst_qwebelement.cpp:
1920         (tst_QWebElement::addElementToHead):
1921
1922 2010-11-20  Andreas Kling  <kling@webkit.org>
1923
1924         Reviewed by Antonio Gomes.
1925
1926         [Qt] Dragging a selection should use a rendering of the selection as "cursor" for the drag
1927         https://bugs.webkit.org/show_bug.cgi?id=49870
1928
1929         * WebCoreSupport/DragClientQt.cpp:
1930         (WebCore::DragClientQt::startDrag): Pass the DragImage to QDrag::setPixmap()
1931
1932 2010-11-20  Sam Magnuson  <smagnuso@gmail.com>
1933
1934         Reviewed by Andreas Kling.
1935
1936         [Qt] crash when attempting to add a JS object
1937         https://bugs.webkit.org/show_bug.cgi?id=49287
1938
1939         * Api/qwebframe.cpp:
1940         (QWebFrame::addToJavaScriptWindowObject):
1941
1942         Test: LayoutTests/fast/frames/sandboxed-iframe-plugins.html
1943
1944 2010-11-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1945
1946         Unreviewed, rolling out r72471.
1947         http://trac.webkit.org/changeset/72471
1948         https://bugs.webkit.org/show_bug.cgi?id=49865
1949
1950         broke two IME tests on Qt (Requested by kling on #webkit).
1951
1952         * Api/qwebpage.cpp:
1953         (QWebPagePrivate::inputMethodEvent):
1954         * tests/qwebpage/tst_qwebpage.cpp:
1955         (tst_QWebPage::inputMethods):
1956
1957 2010-11-19  Kristian Amlie  <kristian.amlie@nokia.com>
1958
1959         Reviewed by Andreas Kling.
1960
1961         Fixed handling of QInputMethodEvents with nonzero replacementLength.
1962
1963         These types of events replace text that is already in the widget, but
1964         WebKit did not check for replacementLength at all.
1965
1966         Also made sure that the preeditString is always respected, even if
1967         there is committed text. This is how QLineEdit does it.
1968
1969         https://bugs.webkit.org/show_bug.cgi?id=49787
1970
1971         * Api/qwebpage.cpp:
1972         (QWebPagePrivate::inputMethodEvent):
1973         * tests/qwebpage/tst_qwebpage.cpp:
1974         (tst_QWebPage::inputMethods):
1975
1976 2010-11-19  Benjamin Poulain  <benjamin.poulain@nokia.com>
1977
1978         Reviewed by Kenneth Rohde Christiansen.
1979
1980         [Qt] Transition and animation do not work with QWebView anymore
1981         https://bugs.webkit.org/show_bug.cgi?id=49797
1982
1983         Accelerated compositing should not be enabled on QWebView without
1984         texture mapper.
1985
1986         * WebCoreSupport/PageClientQt.h:
1987         (WebCore::PageClientQWidget::allowsAcceleratedCompositing):
1988
1989 2010-11-19  Yi Shen  <yi.4.shen@nokia.com>
1990
1991         Reviewed by Laszlo Gombos.
1992
1993         [Qt] Memory leak in QWebInspector
1994         https://bugs.webkit.org/show_bug.cgi?id=49765
1995
1996         Delete QWebInspectorPrivate in ~QWebInspector()
1997
1998         * Api/qwebinspector.cpp:
1999         (QWebInspector::~QWebInspector):
2000
2001 2010-11-19  Sam Magnuson  <smagnuso@gmail.com>
2002
2003         Reviewed by Andreas Kling.
2004
2005         [Qt] Compile with QT_NO_UNDOCOMMAND
2006         https://bugs.webkit.org/show_bug.cgi?id=49752
2007
2008         * WebCoreSupport/EditCommandQt.cpp:
2009         (EditCommandQt::EditCommandQt):
2010         * WebCoreSupport/EditCommandQt.h:
2011
2012 2010-11-19  Yi Shen  <yi.4.shen@nokia.com>
2013
2014         Reviewed by Andreas Kling.
2015
2016         https://bugs.webkit.org/show_bug.cgi?id=49200
2017         [Qt] bugs in Composition mode for QWebPage::inputMethodEvent & inputMethodQuery()
2018
2019         Make QWebPage work as following when editor is in composition mode:
2020         1. anchor position and cursor position are the same and always >= 0
2021         2. current selection is always null
2022
2023         * Api/qwebpage.cpp:
2024         (QWebPagePrivate::inputMethodEvent):
2025         (QWebPage::inputMethodQuery):
2026         * tests/qwebpage/tst_qwebpage.cpp:
2027         (tst_QWebPage::inputMethods):
2028
2029 2010-11-18  Gavin Barraclough  <barraclough@apple.com>
2030
2031         Build fix - update error messages folllowing r72360.
2032
2033         * tests/qwebframe/tst_qwebframe.cpp:
2034
2035 2010-11-12  Luiz Agostini  <luiz.agostini@openbossa.org>
2036
2037         Reviewed by Andreas Kling.
2038
2039         [Qt] Static platform plugin support
2040         https://bugs.webkit.org/show_bug.cgi?id=49470
2041
2042         Adding support for statically linked platform plugins.
2043
2044         * WebCoreSupport/QtPlatformPlugin.cpp:
2045         (WebCore::QtPlatformPlugin::loadStaticallyLinkedPlugin):
2046         (WebCore::QtPlatformPlugin::plugin):
2047         * WebCoreSupport/QtPlatformPlugin.h:
2048
2049 2010-11-17  Andreas Kling  <kling@webkit.org>
2050
2051         Reviewed by Kenneth Rohde Christiansen.
2052
2053         Reuse the size of the actualVisibleContentRect when loading a new page
2054         or navigating session history.
2055
2056         * WebCoreSupport/FrameLoaderClientQt.cpp:
2057         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2058
2059 2010-11-17  Dimitri Glazkov  <dglazkov@chromium.org>
2060
2061         Reviewed by Darin Adler.
2062
2063         Converge means of querying a parent node into one way, which is Node::parentNode.
2064         https://bugs.webkit.org/show_bug.cgi?id=49686
2065
2066         * Api/qwebelement.cpp:
2067         (QWebElement::prependOutside): Changed to use parentNode.
2068         (QWebElement::appendOutside): Ditto.
2069         (QWebElement::encloseContentsWith): Ditto.
2070         (QWebElement::encloseWith): Ditto.
2071
2072 2010-11-16  Simon Hausmann  <simon.hausmann@nokia.com>
2073
2074         Reviewed by Andreas Kling.
2075
2076         [Qt] Remove synchronous QWebPage::checkPermissions signal
2077         https://bugs.webkit.org/show_bug.cgi?id=46810
2078
2079         As decided in the API review, we remove this signal and replace its only use currently
2080         with cached credentials.
2081
2082         * Api/qwebpage.cpp:
2083         (QWebPage::setUserPermission): Pass the WebCore frame instead of the QWebFrame.
2084         * Api/qwebpage.h:
2085         * WebCoreSupport/NotificationPresenterClientQt.cpp:
2086         (WebCore::NotificationPresenterClientQt::checkPermission): Replaced explicit
2087         signal emission with hash lookup of previously granted permission (or not).
2088         (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission): Remove
2089         any previously cached/granted permission for the given script execution context.
2090         (WebCore::NotificationPresenterClientQt::allowNotificationForFrame): Do not
2091         only serve pending permission requests but before calling the JS callbacks, remember
2092         the permission for subsequent synchronous checkPermission() calls.
2093         * WebCoreSupport/NotificationPresenterClientQt.h: Add cache for permissions.
2094
2095 2010-11-15  Gavin Barraclough  <barraclough@apple.com>
2096
2097         Reviewed by NOBODY build fix.
2098
2099         Fix test broken by earlier patch.
2100
2101         * tests/qwebframe/tst_qwebframe.cpp:
2102
2103 2010-11-15  Yi Shen  <yi.4.shen@nokia.com>
2104
2105         Reviewed by Andreas Kling.
2106
2107         [Qt] ZoomTextOnly doesn't work
2108         https://bugs.webkit.org/show_bug.cgi?id=49568
2109
2110         Check QWebSettings::ZoomTextOnly attribute before applying zoom
2111
2112         * Api/qwebframe.cpp:
2113         (QWebFrame::textSizeMultiplier):
2114         (QWebFrame::setZoomFactor):
2115         (QWebFrame::zoomFactor):
2116         * Api/qwebframe_p.h:
2117         (QWebFramePrivate::QWebFramePrivate):
2118
2119 2010-11-14  Andreas Kling  <kling@webkit.org>
2120
2121         Reviewed by Antonio Gomes.
2122
2123         REGRESSION(r71895): API test javaScriptWindowObjectCleared fails
2124         https://bugs.webkit.org/show_bug.cgi?id=49466
2125
2126         As of r71895 empty inline scripts are no longer executed and so
2127         the javaScriptWindowObjectCleared() signal is no longer triggered
2128         by <script></script>.
2129
2130         * tests/qwebframe/tst_qwebframe.cpp:
2131
2132 2010-11-12  Jacob Dinu  <dinu.jacob@nokia.com>
2133
2134         Reviewed by Andreas Kling.
2135
2136         [Qt] Update .def file for Symbian
2137         https://bugs.webkit.org/show_bug.cgi?id=49456
2138
2139         Added missing symbols from revisions r69825, r70470, r71806
2140
2141         * symbian/eabi/QtWebKitu.def:
2142
2143 2010-11-12  Benjamin Poulain  <benjamin.poulain@nokia.com>
2144
2145         Reviewed by Andreas Kling.
2146
2147         [Qt] Need to implement WebKit::pluginWillHandleLoadError for WebKit2
2148         https://bugs.webkit.org/show_bug.cgi?id=48764
2149
2150         Add the missing error.
2151
2152         * WebCoreSupport/FrameLoaderClientQt.cpp:
2153         (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
2154
2155 2010-11-11  Yi Shen  <yi.4.shen@nokia.com>
2156
2157         Reviewed by Andreas Kling.
2158
2159         [Qt] QWebScriptWorld::world() may crash
2160         https://bugs.webkit.org/show_bug.cgi?id=49342
2161
2162         * Api/qwebscriptworld.cpp:
2163         (QWebScriptWorld::world):
2164
2165 2010-11-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2166
2167         Reviewed by Andreas Kling.
2168
2169         [Qt] Add an API for overriding the actual visible content rect in WebCore
2170         https://bugs.webkit.org/show_bug.cgi?id=49373
2171
2172         * Api/qwebpage.cpp:
2173         (QWebPage::setActualVisibleContentRect):
2174         * Api/qwebpage.h:
2175
2176 2010-11-11  Andreas Kling  <kling@webkit.org>
2177
2178         Reviewed by Kenneth Rohde Christiansen.
2179
2180         FrameView: Don't clip to visibleContentRect in paintEntireContents mode
2181         https://bugs.webkit.org/show_bug.cgi?id=49375
2182
2183         Use paintEntireContents in combination with tiling, allowing to
2184         actually set visibleContentRect to something different from
2185         the actual contents size.
2186
2187         * Api/qgraphicswebview.cpp:
2188         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
2189         * WebCoreSupport/FrameLoaderClientQt.cpp:
2190         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2191
2192 2010-11-10  Sheriff Bot  <webkit.review.bot@gmail.com>
2193
2194         Unreviewed, rolling out r71733.
2195         http://trac.webkit.org/changeset/71733
2196         https://bugs.webkit.org/show_bug.cgi?id=49319
2197
2198         made qt bot crashy and sad (Requested by kling on #webkit).
2199
2200         * Api/qgraphicswebview.cpp:
2201         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
2202         * WebCoreSupport/FrameLoaderClientQt.cpp:
2203         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2204
2205 2010-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2206
2207         Reviewed by Andreas Kling.
2208
2209         Use paintEntireContents in combination with tiling, allowing to
2210         actually set visibleContentRect to something different from
2211         the actual contents size.
2212
2213         * Api/qgraphicswebview.cpp:
2214         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
2215         * WebCoreSupport/FrameLoaderClientQt.cpp:
2216         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2217
2218 2010-11-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
2219
2220         Reviewed by Andreas Kling.
2221
2222         [Qt] build error in WebKit/qt/Api/qwebpage.cpp in Qt 4.7.0
2223         https://bugs.webkit.org/show_bug.cgi?id=47427
2224
2225         Add a missing guard in order to be able to compile when
2226         ENABLE(TOUCH_EVENTS) is not defined.
2227
2228         * Api/qwebpage.cpp:
2229         (QWebPagePrivate::touchEvent):
2230
2231 2010-11-08  Alexey Proskuryakov  <ap@apple.com>
2232
2233         Reviewed by Darin Adler.
2234
2235         https://bugs.webkit.org/show_bug.cgi?id=48685
2236         Notify UI process about focused frame
2237
2238         Added an empty implementation of the new ChromeClient method.
2239
2240         * WebCoreSupport/ChromeClientQt.cpp:
2241         (WebCore::ChromeClientQt::focusedNodeChanged): Removed unneeded namespace prefix.
2242         (WebCore::ChromeClientQt::focusedFrameChanged):
2243         * WebCoreSupport/ChromeClientQt.h:
2244
2245 2010-11-08  Noam Rosenthal  <noam.rosenthal@nokia.com>
2246
2247         Reviewed by Kenneth Rohde Christiansen.
2248
2249         [Texmap] [Qt] Texture mapper initial implementation
2250         https://bugs.webkit.org/show_bug.cgi?id=47070
2251
2252         Reorganized the textureMapper to be a member of QWebFramePrivate, to help with making
2253         TextureMapper thread-safe.
2254
2255         * Api/qwebframe.cpp:
2256         (QWebFramePrivate::renderCompositedLayers):
2257         * Api/qwebframe_p.h:
2258         * WebCoreSupport/PageClientQt.cpp:
2259         (WebCore::PlatformLayerProxyQt::setTextureMapper):
2260         (WebCore::PlatformLayerProxyQt::textureMapper):
2261         (WebCore::PlatformLayerProxyQWidget::PlatformLayerProxyQWidget):
2262         (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsObject):
2263
2264 2010-11-07  Adam Barth  <abarth@webkit.org>
2265
2266         Reviewed by Eric Seidel.
2267
2268         Rename Cache to MemoryCache
2269         https://bugs.webkit.org/show_bug.cgi?id=49159
2270
2271         * Api/qwebpage.cpp:
2272         * Api/qwebsettings.cpp:
2273
2274 2010-11-07  Chang Shu  <chang.shu@nokia.com>
2275
2276         Reviewed by Antonio Gomes.
2277
2278         Add a helper function to avoid duplicated code.
2279         https://bugs.webkit.org/show_bug.cgi?id=49085
2280
2281         * WebCoreSupport/EditorClientQt.cpp:
2282         (WebCore::EditorClientQt::handleKeyboardEvent):
2283
2284 2010-11-05  Chris Marrin  <cmarrin@apple.com>
2285
2286         Reviewed by Simon Fraser.
2287
2288         Move resumeAnimations/suspendAnimations from Frame to AnimationController.
2289         https://bugs.webkit.org/show_bug.cgi?id=49073
2290
2291         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2292         (DumpRenderTreeSupportQt::suspendAnimations):
2293         (DumpRenderTreeSupportQt::resumeAnimations):
2294
2295 2010-11-03  Antonio Gomes  <tonikitoo@webkit.org>, Andre Pedralho  <andre.pedralho@gmail.com>
2296
2297         Reviewed by Kenneth Rohde Christiansen and Antti Koivisto.
2298
2299         [Qt] Making effective use of nodesFromRect.
2300         https://bugs.webkit.org/show_bug.cgi?id=44089
2301
2302         Patch adds a helper class (named TouchAdjuster) to improve tap actions
2303         on mobile touch devices. TouchAdjuster makes use of the newly added rect
2304         based hit test extension through the Document::nodesFromRect method.
2305         Given a rectangle as input, nodesFromRect returns a z-index ordered list
2306         of nodes whose boundaries intersect the rectangle.
2307
2308         Basically the TouchAdjuster class intercepts the QGraphicsSceneMouseEvent
2309         passed to both QWebPagePrivate::mouse{Press,Release}Event methods before
2310         they are passed down to WebCore. The goal is to infer the target click position.
2311         For that, a rectangle is built up using the event position as a center point and
2312         expanding it based on the values and directions set in the Platform Plugin
2313         QWebTouchModifier::hitTestPadding.
2314
2315         TouchAdjuster iterates over the list of nodes returned by nodesFromRect and
2316         picks the clickable one that has the largest intersection area with the hit
2317         test rectangle. The target position is then the center point of this intersection
2318         area.
2319
2320         In case of no clickable node intersects the hit test area, the click position
2321         is not altered.
2322
2323         TouchAdjuster is *only* working for QGraphicsWebView based views.
2324
2325         * Api/qwebpage.cpp:
2326         (QWebPagePrivate::mousePressEvent):
2327         (QWebPagePrivate::mouseReleaseEvent):
2328         (QWebPagePrivate::adjustPointForClicking):
2329         (QWebPagePrivate::TouchAdjuster::TouchAdjuster):
2330         (QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch):
2331         (isClickableElement):
2332         (hasMouseListener):
2333         (isValidFrameOwner):
2334         (nodeToElement):
2335         * Api/qwebpage_p.h:
2336
2337 2010-10-20  Chang Shu  <chang.shu@nokia.com>, Antonio Gomes <tonikitoo@webkit.org>
2338
2339         Reviewed by Simon Fraser.
2340
2341         [Qt] Makes <input type=text> and <textarea> functional with
2342         Spatial Navigation enabled. Before this patch, the focus cannot
2343         move away from input box once it is in. This patch allows focus
2344         move to neighbor nodes when the caret reaches the edge of the texts.
2345         This patch does not support yet cases where the focused <input>
2346         has a JS handler for the arrow keys.
2347         https://bugs.webkit.org/show_bug.cgi?id=37153
2348
2349         * WebCoreSupport/EditorClientQt.cpp:
2350         (WebCore::EditorClientQt::handleKeyboardEvent):
2351
2352 2010-11-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2353
2354         Reviewed by David Hyatt.
2355
2356         Delegate scrolling via a separate method
2357         https://bugs.webkit.org/show_bug.cgi?id=48988
2358
2359         Implement delegatedScrollRequested and make it emit the
2360         scrollRequested signal for Qt.
2361
2362         * WebCoreSupport/ChromeClientQt.cpp:
2363         (WebCore::ChromeClientQt::delegatedScrollRequested):
2364         * WebCoreSupport/ChromeClientQt.h:
2365
2366 2010-11-04  Robert Hogan  <robert@webkit.org>
2367
2368         Reviewed by Andreas Kling.
2369
2370         [Qt] Clarify expected return values of innerXml(), outerXml()
2371
2372         If you put HTML in (e.g. using setHTML()) you will get HTML out,
2373         even if you marked it up as XML.
2374
2375         https://bugs.webkit.org/show_bug.cgi?id=44876
2376
2377         * Api/qwebelement.cpp:
2378
2379 2010-11-03  Andre Pedralho  <andre.pedralho@gmail.com>
2380
2381         Reviewed by Kenneth Rohde Christiansen.
2382
2383         Using the Platform Plugin to define the default values for the padding of HitTestResult.
2384         https://bugs.webkit.org/show_bug.cgi?id=48450
2385
2386         * Api/qwebkitplatformplugin.h:
2387         (QWebTouchModifier::~QWebTouchModifier):
2388         * WebCoreSupport/QtPlatformPlugin.cpp:
2389         (WebCore::QtPlatformPlugin::createTouchModifier):
2390         * WebCoreSupport/QtPlatformPlugin.h:
2391         * examples/platformplugin/WebPlugin.cpp:
2392         (WebPlugin::supportsExtension):
2393         (WebPlugin::createExtension):
2394         * examples/platformplugin/WebPlugin.h:
2395         (TouchModifier::hitTestPaddingForTouch):
2396         * examples/platformplugin/qwebkitplatformplugin.h:
2397         (QWebTouchModifier::~QWebTouchModifier):
2398
2399 2010-11-03  Andreas Kling  <kling@webkit.org>
2400
2401         Reviewed by Kenneth Rohde Christiansen.
2402
2403         [Qt] QGWV: Keep the scrolling delegation intact when switching pages
2404
2405         * Api/qgraphicswebview.cpp:
2406         (QGraphicsWebViewPrivate::updateResizesToContentsForPage): Turn on/off
2407         scrolling delegation depending on the resizeToContents mode.
2408         (QGraphicsWebViewPrivate::detachCurrentPage): Turn off scrolling delegation.
2409         (QGraphicsWebView::setResizesToContents):
2410
2411 2010-11-03  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2412
2413         Reviewed by Andreas Kling.
2414
2415         Make it possible to delegate scrolling to the UI
2416         https://bugs.webkit.org/show_bug.cgi?id=48907
2417
2418         Enable scrolling delegation when setResizesToContents is active.
2419
2420         * Api/qgraphicswebview.cpp:
2421         (QGraphicsWebView::setResizesToContents):
2422
2423 2010-11-03  Daniel Bates  <dbates@rim.com>
2424
2425         For unnamed frames, window.name returns a generated name
2426         https://bugs.webkit.org/show_bug.cgi?id=6751
2427
2428         Part 1 of 2.
2429
2430         Substitute FrameTree::uniqueName() for FrameTree::name() in the Qt port.
2431
2432         * Api/qwebframe.cpp:
2433         (QWebFrame::frameName):
2434
2435 2010-11-02  Noam Rosenthal  <noam.rosenthal@nokia.com>
2436
2437         Reviewed by Kenneth Rohde Christiansen.
2438
2439         Some refactor for texmap to enable WebKit2: remove globals, and allow TextureMapper to exist without a GraphicsContext.
2440         This will allow rendering the TextureMapperNode tree without an active QPainter, into the current GL context.
2441         Most of the changes simply move the globas in TextureMapperGL into members of that class.
2442
2443         [Texmap] [Qt] Texture mapper initial implementation
2444         https://bugs.webkit.org/show_bug.cgi?id=47070
2445
2446         * Api/qwebframe.cpp:
2447         (QWebFramePrivate::renderFromTiledBackingStore):
2448         (QWebFramePrivate::renderCompositedLayers):
2449         (QWebFramePrivate::renderRelativeCoords):
2450         * Api/qwebframe_p.h:
2451
2452 2010-11-01  Brady Eidson  <beidson@apple.com>
2453
2454         Reviewed by Anders Carlsson.
2455
2456         <rdar://problem/7660547> and https://bugs.webkit.org/show_bug.cgi?id=48699
2457         Context menu support for WebKit 2.
2458
2459         * WebCoreSupport/ChromeClientQt.h:
2460         (WebCore::ChromeClientQt::showContextMenu):
2461
2462 2010-10-31  Robert Hogan  <robert@webkit.org>
2463
2464         Reviewed by Antonio Gomes.
2465
2466         [Qt] Support nodesFromRect in DRT
2467
2468         https://bugs.webkit.org/show_bug.cgi?id=48716
2469
2470         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2471         (DumpRenderTreeSupportQt::nodesFromRect):
2472         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2473
2474 2010-10-31  Andreas Kling  <kling@webkit.org>
2475
2476         Reviewed by Kenneth Rohde Christiansen.
2477
2478         [Qt] Short-circuit QWebPage::selectedText() if frame has no selection
2479         https://bugs.webkit.org/show_bug.cgi?id=48736
2480
2481         Do an early return if the selection is empty.
2482
2483         No new tests, this is covered by tst_QWebPage::findText().
2484
2485         * Api/qwebpage.cpp:
2486         (QWebPage::selectedText):
2487
2488 2010-10-30  Andreas Kling  <kling@webkit.org>
2489
2490         Reviewed by Antonio Gomes.
2491
2492         [Qt] IM: Don't manipulate selection via RenderTextControl
2493         https://bugs.webkit.org/show_bug.cgi?id=48700
2494
2495         Go directly through the Frame's SelectionController instead.
2496
2497         No new tests, this is covered by tst_QWebPage::inputMethods.
2498
2499         * Api/qwebpage.cpp:
2500         (QWebPagePrivate::inputMethodEvent):
2501         (QWebPage::inputMethodQuery):
2502
2503 2010-10-29  Daniel Bates  <dbates@rim.com>
2504
2505         No review, rolling out 70971.
2506         http://trac.webkit.org/changeset/70971
2507         https://bugs.webkit.org/show_bug.cgi?id=6751
2508
2509         Rolling out changeset 70971 <http://trac.webkit.org/changeset/70971> since
2510         it caused layout test failures on all bots. In particular, the
2511         child count in a generated frame name differs after this patch. We need
2512         to look into this further.
2513
2514         * Api/qwebframe.cpp:
2515         (QWebFrame::frameName):
2516
2517 2010-10-28  Antonio Gomes  <agomes@rim.com>
2518
2519         Reviewed by Ojan Vafai.
2520
2521         Needs a "LinuxEditingBehavior", perhaps with a better name
2522         https://bugs.webkit.org/show_bug.cgi?id=36627
2523
2524         Adding support to Qt's DRTSupport class to test the newly introduced Unix editing behavior.
2525
2526         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2527         (DumpRenderTreeSupportQt::setEditingBehavior):
2528
2529 2010-10-29  Daniel Bates  <dbates@rim.com>
2530
2531         Reviewed by Adam Barth.
2532
2533         For unnamed frames, window.name returns a generated name
2534         https://bugs.webkit.org/show_bug.cgi?id=6751
2535
2536         Modified Qt-port to use FrameTree::uniqueName().
2537
2538         * Api/qwebframe.cpp:
2539         (QWebFrame::frameName):
2540
2541 2010-10-29  Andreas Kling  <kling@webkit.org>
2542
2543         Reviewed by Ariya Hidayat.
2544
2545         [Qt] QWebPage's InputMethod event handling calls ShortcutOverride handler too
2546         https://bugs.webkit.org/show_bug.cgi?id=48692
2547
2548         * Api/qwebpage.cpp:
2549         (QWebPage::event): Add missing break statement.
2550
2551 2010-10-29  Ryosuke Niwa  <rniwa@webkit.org>
2552
2553         Reviewed by Darin Adler.
2554
2555         Remove RenderTextControl::setSelectionRange
2556         https://bugs.webkit.org/show_bug.cgi?id=47870
2557
2558         Converted RenderTextControll::setSelectionRange to a global function.
2559
2560         * Api/qwebpage.cpp:
2561         (QWebPagePrivate::inputMethodEvent): Calls setSelectionRange.
2562
2563 2010-10-29  Darin Adler  <darin@apple.com>
2564
2565         Reviewed by Sam Weinig.
2566
2567         Change BackForwardList clients to use BackForwardListImpl to prepare for further refactoring
2568         https://bugs.webkit.org/show_bug.cgi?id=48574
2569
2570         * Api/qwebhistory.cpp:
2571         (QWebHistory::clear):
2572         * Api/qwebhistory_p.h:
2573         * Api/qwebpage.cpp:
2574         (QWebPagePrivate::QWebPagePrivate):
2575         Use BackForwardListImpl.
2576
2577 2010-10-29  Alexey Proskuryakov  <ap@apple.com>
2578
2579         Reviewed by Darin Adler.
2580
2581         https://bugs.webkit.org/show_bug.cgi?id=48576
2582         Let WebKit2 client know when a frame is a frameset
2583
2584         Added a blank implementation of the new FrameLoaderClient method.
2585
2586         * WebCoreSupport/FrameLoaderClientQt.h:
2587         * WebCoreSupport/FrameLoaderClientQt.cpp:
2588         (WebCore::FrameLoaderClientQt::dispatchDidBecomeFrameset):
2589
2590 2010-10-29  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2591
2592         Reviewed by Andreas Kling.
2593
2594         [Qt] Fix tst_QWebFrame on XVFB.
2595         https://bugs.webkit.org/show_bug.cgi?id=48637
2596
2597         These tests relied on a window manager to activate the window.
2598
2599         Fixes:
2600         - tst_QWebFrame::popupFocus()
2601         - tst_QwebFrame::inputFieldFocus()
2602
2603         * tests/qwebframe/tst_qwebframe.cpp:
2604
2605 2010-10-28  Noam Rosenthal  <noam.rosenthal@nokia.com>
2606
2607         Reviewed by Ariya Hidayat.
2608
2609         [Texmap] [Qt] Texture mapper initial implementation
2610         https://bugs.webkit.org/show_bug.cgi?id=47070
2611
2612         Build fix,
2613
2614         * WebCoreSupport/PageClientQt.cpp:
2615         (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsObject):
2616         (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
2617         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
2618         * WebCoreSupport/PageClientQt.h:
2619
2620 2010-10-28  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2621
2622         Reviewed by Andreas Kling.
2623
2624         [Qt] QWebElement: Don't retrieve CSS rules through DOMWindow.
2625         https://bugs.webkit.org/show_bug.cgi?id=48519
2626
2627         JavaScript is prevented from retrieving cross-domain CSS rules since r70335.
2628         This patch allow QWebElement to retrive style without this limitation
2629         by asking the Document directly instead of going through DOMWindow.
2630
2631         Fixes:
2632         - tst_QWebFrame::setHtmlWithResource()
2633         - tst_QWebElement::style()
2634
2635         * Api/qwebelement.cpp:
2636         (QWebElement::styleProperty):
2637
2638 2010-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2639
2640         Reviewed by Andreas Kling.
2641
2642         Make Qt viewportAttributesForSize not assert on (0, 0) size
2643         https://bugs.webkit.org/show_bug.cgi?id=48524
2644
2645         We now return an invalid (isValid() == false) ViewportAttributes
2646         instance when the supplied size is (0, 0).
2647
2648         * Api/qwebpage.cpp:
2649         (QWebPage::viewportAttributesForSize):
2650
2651 2010-10-27  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2652
2653         Reviewed by Kenneth Rohde Christiansen.
2654
2655         [Qt] Fix tst_QWebFrame::popupFocus().
2656         https://bugs.webkit.org/show_bug.cgi?id=48432
2657
2658         - Call setFocus() before show() to work around a but in Qt.
2659         - Remove the check on combo at the end since hidePopup() leads
2660           indirectly to its destruction and segfault.
2661
2662         * tests/qwebframe/tst_qwebframe.cpp:
2663
2664 2010-10-26  Jenn Braithwaite  <jennb@chromium.org>
2665
2666         Reviewed by Dmitry Titov.
2667
2668         Resource tracking failure when trying to move a frame between documents
2669         https://bugs.webkit.org/show_bug.cgi?id=44713
2670
2671         * WebCoreSupport/FrameLoaderClientQt.cpp:
2672         (WebCore::FrameLoaderClientQt::transferLoadingResourceFromPage):
2673         Emtpy method.
2674         * WebCoreSupport/FrameLoaderClientQt.h:
2675
2676 2010-10-26  Yi Shen  <yi.4.shen@nokia.com>
2677
2678         Reviewed by Andreas Kling.
2679
2680         [Qt] Skipping popup focus test for symbian
2681         https://bugs.webkit.org/show_bug.cgi?id=48324
2682
2683         * tests/qwebframe/tst_qwebframe.cpp:
2684
2685 2010-10-26  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2686
2687         Reviewed by Andreas Kling.
2688
2689         [Qt] Unit tests: setHtml("data:text/html,...") -> load(QUrl("data:text/html,..."))
2690         https://bugs.webkit.org/show_bug.cgi?id=48319
2691
2692         These tests were failing since the new HTML parser.
2693         This patch removes the content type from the error page as well.
2694
2695         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2696         (tst_QGraphicsWebView::crashOnViewlessWebPages):
2697         * tests/qwebelement/tst_qwebelement.cpp:
2698         (tst_QWebElement::frame):
2699         * tests/qwebpage/tst_qwebpage.cpp:
2700         (tst_QWebPage::loadFinished):
2701         (ErrorPage::extension):
2702         (tst_QWebPage::errorPageExtension):
2703         (tst_QWebPage::errorPageExtensionInIFrames):
2704         (tst_QWebPage::errorPageExtensionInFrameset):
2705
2706 2010-10-25  No'am Rosenthal  <noam.rosenthal@nokia.com>
2707
2708         Reviewed by Kenneth Rohde Christiansen.
2709
2710         [Texmap] [Qt] Texture mapper initial implementation
2711         https://bugs.webkit.org/show_bug.cgi?id=47070
2712
2713         Glue layer (WebCoreSupport) changes to allow connecting TextureMapper to a Qt PageClient, i.e.
2714         a QWebView or a QGraphicsWebView. This enables the new type, TextureMapperPlatformLayer, to be recognized both by
2715         the compositor and by the page client.
2716         Note that this is temporarily an opt-in, under USE(TEXTURE_MAPPER)
2717
2718         * Api/qwebframe.h:
2719         * Api/qwebframe_p.h:
2720         (QWebFramePrivate::QWebFramePrivate):
2721         * Api/qwebpage.cpp:
2722         (QWebPage::setView):
2723         * WebCoreSupport/ChromeClientQt.cpp:
2724         (WebCore::ChromeClientQt::attachRootGraphicsLayer):
2725         * WebCoreSupport/PageClientQt.cpp:
2726         (WebCore::PlatformLayerProxyQt::PlatformLayerProxyQt):
2727         (WebCore::PlatformLayerProxyQt::~PlatformLayerProxyQt):
2728         (WebCore::PlatformLayerProxyQt::setSizeChanged):
2729         (WebCore::PlatformLayerProxyQWidget::PlatformLayerProxyQWidget):
2730         (WebCore::PlatformLayerProxyQWidget::eventFilter):
2731         (WebCore::PlatformLayerProxyQWidget::setNeedsDisplay):
2732         (WebCore::PlatformLayerProxyQWidget::setNeedsDisplayInRect):
2733         (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsWidget):
2734         (WebCore::PlatformLayerProxyQGraphicsObject::setNeedsDisplay):
2735         (WebCore::PlatformLayerProxyQGraphicsObject::setNeedsDisplayInRect):
2736         (WebCore::PageClientQWidget::setRootGraphicsLayer):
2737         (WebCore::PageClientQWidget::markForSync):
2738         (WebCore::PageClientQWidget::syncLayers):
2739         (WebCore::PageClientQGraphicsWidget::updateCompositingScrollPosition):
2740         (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
2741         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
2742         * WebCoreSupport/PageClientQt.h:
2743         (WebCore::PageClientQWidget::PageClientQWidget):
2744         (WebCore::PageClientQWidget::allowsAcceleratedCompositing):
2745         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
2746
2747 2010-10-25  Johnny Ding  <jnd@chromium.org>
2748
2749         Reviewed by Tony Chang.
2750
2751         Dump the gesture status of frame in frame load callbacks in DumpRenderTree
2752         by adding a new method dumpUserGestureInFrameLoadCallbacks.
2753         Now only dump the gesture status in "DidStartProvisionalLoad" callback.
2754         https://bugs.webkit.org/show_bug.cgi?id=47849
2755
2756         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2757         (DumpRenderTreeSupportQt::dumpUserGestureInFrameLoader):
2758         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2759         * WebCoreSupport/FrameLoaderClientQt.cpp:
2760         (drtPrintFrameUserGestureStatus):
2761         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2762         (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
2763         (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
2764         (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
2765         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2766         * WebCoreSupport/FrameLoaderClientQt.h:
2767
2768 2010-10-22  Sam Weinig  <sam@webkit.org>
2769
2770         Reviewed by Anders Carlsson.
2771
2772         WebKit2 needs to pass the current event modifier flags when requesting a new window
2773         https://bugs.webkit.org/show_bug.cgi?id=48140
2774
2775         * Api/qwebpage.cpp:
2776         (openNewWindow):
2777         * WebCoreSupport/ChromeClientQt.cpp:
2778         (WebCore::ChromeClientQt::createWindow):
2779         * WebCoreSupport/ChromeClientQt.h:
2780         * WebCoreSupport/FrameLoaderClientQt.cpp:
2781         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
2782         * WebCoreSupport/FrameLoaderClientQt.h:
2783         Add NavigationAction parameter.
2784
2785 2010-10-22  Yi Shen  <yi.4.shen@nokia.com>
2786
2787         Reviewed by Andreas Kling.
2788
2789         [Qt] InspectorClientQt crashes when deleting a qwebpage which has an inspector
2790         https://bugs.webkit.org/show_bug.cgi?id=48079
2791
2792         * Api/qwebpage.cpp:
2793         (QWebPagePrivate::~QWebPagePrivate):
2794         (QWebPage::~QWebPage):
2795
2796 2010-10-22  Benjamin Poulain  <benjamin.poulain@nokia.com>
2797
2798         Reviewed by Simon Hausmann.
2799
2800         [Qt] All widgets are rendered incorrectly when rendered through a cache
2801         https://bugs.webkit.org/show_bug.cgi?id=47767
2802
2803         Add a new test for rendering with tiling.
2804
2805         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2806         (tst_QGraphicsWebView::widgetsRenderingThroughCache):
2807
2808 2010-10-21  Robert Hogan  <robert@webkit.org>
2809
2810         Reviewed by Simon Hausmann.
2811
2812         [Qt] Sending a QInputMethodEvent::Selection event forces the
2813              Editor to go into Composition mode
2814
2815         Improve QWebPage handling of input method events:
2816          - Selections don't trigger entering composition mode.
2817          - Handle multiple selections
2818
2819         Also remove redundant cancellation of composition in tst_qwebpage.
2820         There is no composition in progress at that point.
2821
2822         Finally, move infiniteLoopJS() to the end of the tst_qwebpage unit
2823         tests - so you don't have to wait for it to complete when running
2824         other tests.
2825
2826         https://bugs.webkit.org/show_bug.cgi?id=39625
2827
2828         * Api/qwebpage.cpp:
2829         (QWebPagePrivate::inputMethodEvent):
2830         (QWebPage::inputMethodQuery):
2831         * tests/qwebpage/tst_qwebpage.cpp:
2832         (tst_QWebPage::inputMethods):
2833
2834 2010-10-20  Luiz Agostini  <luiz.agostini@openbossa.org>
2835
2836         Reviewed by Antonio Gomes.
2837
2838         [Qt] Wrong null check in PopupMenuQt
2839         https://bugs.webkit.org/show_bug.cgi?id=47945
2840
2841         Wrong null check in PopupMenuQt.
2842
2843         * WebCoreSupport/PopupMenuQt.cpp:
2844         (WebCore::PopupMenuQt::hide):
2845
2846 2010-10-18  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
2847
2848         Reviewed by Laszlo Gombos.
2849
2850         [Qt] Export QWebPage::ViewportAttributes class.
2851         https://bugs.webkit.org/show_bug.cgi?id=47845
2852
2853         * Api/qwebpage.h:
2854         * symbian/eabi/QtWebKitu.def:
2855
2856 2010-10-18  Pavel Feldman  <pfeldman@chromium.org>
2857
2858         Reviewed by Simon Fraser.
2859
2860         Web Inspector: [crash] when Inspector Open in CSSStyleSelector::loadPendingImages().
2861         https://bugs.webkit.org/show_bug.cgi?id=46224
2862
2863         * WebCoreSupport/InspectorClientQt.cpp:
2864         (WebCore::InspectorClientQt::sendMessageToFrontend):
2865
2866 2010-10-18  No'am Rosenthal  <noam.rosenthal@nokia.com>
2867
2868         Reviewed by Andreas Kling.
2869
2870         [Qt] AC rendering bugs
2871
2872         This fixes a regression that was introduced by making scrolling in accelerated compositing automatic,
2873         which made our explicit function to scroll the compositing layers superfluous, making the scrolling behavior
2874         when graphics layers are present incorrect. The fix simply removes those redundant functions.
2875
2876         https://bugs.webkit.org/show_bug.cgi?id=47571
2877
2878         * WebCoreSupport/PageClientQt.cpp:
2879         (WebCore::PageClientQGraphicsWidget::scroll):
2880         (WebCore::PageClientQGraphicsWidget::update):
2881         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
2882         * WebCoreSupport/PageClientQt.h:
2883
2884 2010-10-18  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2885
2886         Reviewed by nobody, build fix.
2887
2888         [Qt] Fix the build with MSVC.
2889
2890         Splitting the condition in two to prevent qmake parentheses issues.
2891
2892         * Api/DerivedSources.pro:
2893
2894 2010-10-18  Yi Shen  <yi.4.shen@nokia.com>
2895
2896         Reviewed by Antonio Gomes.
2897
2898         [QT] Unable to load pages on QtTestBrowser after canceling a page load. 
2899         https://bugs.webkit.org/show_bug.cgi?id=43827
2900
2901         * Api/qwebpage.cpp:
2902         (QWebPage::triggerAction):
2903
2904 2010-10-15  Qi Zhang  <qi.2.zhang@nokia.com>
2905
2906         Reviewed by Andreas Kling.
2907
2908         [Qt] window.close() doesn't work in qt
2909         https://bugs.webkit.org/show_bug.cgi?id=46186
2910
2911         Introduce new attribute in QWebSettings to trigger "setAllowScriptsToCloseWindow"
2912
2913         * Api/qwebsettings.cpp:
2914         (QWebSettingsPrivate::apply):
2915         * Api/qwebsettings.h:
2916
2917 2010-10-15  Andreas Kling  <kling@webkit.org>
2918
2919         Reviewed by Kenneth Rohde Christiansen.
2920
2921         [Qt] Unbreak scrolling the ContentsLayer with QWebView
2922
2923         r69777 broke scrolling the contents layer in QWebView by not restoring
2924         the painter clip after painting each part of the dirty region.
2925
2926         * Api/qwebframe.cpp:
2927         (QWebFramePrivate::renderRelativeCoords):
2928
2929 2010-09-27 Dawit Alemayehu  <adawit@kde.org>
2930
2931         Reviewed by Andreas Kling.
2932
2933         [Qt] Added functions for obtaining and checking the supported content types.
2934         http://webkit.org/b/37880
2935
2936         * Api/qwebpage.cpp:
2937         (extractContentTypeFromHash):
2938         (extractContentTypeFromPluginVector):
2939         (QWebPage::supportedContentTypes):
2940         (QWebPage::supportsContentType):
2941         * tests/qwebpage/tst_qwebpage.cpp:
2942         (tst_QWebPage::supportedContentType):
2943
2944 2010-10-14  Sheriff Bot  <webkit.review.bot@gmail.com>
2945
2946         Unreviewed, rolling out r69795.
2947         http://trac.webkit.org/changeset/69795
2948         https://bugs.webkit.org/show_bug.cgi?id=47687
2949
2950         'See discussion at webkit.org/b/47609' (Requested by mwenge on
2951         #webkit).
2952
2953         * WebCoreSupport/FrameLoaderClientQt.cpp:
2954         (WebCore::FrameLoaderClientQt::canHandleRequest):
2955         (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
2956
2957 2010-10-14  Robert Hogan  <robert@webkit.org>
2958
2959         Reviewed by Antonio Gomes.
2960
2961         [Qt] Fix http/tests/misc/redirect-to-external-url.html
2962
2963         Support the test in FrameLoaderClientQt and unskip.
2964
2965         https://bugs.webkit.org/show_bug.cgi?id=47609
2966
2967         * WebCoreSupport/FrameLoaderClientQt.cpp:
2968         (WebCore::FrameLoaderClientQt::canHandleRequest):
2969         (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
2970
2971 2010-10-14  No'am Rosenthal  <noam.rosenthal@nokia.com>
2972
2973         Reviewed by Kenneth Rohde Christiansen.
2974
2975         [Texmap] [Qt] Texture mapper initial implementation
2976         https://bugs.webkit.org/show_bug.cgi?id=47070
2977
2978         Allow rendering of accelerated-compositing with TextureMapper, inside a QWebFrame. The frame will render the regular content,
2979         either normally or through tiled backingstore, then let the TextureMapper layer render itself to the active context, and
2980         then render the scrollbar and pan icon. This is different from the current implementation, which uses additional QGraphicsItems for AC
2981         and the scrollbar overlay.
2982
2983         * Api/qgraphicswebview.cpp:
2984         (QGraphicsWebView::paint):
2985         * Api/qwebframe.cpp:
2986         (QWebFramePrivate::renderFromTiledBackingStore):
2987         (QWebFramePrivate::renderRelativeCoords):
2988
2989 2010-10-13  Gavin Barraclough  <barraclough@apple.com>
2990
2991         Reviewed by Oliver Hunt.
2992
2993         https://bugs.webkit.org/show_bug.cgi?id=43987
2994         Switch XMLHttpRequest, FileReader, and FileReaderSync to use a Stringbuilder
2995         to construct their internal result string.  Remove ScriptString (this is now
2996         redundant).
2997
2998         * WebCoreSupport/FrameLoaderClientQt.cpp:
2999
3000 2010-10-13  Dinu Jacob  <dinu.jacob@nokia.com>
3001
3002         Reviewed by Andreas Kling.
3003
3004         [Qt] Update .def file for Symbian
3005         https://bugs.webkit.org/show_bug.cgi?id=47540
3006
3007         Updated symbols for Symbian - added viewportAttributesForSize and
3008         made viewportConfigurationForSize absent based on the API change in
3009         47325
3010
3011         * symbian/eabi/QtWebKitu.def:
3012
3013 2010-10-12  David Leong  <david.leong@nokia.com>
3014
3015         Reviewed by Laszlo Gombos.
3016
3017         [Qt] Enable Netscape plugin metadata caching on Linux 
3018         https://bugs.webkit.org/show_bug.cgi?id=46287
3019         
3020         QWebSettings::enablePersistentStorage will now store the netscape
3021         plugin cache to QDesktopServices::CacheLocation.
3022         
3023         * Api/qwebsettings.cpp:
3024         (QWebSettings::enablePersistentStorage):
3025
3026 2010-10-12  Yael Aharon  <yael.aharon@nokia.com>
3027
3028         Reviewed by Antonio Gomes.
3029
3030         [Qt] Editing commands should not be executed on non-editable content.
3031         https://bugs.webkit.org/show_bug.cgi?id=47426
3032
3033         Remove calls to editor()->command() when we are not in editable content.
3034         There is no value in doing that, and in some cases, it prevents scrolling.
3035
3036         * WebCoreSupport/EditorClientQt.cpp:
3037         (WebCore::EditorClientQt::handleKeyboardEvent):
3038
3039 2010-10-08  Hui Huang  <hui.2.huang@nokia.com>
3040
3041         Reviewed by Simon Hausmann.
3042
3043         ifdef out code that rewrites Flash Plug-in wmode for Symbian build
3044         https://bugs.webkit.org/show_bug.cgi?id=43484
3045
3046         * WebCoreSupport/FrameLoaderClientQt.cpp:
3047         (WebCore::FrameLoaderClientQt::createPlugin):
3048
3049 2010-10-07  Andreas Kling  <kling@webkit.org>
3050
3051         Reviewed by Simon Hausmann.
3052
3053         [Qt] API: ViewportConfiguration => ViewportArguments
3054         https://bugs.webkit.org/show_bug.cgi?id=47325
3055
3056         * Api/qwebpage.cpp:
3057         (QWebPage::ViewportAttributes::ViewportAttributes):
3058         (QWebPage::ViewportAttributes::~ViewportAttributes):
3059         (QWebPage::ViewportAttributes::operator=):
3060         (QWebPage::viewportAttributesForSize):
3061         * Api/qwebpage.h:
3062         * Api/qwebpage_p.h:
3063         (QtViewportAttributesPrivate::QtViewportAttributesPrivate):
3064
3065 2010-10-07  Luiz Agostini  <luiz.agostini@openbossa.org>
3066
3067         Reviewed by Kenneth Rohde Christiansen.
3068
3069         Fixing viewport meta tag user-scalable handling
3070         https://bugs.webkit.org/show_bug.cgi?id=47330
3071
3072         user-scalable attribute was not considered in viewport meta tag handling.
3073
3074         * Api/qwebpage.cpp:
3075         (QWebPage::viewportConfigurationForSize):
3076
3077 2010-10-05  Diego Gonzalez  <diegohcg@webkit.org>
3078
3079         Reviewed by Andreas Kling.
3080
3081         [Qt] Hook up accelerometer data via Qt DeviceMotion
3082         https://bugs.webkit.org/show_bug.cgi?id=47105
3083
3084         Get accelerometer necessary data via Qt mobility library using a
3085         provider class. Enable, also the RotationRate using the current device
3086         orientation provider.
3087
3088         * WebCoreSupport/DeviceMotionClientQt.cpp:
3089         (WebCore::DeviceMotionClientQt::DeviceMotionClientQt):
3090         (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt):
3091         (WebCore::DeviceMotionClientQt::startUpdating):
3092         (WebCore::DeviceMotionClientQt::stopUpdating):
3093         (WebCore::DeviceMotionClientQt::currentDeviceMotion):
3094         (WebCore::DeviceMotionClientQt::changeDeviceMotion):
3095         * WebCoreSupport/DeviceMotionClientQt.h:
3096         * WebCoreSupport/DeviceMotionProviderQt.cpp: Added.
3097         (WebCore::DeviceMotionProviderQt::DeviceMotionProviderQt):
3098         (WebCore::DeviceMotionProviderQt::~DeviceMotionProviderQt):
3099         (WebCore::DeviceMotionProviderQt::start):
3100         (WebCore::DeviceMotionProviderQt::stop):
3101         (WebCore::DeviceMotionProviderQt::filter):
3102         * WebCoreSupport/DeviceMotionProviderQt.h: Added.
3103         (WebCore::DeviceMotionProviderQt::currentDeviceMotion):
3104
3105 2010-10-07  Luiz Agostini  <luiz.agostini@openbossa.org>
3106
3107         Reviewed by Kenneth Rohde Christiansen.
3108
3109         Some viewport meta tag api refactoring
3110         https://bugs.webkit.org/show_bug.cgi?id=47334
3111
3112         WebCore::findConfigurationForViewportData renamed to computeViewportAttributes.
3113         WebCore::ViewportAttributes::layoutViewport renamed to layoutSize.
3114
3115         * Api/qwebpage.cpp:
3116         (QWebPage::viewportConfigurationForSize):
3117         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3118         (DumpRenderTreeSupportQt::viewportAsText):
3119
3120 2010-10-07  Keith Kyzivat  <keith.kyzivat@nokia.com>
3121
3122         Reviewed by Simon Hausmann.
3123
3124         [Qt] Update .def file for Symbian
3125         https://bugs.webkit.org/show_bug.cgi?id=47336
3126         Fix and re-freeze symbols for symbian - viewportConfigurationForSize
3127         API changed, allowGeolocationRequest removed from API, several
3128         DumpRenderTree support calls added.
3129
3130         * symbian/eabi/QtWebKitu.def:
3131
3132 2010-10-06  Ragner Magalhaes  <ragner.magalhaes@openbossa.org>
3133
3134         Reviewed by Antonio Gomes.
3135
3136         [Qt] Duplicated code in QWebPagePrivate
3137         https://bugs.webkit.org/show_bug.cgi?id=47195
3138
3139         Remove duplicated code from QWebPagePrivate class for QGraphicsView and QWidget's mouse events.
3140
3141         * Api/qwebpage.cpp:
3142         (QWebPagePrivate::mouseMoveEvent):
3143         (QWebPagePrivate::mousePressEvent):
3144         (QWebPagePrivate::mouseDoubleClickEvent):
3145         (QWebPagePrivate::mouseTripleClickEvent):
3146         (QWebPagePrivate::mouseReleaseEvent):
3147         (QWebPagePrivate::wheelEvent):
3148         (QWebPagePrivate::dragEnterEvent):
3149         (QWebPagePrivate::dragLeaveEvent):
3150         (QWebPagePrivate::dragMoveEvent):
3151         (QWebPagePrivate::dropEvent):
3152         * Api/qwebpage_p.h:
3153
3154 2010-10-06  Luiz Agostini  <luiz.agostini@openbossa.org>
3155
3156         Reviewed by Kenneth Rohde Christiansen.
3157
3158         Renaming WebCore::ViewportConfiguration to WebCore::ViewportAttributes
3159         https://bugs.webkit.org/show_bug.cgi?id=47268
3160
3161         Renaming WebCore::ViewportConfiguration to WebCore::ViewportAttributes
3162
3163         * Api/qwebpage.cpp:
3164         (QWebPage::viewportConfigurationForSize):
3165         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3166         (DumpRenderTreeSupportQt::viewportAsText):
3167
3168 2010-10-05  Andrew Wilson  <atwilson@chromium.org>
3169
3170         Reviewed by Andreas Kling.
3171
3172         Notification onclick() events don't act like user gestures
3173         https://bugs.webkit.org/show_bug.cgi?id=47137
3174
3175         * WebCoreSupport/NotificationPresenterClientQt.cpp:
3176         (WebCore::NotificationPresenterClientQt::notificationClicked):
3177         Use UserGestureIndicator to make sure click events are treated like user gestures.
3178
3179 2010-10-05  Robert Hogan  <robert@webkit.org>
3180
3181         Reviewed by Andreas Kling.
3182
3183         [Qt] Fix url conversion in QWebHistory
3184
3185         Converting from KURL to WFT::String to QUrl does not
3186         permit proper percent encoding later.
3187
3188         https://bugs.webkit.org/show_bug.cgi?id=47048
3189
3190         * Api/qwebhistory.cpp:
3191         (QWebHistoryItem::originalUrl):
3192         (QWebHistoryItem::url):
3193
3194 2010-10-05  Jakob Petsovits  <jpetsovits@rim.com>
3195
3196         Reviewed by Andreas Kling.
3197
3198         [Qt] Make build work with QT_NO_CURSOR
3199         https://bugs.webkit.org/show_bug.cgi?id=46097
3200
3201         Add a missing semicolon.
3202
3203         * WebCoreSupport/ChromeClientQt.cpp:
3204         (WebCore::ChromeClientQt::setCursor):
3205
3206 2010-10-05  Simon Hausmann  <simon.hausmann@nokia.com>
3207
3208         Unreviewed build fix.
3209
3210         [Symbian] Fix build issue due to gaps in ordinals in the def file
3211
3212         Restore previously removed symbols and mark them absent instead. We must
3213         not remove symbols from this file, because it breaks binary compatibility
3214         (when re-assigning the ordinals of the following symbols) or it causes build
3215         breakage when instead having a gap in the ordinal sequence. Instead removing
3216         a symbol is done by marking it as absent.
3217
3218         * symbian/eabi/QtWebKitu.def:
3219
3220 2010-10-04  Adam Barth  <abarth@webkit.org>
3221
3222         Reviewed by Darin Adler.
3223
3224         Rename RedirectScheduler to NavigationScheduler
3225         https://bugs.webkit.org/show_bug.cgi?id=47037
3226
3227         Update for name change.
3228
3229         * Api/qwebpage.cpp:
3230         (QWebPage::triggerAction):
3231
3232 2010-10-04  Diego Gonzalez  <diegohcg@webkit.org>
3233
3234         Reviewed by Kenneth Rohde Christiansen.
3235
3236         [Qt] Hook up DeviceOrientation data for Qt support
3237         https://bugs.webkit.org/show_bug.cgi?id=47052
3238
3239         Get DeviceOrientation necessary data via Qt mobility library
3240         using a provider class.
3241
3242         * WebCoreSupport/DeviceOrientationClientQt.cpp:
3243         (WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt):
3244         (WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt):
3245         (WebCore::DeviceOrientationClientQt::startUpdating):
3246         (WebCore::DeviceOrientationClientQt::stopUpdating):
3247         (WebCore::DeviceOrientationClientQt::lastOrientation):
3248         (WebCore::DeviceOrientationClientQt::changeDeviceOrientation):
3249         * WebCoreSupport/DeviceOrientationClientQt.h:
3250         * WebCoreSupport/DeviceOrientationProviderQt.cpp: Added.
3251         (WebCore::DeviceOrientationProviderQt::DeviceOrientationProviderQt):
3252         (WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt):
3253         (WebCore::DeviceOrientationProviderQt::start):
3254         (WebCore::DeviceOrientationProviderQt::stop):
3255         (WebCore::DeviceOrientationProviderQt::filter):
3256         * WebCoreSupport/DeviceOrientationProviderQt.h: Added.
3257         (WebCore::DeviceOrientationProviderQt::isActive):
3258         (WebCore::DeviceOrientationProviderQt::orientation):
3259         (WebCore::DeviceOrientationProviderQt::hasAlpha):
3260
3261 2010-09-28  Luiz Agostini  <luiz.agostini@openbossa.org>
3262
3263         Reviewed by Kenneth Rohde Christiansen.
3264
3265         Viewport data change notifications
3266         https://bugs.webkit.org/show_bug.cgi?id=46755
3267
3268         Regarding viewport meta tags, what matters for browser developers is to know when the viewport data has
3269         changed and its current value. Viewport data belongs to the document, but it is useful to keep the current
3270         viewport data in Page as a reference, to be able to send notifications only when the current viewport
3271         has changed.
3272
3273         * Api/qwebframe.cpp:
3274         * Api/qwebframe_p.h:
3275         * Api/qwebpage.cpp:
3276         (QWebPagePrivate::viewportArguments):
3277         (QWebPage::viewportConfigurationForSize):
3278         * Api/qwebpage_p.h:
3279         * WebCoreSupport/ChromeClientQt.cpp:
3280         (WebCore::ChromeClientQt::viewportDataChanged):
3281         * WebCoreSupport/ChromeClientQt.h:
3282         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3283         (DumpRenderTreeSupportQt::viewportAsText):
3284
3285 2010-10-04  Simon Hausmann  <simon.hausmann@nokia.com>
3286
3287         Rubber-stamped by Tor Arne Vestbø.
3288
3289         [Qt] Fix platform plugin support after r68128
3290
3291         Replaced the qobject_cast from the QObject derived extension to a
3292         static_cast. qobject_cast works by comparing pointers to meta-object
3293         instances, of which there are two each: one compiled into WebKit and
3294         one compiled into the plugin.
3295
3296         The platform plugin ensures the validity of the interface contract
3297         through its version and the initial safe qobject_cast from QObject
3298         to QWebKitPlatformPlugin. After that it is safe to use static_cast,
3299         and with the recent changes even required.
3300
3301         * WebCoreSupport/QtPlatformPlugin.cpp:
3302         (WebCore::QtPlatformPlugin::createSelectInputMethod):
3303         (WebCore::QtPlatformPlugin::createNotificationPresenter):
3304         (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):
3305
3306 2010-10-02  Diego Gonzalez  <diegohcg@webkit.org>
3307
3308         Reviewed by Kenneth Rohde Christiansen.
3309
3310         [Qt] Provide Qt support for DeviceMotion/Orientation clients
3311         https://bugs.webkit.org/show_bug.cgi?id=47051
3312
3313         Dummy implementation of DeviceMotion/Orientation client classes
3314         to make possible to hook up motion/orientation data
3315         in further implementations.
3316
3317         * Api/qwebpage.cpp:
3318         (QWebPagePrivate::QWebPagePrivate):
3319         * WebCoreSupport/DeviceMotionClientQt.cpp: Added.
3320         (WebCore::DeviceMotionClientQt::DeviceMotionClientQt):
3321         (WebCore::DeviceMotionClientQt::setController):
3322         (WebCore::DeviceMotionClientQt::startUpdating):
3323         (WebCore::DeviceMotionClientQt::stopUpdating):
3324         (WebCore::DeviceMotionClientQt::currentDeviceMotion):
3325         (WebCore::DeviceMotionClientQt::deviceMotionControllerDestroyed):
3326         * WebCoreSupport/DeviceMotionClientQt.h: Added.
3327         (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt):
3328         * WebCoreSupport/DeviceOrientationClientQt.cpp: Added.
3329         (WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt):
3330         (WebCore::DeviceOrientationClientQt::setController):
3331         (WebCore::DeviceOrientationClientQt::startUpdating):
3332         (WebCore::DeviceOrientationClientQt::stopUpdating):
3333         (WebCore::DeviceOrientationClientQt::lastOrientation):
3334         (WebCore::DeviceOrientationClientQt::deviceOrientationControllerDestroyed):
3335         * WebCoreSupport/DeviceOrientationClientQt.h: Added.
3336         (WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt):
3337
3338 2010-09-30  Robert Hogan  <robert@webkit.org>
3339
3340         Reviewed by Andreas Kling.
3341
3342         [Qt] Support for PlainTextController
3343
3344         Unskip editing/text-iterator/basic-iteration.html
3345
3346         https://bugs.webkit.org/show_bug.cgi?id=38805
3347
3348         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3349         (DumpRenderTreeSupportQt::plainText):
3350         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3351
3352 2010-09-30  Andreas Kling  <andreas.kling@nokia.com>
3353
3354         Reviewed by Tor Arne Vestbø.
3355
3356         [Qt] V8 port: Unbreak build
3357
3358         Add missing <wtf/text/CString.h> include.
3359
3360         * WebCoreSupport/InspectorServerQt.cpp:
3361
3362 2010-09-30  Benjamin Poulain  <benjamin.poulain@nokia.com>
3363
3364         Reviewed by Andreas Kling.
3365
3366         [Qt] Crash if an scene with accelerated compositing layout during the paint event
3367         https://bugs.webkit.org/show_bug.cgi?id=46812
3368
3369         Delay the deletion of the overlay after the current event is processed.
3370
3371         Removing the overlay can sometimes be done inside the rendering code of
3372         the overlay itself. When the rendering code is using the reference after
3373         the deletion of the overlay, WebKit crashes.
3374
3375         * Api/qgraphicswebview.cpp:
3376         (QGraphicsWebViewPrivate::overlay):
3377         * WebCoreSupport/PageClientQt.cpp:
3378         (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
3379         (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
3380         * WebCoreSupport/PageClientQt.h:
3381         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
3382
3383 2010-09-30  Benjamin Poulain  <benjamin.poulain@nokia.com>
3384
3385         Reviewed by Andreas Kling.
3386
3387         [Qt] Fix tst_QWebPage::geolocationRequestJS()
3388         https://bugs.webkit.org/show_bug.cgi?id=46814
3389
3390         Disable the test. This test cannot pass with a
3391         standard build of WebKit, it is disabled until the API is finilized.
3392
3393         * tests/qwebpage/tst_qwebpage.cpp:
3394         (tst_QWebPage::geolocationRequestJS):
3395
3396 2010-09-29  Andreas Kling  <andreas.kling@nokia.com>
3397
3398         Reviewed by Ariya Hidayat.
3399
3400         [Qt] Don't keep local reference to QGraphicsItemOverlay in QGWVPrivate
3401         https://bugs.webkit.org/show_bug.cgi?id=46812
3402
3403         Get the QGraphicsItemOverlay* via the QWebPageClient (d->page->d->client)
3404         instead of keeping a local pointer to it.
3405
3406         This is cleanup for a follow-up patch.
3407
3408         * Api/qgraphicswebview.cpp:
3409         (QGraphicsWebViewPrivate::overlay):
3410         (QGraphicsWebView::paint):
3411         (QGraphicsWebView::setPage):
3412         (QGraphicsWebView::updateGeometry):
3413         (QGraphicsWebView::setGeometry):
3414
3415 2010-09-28  Jenn Braithwaite  <jennb@chromium.org>
3416
3417         Reviewed by Dmitry Titov.
3418
3419         Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument.
3420         https://bugs.webkit.org/show_bug.cgi?id=46663
3421
3422         * WebCoreSupport/FrameLoaderClientQt.cpp:
3423         (WebCore::FrameLoaderClientQt::didTransferChildFrameToNewDocument):
3424         * WebCoreSupport/FrameLoaderClientQt.h:
3425
3426 2010-09-28  Andreas Kling  <andreas.kling@nokia.com>
3427
3428         Reviewed by Kenneth Rohde Christiansen.
3429
3430         [Qt] Clean up QWebPage::ViewportConfiguration API
3431         https://bugs.webkit.org/show_bug.cgi?id=46730
3432
3433         - Pass QSize parameter as const-reference
3434         - Style fixes
3435
3436         * Api/qwebpage.cpp:
3437         (QWebPage::viewportConfigurationForSize):
3438         * Api/qwebpage.h:
3439
3440 2010-09-28  Andras Becsi  <abecsi@webkit.org>
3441
3442         Reviewed by Csaba Osztrogonác.
3443
3444         Undefined reference errors when linking due to gperf and inlining.
3445         webkit.org/b/29244
3446
3447         EFL CMake changes by Leandro Pereira <leandro@profusion.mobi>
3448
3449         Refactor gperf code generation and usage to fix the debug build with gcc>4.4.
3450         Hitherto gperf generated C code, these files were included in multiple C++ files across WebCore
3451         to access the functionality provided. This resulted in debug build failure with newer gcc versions
3452         because of a behaviour change of gcc, which disables C style inlining in debug mode.
3453         The make-hash-tools.pl script lets gperf generate C++ code for all gperf files now, which are compiled
3454         in their own compilation unit.
3455         The functionality provided by the generated code is wrapped behind HashTools.h, so there is no need
3456         for multiple inclusions of generated C files to access these functions.
3457
3458         * WebCoreSupport/FrameLoaderClientQt.cpp:
3459         (WebCore::FrameLoaderClientQt::createPlugin):
3460
3461 2010-09-28  Benjamin Poulain  <benjamin.poulain@nokia.com>
3462
3463         Reviewed by Andreas Kling.
3464
3465         [Qt] Remove support for Qt 4.5
3466         https://bugs.webkit.org/show_bug.cgi?id=46718
3467
3468         Remove the code for versions of Qt prior to 4.6.
3469
3470         * Api/qgraphicswebview.cpp:
3471         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
3472         (QGraphicsWebView::QGraphicsWebView):
3473         (QGraphicsWebView::sceneEvent):
3474         (QGraphicsWebViewPrivate::detachCurrentPage):