12011-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
142011-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
222011-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
372011-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
472011-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
622011-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
742011-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
852011-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
972011-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
1192011-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
1392011-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
1652011-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
2062011-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
2182011-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
2492011-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
2692011-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
2942011-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
3102011-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
3192011-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
3332011-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
3462011-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
3642011-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
3762011-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
3862011-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
3982011-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
4092011-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
4222011-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
4322011-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
4472011-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
4572011-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
4682011-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
4782011-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
4872011-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
4972011-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
5112011-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
5222011-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
5342011-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
5482011-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
5602011-01-20  Sam Weinig  <sam@webkit.org>
561
562        Fix build.
563
564        * Api/qwebframe.cpp:
565        (QWebFrame::setScrollBarValue):
566
5672011-01-20  Sam Weinig  <sam@webkit.org>
568
569        Fix build.
570
571        * Api/qwebframe.cpp:
572        (QWebFrame::setScrollBarValue):
573
5742011-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
5842011-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
5952011-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
6042011-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
6152011-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
6222011-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
6752011-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
6872011-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
7122011-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
7262011-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
7432011-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
7562011-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
7692011-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
7822011-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
8352011-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
8512011-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
8632011-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
8752011-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
8872011-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
9042011-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
9172011-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
9302011-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
9412011-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
9532011-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
9662011-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
9772011-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
10002011-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
10252011-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
10442011-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
10562011-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
10682011-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
10842011-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
10932011-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
11102011-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
11382011-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
11492010-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
11602010-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
11732010-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
11862010-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
12012010-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
12132010-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
12342010-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
12472010-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
12592010-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
12762010-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
12942010-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
13052010-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
13222010-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
13362010-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
13492010-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
13602010-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
13722010-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
13982010-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
14132010-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
14432010-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
14682010-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
15012010-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
15142010-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
15302010-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
15392010-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
15542010-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
15682010-12-07  Darin Adler  <darin@apple.com>
1569
1570        Try to fix build.
1571
1572        * Api/qwebpage.cpp:
1573        (frameLoadRequest): Added missing parentheses.
1574
15752010-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
15852010-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
15982010-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
16102010-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
16242010-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
16372010-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
16732010-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
16902010-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
17022010-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
17112010-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
17292010-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
17452010-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
17552010-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
17712010-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
17932010-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
18062010-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
18222010-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
18322010-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
18502010-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
18652010-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
18882010-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
19062010-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
19222010-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
19322010-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
19442010-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
19572010-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
19762010-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
19892010-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
20012010-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
20122010-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
20292010-11-18  Gavin Barraclough  <barraclough@apple.com>
2030
2031        Build fix - update error messages folllowing r72360.
2032
2033        * tests/qwebframe/tst_qwebframe.cpp:
2034
20352010-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
20492010-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
20592010-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
20722010-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
20952010-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
21032010-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
21192010-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
21322010-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
21432010-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
21552010-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
21652010-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
21762010-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
21922010-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
22052010-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
22182010-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
22312010-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
22452010-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
22642010-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
22742010-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
22842010-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
22952010-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
23372010-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
23522010-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
23662010-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
23792010-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
23992010-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
24112010-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
24232010-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
24352010-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
24522010-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
24622010-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
24742010-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
24882010-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
25032010-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
25172010-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
25292010-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
25412010-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
25512010-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
25632010-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
25772010-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
25902010-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
26052010-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
26202010-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
26382010-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
26512010-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
26642010-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
26762010-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
26852010-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
27062010-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
27472010-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
27682010-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
27852010-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
27962010-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
28082010-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
28342010-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
28462010-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
28562010-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
28662010-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
28842010-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
28942010-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
29042010-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
29172010-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
29292010-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
29442010-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
29572010-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
29712010-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
29892010-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
30002010-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
30132010-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
30262010-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
30392010-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
30492010-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
30652010-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
30772010-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
31052010-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
31202010-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
31322010-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
31542010-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
31682010-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
31792010-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
31942010-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
32062010-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
32202010-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
32322010-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
32612010-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
32852010-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
33062010-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
33382010-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
33522010-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
33622010-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
33832010-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
33962010-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
34152010-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
34262010-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
34402010-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
34612010-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):
3475        * Api/qwebframe.cpp:
3476        (QWebFrame::load):
3477        * Api/qwebpage.cpp:
3478        (QWebPagePrivate::QWebPagePrivate):
3479        (QWebPagePrivate::handleSoftwareInputPanel):
3480        (QWebPagePrivate::inputMethodEvent):
3481        (QWebPagePrivate::touchEvent):
3482        (QWebPage::inputMethodQuery):
3483        (QWebPage::view):
3484        (QWebPage::event):
3485        * Api/qwebpage_p.h:
3486        * Api/qwebview.cpp:
3487        (QWebView::QWebView):
3488        (QWebViewPrivate::detachCurrentPage):
3489        (QWebView::event):
3490        * WebCoreSupport/EditorClientQt.cpp:
3491        (WebCore::EditorClientQt::setInputMethodState):
3492        * WebCoreSupport/FrameLoaderClientQt.cpp:
3493        (WebCore::FrameLoaderClientQt::createPlugin):
3494        * WebCoreSupport/PageClientQt.cpp:
3495        (WebCore::PageClientQWidget::setInputMethodHints):
3496        (WebCore::PageClientQGraphicsWidget::setInputMethodEnabled):
3497        (WebCore::PageClientQGraphicsWidget::inputMethodEnabled):
3498        (WebCore::PageClientQGraphicsWidget::setInputMethodHints):
3499        * WebCoreSupport/PageClientQt.h:
3500        (WebCore::QGraphicsItemOverlay::page):
3501        * tests/qwebframe/tst_qwebframe.cpp:
3502        * tests/qwebpage/tst_qwebpage.cpp:
3503        (tst_QWebPage::inputMethods_data):
3504        (inputMethodHints):
3505        (inputMethodEnabled):
3506        (tst_QWebPage::inputMethods):
3507        (tst_QWebPage::originatingObjectInNetworkRequests):
3508        * tests/qwebview/tst_qwebview.cpp:
3509        (tst_QWebView::reusePage):
3510
35112010-09-28  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3512
3513        Reviewed by Simon Hausmann.
3514
3515        Clean up QWebPage initialization
3516
3517        * Api/qwebpage.cpp:
3518        * Api/qwebpage_p.h:
3519
35202010-09-28  Benjamin Poulain  <benjamin.poulain@nokia.com>
3521
3522        Reviewed by Kenneth Rohde Christiansen.
3523
3524        [Qt] tst_QWebPage::testStopScheduledPageRefresh() fails on MeeGo handset
3525        https://bugs.webkit.org/show_bug.cgi?id=46706
3526
3527        The test require the network to succeed or fail in order to work.
3528        On MeeGo, the network can simply timeout the because of the netword access
3529        management. This patch makes the test use local URLs to avoid the
3530        problem.
3531
3532        * tests/qwebpage/tst_qwebpage.cpp:
3533        (TestNetworkManager::TestNetworkManager):
3534
35352010-09-27  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
3536
3537        Reviewed by Antonio Gomes.
3538
3539        [Qt] Remove setDeviceSize methods
3540        https://bugs.webkit.org/show_bug.cgi?id=46347
3541
3542        Remove our setDeviceHeight() API and obtain it automatically from the
3543        system. Also for testing purposes, make it possible to override the
3544        values via two newly introduced environment variables.
3545
3546        * Api/qgraphicswebview.cpp:
3547        * Api/qgraphicswebview.h:
3548        * Api/qwebpage.cpp:
3549        (getintenv):
3550        (queryDeviceSizeForScreenContainingWidget):
3551        (QWebPage::viewportConfigurationForSize):
3552        * WebCoreSupport/PageClientQt.cpp:
3553        (WebCore::PageClientQGraphicsWidget::windowRect):
3554        * symbian/eabi/QtWebKitu.def:
3555
35562010-09-27  Girish Ramakrishnan  <girish@forwardbias.in>
3557
3558        Reviewed by Antonio Gomes.
3559
3560        Enable local rendering of NPAPI plugins on Maemo6.
3561
3562        https://bugs.webkit.org/show_bug.cgi?id=46618
3563
3564        * WebCoreSupport/FrameLoaderClientQt.cpp:
3565        (WebCore::FrameLoaderClientQt::createPlugin):
3566
35672010-09-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
3568
3569        Reviewed by Andreas Kling.
3570
3571        [Qt] tst_QWebFrame::popupFocus() randomly fail on MeeGo handset because the focus is not set on the window
3572        https://bugs.webkit.org/show_bug.cgi?id=46617
3573
3574        This patch avoid the race condition by waiting for the window
3575        to be mapped on screen before attempting any actions.
3576
3577        * tests/qwebframe/tst_qwebframe.cpp:
3578
35792010-09-24  Luiz Agostini  <luiz.agostini@openbossa.org>
3580
3581        Reviewed by Kenneth Rohde Christiansen.
3582
3583        Keep viewport information in Document
3584        https://bugs.webkit.org/show_bug.cgi?id=46385
3585
3586        The viewport meta data (layout viewport, scale) needs to be set again when bringing
3587        back a page from the page cache. As the viewport metadata is only retrieved while parsing
3588        the document, we need to store it in the Document class.
3589
3590        * Api/qwebframe.cpp:
3591        (QWebFramePrivate::viewportArguments):
3592        * Api/qwebframe_p.h:
3593        * Api/qwebpage.cpp:
3594        (QWebPage::viewportConfigurationForSize):
3595        * WebCoreSupport/ChromeClientQt.cpp:
3596        (WebCore::ChromeClientQt::didReceiveViewportArguments):
3597        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3598        (DumpRenderTreeSupportQt::viewportAsText):
3599        * WebCoreSupport/FrameLoaderClientQt.cpp:
3600        (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
3601
36022010-09-23  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
3603
3604        Reviewed by Kenneth Rohde Christiansen.
3605
3606        Fix QWebHapticFeedbackPlayer exposure via QWebKitPlatformPlugin
3607
3608        [Qt] QWebHapticFeedbackPlayer needs correct exposure through QWebKitPlatformPlugin
3609        https://bugs.webkit.org/show_bug.cgi?id=46402
3610
3611        QWebHapticFeedbackPlayer is exported through
3612        QWebKitPlatformPlugin::createExtension(), but
3613        createHapticFeedbackPlayer() and the correct
3614        inheritage are missing.
3615
3616        * Api/qwebkitplatformplugin.h:
3617        * WebCoreSupport/QtPlatformPlugin.cpp:
3618        (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):
3619        * WebCoreSupport/QtPlatformPlugin.h:
3620
36212010-09-23  Nate Chapin  <japhet@chromium.org>
3622
3623        Reviewed by Darin Fisher.
3624
3625        Add hyperlink auditing settings (i.e., <a ping>).
3626        https://bugs.webkit.org/show_bug.cgi?id=30458
3627
3628        * Api/qwebsettings.cpp:
3629        (QWebSettingsPrivate::apply):
3630        (QWebSettings::QWebSettings):
3631        * Api/qwebsettings.h:
3632
36332010-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3634
3635        Reviewed by Simon Hausmann.
3636
3637        [Qt] Refactor QtWebKitPlatformPlugin interface
3638
3639        Make it easier to keep source-compability for the
3640        QtWebKitPlatformPlugin interface, and run qmake
3641        on the example (but not build) for convenience.
3642
3643        https://bugs.webkit.org/show_bug.cgi?id=46345
3644
3645        * Api/qwebkitplatformplugin.h:
3646        * WebCoreSupport/QtPlatformPlugin.cpp:
3647        * examples/platformplugin/README:
3648        * examples/platformplugin/WebPlugin.cpp:
3649        * examples/platformplugin/WebPlugin.h:
3650        * examples/platformplugin/qwebkitplatformplugin.h:
3651
36522010-09-22  Andras Becsi  <abecsi@webkit.org>
3653
3654        Speculative build fix for the Qt Windows bots.
3655
3656        * Api/DerivedSources.pro:
3657
36582010-09-22  Jamey Hicks  <jamey.hicks@nokia.com>
3659
3660        Reviewed by Kenneth Rohde Christiansen.
3661
3662        [Qt] Web Inspector: Remote Web Inspector support for QtWebKit
3663        https://bugs.webkit.org/show_bug.cgi?id=43988
3664
3665        Runs a web debug server on port specified by QtTestBrowser
3666        argument -remote-inspector-port. Property
3667        _q_webInspectorServerPort of the QWebPage instance will be set
3668        according to the argument. All pages with that property set will
3669        be remotely inspectable.
3670
3671        URL for remote inspection of first QWebPage is
3672            http://localhost:9222/webkit/inspector/inspector.html?page=1
3673        where 1 is the number of the QWebPage instance.
3674
3675        The base URL yields an index page with links to the individual inspectors:
3676            http://localhost:9222/
3677
3678        * Api/qwebinspector.cpp:
3679        (QWebInspectorPrivate::attachAndReplaceRemoteFrontend):
3680        (QWebInspectorPrivate::detachRemoteFrontend):
3681        * Api/qwebinspector_p.h:
3682        (QWebInspectorPrivate::QWebInspectorPrivate):
3683        * Api/qwebpage.cpp:
3684        (QWebPagePrivate::dynamicPropertyChangeEvent):
3685        (QWebPagePrivate::inspectorServerPort):
3686        * Api/qwebpage.h:
3687        * Api/qwebpage_p.h:
3688        * WebCoreSupport/InspectorClientQt.cpp:
3689        (WebCore::InspectorClientQt::InspectorClientQt):
3690        (WebCore::InspectorClientQt::inspectorDestroyed):
3691        (WebCore::InspectorClientQt::openInspectorFrontend):
3692        (WebCore::InspectorClientQt::attachAndReplaceRemoteFrontend):
3693        (WebCore::InspectorClientQt::detachRemoteFrontend):
3694        (WebCore::InspectorClientQt::sendMessageToFrontend):
3695        * WebCoreSupport/InspectorClientQt.h:
3696        * WebCoreSupport/InspectorServerQt.cpp: Added.
3697        (WebCore::generateWebSocketChallengeResponse):
3698        (WebCore::parseWebSocketChallengeNumber):
3699        (WebCore::InspectorServerQt::server):
3700        (WebCore::InspectorServerQt::InspectorServerQt):
3701        (WebCore::InspectorServerQt::~InspectorServerQt):
3702        (WebCore::InspectorServerQt::listen):
3703        (WebCore::InspectorServerQt::close):
3704        (WebCore::InspectorServerQt::inspectorClientForPage):
3705        (WebCore::InspectorServerQt::registerClient):
3706        (WebCore::InspectorServerQt::unregisterClient):
3707        (WebCore::InspectorServerQt::newConnection):
3708        (WebCore::InspectorServerRequestHandlerQt::InspectorServerRequestHandlerQt):
3709        (WebCore::InspectorServerRequestHandlerQt::~InspectorServerRequestHandlerQt):
3710        (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
3711        (WebCore::InspectorServerRequestHandlerQt::tcpConnectionDisconnected):
3712        (WebCore::InspectorServerRequestHandlerQt::webSocketSend):
3713        (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
3714        (WebCore::RemoteFrontendChannel::RemoteFrontendChannel):
3715        (WebCore::RemoteFrontendChannel::sendMessageToFrontend):
3716        * WebCoreSupport/InspectorServerQt.h: Added.
3717
37182010-09-22  Balazs Kelemen  <kb@inf.u-szeged.hu>
3719
3720        Reviewed by Kenneth Rohde Christiansen.
3721
3722        [Qt] PluginStrategy implementation is broken
3723        https://bugs.webkit.org/show_bug.cgi?id=46078
3724
3725        Remove the QWebPage* member from WebPlatformStrategies.
3726        Get the originator QWebPage of the getPluginInfo call via
3727        the Page* argument.
3728        * Api/qwebpage.cpp:
3729        (QWebPagePrivate::QWebPagePrivate):
3730        * WebCoreSupport/WebPlatformStrategies.cpp:
3731        (WebPlatformStrategies::initialize):
3732        (WebPlatformStrategies::WebPlatformStrategies):
3733        (WebPlatformStrategies::getPluginInfo):
3734        Use the ChromeClient for accessing the originator QWebPage.
3735        * WebCoreSupport/WebPlatformStrategies.h:
3736
37372010-09-22  İsmail Dönmez  <ismail@namtrac.org>
3738
3739        Reviewed by Andreas Kling.
3740
3741        [Qt] Buildfix for WinCE
3742
3743        * Api/DerivedSources.pro:
3744
37452010-09-20  Philippe Normand  <pnormand@igalia.com>
3746
3747        Reviewed by Eric Carlson.
3748
3749        [GTK] enhanced context menu for media elements
3750        https://bugs.webkit.org/show_bug.cgi?id=45021
3751
3752        * WebCoreSupport/WebPlatformStrategies.cpp:
3753        * WebCoreSupport/WebPlatformStrategies.h:
3754        (WebPlatformStrategies::contextMenuItemTagOpenVideoInNewWindow):
3755        (WebPlatformStrategies::contextMenuItemTagOpenAudioInNewWindow):
3756        (WebPlatformStrategies::contextMenuItemTagCopyVideoLinkToClipboard):
3757        (WebPlatformStrategies::contextMenuItemTagCopyAudioLinkToClipboard):
3758        (WebPlatformStrategies::contextMenuItemTagToggleMediaControls)
3759        (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop)
3760        (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen)
3761        (WebPlatformStrategies::contextMenuItemTagMediaPlay)
3762        (WebPlatformStrategies::contextMenuItemTagMediaPause)
3763        (WebPlatformStrategies::contextMenuItemTagMediaMute)
3764
37652010-09-20  Jacob Dinu  <dinu.jacob@nokia.com>
3766
3767        Reviewed by Adam Barth.
3768
3769        Added a new qwebpage test for loading a cached page
3770        https://bugs.webkit.org/show_bug.cgi?id=41155
3771
3772        * tests/qwebpage/tst_qwebpage.cpp:
3773        (tst_QWebPage::loadCachedPage):
3774
37752010-09-08  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3776
3777        Reviewed by Simon Hausmann.
3778
3779        [Qt] Fix forward includes generation for MSVC when sh is in PATH.
3780
3781        MSVC's nmake isn't affected by having sh in PATH.
3782
3783        * Api/DerivedSources.pro:
3784
37852010-09-18  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
3786
3787        Reviewed by Kenneth Rohde Christiansen.
3788
3789        Enable Platform Strategies on Qt
3790
3791        [Qt] Turn on PLATFORM_STRATEGIES
3792        https://bugs.webkit.org/show_bug.cgi?id=45831
3793
3794        * Api/qwebpage.cpp:
3795        (QWebPagePrivate::QWebPagePrivate): Initialize the PlatformStrategy
3796        singleton.
3797        * WebCoreSupport/WebPlatformStrategies.cpp: Added, code was moved
3798        from platform/qt/Localizations.cpp and plugins/qt/PluginDataQt.cpp
3799        (WebPlatformStrategies::initialize): create the singleton,
3800        following the same "pattern" used by Mac and Win ports.
3801        (WebPlatformStrategies::WebPlatformStrategies):
3802        (WebPlatformStrategies::createPluginStrategy):
3803        (WebPlatformStrategies::createLocalizationStrategy):
3804        (WebPlatformStrategies::createVisitedLinkStrategy):
3805        (WebPlatformStrategies::refreshPlugins):
3806        (WebPlatformStrategies::getPluginInfo):
3807        (WebPlatformStrategies::inputElementAltText):
3808        (WebPlatformStrategies::resetButtonDefaultLabel):
3809        (WebPlatformStrategies::searchableIndexIntroduction):
3810        (WebPlatformStrategies::submitButtonDefaultLabel):
3811        (WebPlatformStrategies::fileButtonChooseFileLabel):
3812        (WebPlatformStrategies::fileButtonNoFileSelectedLabel):
3813        (WebPlatformStrategies::contextMenuItemTagOpenLinkInNewWindow):
3814        (WebPlatformStrategies::contextMenuItemTagDownloadLinkToDisk):
3815        (WebPlatformStrategies::contextMenuItemTagCopyLinkToClipboard):
3816        (WebPlatformStrategies::contextMenuItemTagOpenImageInNewWindow):
3817        (WebPlatformStrategies::contextMenuItemTagDownloadImageToDisk):
3818        (WebPlatformStrategies::contextMenuItemTagCopyImageToClipboard):
3819        (WebPlatformStrategies::contextMenuItemTagOpenFrameInNewWindow):
3820        (WebPlatformStrategies::contextMenuItemTagCopy):
3821        (WebPlatformStrategies::contextMenuItemTagGoBack):
3822        (WebPlatformStrategies::contextMenuItemTagGoForward):
3823        (WebPlatformStrategies::contextMenuItemTagStop):
3824        (WebPlatformStrategies::contextMenuItemTagReload):
3825        (WebPlatformStrategies::contextMenuItemTagCut):
3826        (WebPlatformStrategies::contextMenuItemTagPaste):
3827        (WebPlatformStrategies::contextMenuItemTagNoGuessesFound):
3828        (WebPlatformStrategies::contextMenuItemTagIgnoreSpelling):
3829        (WebPlatformStrategies::contextMenuItemTagLearnSpelling):
3830        (WebPlatformStrategies::contextMenuItemTagSearchWeb):
3831        (WebPlatformStrategies::contextMenuItemTagLookUpInDictionary):
3832        (WebPlatformStrategies::contextMenuItemTagOpenLink):
3833        (WebPlatformStrategies::contextMenuItemTagIgnoreGrammar):
3834        (WebPlatformStrategies::contextMenuItemTagSpellingMenu):
3835        (WebPlatformStrategies::contextMenuItemTagShowSpellingPanel):
3836        (WebPlatformStrategies::contextMenuItemTagCheckSpelling):
3837        (WebPlatformStrategies::contextMenuItemTagCheckSpellingWhileTyping):
3838        (WebPlatformStrategies::contextMenuItemTagCheckGrammarWithSpelling):
3839        (WebPlatformStrategies::contextMenuItemTagFontMenu):
3840        (WebPlatformStrategies::contextMenuItemTagBold):
3841        (WebPlatformStrategies::contextMenuItemTagItalic):
3842        (WebPlatformStrategies::contextMenuItemTagUnderline):
3843        (WebPlatformStrategies::contextMenuItemTagOutline):
3844        (WebPlatformStrategies::contextMenuItemTagWritingDirectionMenu):
3845        (WebPlatformStrategies::contextMenuItemTagTextDirectionMenu):
3846        (WebPlatformStrategies::contextMenuItemTagDefaultDirection):
3847        (WebPlatformStrategies::contextMenuItemTagLeftToRight):
3848        (WebPlatformStrategies::contextMenuItemTagRightToLeft):
3849        (WebPlatformStrategies::contextMenuItemTagInspectElement):
3850        (WebPlatformStrategies::searchMenuNoRecentSearchesText):
3851        (WebPlatformStrategies::searchMenuRecentSearchesText):
3852        (WebPlatformStrategies::searchMenuClearRecentSearchesText):
3853        (WebPlatformStrategies::AXWebAreaText):
3854        (WebPlatformStrategies::AXLinkText):
3855        (WebPlatformStrategies::AXListMarkerText):
3856        (WebPlatformStrategies::AXImageMapText):
3857        (WebPlatformStrategies::AXHeadingText):
3858        (WebPlatformStrategies::AXDefinitionListTermText):
3859        (WebPlatformStrategies::AXDefinitionListDefinitionText):
3860        (WebPlatformStrategies::AXButtonActionVerb):
3861        (WebPlatformStrategies::AXRadioButtonActionVerb):
3862        (WebPlatformStrategies::AXTextFieldActionVerb):
3863        (WebPlatformStrategies::AXCheckedCheckBoxActionVerb):
3864        (WebPlatformStrategies::AXUncheckedCheckBoxActionVerb):
3865        (WebPlatformStrategies::AXMenuListActionVerb):
3866        (WebPlatformStrategies::AXMenuListPopupActionVerb):
3867        (WebPlatformStrategies::AXLinkActionVerb):
3868        (WebPlatformStrategies::missingPluginText):
3869        (WebPlatformStrategies::crashedPluginText):
3870        (WebPlatformStrategies::multipleFileUploadText):
3871        (WebPlatformStrategies::unknownFileSizeText):
3872        (WebPlatformStrategies::imageTitle):
3873        (WebPlatformStrategies::mediaElementLoadingStateText):
3874        (WebPlatformStrategies::mediaElementLiveBroadcastStateText):
3875        (WebPlatformStrategies::localizedMediaControlElementString):
3876        (WebPlatformStrategies::localizedMediaControlElementHelpText):
3877        (WebPlatformStrategies::localizedMediaTimeDescription):
3878        (WebPlatformStrategies::validationMessageValueMissingText):
3879        (WebPlatformStrategies::validationMessageTypeMismatchText):
3880        (WebPlatformStrategies::validationMessagePatternMismatchText):
3881        (WebPlatformStrategies::validationMessageTooLongText):
3882        (WebPlatformStrategies::validationMessageRangeUnderflowText):
3883        (WebPlatformStrategies::validationMessageRangeOverflowText):
3884        (WebPlatformStrategies::validationMessageStepMismatchText):
3885        (WebPlatformStrategies::isLinkVisited):
3886        (WebPlatformStrategies::addVisitedLink):
3887        * WebCoreSupport/WebPlatformStrategies.h: Added, based on Mac and Win
3888        versions.
3889
38902010-09-18  Andreas Kling  <andreas.kling@nokia.com>
3891
3892        Reviewed by Antonio Gomes.
3893
3894        [Qt] V8 port: Add FrameLoaderClientQt::allowScriptExtension()
3895        https://bugs.webkit.org/show_bug.cgi?id=46034
3896
3897        r67749 added FrameLoaderClient::allowScriptExtension() (V8-specific)
3898        Add a stub implementation that simply returns false for now.
3899
3900        * WebCoreSupport/FrameLoaderClientQt.h:
3901        (WebCore::FrameLoaderClientQt::allowScriptExtension):
3902
39032010-09-17  Darin Adler  <darin@apple.com>
3904
3905        Reviewed by Sam Weinig.
3906
3907        REGRESSION (r60104): Zoom level is unexpectedly reset on page reload
3908        https://bugs.webkit.org/show_bug.cgi?id=42863
3909
3910        * Api/qwebframe.cpp:
3911        (QWebFrame::setTextSizeMultiplier):
3912        (QWebFrame::textSizeMultiplier):
3913        (QWebFrame::setZoomFactor):
3914        (QWebFrame::zoomFactor):
3915        Call functions on Frame instead of FrameView.
3916
39172010-09-16  Darin Adler  <darin@apple.com>
3918
3919        Fix build.
3920
3921        * WebCoreSupport/EditorClientQt.cpp:
3922        (WebCore::EditorClientQt::setInputMethodState): Updated for change
3923        in name of isUrlField to isURLField.
3924
39252010-09-16  Darin Adler  <darin@apple.com>
3926
3927        Reviewed by Andreas Kling.
3928
3929        Reduce use of HTMLInputElement::inputType so we can remove it later
3930        https://bugs.webkit.org/show_bug.cgi?id=45903
3931
3932        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3933        (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
3934        Use isPasswordField.
3935
39362010-09-16  Robert Hogan  <robert@webkit.org>
3937
3938        Reviewed by Antonio Gomes.
3939
3940        [Qt] Support globalhistory tests
3941        https://bugs.webkit.org/show_bug.cgi?id=45774
3942
3943        * WebCoreSupport/ChromeClientQt.cpp:
3944        (WebCore::ChromeClientQt::populateVisitedLinks):
3945        * WebCoreSupport/ChromeClientQt.h:
3946        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3947        (DumpRenderTreeSupportQt::dumpHistoryCallbacks):
3948        (DumpRenderTreeSupportQt::dumpVisitedLinksCallbacks):
3949        * WebCoreSupport/DumpRenderTreeSupportQt.h:
3950        * WebCoreSupport/FrameLoaderClientQt.cpp:
3951        (WebCore::FrameLoaderClientQt::setTitle):
3952        (WebCore::FrameLoaderClientQt::updateGlobalHistory):
3953        (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
3954        * WebCoreSupport/FrameLoaderClientQt.h:
3955
39562010-09-16  Diego Gonzalez  <diegohcg@webkit.org>
3957
3958        Reviewed by Kenneth Rohde Christiansen.
3959
3960        [Qt] Remove FrameLoaderClientQt::webFrame() to use NetworkingContext to get the WebFrame to avoid layering violations
3961        https://bugs.webkit.org/show_bug.cgi?id=42293
3962
3963        * Api/qwebframe.cpp:
3964        (QWebFrame::childFrames):
3965        (QWebFramePrivate::kit):
3966        * Api/qwebpage.cpp:
3967        (QWebPage::currentFrame):
3968        * WebCoreSupport/ChromeClientQt.cpp:
3969        (WebCore::ChromeClientQt::runJavaScriptAlert):
3970        (WebCore::ChromeClientQt::runJavaScriptConfirm):
3971        (WebCore::ChromeClientQt::runJavaScriptPrompt):
3972        (WebCore::ChromeClientQt::contentsSizeChanged):
3973        * WebCoreSupport/FrameLoaderClientQt.cpp:
3974        (WebCore::FrameLoaderClientQt::chooseFile):
3975        * WebCoreSupport/FrameLoaderClientQt.h:
3976
39772010-09-15  Simon Hausmann  <simon.hausmann@nokia.com>
3978
3979        [Qt] Update the Symbian def files
3980
3981        Re-freeze with the viewport meta tag updates.
3982
3983        * symbian/eabi/QtWebKitu.def:
3984
39852010-09-14  Andreas Kling  <andreas.kling@nokia.com>
3986
3987        Reviewed by Kenneth Rohde Christiansen.
3988
3989        [Qt] V8 port: Get inspector up and running
3990        https://bugs.webkit.org/show_bug.cgi?id=45771
3991
3992        * WebCoreSupport/InspectorClientQt.cpp:
3993        (WebCore::ensureDebuggerScriptLoaded): Added, loads DebuggerScript.js into ScriptDebugServer.
3994        (WebCore::InspectorClientQt::openInspectorFrontend): Ensure that DebuggerScript.js is loaded
3995        before opening an inspector.
3996
39972010-09-14  Enrico Ros  <eros@codeaurora.org>
3998
3999        Reviewed by Andreas Kling.
4000
4001        [Qt] Respect title attribute on option elements
4002        https://bugs.webkit.org/show_bug.cgi?id=45084
4003
4004        Set the tooltip in the combo box model, so it's reflected in the view.
4005
4006        * WebCoreSupport/QtFallbackWebPopup.cpp:
4007        (WebCore::QtFallbackWebPopup::populate):
4008
40092010-09-13  Daniel Bates  <dbates@rim.com>
4010
4011        https://bugs.webkit.org/show_bug.cgi?id=45732
4012
4013        Fix the Qt build. I missed this when reviewing the patch
4014        for Bug #45732.
4015
4016        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4017        (DumpRenderTreeSupportQt::suspendActiveDOMObjects): Change enum value ActiveDOMObject::JavaScriptPaused to
4018        ActiveDOMObject::JavaScriptDebuggerPaused
4019
40202010-09-13  Eric Carlson  <eric.carlson@apple.com>
4021
4022        Reviewed by Daniel Bates.
4023
4024        [Qt] DumpRenderTreeSupportQt::suspendActiveDOMObjects needs a new parameter
4025        https://bugs.webkit.org/show_bug.cgi?id=45732
4026
4027        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4028        (DumpRenderTreeSupportQt::suspendActiveDOMObjects): Pass ActiveDOMObject::JavaScriptPaused
4029        to suspendActiveDOMObjects.
4030
40312010-09-13  Enrica Casucci  <enrica@apple.com>
4032
4033        Reviewed by Sam Weinig.
4034
4035        Paste should be implemented in WebCore like Copy and Cut for Mac also.
4036        https://bugs.webkit.org/show_bug.cgi?id=45494
4037        <rdar://problem/7660537>
4038
4039        On the Mac platform, the implementation of the paste operation is all done
4040        at the WebKit level. In order to support it on WebKit2 it is necessary to
4041        refactor the code and move this functionality at the level of WebCore like
4042        we already have on Windows.
4043        The original code relies on some in AppKit functions that call back into
4044        WebKit causing problems in WebKit2. All this functionality has been moved
4045        at the level of the editor client where it can be dealt with appropriately.
4046
4047        * WebCoreSupport/FrameLoaderClientQt.cpp:
4048        (WebCore::FrameLoaderClientQt::canShowMIMETypeAsHTML): Added stub.
4049        * WebCoreSupport/FrameLoaderClientQt.h:
4050
40512010-08-27  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
4052
4053        Reviewed by Antti Koivisto.
4054
4055        Add a Qt API for the viewport meta tag support based on the
4056        following draft spec:
4057
4058        http://people.opera.com/rune/TR/ED-css-viewport-20100806/
4059
4060        Add common handling of viewport meta tag based on new Opera spec
4061        https://bugs.webkit.org/show_bug.cgi?id=44201
4062
4063        * Api/qwebframe_p.h:
4064        (QWebFramePrivate::QWebFramePrivate):
4065        * Api/qwebpage.cpp:
4066        (QWebPage::ViewportConfiguration::ViewportConfiguration):
4067        (QWebPage::ViewportConfiguration::~ViewportConfiguration):
4068        (QWebPage::ViewportConfiguration::operator=):
4069        (QWebPage::viewportConfigurationForSize):
4070        (QWebPage::setPreferredContentsSize):
4071        * Api/qwebpage.h:
4072        * Api/qwebpage_p.h:
4073        (QtViewportConfigurationPrivate::QtViewportConfigurationPrivate):
4074        * WebCoreSupport/ChromeClientQt.cpp:
4075        (WebCore::ChromeClientQt::didReceiveViewportArguments):
4076        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4077        (DumpRenderTreeSupportQt::viewportAsText):
4078        * WebCoreSupport/DumpRenderTreeSupportQt.h:
4079        * WebCoreSupport/FrameLoaderClientQt.cpp:
4080        (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
4081        (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
4082
40832010-09-12  Martin Smith  <martin.smith@nokia.com>
4084
4085        Reviewed by Simon Hausmann.
4086
4087        doc: Changed the title so lists of contents sort better.
4088
4089        * docs/qtwebkit.qdoc:
4090
40912010-09-12  David Boddie  <david.boddie@nokia.com>
4092
4093        Reviewed by Simon Hausmann.
4094
4095        Doc: More work on the QML documentation.
4096
4097        * declarative/qdeclarativewebview.cpp:
4098
40992010-09-12  Martin Jones  <martin.jones@nokia.com>
4100
4101        Reviewed by Simon Hausmann.
4102
4103        [Qml] Ensure WebView gets focus when an editable node is clicked on.
4104
4105        Task-number: QTBUG-13342
4106
4107        * declarative/qdeclarativewebview.cpp:
4108        (GraphicsWebView::mousePressEvent):
4109
41102010-09-12  David Boddie  <david.boddie@nokia.com>
4111
4112        Reviewed by Simon Hausmann.
4113
4114        Doc: qdoc fixes.
4115
4116        * declarative/qdeclarativewebview.cpp:
4117
41182010-09-12  Oswald Buddenhagen  <oswald.buddenhagen@nokia.com>
4119
4120        Reviewed by Simon Hausmann.
4121
4122        [Qt] let WebKit inject itself into the qt configuration
4123
4124        Task-number: QTBUG-12379
4125
4126        * qt_webkit_version.pri: Use the faster + instead of *
4127        operator to add webkit to the config.
4128
41292010-09-12  Martin Smith  <martin.smith@nokia.com>
4130
4131        Reviewed by Simon Hausmann.
4132
4133        [Qt] Fix group of declarative web view in QML docs.
4134
4135        * declarative/qdeclarativewebview.cpp:
4136
41372010-09-12  Simon Hausmann  <simon.hausmann@nokia.com>
4138
4139        Reviewed by Andreas Kling.
4140
4141        [Qt] Partial implementation of Qt bridge using V8 and QtScript.
4142
4143        * Api/qwebelement.cpp:
4144        (QWebElement::evaluateJavaScript): Stub it out for now,
4145        to compile, until we have a conversion path between v8::Object
4146        and QScriptValue.
4147        * Api/qwebframe.cpp:
4148        (QWebFrame::addToJavaScriptWindowObject): Implemented using
4149        few lines of QtScript code.
4150        (QWebFrame::evaluateJavaScript): Ditto.
4151
41522010-09-12  Simon Hausmann  <simon.hausmann@nokia.com>
4153
4154        Reviewed by Andreas Kling.
4155
4156        Fix the build with V8.
4157
4158        This is a temporary kludge until the scriptworld stuff is properly
4159        ported, as part of the upcoming DRT work.
4160
4161        * Api/qwebscriptworld.cpp:
4162        (QWebScriptWorld::QWebScriptWorld):
4163
41642010-09-11  Andreas Kling  <andreas.kling@nokia.com>
4165
4166        Reviewed by Simon Hausmann.
4167
4168        [Qt] V8 port for Qt platform: Qt WebCoreSupport changes
4169        https://bugs.webkit.org/show_bug.cgi?id=45149
4170
4171        Original patch by Vlad Burlik <volodimir.burlik@nokia.com>
4172
4173        Implemented the V8 specifics needed in DumpRenderTreeSupportQt and
4174        FrameLoaderClientQt.
4175
4176        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4177        (DumpRenderTreeSupportQt::javaScriptObjectsCount):
4178        (DumpRenderTreeSupportQt::garbageCollectorCollect):
4179        (DumpRenderTreeSupportQt::garbageCollectorCollectOnAlternateThread):
4180        (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
4181        * WebCoreSupport/FrameLoaderClientQt.cpp:
4182        (WebCore::FrameLoaderClientQt::didCreateScriptContextForFrame):
4183        (WebCore::FrameLoaderClientQt::didDestroyScriptContextForFrame):
4184        (WebCore::FrameLoaderClientQt::didCreateIsolatedScriptContext):
4185        (WebCore::FrameLoaderClientQt::createDocumentLoader):
4186        * WebCoreSupport/FrameLoaderClientQt.h:
4187
41882010-09-11  Vlad Burlik  <volodimir.burlik@nokia.com>
4189
4190        Reviewed by Andreas Kling.
4191
4192        [Qt] V8 port for QT platform: QT API implementation changes
4193        https://bugs.webkit.org/show_bug.cgi?id=45148
4194
4195        V8 Implementation of QWebFrame::addToJavaScriptWindowObject()
4196        and QWebFrame::evaluateJavaScript()
4197
4198        * Api/qwebelement.cpp:
4199        (setupScriptContext): JSC and V8 variations
4200        (QWebElement::evaluateJavaScript):
4201        * Api/qwebelement.h:
4202        * Api/qwebframe.cpp: QObject injection to V8 world
4203        (QWebFrame::addToJavaScriptWindowObject):
4204        (QWebFrame::evaluateJavaScript):
4205        * Api/qwebpage.cpp: Use ScriptController type definitions instead of direct references to JSC or V8
4206        (QWebPagePrivate::QWebPagePrivate):
4207
42082010-09-10  yi shen  <yi.4.shen@nokia.com>
4209
4210        Reviewed by Antonio Gomes.
4211
4212        [Qt] selected text gets deleted when qgraphicswebview losts focus
4213        https://bugs.webkit.org/show_bug.cgi?id=45539
4214
4215        * Api/qwebpage.cpp:
4216        (QWebPagePrivate::inputMethodEvent):
4217        * tests/qwebpage/tst_qwebpage.cpp:
4218        (tst_QWebPage::inputMethods):
4219
42202010-09-10  Sam Weinig  <sam@webkit.org>
4221
4222        Fix Qt build.
4223
4224        * Api/qwebsettings.cpp:
4225        (QWebSettingsPrivate::apply):
4226
42272010-09-10  Sam Weinig  <sam@webkit.org>
4228
4229        Reviewed by Darin Adler.
4230
4231        Remove unnecessary constraint in WebCore of choosing either text zoom or full page zoom.
4232        Precursor to <rdar://problem/7660657>
4233        https://bugs.webkit.org/show_bug.cgi?id=45522
4234
4235        * Api/qwebframe.cpp:
4236        (QWebFrame::setTextSizeMultiplier):
4237        (QWebFrame::textSizeMultiplier):
4238        (QWebFrame::setZoomFactor):
4239        (QWebFrame::zoomFactor):
4240        * Api/qwebframe_p.h:
4241        (QWebFramePrivate::QWebFramePrivate):
4242        Move tracking of text only zoom here from WebCore.
4243
42442010-09-10  Yael Aharon  <yael.aharon@nokia.com>
4245
4246        Reviewed by Andreas Kling.
4247
4248        [Qt] Support click event for notifications
4249        https://bugs.webkit.org/show_bug.cgi?id=44836
4250
4251        Propagate click events to JavaScript from either the
4252        platform plugn or from QSystemTrayIcon.
4253        Also added the method NotificationWrapper::openerPageUrl so that
4254        if the platform plugin can reopen the page that created the
4255        notification directly, when the user clicks the notification.
4256
4257        Added DumpRenderTreeSupportQt::simulateDesktopNotificationClick
4258        for testing purpose.
4259
4260        * Api/qwebkitplatformplugin.h:
4261        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4262        (DumpRenderTreeSupportQt::simulateDesktopNotificationClick):
4263        * WebCoreSupport/DumpRenderTreeSupportQt.h:
4264        * WebCoreSupport/NotificationPresenterClientQt.cpp:
4265        (WebCore::NotificationWrapper::openerPageUrl):
4266        (WebCore::NotificationWrapper::notificationClicked):
4267        (WebCore::NotificationPresenterClientQt::displayNotification):
4268        (WebCore::NotificationPresenterClientQt::notificationClicked):
4269        * WebCoreSupport/NotificationPresenterClientQt.h:
4270        * examples/platformplugin/WebNotificationPresenter.cpp:
4271        (WebNotificationWidget::event):
4272        * examples/platformplugin/WebNotificationPresenter.h:
4273        (WebNotificationPresenter::WebNotificationPresenter):
4274        * examples/platformplugin/qwebkitplatformplugin.h:
4275
42762010-09-10  Adam Barth  <abarth@webkit.org>
4277
4278        Attempt to fix the failign Qt tests.  This patch adapts code from
4279        Chromium.  The long-term fix is to remove the need for this code, but
4280        that's a bit too complicated for a buildfix patch.
4281
4282        * WebCoreSupport/FrameLoaderClientQt.cpp:
4283        (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
4284        (WebCore::FrameLoaderClientQt::makeRepresentation):
4285        (WebCore::FrameLoaderClientQt::revertToProvisionalState):
4286        (WebCore::FrameLoaderClientQt::finishedLoading):
4287        * WebCoreSupport/FrameLoaderClientQt.h:
4288
42892010-09-10  Adam Barth  <abarth@webkit.org>
4290
4291        Reviewed by Darin Fisher.
4292
4293        Move code from WebKit-layer to DocumentLoader
4294        https://bugs.webkit.org/show_bug.cgi?id=45569
4295
4296        This code didn't know that setEncoding can be called multiple times.
4297
4298        * WebCoreSupport/FrameLoaderClientQt.cpp:
4299        (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
4300        (WebCore::FrameLoaderClientQt::finishedLoading):
4301        (WebCore::FrameLoaderClientQt::setMainDocumentError):
4302        (WebCore::FrameLoaderClientQt::committedLoad):
4303        (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
4304        (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
4305        * WebCoreSupport/FrameLoaderClientQt.h:
4306
43072010-09-10  Adam Barth  <abarth@webkit.org>
4308
4309        Reviewed by Eric Seidel.
4310
4311        Main resource bytes shouldn't bounce through FrameLoader
4312        https://bugs.webkit.org/show_bug.cgi?id=45496
4313
4314        Now return the bytes to the DocumentLoader.
4315
4316        * WebCoreSupport/FrameLoaderClientQt.cpp:
4317        (WebCore::FrameLoaderClientQt::committedLoad):
4318
43192010-09-08  Darin Adler  <darin@apple.com>
4320
4321        Reviewed by Adam Barth.
4322
4323        Move functions from Frame to Editor as planned
4324        https://bugs.webkit.org/show_bug.cgi?id=45218
4325
4326        * Api/qwebpage.cpp:
4327        (QWebPage::selectedText):
4328        (QWebPage::setContentEditable):
4329        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4330        (DumpRenderTreeSupportQt::firstRectForCharacterRange):
4331        Changed call sites to use editor().
4332
43332010-09-08  Peter Kasting  <pkasting@google.com>
4334
4335        Reviewed by David Hyatt.
4336
4337        Add smooth scrolling framework, and a Windows implementation.
4338        https://bugs.webkit.org/show_bug.cgi?id=32356
4339
4340        * Api/qwebframe.cpp:
4341        (QWebFrame::setScrollBarValue):
4342
43432010-09-06  Diego Gonzalez  <diegohcg@webkit.org>
4344
4345        Reviewed by Antonio Gomes.
4346
4347        [Qt] Update NetworkAccessManager in Qt FrameNetworkingContext
4348        https://bugs.webkit.org/show_bug.cgi?id=45231
4349
4350        Make possible to get the current QNAM when NetwokingContext request it.
4351
4352        * WebCoreSupport/FrameNetworkingContextQt.cpp:
4353        (WebCore::FrameNetworkingContextQt::networkAccessManager):
4354
43552010-09-06  Csaba Osztrogonác  <ossy@webkit.org>
4356
4357        Reviewed by Antonio Gomes.
4358
4359        Web Inspector: Tests crash on Qt bots revealed by r66720
4360        https://bugs.webkit.org/show_bug.cgi?id=45256
4361
4362        * WebCoreSupport/InspectorClientQt.cpp:
4363        (WebCore::InspectorClientQt::InspectorClientQt): m_frontendClient must be initialized by constructor
4364
43652010-09-06  Yury Semikhatsky  <yurys@chromium.org>
4366
4367        Unreviewed. Attempt to fix random test crashes after r66720.
4368
4369        * WebCoreSupport/InspectorClientQt.cpp:
4370        (WebCore::InspectorFrontendClientQt::~InspectorFrontendClientQt):
4371        * WebCoreSupport/InspectorClientQt.h:
4372
43732010-09-05  Sheriff Bot  <webkit.review.bot@gmail.com>
4374
4375        Unreviewed, rolling out r66801.
4376        http://trac.webkit.org/changeset/66801
4377        https://bugs.webkit.org/show_bug.cgi?id=45242
4378
4379        'breaks editing/pasteboard/onpaste-text-html.html' (Requested
4380        by mwenge4 on #webkit).
4381
4382        * WebCoreSupport/ChromeClientQt.cpp:
4383        (WebCore::ChromeClientQt::addMessageToConsole):
4384
43852010-09-05  Robert Hogan  <robert@webkit.org>
4386
4387        Reviewed by Antonio Gomes.
4388
4389        [Qt] utf8 encoding of console() messages
4390
4391        http/tests/security/xssAuditor/embed-tag-null-char.html
4392        http/tests/security/xssAuditor/object-embed-tag-null-char.html
4393
4394        both fail because ChromeClientQt::addMessageToConsole() is
4395        casting String to QString rather than String::utf8().data()
4396
4397        https://bugs.webkit.org/show_bug.cgi?id=45240
4398
4399        * WebCoreSupport/ChromeClientQt.cpp:
4400        (WebCore::ChromeClientQt::addMessageToConsole):
4401
44022010-09-03  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
4403
4404        Reviewed by Darin Adler.
4405
4406        Add NetworkingContext to avoid layer violations
4407        https://bugs.webkit.org/show_bug.cgi?id=42292
4408
4409        Add Qt's specific implementation of NetworkingContext.
4410
4411        * WebCoreSupport/FrameLoaderClientQt.cpp:
4412        (WebCore::FrameLoaderClientQt::setFrame):
4413        (WebCore::FrameLoaderClientQt::createNetworkingContext):
4414        * WebCoreSupport/FrameLoaderClientQt.h:
4415        * WebCoreSupport/FrameNetworkingContextQt.cpp:
4416        (WebCore::FrameNetworkingContextQt::FrameNetworkingContextQt):
4417        (WebCore::FrameNetworkingContextQt::create):
4418        (WebCore::FrameNetworkingContextQt::originatingObject):
4419        (WebCore::FrameNetworkingContextQt::networkAccessManager):
4420
44212010-09-02  Yury Semikhatsky  <yurys@chromium.org>
4422
4423        Reviewed by Pavel Feldman.
4424
4425        REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
4426        https://bugs.webkit.org/show_bug.cgi?id=44230
4427
4428        * WebCoreSupport/InspectorClientQt.cpp:
4429        (WebCore::InspectorClientQt::inspectorDestroyed):
4430        (WebCore::InspectorClientQt::openInspectorFrontend):
4431        (WebCore::InspectorClientQt::releaseFrontendPage):
4432        (WebCore::InspectorFrontendClientQt::closeWindow):
4433        (WebCore::InspectorFrontendClientQt::disconnectFromBackend):
4434        (WebCore::InspectorFrontendClientQt::destroyInspectorView):
4435        (WebCore::InspectorFrontendClientQt::inspectorClientDestroyed):
4436        * WebCoreSupport/InspectorClientQt.h:
4437
44382010-09-02  Andreas Kling  <andreas.kling@nokia.com>
4439
4440        Rubber-stamped by Simon Hausmann.
4441
4442        [Qt] REGRESSION(r62898): tst_QWebFrame crashing
4443        https://bugs.webkit.org/show_bug.cgi?id=43039
4444
4445        Rolling out the offending change <http://trac.webkit.org/changeset/62898>
4446
4447        * tests/qwebframe/tst_qwebframe.cpp:
4448        (tst_QWebFrame::evalJSV):
4449
44502010-09-01  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
4451
4452        Reviewed by Laszlo Gombos.
4453
4454        [Qt] QWebPage::allowGeolocationRequest should be async API
4455        https://bugs.webkit.org/show_bug.cgi?id=41364
4456
4457        Provides a new async API for geolocation permission. Using
4458        Notification API approach from qtwebkit. GeolocationPermissionClientQt
4459        maintains list of pending requests from WebCore and intimates them
4460        when client either allowes/denies the request. Also implements
4461        ChromeClientQt::cancelGeolocationPermissionRequestForFrame.
4462
4463        * Api/qwebpage.cpp:
4464        (QWebPage::setUserPermission):
4465        * Api/qwebpage.h:
4466        * WebCoreSupport/ChromeClientQt.cpp:
4467        (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
4468        (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
4469        * WebCoreSupport/ChromeClientQt.h:
4470        * WebCoreSupport/GeolocationPermissionClientQt.cpp: Added.
4471        (WebCore::GeolocationPermissionClientQt::geolocationPermissionClient):
4472        (WebCore::GeolocationPermissionClientQt::GeolocationPermissionClientQt):
4473        (WebCore::GeolocationPermissionClientQt::~GeolocationPermissionClientQt):
4474        (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
4475        (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
4476        (WebCore::GeolocationPermissionClientQt::setPermission):
4477        * WebCoreSupport/GeolocationPermissionClientQt.h: Added.
4478        * tests/qwebpage/tst_qwebpage.cpp:
4479        (JSTestPage::requestPermission):
4480        (tst_QWebPage::geolocationRequestJS):
4481
44822010-08-31  Dave Hyatt  <hyatt@apple.com>
4483
4484        Reviewed by Sam Weinig.
4485
4486        https://bugs.webkit.org/show_bug.cgi?id=44863, disentangle style recalc from layout, so that
4487        the former can occur in more places without having to do the latter.
4488
4489        * Api/qwebelement.cpp:
4490        (QWebElement::render):
4491        * Api/qwebframe.cpp:
4492        (QWebFramePrivate::renderRelativeCoords):
4493
44942010-08-31  Benjamin Poulain  <benjamin.poulain@nokia.com>
4495
4496        Reviewed by Kenneth Rohde Christiansen.
4497
4498        [Qt] tst_QWebPage::originatingObjectInNetworkRequests() fails on trunk
4499        https://bugs.webkit.org/show_bug.cgi?id=45001
4500
4501        Fix the test, we should not use data encoded URL since we are not
4502        setting an URL but setting the substituteData directly.
4503
4504        * tests/qwebpage/tst_qwebpage.cpp:
4505        (tst_QWebPage::originatingObjectInNetworkRequests):
4506
45072010-08-31  Benjamin Poulain  <benjamin.poulain@nokia.com>
4508
4509        Reviewed by Kenneth Rohde Christiansen.
4510
4511        JSC TimeoutChecker::didTimeOut overflows on ARM
4512        https://bugs.webkit.org/show_bug.cgi?id=38538
4513
4514        Re-enabled the test that was skipped for Maemo 5.
4515
4516        * tests/qwebpage/tst_qwebpage.cpp:
4517        (tst_QWebPage::infiniteLoopJS):
4518
45192010-08-30  Sheriff Bot  <webkit.review.bot@gmail.com>
4520
4521        Unreviewed, rolling out r66198.
4522        http://trac.webkit.org/changeset/66198
4523        https://bugs.webkit.org/show_bug.cgi?id=44856
4524
4525        It made tests crash on Qt bot (Requested by Ossy_ on #webkit).
4526
4527        * WebCoreSupport/InspectorClientQt.cpp:
4528        (WebCore::InspectorClientQt::inspectorDestroyed):
4529        (WebCore::InspectorClientQt::openInspectorFrontend):
4530        (WebCore::InspectorClientQt::releaseFrontendPage):
4531        (WebCore::InspectorFrontendClientQt::closeWindow):
4532        * WebCoreSupport/InspectorClientQt.h:
4533
45342010-08-28  Daniel Bates  <dbates@rim.com>
4535
4536        Attempt to fix the Qt Windows and Qt Linux Release minimal builds
4537        after changeset 66297 <http://trac.webkit.org/changeset/66297>.
4538
4539        * Api/qwebplugindatabase.cpp:
4540        (QWebPluginDatabase::plugins): Wrap the call to PluginPackage::ensurePluginLoaded
4541        in #if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE).
4542
45432010-08-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
4544
4545        Reviewed by Antonio Gomes.
4546
4547        [Qt] tst_QWebView::focusInputTypes() fails on MeeGo Handset with WebKit 2.1
4548        https://bugs.webkit.org/show_bug.cgi?id=44761
4549
4550        Make the test more robust to changes in the execution environment. The click
4551        are now correctly simulated, and the position are determined from the content.
4552
4553        The test also create the view and page on the stack to avoid the leak when the
4554        test is failing.
4555
4556        * tests/qwebview/tst_qwebview.cpp:
4557        (tst_QWebView::focusInputTypes):
4558
45592010-08-27  Kimmo Kinnunen  <kimmo.t.kinnunen@nokia.com>
4560
4561        Reviewed by Kenneth Rohde Christiansen.
4562
4563        [Qt] Cache plugin info to a persistent database
4564
4565        https://bugs.webkit.org/show_bug.cgi?id=43179
4566
4567        Implement a cache of NPAPI plugin metadata. Write the metadata to aa
4568        file that gets rewritten if any plugin is added / removed.  Compilation
4569        of the feature is controlled by #if ENABLE(NETSCAPE_PLUGIN_METADATA_CACHE)
4570
4571        Currently only enabled for Qt UNIX flavors.
4572
4573        * Api/qwebplugindatabase.cpp:
4574        (QWebPluginDatabase::plugins):  Match previous behavior: ensure all returned plugins are loaded.
4575        * Api/qwebsettings.cpp:
4576        (QWebSettings::enablePersistentStorage): Set plugin cache path.
4577
45782010-08-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
4579
4580        Reviewed by Kenneth Rohde Christiansen.
4581
4582        [Qt] tst_QWebFrame::inputFieldFocus() fails on MeeGo Handset with QtWebKit 2.1
4583        https://bugs.webkit.org/show_bug.cgi?id=44703
4584
4585        Make the test more robust to changes in the execution environment.
4586        The position where the mouse events are sent is now computed from the element geometry,
4587        this make the test less dependent on the fonts.
4588
4589        The test now also make sure the window manager mapped the window on screen
4590        before attempting to send the events.
4591
4592        * tests/qwebframe/tst_qwebframe.cpp:
4593
45942010-08-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
4595
4596        Reviewed by Kenneth Rohde Christiansen.
4597
4598        [Qt] tst_QWebFrame::hitTestContent() fails on Meego Handset
4599        https://bugs.webkit.org/show_bug.cgi?id=44701
4600
4601        Make the test more robust. The position of the text is not relying
4602        on the size of the fonts anymore.
4603
4604        * tests/qwebframe/tst_qwebframe.cpp:
4605
46062010-08-26  Antonio Gomes  <tonikitoo@webkit.org>
4607
4608        Reviewed by Simon Hausmann.
4609
4610        [Qt] Add support for automatically creating new windows in QWebView
4611        https://bugs.webkit.org/show_bug.cgi?id=29847
4612
4613        Improved the documentation of createWindow methods of both QWebView and
4614        QWebPage by mentioning that for any of them be called, QWebSettings'
4615        JavaScriptCanOpenWindows attribute must be set to true.
4616
4617        * Api/qwebpage.cpp:
4618        * Api/qwebview.cpp:
4619
46202010-08-27  Yury Semikhatsky  <yurys@chromium.org>
4621
4622        Reviewed by Pavel Feldman.
4623
4624        REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
4625        https://bugs.webkit.org/show_bug.cgi?id=44230
4626
4627        * WebCoreSupport/InspectorClientQt.cpp:
4628        (WebCore::InspectorClientQt::inspectorDestroyed):
4629        (WebCore::InspectorClientQt::openInspectorFrontend):
4630        (WebCore::InspectorClientQt::releaseFrontendPage):
4631        (WebCore::InspectorFrontendClientQt::closeWindow):
4632        (WebCore::InspectorFrontendClientQt::disconnectFromBackend):
4633        (WebCore::InspectorFrontendClientQt::destroyInspectorView):
4634        (WebCore::InspectorFrontendClientQt::inspectorClientDestroyed):
4635        * WebCoreSupport/InspectorClientQt.h:
4636
46372010-08-26  Girish Ramakrishnan  <girish@forwardbias.in>
4638
4639        Reviewed by Antonio Gomes.
4640
4641        [Qt] Remove dead code.
4642
4643        * WebCoreSupport/ChromeClientQt.cpp:
4644        (WebCore::ChromeClientQt::statusbarVisible):
4645
46462010-08-26  Yury Semikhatsky  <yurys@chromium.org>
4647
4648        Unreviewed. Revert r66103 since Qt tests are failing.
4649
4650        * WebCoreSupport/InspectorClientQt.cpp:
4651        (WebCore::InspectorFrontendClientQt::closeWindow):
4652        * WebCoreSupport/InspectorClientQt.h:
4653
46542010-08-26  Yury Semikhatsky  <yurys@chromium.org>
4655
4656        Reviewed by Pavel Feldman.
4657
4658        REGRESSION: Crash occurs at objc_msgSend when closing a window that is displaying the web inspector
4659        https://bugs.webkit.org/show_bug.cgi?id=44230
4660
4661        * WebCoreSupport/InspectorClientQt.cpp:
4662        (WebCore::InspectorFrontendClientQt::closeWindow):
4663        (WebCore::InspectorFrontendClientQt::disconnectFromBackend):
4664        (WebCore::InspectorFrontendClientQt::destroyInspectorView):
4665        * WebCoreSupport/InspectorClientQt.h:
4666
46672010-08-26  Benjamin Poulain  <benjamin.poulain@nokia.com>
4668
4669        Reviewed by Simon Hausmann.
4670
4671        [Qt] tst_QWebFrame::popupFocus() hardcode the element position
4672        https://bugs.webkit.org/show_bug.cgi?id=44674
4673
4674        This patch dynamically find the position of the combo element instead
4675        of hardcoding a position to click.
4676
4677        * tests/qwebframe/tst_qwebframe.cpp:
4678
46792010-08-25  Leo Yang  <leo.yang@torchmobile.com.cn>
4680
4681        Reviewed by Simon Hausmann.
4682
4683        In FrameLoaderClientQt::createFrame we should call loadURLIntoChildFrame
4684        with parent frame's loader instead of child frame's loader.
4685        https://bugs.webkit.org/show_bug.cgi?id=43930
4686
4687        * WebCoreSupport/FrameLoaderClientQt.cpp:
4688        (WebCore::FrameLoaderClientQt::createFrame):
4689
46902010-08-25  Gabor Loki  <loki@webkit.org>
4691
4692        Reviewed by Gavin Barraclough.
4693
4694        Avoid increasing required alignment of target type warning
4695        https://bugs.webkit.org/show_bug.cgi?id=43963
4696
4697        Fix alignment warnings on Qt.
4698
4699        * Api/qwebelement.cpp:
4700        (QWebElement::evaluateJavaScript):
4701        * Api/qwebframe.cpp:
4702        (QWebFrame::addToJavaScriptWindowObject):
4703
47042010-08-24  Andras Becsi  <abecsi@inf.u-szeged.hu>
4705
4706        Reviewed by Simon Hausmann.
4707
4708        [Qt] Fix predeclared variables for Symbian to be able to build QtWebKit for Symbian on Linux.
4709
4710        * Api/DerivedSources.pro:
4711
47122010-08-20  Girish Ramakrishnan  <girish@forwardbias.in>
4713
4714        Reviewed by Ariya Hidayat.
4715
4716        [Qt] Allow wmode=transparent in QWebView on Maemo5 after r65775.
4717
4718        https://bugs.webkit.org/show_bug.cgi?id=44043
4719
4720        * WebCoreSupport/FrameLoaderClientQt.cpp:
4721        (WebCore::FrameLoaderClientQt::createPlugin):
4722
47232010-08-22  Marc Mutz  <marc.mutz@kdab.com>
4724
4725        Reviewed by Antonio Gomes.
4726
4727        [Qt] Actually emit the QWebView::selectionChanged() signal
4728
4729        https://bugs.webkit.org/show_bug.cgi?id=44252
4730
4731        * Api/qwebview.cpp:
4732        (QWebView::setPage): Connect QWebPage::selectionChanged() to QWebView::selectionChanged()
4733
47342010-08-20  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
4735
4736        Reviewed by Ariya Hidayat.
4737
4738        [Qt] constify core() and kit() parameters
4739        https://bugs.webkit.org/show_bug.cgi?id=44347
4740
4741        * Api/qwebframe.cpp:
4742        (QWebFrame::evaluateJavaScript):
4743        * Api/qwebframe_p.h:
4744        * Api/qwebhistory.cpp:
4745        (QWebHistoryItemPrivate::core):
4746        * Api/qwebhistory_p.h:
4747        * Api/qwebpage.cpp:
4748        (QWebPagePrivate::core):
4749        * Api/qwebpage_p.h:
4750
47512010-08-19  Balazs Kelemen  <kb@inf.u-szeged.hu>
4752
4753        Reviewed by Antonio Gomes.
4754
4755        [Qt] Fix cursor change propagation
4756        https://bugs.webkit.org/show_bug.cgi?id=44250
4757
4758        * WebCoreSupport/ChromeClientQt.cpp:
4759        (WebCore::ChromeClientQt::setCursor): Implemented. Propagete the callback forward to the PageClient.
4760
47612010-08-19  David Kilzer  <ddkilzer@apple.com>
4762
4763        BUILD FIX #3: <http://webkit.org/b/44285> Fix compilation with NETSCAPE_PLUGIN_API disabled
4764
4765        Still trying to make Qt Linux Release minimal buildbot happy.
4766
4767        * WebCoreSupport/FrameLoaderClientQt.cpp:
4768        (WebCore::FrameLoaderClientQt::createPlugin): Wrap code that
4769        handles Netscape plugins in #if ENABLE(NETSCAPE_PLUGIN_API)
4770        and #endif.
4771
47722010-08-19  David Kilzer  <ddkilzer@apple.com>
4773
4774        BUILD FIX: FrameLoaderClientQt.h should include ResourceError.h
4775
4776        * WebCoreSupport/FrameLoaderClientQt.h: Include ResourceError.h.
4777
47782010-08-19  Girish Ramakrishnan  <girish@forwardbias.in>
4779
4780        Reviewed by Kenneth Christiansen.
4781
4782        [Qt] Inject wmode=opaque for both QWebView and QGraphicsWebView on Maemo5
4783        as Flash XEmbed support is flaky.
4784
4785        https://bugs.webkit.org/show_bug.cgi?id=44043
4786
4787        * WebCoreSupport/FrameLoaderClientQt.cpp:
4788        (WebCore::FrameLoaderClientQt::createPlugin):
4789
47902010-08-18  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
4791
4792        Unreviewed, trivial Symbian build fix.
4793
4794        [Qt] Remove unnecessary QtGui include from NotificationPresenterClientQt.cpp
4795
4796        * WebCoreSupport/NotificationPresenterClientQt.cpp:
4797
47982010-08-17  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
4799
4800        Reviewed by Ariya Hidayat.
4801
4802        [Qt] [Symbian] Consistently use Q_OS_SYMBIAN to guard all Symbian platform dependencies
4803        https://bugs.webkit.org/show_bug.cgi?id=44124
4804
4805        Q_WS_S60 is not defined for Symbian^4 devices as Q_WS_S60 used to guard
4806        Avkon UI framework dependencies. Use Q_OS_SYMBIAN everywhere to mark
4807        Symbian dependencies.
4808
4809        * WebCoreSupport/QtFallbackWebPopup.cpp:
4810        (WebCore::QtFallbackWebPopup::populate):
4811
48122010-08-17  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
4813
4814        Reviewed by Darin Adler.
4815
4816        Add NetworkingContext to avoid layer violations
4817        https://bugs.webkit.org/show_bug.cgi?id=42292
4818
4819        Preparation: Just add the files to the build system.
4820
4821        * WebCoreSupport/FrameNetworkingContextQt.cpp: Added.
4822        Empty placeholder for now.
4823        * WebCoreSupport/FrameNetworkingContextQt.h: Added.
4824        Placeholder with tentative code that might be changed when landing
4825        the rest of it.
4826
48272010-08-17  Hui Huang  <hui.2.huang@nokia.com>
4828
4829        Reviewed by Laszlo Gombos.
4830
4831        [Qt] Fix ARM5 compiling error in FrameLoaderClientQt.cpp
4832        https://bugs.webkit.org/show_bug.cgi?id=43927
4833
4834        In the Symbian build chain QT_USE_FAST_OPERATOR_PLUS is defined,
4835        which means that the '+' will automatically be performed as the
4836        QStringBuilder '%'. Create a QString explicitly to make sure that
4837        toLocal8bit() member is available that the qPrintable Macro uses.
4838
4839        * WebCoreSupport/FrameLoaderClientQt.cpp:
4840        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
4841
48422010-08-16  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
4843
4844        Reviewed by Kenneth Christiansen.
4845
4846        [Qt] Implement ChromeClient's windowToScreen() and screenToWindow()
4847
4848        * WebCoreSupport/ChromeClientQt.cpp:
4849
48502010-08-14  Adam Barth  <abarth@webkit.org>
4851
4852        Propagate name change to Qt.
4853
4854        * Api/qwebelement.cpp:
4855        (QWebElement::appendInside):
4856        (QWebElement::prependInside):
4857        (QWebElement::prependOutside):
4858        (QWebElement::appendOutside):
4859        (QWebElement::encloseContentsWith):
4860        (QWebElement::encloseWith):
4861
48622010-08-12  Jeremy Orlow  <jorlow@chromium.org>
4863
4864        Revert for now
4865        https://bugs.webkit.org/show_bug.cgi?id=43794
4866
4867        * Api/qwebsettings.cpp:
4868        (QWebSettingsPrivate::apply):
4869
48702010-08-11  Jeremy Orlow  <jorlow@chromium.org>
4871
4872        Reviewed by Adam Barth.
4873
4874        Some settings are linked to the PageGroup not the Page.  Create a new class for those.
4875        https://bugs.webkit.org/show_bug.cgi?id=43794
4876
4877        Change WebSettings to use the new GroupSettings class rather than Settings for the
4878        settings that moved.  This is sub-optimal since the settings aren't really
4879        per-view, but I don't see how we can change the API at this point.
4880
4881        * Api/qwebsettings.cpp:
4882        (QWebSettingsPrivate::apply):
4883
48842010-08-11  Simon Hausmann  <simon.hausmann@nokia.com>
4885
4886        [Qt] Update the Symbian def files
4887
4888        Re-freeze with various QGraphicsWebView and DRT updates.
4889        The uppper part of the diff is just whitespace, so
4890        diff -w will show the real diff.
4891
4892        * symbian/eabi/QtWebKitu.def:
4893
48942010-08-10  Anders Bakken  <agbakken@gmail.com>
4895
4896        Reviewed by Kenneth Rohde Christiansen.
4897
4898        [Qt] Don't connect to microFocusChanged() if _q_updateMicroFocus is a noop.
4899        https://bugs.webkit.org/show_bug.cgi?id=40580
4900
4901        _q_updateMicroFocus() is a noop unless this ifdef evaluates to true:
4902        #if !defined(QT_NO_IM) && (defined(Q_WS_X11) || defined(Q_WS_QWS) || defined(Q_OS_SYMBIAN))
4903
4904        In such cases there's no need to carry the overhead of the extra
4905        signal/slot connection.
4906
4907        * Api/qgraphicswebview.cpp:
4908        (QGraphicsWebViewPrivate::_q_updateMicroFocus):
4909        (QGraphicsWebView::setPage):
4910
49112010-08-10  Chris Marrin  <cmarrin@apple.com>
4912
4913        Reviewed by Oliver Hunt.
4914
4915        Add suspendAnimations/resumeAnimation API to DRT
4916        https://bugs.webkit.org/show_bug.cgi?id=43733
4917
4918        Qt specific API. Missing symbian symbol defines in:
4919
4920            WebKit/qt/symbian/bwins/QtWebKitu.def
4921            WebKit/qt/symbian/eabi/QtWebKitu.def
4922
4923        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
4924        (DumpRenderTreeSupportQt::suspendAnimations):
4925        (DumpRenderTreeSupportQt::resumeAnimations):
4926        * WebCoreSupport/DumpRenderTreeSupportQt.h:
4927
49282010-08-06  Gavin Barraclough  <barraclough@apple.com>
4929
4930        Rubber stamped by Sam Weinig
4931
4932        Bug 43594 - Add string forwards to Forward.h
4933        This allows us to remove forward declarations for these classes from
4934        WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
4935
4936        * WebCoreSupport/FrameLoaderClientQt.h:
4937        * WebCoreSupport/InspectorClientQt.h:
4938
49392010-08-08  Ariya Hidayat  <ariya@sencha.com>
4940
4941        Reviewed by Antonio Gomes.
4942
4943        Inconsistent Qt version checks
4944        https://bugs.webkit.org/show_bug.cgi?id=43695
4945
4946        Use QT_VERSION_CHECK macro instead of encoded hex.
4947
4948        * Api/qgraphicswebview.cpp:
4949        (QGraphicsWebView::QGraphicsWebView):
4950        (QGraphicsWebViewPrivate::detachCurrentPage):
4951        * Api/qwebframe.cpp:
4952        (QWebFrame::load):
4953        * Api/qwebpage.cpp:
4954        (QWebPagePrivate::QWebPagePrivate):
4955        (QWebPagePrivate::inputMethodEvent):
4956        (QWebPage::inputMethodQuery):
4957        (QWebPage::view):
4958        * Api/qwebview.cpp:
4959        (QWebViewPrivate::detachCurrentPage):
4960        * WebCoreSupport/EditorClientQt.cpp:
4961        (WebCore::EditorClientQt::setInputMethodState):
4962        * WebCoreSupport/FrameLoaderClientQt.cpp:
4963        (WebCore::FrameLoaderClientQt::createPlugin):
4964        * WebCoreSupport/PageClientQt.cpp:
4965        * WebCoreSupport/PageClientQt.h:
4966
49672010-08-06  Jessie Berlin  <jberlin@apple.com>
4968
4969        Roll out http://trac.webkit.org/changeset/64801, which broke the Safari Windows Build.
4970        Unreviewed.
4971
4972        * WebCoreSupport/FrameLoaderClientQt.h:
4973        * WebCoreSupport/InspectorClientQt.h:
4974
49752010-08-06  Luiz Agostini  <luiz.agostini@openbossa.org>
4976
4977        Reviewed by Kenneth Rohde Christiansen.
4978
4979        [Qt] Move Qt's popup menu implementation from WebCore to WebKit layer
4980        https://bugs.webkit.org/show_bug.cgi?id=43427
4981
4982        After PopupMenu changes in bug 42592 class QtAbstractWebPopup became unecessary and
4983        there is no need to keep any Qt specific code for popup menus in WebCore/platform/qt.
4984
4985        PopupMenuQt has been moved from WebCore/platform/qt to WebKit/qt/WebCoreSupport and
4986        assumed the responsibilities of QtAbstractWebPopup. SearchPopupMenuQt has been moved
4987        to WebKit/qt/WebCoreSupport as well.
4988
4989        All classes that previously inherited from QtAbstractWebPopup now inherit from
4990        QWebSelectMethod and QtPlatformPlugin's method createSelectInputMethod now returns an
4991        instance of class QWebSelectMethod instead of QtAbstractWebPopup.
4992
4993        * WebCoreSupport/ChromeClientQt.cpp:
4994        (WebCore::ChromeClientQt::createSelectPopup):
4995        (WebCore::ChromeClientQt::createPopupMenu):
4996        (WebCore::ChromeClientQt::createSearchPopupMenu):
4997        * WebCoreSupport/ChromeClientQt.h:
4998        * WebCoreSupport/PopupMenuQt.cpp: Added.
4999        (SelectData::SelectData):
5000        (SelectData::itemText):
5001        (SelectData::itemToolTip):
5002        (SelectData::itemIsEnabled):
5003        (SelectData::itemCount):
5004        (SelectData::itemIsSelected):
5005        (SelectData::multiple):
5006        (SelectData::itemType):
5007        (WebCore::PopupMenuQt::PopupMenuQt):
5008        (WebCore::PopupMenuQt::~PopupMenuQt):
5009        (WebCore::PopupMenuQt::disconnectClient):
5010        (WebCore::PopupMenuQt::show):
5011        (WebCore::PopupMenuQt::didHide):
5012        (WebCore::PopupMenuQt::hide):
5013        (WebCore::PopupMenuQt::updateFromElement):
5014        (WebCore::PopupMenuQt::selectItem):
5015        * WebCoreSupport/PopupMenuQt.h: Added.
5016        * WebCoreSupport/QtFallbackWebPopup.cpp:
5017        (WebCore::QtFallbackWebPopupCombo::hidePopup):
5018        (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
5019        (WebCore::QtFallbackWebPopup::show):
5020        (WebCore::QtFallbackWebPopup::populate):
5021        (WebCore::QtFallbackWebPopup::activeChanged):
5022        (WebCore::QtFallbackWebPopup::pageClient):
5023        * WebCoreSupport/QtFallbackWebPopup.h:
5024        (WebCore::QtFallbackWebPopup::setGeometry):
5025        (WebCore::QtFallbackWebPopup::geometry):
5026        (WebCore::QtFallbackWebPopup::setFont):
5027        (WebCore::QtFallbackWebPopup::font):
5028        * WebCoreSupport/QtMaemoWebPopup.cpp:
5029        (WebCore::Maemo5Popup::populateList):
5030        (WebCore::QtMaemoWebPopup::QtMaemoWebPopup):
5031        (WebCore::QtMaemoWebPopup::createSingleSelectionPopup):
5032        (WebCore::QtMaemoWebPopup::createMultipleSelectionPopup):
5033        (WebCore::QtMaemoWebPopup::createPopup):
5034        (WebCore::QtMaemoWebPopup::show):
5035        (WebCore::QtMaemoWebPopup::popupClosed):
5036        (WebCore::QtMaemoWebPopup::itemClicked):
5037        (WebCore::Maemo5SingleSelectionPopup::Maemo5SingleSelectionPopup):
5038        (WebCore::Maemo5MultipleSelectionPopup::Maemo5MultipleSelectionPopup):
5039        * WebCoreSupport/QtMaemoWebPopup.h:
5040        (WebCore::Maemo5Popup::Maemo5Popup):
5041        * WebCoreSupport/QtPlatformPlugin.cpp:
5042        (WebCore::QtPlatformPlugin::createSelectInputMethod):
5043        * WebCoreSupport/QtPlatformPlugin.h:
5044        * WebCoreSupport/SearchPopupMenuQt.cpp: Added.
5045        (WebCore::SearchPopupMenuQt::SearchPopupMenuQt):
5046        (WebCore::SearchPopupMenuQt::popupMenu):
5047        (WebCore::SearchPopupMenuQt::saveRecentSearches):
5048        (WebCore::SearchPopupMenuQt::loadRecentSearches):
5049        (WebCore::SearchPopupMenuQt::enabled):
5050        * WebCoreSupport/SearchPopupMenuQt.h: Added.
5051
50522010-08-06  Kenneth Rohde Christiansen  <kenneth@webkit.org>
5053
5054        Reviewed by Antonio Gomes.
5055
5056        [Qt] Add support for the Android viewport meta tag extensions.
5057        http://webkit.org/b/43567
5058
5059        * Api/qwebpage.h:
5060        * WebCoreSupport/ChromeClientQt.cpp:
5061        (WebCore::ChromeClientQt::didReceiveViewportArguments):
5062
50632010-08-05  Gavin Barraclough  <barraclough@apple.com>
5064
5065        Rubber stamped by Sam Weinig
5066
5067        Bug 43594 - Add string forwards to Forward.h
5068        This allows us to remove forward declarations for these classes from
5069        WebCore/WebKit (a step in moving these class from WebCore:: to WTF::).
5070
5071        * WebCoreSupport/FrameLoaderClientQt.h:
5072        * WebCoreSupport/InspectorClientQt.h:
5073
50742010-08-05  Simon Hausmann  <simon.hausmann@nokia.com>
5075
5076        Reviewed by Tor Arne Vestbø.
5077
5078        [Qt] Clean up the input method handling
5079        https://bugs.webkit.org/show_bug.cgi?id=43545
5080
5081        Replace the way of individually setting input method hints by
5082        many calls to QWidget::setInputMethodHints with one single call.
5083
5084        This is more efficient by requiring less updates in the input
5085        method hint.
5086
5087        * WebCoreSupport/EditorClientQt.cpp:
5088        (WebCore::EditorClientQt::setInputMethodState):
5089        * WebCoreSupport/PageClientQt.cpp:
5090        (WebCore::PageClientQWidget::setInputMethodHints):
5091        (WebCore::PageClientQGraphicsWidget::setInputMethodHints):
5092        * WebCoreSupport/PageClientQt.h:
5093
50942010-08-05  David Leong  <david.leong@nokia.com>
5095
5096        Reviewed by Simon Hausmann.
5097
5098        [Qt] Input mode states are not reset after entering a password field
5099        https://bugs.webkit.org/show_bug.cgi?id=43530
5100
5101        Input mode hints are not reset if clicking on password <input> elements then
5102        clicking on <textarea> elements
5103
5104        * WebCoreSupport/EditorClientQt.cpp:
5105        (WebCore::EditorClientQt::setInputMethodState):
5106        * tests/qwebview/resources/input_types.html:
5107        * tests/qwebview/tst_qwebview.cpp:
5108        (tst_QWebView::focusInputTypes):
5109
5110
51112010-08-04  Pierre Rossi  <pierre.rossi@nokia.com>
5112
5113        Reviewed by Antonio Gomes.
5114
5115        [Qt] QWebFrame::setContent() does not respect charset provided in the mimeType
5116        https://bugs.webkit.org/show_bug.cgi?id=43125
5117
5118        * Api/qwebframe.cpp:
5119        (QWebFrame::setContent):
5120        * tests/qwebframe/tst_qwebframe.cpp:
5121
51222010-08-03  Noam Rosenthal  <noam.rosenthal@nokia.com>
5123
5124        Reviewed by Kenneth Rohde Christiansen.
5125
5126        [Qt] Edits to bridge documentation
5127        https://bugs.webkit.org/show_bug.cgi?id=43012
5128
5129        * docs/qtwebkit-bridge.qdoc:
5130        * docs/webkitsnippets/qtwebkit_bridge_snippets.cpp:
5131        (wrapInFunction):
5132
51332010-08-03  Kim Grönholm  <kim.1.gronholm@nokia.com>
5134
5135        Reviewed by Simon Hausmann.
5136
5137        [Qt] Platform plugin interface for Haptics
5138        https://bugs.webkit.org/show_bug.cgi?id=43143
5139
5140        Platform plugin interface for playing haptic feedback
5141
5142        * Api/qwebkitplatformplugin.h:
5143        (QWebHapticFeedbackPlayer::):
5144        (QWebKitPlatformPlugin::):
5145        * examples/platformplugin/WebPlugin.h:
5146        (WebPlugin::createHapticFeedbackPlayer):
5147        * examples/platformplugin/qwebkitplatformplugin.h:
5148        (QWebHapticFeedbackPlayer::):
5149        (QWebKitPlatformPlugin::):
5150
51512010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
5152
5153        Reviewed by Darin Fisher.
5154
5155        PopupMenu refactoring in preparation to WebKit2
5156        https://bugs.webkit.org/show_bug.cgi?id=42592
5157
5158        As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
5159        instances, concrete classes that inherit from ChromeClient needed to be changed to
5160        implement the new methods.
5161
5162        * WebCoreSupport/ChromeClientQt.cpp:
5163        (WebCore::ChromeClientQt::selectItemWritingDirectionIsNatural):
5164        (WebCore::ChromeClientQt::createPopupMenu):
5165        (WebCore::ChromeClientQt::createSearchPopupMenu):
5166        * WebCoreSupport/ChromeClientQt.h:
5167
51682010-08-02  Jeremy Orlow  <jorlow@chromium.org>
5169
5170        Speculative revert of 64425 due to Chromium instability
5171        https://bugs.webkit.org/show_bug.cgi?id=43347
5172
5173        * WebCoreSupport/ChromeClientQt.cpp:
5174        * WebCoreSupport/ChromeClientQt.h:
5175
51762010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
5177
5178        Reviewed by Darin Fisher.
5179
5180        PopupMenu refactoring in preparation to WebKit2
5181        https://bugs.webkit.org/show_bug.cgi?id=42592
5182
5183        As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
5184        instances, concrete classes that inherit from ChromeClient needed to be changed to
5185        implement the new methods.
5186
5187        * WebCoreSupport/ChromeClientQt.cpp:
5188        (WebCore::ChromeClientQt::selectItemWritingDirectionIsNatural):
5189        (WebCore::ChromeClientQt::createPopupMenu):
5190        (WebCore::ChromeClientQt::createSearchPopupMenu):
5191        * WebCoreSupport/ChromeClientQt.h:
5192
51932010-07-31  Sheriff Bot  <webkit.review.bot@gmail.com>
5194
5195        Unreviewed, rolling out r64422.
5196        http://trac.webkit.org/changeset/64422
5197        https://bugs.webkit.org/show_bug.cgi?id=43304
5198
5199        Build fixes are needed for Snow Leopard and Windows.
5200        (Requested by lca on #webkit).
5201
5202        * WebCoreSupport/ChromeClientQt.cpp:
5203        * WebCoreSupport/ChromeClientQt.h:
5204
52052010-07-27  Luiz Agostini  <luiz.agostini@openbossa.org>
5206
5207        Reviewed by Darin Fisher.
5208
5209        PopupMenu refactoring in preparation to WebKit2
5210        https://bugs.webkit.org/show_bug.cgi?id=42592
5211
5212        As ChromeClient was made responsible for providing PopupMenu and SearchPopupMenu
5213        instances, concrete classes that inherit from ChromeClient needed to be changed to
5214        implement the new methods.
5215
5216        * WebCoreSupport/ChromeClientQt.cpp:
5217        (WebCore::ChromeClientQt::selectItemWritingDirectionIsNatural):
5218        (WebCore::ChromeClientQt::createPopupMenu):
5219        (WebCore::ChromeClientQt::createSearchPopupMenu):
5220        * WebCoreSupport/ChromeClientQt.h:
5221
52222010-07-30  Luiz Agostini  <luiz.agostini@openbossa.org>
5223
5224        Reviewed by Simon Fraser.
5225
5226        Enabling view modes to all platforms
5227        https://bugs.webkit.org/show_bug.cgi?id=37505
5228
5229        As view mode media feature is now supported by WebCore there is no need
5230        to keep its implementation here. QtWebKit now uses WebCore's view mode media feature
5231        implementation.
5232
5233        * Api/qwebpage.cpp:
5234        (QWebPagePrivate::dynamicPropertyChangeEvent):
5235        * Api/qwebpage_p.h:
5236        * WebCoreSupport/ChromeClientQt.cpp:
5237        * WebCoreSupport/ChromeClientQt.h:
5238
52392010-07-30  Joseph Pecoraro  <joepeck@webkit.org>
5240
5241        Reviewed by David Kilzer.
5242
5243        Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
5244        https://bugs.webkit.org/show_bug.cgi?id=40627
5245
5246        * WebCoreSupport/ChromeClientQt.cpp:
5247        (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
5248        * WebCoreSupport/ChromeClientQt.h:
5249
52502010-07-29  Alexis Menard  <alexis.menard@nokia.com>
5251
5252        Reviewed by Antonio Gomes.
5253
5254        QWebFrame and QWebView documentation fix.
5255
5256        The QWebFrame and the QWebView setHtml() methods are a bit confusing.
5257        There are a few registered bugs in Webkit's bugzilla that source is
5258        in a bad usage of the function.
5259        Additional information were added.
5260
5261        https://bugs.webkit.org/show_bug.cgi?id=31115
5262
5263        * Api/qgraphicswebview.cpp:
5264        * Api/qwebframe.cpp:
5265        * Api/qwebview.cpp:
5266
52672010-07-28  Kim Grönholm  <kim.1.gronholm@nokia.com>
5268
5269        Reviewed by Antonio Gomes.
5270
5271        [Qt] Decouple QTouchEvent's accepted flag from JS prevent default
5272        https://bugs.webkit.org/show_bug.cgi?id=42892
5273
5274        Added comments to the touch event handling code.
5275
5276        * Api/qgraphicswebview.cpp:
5277        (QGraphicsWebView::sceneEvent):
5278        * Api/qwebpage.cpp:
5279        (QWebPagePrivate::touchEvent):
5280        (QWebPage::event):
5281        * Api/qwebpage_p.h:
5282        * Api/qwebview.cpp:
5283        (QWebView::event):
5284
52852010-07-26  Steve Block  <steveblock@google.com>
5286
5287        Reviewed by Jeremy Orlow.
5288
5289        Page clients should be passed to Page constructor via structure of pointers
5290        https://bugs.webkit.org/show_bug.cgi?id=42834
5291
5292        * Api/qwebpage.cpp:
5293        (QWebPagePrivate::QWebPagePrivate):
5294
52952010-07-27  Simon Hausmann  <simon.hausmann@nokia.com>
5296
5297        Reviewed by Tor Arne Vestbø.
5298
5299        [Qt] Incorrect input method hints
5300        https://bugs.webkit.org/show_bug.cgi?id=43037
5301
5302        Properly set or reset all input method hints when
5303        activating input fields.
5304
5305        * WebCoreSupport/EditorClientQt.cpp:
5306        (WebCore::EditorClientQt::setInputMethodState):
5307        * tests/qwebview/tst_qwebview.cpp:
5308        (tst_QWebView::focusInputTypes): Extended unit test to verify that we
5309        reset hints.
5310
53112010-07-27  Kim Grönholm  <kim.1.gronholm@nokia.com>
5312
5313        Reviewed by Simon Hausmann.
5314
5315        [Qt] Decouple QTouchEvent's accepted flag from JS prevent default
5316        https://bugs.webkit.org/show_bug.cgi?id=42892
5317
5318        We need to always accept the QTouchEvents in order to get TouchUpdate and
5319        TouchEnd events. QWebPage::event() return value is used to indicate
5320        whether the default action was prevented for the touch events.
5321
5322        * Api/qgraphicswebview.cpp:
5323        (QGraphicsWebView::sceneEvent):
5324        * Api/qwebpage.cpp:
5325        (QWebPagePrivate::touchEvent):
5326        (QWebPage::event):
5327        * Api/qwebpage_p.h:
5328        * Api/qwebview.cpp:
5329        (QWebView::event):
5330
53312010-07-26  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
5332
5333        Reviewed by Simon Hausmann.
5334
5335        [Qt] Change default font from sans-serif to serif
5336
5337        This matches what other ports and browser engines do.
5338
5339        We now also use QFont's defaultFontFamily() to resolve the
5340        correct fonts for each platform. For Qt >= 4.7 we can take
5341        advantage of the new enums for generic font families.
5342
5343        * Api/qwebsettings.cpp:
5344
53452009-10-30  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
5346
5347        Reviewed by Kenneth Rohde Christiansen.
5348
5349        [Qt] Use the default timeout interval for JS as the HTML tokenizer delay for setHtml()
5350
5351        This ensures that long-running JavaScript (for example due to a modal alert() dialog),
5352        will not trigger a deferred load after only 500ms (the default tokenizer delay) while
5353        still giving a reasonable timeout (10 seconds) to prevent deadlock.
5354
5355        https://bugs.webkit.org/show_bug.cgi?id=29381
5356
5357        * Api/qwebframe.cpp: Document the behaviour
5358        * WebCoreSupport/FrameLoaderClientQt.cpp: set the custom tokenizer delay for substitute loads
5359        * tests/qwebframe/tst_qwebframe.cpp: Add test
5360
53612010-07-23  David Boddie  <dboddie@trolltech.com>
5362
5363        Reviewed by Simon Hausmann.
5364
5365        Doc: Fixed incorrect QML property type.
5366
5367        * declarative/qdeclarativewebview.cpp:
5368
53692010-07-23  Simon Hausmann  <simon.hausmann@nokia.com>
5370
5371        [Qt] Build fix for Qt apps
5372
5373        Add webkit to QT_CONFIG. qconfig.pri will read qt_webkit_version.pri and
5374        that's how it will pick up webkit in QT_CONFIG.
5375
5376        * qt_webkit_version.pri:
5377
53782010-07-22  Yael Aharon  <yael.aharon@nokia.com>
5379
5380        Reviewed by Laszlo Gombos.
5381
5382        [Qt] QtWebKit needs public API for Notifications.
5383        https://bugs.webkit.org/show_bug.cgi?id=41413
5384
5385        Remove DumpRenderTree private API and introduce new API.
5386        Also add support for informing the UI when a notification request is cancelled.
5387
5388        * Api/qwebpage.cpp:
5389        (QWebPage::setUserPermission):
5390        * Api/qwebpage.h:
5391        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5392        * WebCoreSupport/DumpRenderTreeSupportQt.h:
5393        * WebCoreSupport/NotificationPresenterClientQt.cpp:
5394        (WebCore::NotificationPresenterClientQt::requestPermission):
5395        (WebCore::NotificationPresenterClientQt::checkPermission):
5396        (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
5397        (WebCore::NotificationPresenterClientQt::allowNotificationForFrame):
5398        (WebCore::NotificationPresenterClientQt::toPage):
5399        (WebCore::NotificationPresenterClientQt::toFrame):
5400        * WebCoreSupport/NotificationPresenterClientQt.h:
5401
54022010-07-22  Jamey Hicks  <jamey.hicks@nokia.com>
5403
5404        Reviewed by Kenneth Rohde Christiansen.
5405
5406        [Qt] Enable binding of QObjects to JavaScript environment for inspector frontend
5407
5408        This patch enables QObjects to be bound to global variables in the
5409        javascript environment of the inspector frontend. This is useful
5410        for writing alternate inspector frontends in javascript which need
5411        additional native functionality. It's a lighter-weight alternative
5412        than using an NPAPI plugin.
5413
5414        The code which instantiates QWebInspector uses this by setting the
5415        dynamic property "q_inspectorJavaScriptWindowObjects" on the
5416        QWebInspector. The value of this property should be a
5417        QMap<QString,QVariant> mapping global variable name to QObject.
5418
5419        I have used this to add support for eclipse/chrome remote
5420        debugging in QtTestBrowser.
5421
5422        https://bugs.webkit.org/show_bug.cgi?id=41995
5423
5424        * WebCoreSupport/InspectorClientQt.cpp:
5425        (WebCore::InspectorClientWebPage::InspectorClientWebPage):
5426        (WebCore::InspectorClientWebPage::javaScriptWindowObjectCleared):
5427        (WebCore::InspectorClientQt::openInspectorFrontend):
5428
54292010-07-22  Simon Hausmann  <simon.hausmann@nokia.com>
5430
5431        [Qt] Library versioning.
5432
5433        2.1 is branched, trunk will become 2.2.
5434
5435        * Api/qwebkitglobal.h:
5436        * qt_webkit_version.pri:
5437
54382010-07-21  Brady Eidson  <beidson@apple.com>
5439
5440        Reviewed by Geoffrey Garen.
5441
5442        Break out "scheme registration" functionality from SecurityOrigin to a SchemeRegistry
5443        https://bugs.webkit.org/show_bug.cgi?id=42783
5444
5445        * Api/qwebpage.cpp:
5446        (QWebPage::acceptNavigationRequest):
5447        * Api/qwebsecurityorigin.cpp:
5448        (QWebSecurityOrigin::addLocalScheme):
5449        (QWebSecurityOrigin::removeLocalScheme):
5450        (QWebSecurityOrigin::localSchemes):
5451
54522010-07-20  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
5453
5454        [Qt] Add API to define device-width and height for use with the viewport meta tag
5455        https://bugs.webkit.org/show_bug.cgi?id=42597
5456
5457        Reviewed by Antonio Gomes.
5458
5459        Add a new API for setting the deviceSize for use in conjunction with
5460        out viewport meta tag API.
5461
5462        * Api/qgraphicswebview.cpp:
5463        (QGraphicsWebView::setDeviceSize):
5464        (QGraphicsWebView::deviceSize):
5465        * Api/qgraphicswebview.h:
5466        * WebCoreSupport/PageClientQt.cpp:
5467        (WebCore::PageClientQGraphicsWidget::windowRect):
5468        * WebCoreSupport/PageClientQt.h:
5469        (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
5470
54712010-07-20  Andreas Kling  <andreas.kling@nokia.com>
5472
5473        Reviewed by Kenneth Rohde Christiansen.
5474
5475        [Qt] DRT sideeffect revealed by r63657
5476        https://bugs.webkit.org/show_bug.cgi?id=42578
5477
5478        Don't set an automatic timeout for notifications when running in DRT.
5479        This fixes an issue with cancel() notifications in unrelated tests.
5480
5481        * WebCoreSupport/NotificationPresenterClientQt.cpp:
5482        (WebCore::NotificationPresenterClientQt::displayNotification):
5483
54842010-07-18  Andreas Kling  <andreas.kling@nokia.com>
5485
5486        Reviewed by Antonio Gomes.
5487
5488        [Qt] tst_QWebPage fails cursorMovements and textSelection
5489        https://bugs.webkit.org/show_bug.cgi?id=42531
5490
5491        Correct the HTML used by these tests.
5492
5493        * tests/qwebpage/tst_qwebpage.cpp:
5494        (tst_QWebPage::cursorMovements):
5495        (tst_QWebPage::textSelection):
5496        (tst_QWebPage::textEditing):
5497
54982010-07-18  Andreas Kling  <andreas.kling@nokia.com>
5499
5500        Reviewed by Antonio Gomes.
5501
5502        [Qt] tst_QWebElement fails firstChildNextSibling and lastChildPreviousSibling
5503        https://bugs.webkit.org/show_bug.cgi?id=42527
5504
5505        Correct the HTML used by these tests.
5506
5507        * tests/qwebelement/tst_qwebelement.cpp:
5508        (tst_QWebElement::firstChildNextSibling):
5509        (tst_QWebElement::lastChildPreviousSibling):
5510
55112010-07-16  Zhe Su  <suzhe@chromium.org>
5512
5513        Reviewed by Darin Adler.
5514
5515        REGRESSION(r61484): Broke focus behaviour on Qt and probably other platforms
5516        https://bugs.webkit.org/show_bug.cgi?id=42253
5517
5518        Dummy implementation of EditorClient::willSetInputMethodState.
5519
5520        * WebCoreSupport/EditorClientQt.cpp:
5521        (WebCore::EditorClientQt::willSetInputMethodState):
5522        * WebCoreSupport/EditorClientQt.h:
5523
55242010-07-14  Sam Weinig  <sam@webkit.org>
5525
5526        Reviewed by Darin Adler.
5527
5528        Patch for https://bugs.webkit.org/show_bug.cgi?id=42232
5529        Make changing Cursors work in WebKit2.
5530
5531        * WebCoreSupport/ChromeClientQt.cpp:
5532        (WebCore::ChromeClientQt::setCursor):
5533        * WebCoreSupport/ChromeClientQt.h:
5534        Change prototype to match new one.
5535
55362010-07-07  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
5537
5538        Reviewed by Darin Adler.
5539
5540        Prevent assertion/duplicate loads for non-deferred subtitute-data loads
5541
5542        https://bugs.webkit.org/show_bug.cgi?id=30879
5543
5544        MainResourceLoader uses the member m_initialRequest to store requests for future
5545        deferred loads. When doing the actual load in handleDataLoadNow(), we therefore
5546        have to clear this request so that subsequent entries into the loader will not
5547        start yet another load.
5548
5549        This can happen as a result of a PageGroupLoadDeferrer going out of scope when
5550        returning from Chrome::runJavaScriptAlert(), which calls setDeferredLoading(false),
5551        but only in the case of using both substitute-data and non-deferred main resource
5552        load together. That's why two new DRT functions were added:
5553
5554         * queueLoadHTMLString()
5555         * setDeferMainResourceLoad()
5556
5557        The change adds DRT hooks for Mac, Win and Qt for these two functions. For Mac
5558        and Win the hook uses new SPI in WebDataSource. For Qt a new static member was
5559        added to the FrameLoaderClientQt and accessed though DumpRenderTreeSupportQt.
5560
5561        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5562        (DumpRenderTreeSupportQt::setDeferMainResourceDataLoad):
5563        * WebCoreSupport/DumpRenderTreeSupportQt.h:
5564        * WebCoreSupport/FrameLoaderClientQt.cpp:
5565        (WebCore::FrameLoaderClientQt::createDocumentLoader):
5566        * WebCoreSupport/FrameLoaderClientQt.h:
5567
55682010-07-09  Yael Aharon  <yael.aharon@nokia.com>
5569
5570        Reviewed by Laszlo Gombos.
5571
5572        NotificationPresenter needs a cancelRequestPermission API
5573        https://bugs.webkit.org/show_bug.cgi?id=41783
5574
5575        Updated NotificationPresenter API to use ScriptExecutionContext instead of origin
5576        and added a new NotificationPresenter::cancelRequestsForPermission API.
5577        The new API will be implemented in a followup patch.
5578
5579        * WebCoreSupport/NotificationPresenterClientQt.cpp:
5580        (WebCore::NotificationPresenterClientQt::requestPermission):
5581        (WebCore::NotificationPresenterClientQt::checkPermission):
5582        (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
5583        * WebCoreSupport/NotificationPresenterClientQt.h:
5584
55852010-07-09  Kent Hansen  <kent.hansen@nokia.com>
5586
5587        Reviewed by Kenneth Rohde Christiansen.
5588
5589        [Qt] Skip test that never terminates on maemo5
5590
5591        Due to https://bugs.webkit.org/show_bug.cgi?id=38538
5592        the tst_QWebPage::infiniteLoopJS() autotest never terminates.
5593        Skip the test so that the test case may run to completion.
5594
5595        Patch by Dominik Holland <dominik.holland@nokia.com>
5596
5597        * tests/qwebpage/tst_qwebpage.cpp:
5598        (tst_QWebPage::infiniteLoopJS):
5599
56002010-07-09  Simon Hausmann <simon.hausmann@nokia.com>
5601
5602        Unreviewed trivial Symbian build fix.
5603
5604        [Qt] Fix the Symbian build when compiling without S60
5605
5606        Use Q_OS_SYMBIAN instead of Q_WS_S60 for the user agent
5607        determination.
5608
5609        * Api/qwebpage.cpp:
5610        (QWebPage::userAgentForUrl):
5611
56122010-07-09  Kristian Amlie  <kristian.amlie@nokia.com>
5613
5614        Reviewed by Simon Hausmann.
5615
5616        [Qt] Fixed Qt symbian/linux-armcc mkspec when configured with -qtlibinfix.
5617
5618        * declarative/declarative.pro: Use QT_LIBINFIX.
5619
56202010-07-09  Anders Bakken  <agbakken@gmail.com>
5621
5622        Reviewed by Simon Hausmann.
5623
5624        [Qt] Remove superfluous function calls
5625        https://bugs.webkit.org/show_bug.cgi?id=40353
5626
5627        QWebFrame::setUrl() calls ensureAbsoluteUrl() twice. It's better to
5628        store a local variable and reuse this one.
5629
5630        QWebFrame::load(QUrl) calls QWebFrame::load(QNetworkRequest) which in
5631        turn will get the QUrl from the request and make sure it's absolute by
5632        calling ensureAbsoluteUrl() on it.
5633
5634        * Api/qwebframe.cpp:
5635        (QWebFrame::setUrl):
5636        (QWebFrame::load):
5637
56382010-07-08  Sam Magnuson  <smagnuson@netflix.com>
5639
5640        Reviewed by Simon Hausmann.
5641
5642        [Qt] instance objects created for QObjects are somtimes GC'd
5643        https://bugs.webkit.org/show_bug.cgi?id=40352
5644
5645        Improved the test to check for jsObjects that that are garbage collected.
5646
5647        * tests/qwebframe/tst_qwebframe.cpp:
5648        (tst_QWebFrame::):
5649
56502010-07-08  Aaron Boodman  <aa@chromium.org>
5651
5652        Unreviewed change to fix qt build after c62876.
5653
5654        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5655        (DumpRenderTreeSupportQt::addUserStyleSheet):
5656
56572010-07-07  Robert Hogan  <robert@webkit.org>
5658
5659        Reviewed by Kenneth Rohde Christiansen.
5660
5661        [Qt] Add DRT support for pageProperty etc.
5662
5663        https://bugs.webkit.org/show_bug.cgi?id=41584
5664
5665        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5666        (DumpRenderTreeSupportQt::isPageBoxVisible):
5667        (DumpRenderTreeSupportQt::pageSizeAndMarginsInPixels):
5668        (DumpRenderTreeSupportQt::pageProperty):
5669        (DumpRenderTreeSupportQt::addUserStyleSheet):
5670        * WebCoreSupport/DumpRenderTreeSupportQt.h:
5671
56722010-07-08  Sam Weinig  <sam@webkit.org>
5673
5674        Reviewed by Anders Carlsson.
5675
5676        Patch for https://bugs.webkit.org/show_bug.cgi?id=41826
5677        Convert BackForwardList to an abstract base class and add BackForwardListImpl
5678        as the concrete implementation of it.
5679
5680        * Api/qwebhistory.cpp:
5681        (QWebHistory::clear):
5682        (QWebHistory::back):
5683        (QWebHistory::forward):
5684        (QWebHistory::goToItem):
5685        (operator>>):
5686        (QWebHistoryPrivate::page):
5687
56882010-07-08  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
5689
5690        Reviewed by Simon Hausmann.
5691
5692        Remove unused WEBKIT_VERSION define from qwebpage.cpp
5693
5694        We now use qWebKitVersion()
5695
5696        * Api/qwebpage.cpp:
5697
56982010-07-07  Sam Weinig  <sam@webkit.org>
5699
5700        Reviewed by Anders Carlsson.
5701
5702        Patch for https://bugs.webkit.org/show_bug.cgi?id=41772
5703        Add basic piping for BackForwardControllerClient.
5704
5705        * Api/qwebpage.cpp:
5706        (QWebPagePrivate::QWebPagePrivate):
5707
57082010-07-07  Marc Mutz  <marc.mutz@kdab.com>
5709
5710        Reviewed by Adam Barth.
5711
5712        [Qt] QWebSettings: Don't leak native pixmaps
5713
5714        When Q_GLOBAL_STATIC gets around to deleting the QHash with the
5715        pixmaps in, the QApplication destructor has already been
5716        completed. This makes it impossible for ~QPixmap to return the
5717        native pixmap to the OS, thus leaking them.
5718
5719        This patch adds a post routine (executed as part of ~QApplication)
5720        that clears the hash so Q_GLOBAL_STATIC's destruction doesn't have
5721        to execute ~QPixmap's anymore.
5722
5723        https://bugs.webkit.org/show_bug.cgi?id=41657
5724
5725        * Api/qwebsettings.cpp:
5726        (earlyClearGraphics): New. Clears the pixmap hash.
5727        (graphics): add earlyClearGraphics as a qAddPostRoutine()
5728
57292010-07-06  Csaba Osztrogonác  <ossy@webkit.org>
5730
5731        Rubber-stamped by Kenneth Rohde Christiansen.
5732
5733        Client errors should set "WebKitErrorDomain" domain instead of "WebKit" to match Mac.
5734
5735        * WebCoreSupport/FrameLoaderClientQt.cpp:
5736        (WebCore::FrameLoaderClientQt::blockedError):
5737        (WebCore::FrameLoaderClientQt::cannotShowURLError):
5738        (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
5739        (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
5740
57412010-07-06  Darin Adler  <darin@apple.com>
5742
5743        Fix crash caused by my fix to the Qt build.
5744
5745        * WebCoreSupport/InspectorClientQt.cpp:
5746        (WebCore::InspectorFrontendClientQt::closeWindow): Release pointer into
5747        a local OwnPtr instead of calling clear. Another fix, probably better,
5748        would be to change OwnPtr::clear to zero out the pointer before deleting,
5749        but that affects many more call sites, so I will do that separately.
5750
57512010-07-06  Darin Adler  <darin@apple.com>
5752
5753        Fix Qt build.
5754
5755        * WebCoreSupport/InspectorClientQt.cpp:
5756        (WebCore::InspectorFrontendClientQt::closeWindow): Call clear instead of
5757        calling delete on the result of leakPtr.
5758
57592010-06-19  Ilya Tikhonovsky  <loislo@chromium.org>
5760
5761        Reviewed by Yury Semikhatsky.
5762
5763        WebInspector: js function name was fixed.
5764        dispatchMessageToFrontend -> dispatchMessageFromBackend.
5765        https://bugs.webkit.org/show_bug.cgi?id=40675
5766
5767        * WebCoreSupport/InspectorClientQt.cpp:
5768        (WebCore::InspectorClientQt::sendMessageToFrontend):
5769
57702010-07-03  Robert Hogan  <robert@webkit.org>
5771
5772        Reviewed by Kenneth Rohde Christiansen.
5773
5774        [Qt] Return usable property names from DRT's computedStyleIncludingVisitedInfo()
5775
5776        Object property names such as 'background-color' need to be returned in camel
5777        case, i.e. backgroundColor so that JS can reference them. Add support for this
5778        to DumpRenderTreeSupportQt.
5779
5780        https://bugs.webkit.org/show_bug.cgi?id=40445
5781
5782        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5783        (convertToPropertyName):
5784        (DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo):
5785
57862010-07-01  Robert Hogan <robert@webkit.org>
5787
5788        Reviewed by Kenneth Rohde Christiansen.
5789
5790        [Qt] dump frames in ascending alphabetical order of title
5791
5792        https://bugs.webkit.org/show_bug.cgi?id=41261
5793
5794        Unskip:
5795        http/tests/navigation/metaredirect-frames.html
5796        http/tests/navigation/redirect302-frames.html
5797        http/tests/navigation/redirect302-subframeload.html
5798        http/tests/navigation/timerredirect-frames.html
5799
5800        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5801        (DumpRenderTreeSupportQt::getChildHistoryItems):
5802        * WebCoreSupport/DumpRenderTreeSupportQt.h:
5803
58042010-07-01  Bea Lam  <bea.lam@nokia.com>
5805
5806        Reviewed by Simon Hausmann.
5807
5808        [Qt] Doc improvements for QDeclarativeWebView
5809
5810        * declarative/qdeclarativewebview.cpp:
5811
58122010-07-01  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
5813
5814        Reviewed by Kenneth Rohde Christiansen.
5815
5816        [Qt] Create QComboBoxes when clicked and destroy on hide.
5817        https://bugs.webkit.org/show_bug.cgi?id=41451
5818
5819        Currently a QComboBox is created for each RenderMenuList and
5820        it gets destroyed either when the RenderMenuList or the
5821        QWebView (its Qt parent) is destroyed. This cause a crash
5822        when the QWebView is destroyed before the render tree (which
5823        is kept in cache).
5824
5825        This patch aim to destroy the QComboBox as soon as its popup
5826        gets hidden, and likewise, create it only when the popup is
5827        requested to be shown.
5828        It also removes the unneeded reference to the QGraphicsProxyWidget,
5829        destroying the QComboBox automatically destroys its bound
5830        proxywidget.
5831
5832        * WebCoreSupport/QtFallbackWebPopup.cpp:
5833        (WebCore::QtFallbackWebPopupCombo::hidePopup):
5834        (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
5835        (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
5836        (WebCore::QtFallbackWebPopup::show):
5837        (WebCore::QtFallbackWebPopup::hide):
5838        (WebCore::QtFallbackWebPopup::destroyPopup):
5839        (WebCore::QtFallbackWebPopup::populate):
5840        * WebCoreSupport/QtFallbackWebPopup.h:
5841
58422010-07-01  Satish Sampath  <satish@chromium.org>
5843
5844        Reviewed by Kent Tamura.
5845
5846        Rendering the speech button in input elements.
5847        https://bugs.webkit.org/show_bug.cgi?id=40984
5848
5849        * Api/qwebsettings.cpp:
5850        (graphics):
5851        * Api/qwebsettings.h:
5852
58532010-06-30  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
5854
5855        Reviewed by Kenneth Rohde Christiansen.
5856
5857        [Qt] Make sure we catch closed QComboBox popups.
5858        https://bugs.webkit.org/show_bug.cgi?id=39019
5859
5860        The way it works currently is using the QComboBox::show/hidePopup
5861        virtual method to catch popup requests in the middle. There is
5862        some cases however that the popup widget gets closed without
5863        going through the hidePopup method.
5864
5865        This patch adds an event filter to the popup's view to know when
5866        it gets closed and calls hidePopup to call our handling code.
5867        This may get hidePopup called twice but this shouldn't have any
5868        effect.
5869
5870        * WebCoreSupport/QtFallbackWebPopup.cpp:
5871        (WebCore::QtFallbackWebPopupCombo::QtFallbackWebPopupCombo):
5872        (WebCore::QtFallbackWebPopupCombo::eventFilter):
5873        * WebCoreSupport/QtFallbackWebPopup.h:
5874
58752010-06-30  Simon Hausmann  <simon.hausmann@nokia.com>
5876
5877        Unreviewed Symbian build fix.
5878
5879        [Qt] Update the def files to link DumpRenderTree.
5880
5881        * symbian/eabi/QtWebKitu.def:
5882
58832010-06-30  Samuel Nevala  <samuel.nevala@digia.com>
5884
5885        Reviewed by Simon Hausmann.
5886
5887        [Qt] Auto test wont compile from \3rdparty\webkit\WebKit\qt\tests
5888        https://bugs.webkit.org/show_bug.cgi?id=38720
5889
5890        Load qttest_p4.prf under QTDIR_build.
5891
5892        * tests/tests.pri:
5893
58942010-06-29  Robert Hogan  <robert@webkit.org>
5895
5896        Reviewed by Kenneth Rohde Christiansen.
5897
5898        [Qt] support dumpResourceResponseMIMETypes
5899        https://bugs.webkit.org/show_bug.cgi?id=41260
5900
5901        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5902        (DumpRenderTreeSupportQt::dumpResourceResponseMIMETypes):
5903        * WebCoreSupport/DumpRenderTreeSupportQt.h:
5904        * WebCoreSupport/FrameLoaderClientQt.cpp:
5905        (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
5906        * WebCoreSupport/FrameLoaderClientQt.h:
5907
59082010-06-28  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
5909
5910        Unreviewed Symbian build fix.
5911
5912        [Qt] Update the def file after r61879.
5913
5914        * symbian/eabi/QtWebKitu.def:
5915
59162010-06-28  Andreas Kling  <andreas.kling@nokia.com>
5917
5918        Reviewed by Simon Hausmann.
5919
5920        [Qt] QGraphicsWebView crash when calling setScale() before setUrl()
5921        https://bugs.webkit.org/show_bug.cgi?id=40000
5922
5923        Check 'page' before dereference in _q_scaleChanged()
5924        Autotest included.
5925
5926        * Api/qgraphicswebview.cpp:
5927        (QGraphicsWebViewPrivate::_q_scaleChanged):
5928        * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
5929        (tst_QGraphicsWebView::crashOnSetScaleBeforeSetUrl):
5930
59312010-06-26  Simon Hausmann  <hausmann@webkit.org>
5932
5933        [Qt] Prospective build fix for MSVC
5934
5935        In order for the forward declaration of QWebScriptWorldPrivate
5936        to work with QExplicitlySharedDataPointer, then copy constructor
5937        and assignment operators must not be compiler generated, to
5938        avoid them ending up in places where the private class is not
5939        declared.
5940
5941        * Api/qwebscriptworld.cpp:
5942        (QWebScriptWorld::QWebScriptWorld):
5943        (QWebScriptWorld::operator=):
5944        * Api/qwebscriptworld.h:
5945
59462010-06-26  Robert Hogan  <robert@webkit.org>
5947
5948        Reviewed by Kenneth Rohde Christiansen.
5949
5950        [Qt] DRT Support for setCustomPolicyDelegate
5951
5952        https://bugs.webkit.org/show_bug.cgi?id=39564
5953
5954        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5955        (DumpRenderTreeSupportQt::setCustomPolicyDelegate):
5956        * WebCoreSupport/DumpRenderTreeSupportQt.h:
5957        * WebCoreSupport/FrameLoaderClientQt.cpp:
5958        (drtDescriptionSuitableForTestResult):
5959        (WebCore::navigationTypeToString):
5960        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
5961        * WebCoreSupport/FrameLoaderClientQt.h:
5962
59632010-06-25  Luiz Agostini  <luiz.agostini@openbossa.org>
5964
5965        Reviewed by Kenneth Rohde Christiansen.
5966
5967        [Qt] QtWebKit crashes if <select>'s render changes in its onchange event
5968        https://bugs.webkit.org/show_bug.cgi?id=41164
5969
5970        QtWebKit crashes if <select>'s renderer changes in its onchange event.
5971
5972        * WebCoreSupport/QtFallbackWebPopup.cpp:
5973        (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
5974
59752010-06-25  Robert Hogan  <robert@webkit.org>
5976
5977        Reviewed by Simon Hausmann.
5978
5979        [Qt] Support evaluateScriptInIsolatedWorld()
5980
5981        https://bugs.webkit.org/show_bug.cgi?id=40079
5982
5983        Remove evaluateScriptInIsolatedWorld() from QtWebKit API.
5984        Remove QWebScriptWorld from exported headers.
5985        Confine support to DumpRenderTreeSupportQt so that the tests can pass.
5986
5987        * Api/headers.pri:
5988        * Api/qwebframe.cpp:
5989        * Api/qwebframe.h:
5990        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
5991        (DumpRenderTreeSupportQt::clearScriptWorlds):
5992        (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
5993        * WebCoreSupport/DumpRenderTreeSupportQt.h:
5994
59952010-06-24  Simon Hausmann  <simon.hausmann@nokia.com>
5996
5997        Unreviewed Symbian build fix.
5998
5999        The QML WebKit integration needs to be part of QtWebKit.sis
6000
6001        * declarative/declarative.pro: Removed non-working deployment.
6002
60032010-06-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
6004
6005        Unreviewed, Symbian build fix.
6006
6007        [Qt] Update the def file after r61478.
6008
6009        * symbian/eabi/QtWebKitu.def:
6010
60112010-06-23  David Boddie  <dboddie@trolltech.com>
6012
6013        Reviewed by Simon Hausmann.
6014
6015        [Qt] Doc: Fixed documentation errors.
6016
6017        * docs/qtwebkit-bridge.qdoc:
6018
60192010-06-23  Alessandro Portale  <alessandro.portale@nokia.com>
6020
6021        Reviewed by Simon Hausmann.
6022
6023        [Qt] Provide the Webkit Qml plugin with a UID3 on Symbian
6024
6025        ...otherwise we cannot Symbian sign it.
6026
6027        * declarative/declarative.pro:
6028
60292010-06-23  Simon Hausmann  <simon.hausmann@nokia.com>
6030
6031        Unreviewed Qt package build fix.
6032
6033        When building without build-webkit, set OUTPUT_DIR if necessary, like
6034        in the other .pro files.
6035
6036        * declarative/declarative.pro:
6037
60382010-06-22  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
6039
6040        Reviewed by Simon Hausmann.
6041
6042        [Qt] Fix compilation with QT_NO_COMBOBOX.
6043
6044        * WebCoreSupport/ChromeClientQt.cpp:
6045        (WebCore::ChromeClientQt::createSelectPopup):
6046
60472010-06-21  Robert Hogan  <robert@webkit.org>
6048
6049        [Qt] Build fix for Qt on Windows MSVC2008
6050
6051        Unreviewed, build fix.
6052
6053        Fix by Jocelyn Turcotte.
6054
6055        * Api/qwebframe.cpp:
6056
60572010-06-21  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
6058
6059        Reviewed by nobody, build fix.
6060
6061        [Qt] Fix MSVC build.
6062
6063        The max macro was replacing the max function used in StringImpl.h
6064        when compiling moc_NotificationPresenterClientQt.cpp.
6065
6066        * WebCoreSupport/NotificationPresenterClientQt.cpp:
6067
60682010-06-21  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
6069
6070        Unreviewed, Symbian build fix.
6071
6072        [Qt] Update the def file with recent new exports.
6073
6074        * symbian/eabi/QtWebKitu.def:
6075
60762010-06-21  Simon Hausmann  <simon.hausmann@nokia.com>
6077
6078        Unreviewed build fix.
6079
6080        [Qt] Fix package builds
6081
6082        Don't use rpath unless we're building inside the trunk.
6083
6084        * declarative/declarative.pro:
6085
60862010-06-20  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
6087
6088        Reviewed by Simon Hausmann.
6089
6090        The QWebHistory regression fix.
6091
6092        After change r51629 and r61207 QWebHistory's function back(),
6093        forward(), goToItem() got broken.
6094
6095        Use page->goToItem() instead of direct actions on the BackForwardList.
6096
6097        [Qt] REGRESSION(r61207): qwebhistory unit test hangs
6098        https://bugs.webkit.org/show_bug.cgi?id=40672
6099
6100        * Api/qwebhistory.cpp:
6101        (QWebHistory::back):
6102        (QWebHistory::forward):
6103        (QWebHistory::goToItem):
6104        * tests/qwebhistory/tst_qwebhistory.cpp:
6105        (tst_QWebHistory::init):
6106        (tst_QWebHistory::back):
6107        (tst_QWebHistory::forward):
6108
61092010-06-19  Yael Aharon  <yael.aharon@nokia.com>
6110
6111        Reviewed by Kenneth Rohde Christiansen.
6112
6113        [Qt] Platform plugin's multi-select does not take OptGroup into account
6114        https://bugs.webkit.org/show_bug.cgi?id=40718
6115
6116        Make sure that SelectData is valid throughout the lifetime of the dialog.
6117        This is mostly important for the Orbt based plugin.
6118        Added virtual desctructors where they were missing.
6119
6120        * Api/qwebkitplatformplugin.h:
6121        (QWebSelectData::~QWebSelectData):
6122        (QWebSelectMethod::~QWebSelectMethod):
6123        (QWebNotificationData::~QWebNotificationData):
6124        * WebCoreSupport/QtPlatformPlugin.cpp:
6125        (WebCore::SelectInputMethodWrapper::SelectInputMethodWrapper):
6126        (WebCore::SelectInputMethodWrapper::~SelectInputMethodWrapper):
6127        (WebCore::SelectInputMethodWrapper::show):
6128        * WebCoreSupport/QtPlatformPlugin.h:
6129        * examples/platformplugin/WebPlugin.cpp:
6130        * examples/platformplugin/qwebkitplatformplugin.h:
6131        (QWebSelectData::~QWebSelectData):
6132        (QWebSelectMethod::~QWebSelectMethod):
6133        (QWebNotificationData::~QWebNotificationData):
6134
61352010-06-19  No'am Rosenthal  <noam.rosenthal@nokia.com>
6136
6137        Reviewed by Simon Hausmann.
6138
6139        Bridge documentation: some snippets have the wrong indentation
6140        https://bugs.webkit.org/show_bug.cgi?id=40717
6141
6142        Fixed code snippets
6143
6144        * docs/webkitsnippets/qtwebkit_bridge_snippets.cpp:
6145        (wrapInFunction):
6146
61472010-06-02  Robert Hogan  <robert@webkit.org>
6148
6149        Reviewed by Adam Barth.
6150
6151        [Qt] Support evaluateScriptInIsolatedWorld()
6152
6153        https://bugs.webkit.org/show_bug.cgi?id=40079
6154
6155        * Api/headers.pri:
6156        * Api/qwebframe.cpp:
6157        (QWebFrame::evaluateScriptInIsolatedWorld):
6158        * Api/qwebframe.h:
6159        * Api/qwebscriptworld.cpp: Added.
6160        (QWebScriptWorld::QWebScriptWorld):
6161        (QWebScriptWorld::world):
6162        (QWebScriptWorld::~QWebScriptWorld):
6163        * Api/qwebscriptworld.h: Added.
6164        * Api/qwebscriptworld_p.h: Added.
6165        (QWebScriptWorldPrivate::QWebScriptWorldPrivate):
6166        (QWebScriptWorldPrivate::~QWebScriptWorldPrivate):
6167        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6168        * WebCoreSupport/DumpRenderTreeSupportQt.h:
6169
61702010-06-19  Olivier Goffart  <olivier.goffart@nokia.com>
6171
6172        Reviewed by Kenneth Rohde Christiansen.
6173
6174        [Qt] Compilation in QWebPagePrivate::timerEvent with clang
6175        https://bugs.webkit.org/show_bug.cgi?id=40714
6176
6177        QObject::timerEvent is protected and cannot be accessed by QWebPagePrivate
6178        with clang
6179
6180        QWebPagePrivate is a friend of QWebPage and then should have access to
6181        all protected members of parents of QWebPage, including QObject.
6182        But the clang team do not want to conform to this aspect of the specification
6183        because "It is either a drafting error or a horrible mistake."
6184        See http://llvm.org/bugs/show_bug.cgi?id=6840
6185
6186        This change is better because QWebPage does not reimplement the timerEvent
6187        (QWebPagePrivate::timerEvent is called from QWebPage::event)
6188        So customers that would reimplement their own timerEvent
6189        for their own timer now get a chance to catch them.
6190
6191
6192        * Api/qwebpage.cpp:
6193        (QWebPagePrivate::timerEvent):
6194
61952010-06-19  Mirko Damiani  <mirko@develer.com>
6196
6197        Reviewed by Simon Hausmann.
6198
6199        [Qt] Avoid truncation of zoom factor in QWebFrame's print function.
6200        https://bugs.webkit.org/show_bug.cgi?id=40662
6201
6202        The zoom factor is a qreal number but its value is truncated to an
6203        integer. So a cast to qreal is needed to avoid this issue.
6204
6205        * Api/qwebframe.cpp:
6206        (QWebFrame::print):
6207
62082010-06-18  Robert Hogan  <robert@webkit.org>
6209
6210        Reviewed by Kenneth Rohde Christiansen.
6211
6212        [Qt] pass plugins/open-and-close-window-with-plugin.html on Qt
6213
6214        Capture logDestroy messages from the test plugin. DRT's WebPage
6215        is already destroyed by the time they are emitted.
6216
6217        https://bugs.webkit.org/show_bug.cgi?id=33333
6218
6219        Unskip:
6220        plugins/open-and-close-window-with-plugin.html
6221        plugins/geturlnotify-during-document-teardown.html
6222
6223        * Api/qwebpage.cpp:
6224        (QWebPage::javaScriptConsoleMessage):
6225
62262010-06-18  Alexis Menard  <alexis.menard@nokia.com>
6227
6228        Reviewed by Simon Hausmann.
6229
6230        [Qt] Fix documentation for the declarative module import.
6231
6232        * declarative/qdeclarativewebview.cpp:
6233
62342010-06-18  Alexis Menard  <alexis.menard@nokia.com>
6235
6236        Reviewed by Simon Hausmann.
6237
6238        Fix documentation issue on the onAlert handler.
6239        Fix compilation issue with QT_NO_ACTION.
6240
6241        * declarative/qdeclarativewebview.cpp:
6242        * declarative/qdeclarativewebview_p.h:
6243
62442010-06-18  Simon Hausmann  <simon.hausmann@nokia.com>
6245
6246        Reviewed by Antti Koivisto.
6247
6248        REGRESSION(r60958) [Qt] qwebpage::inputMethods auto-test fails
6249        https://bugs.webkit.org/show_bug.cgi?id=40830
6250
6251        When activating a regular input method field, always set or unset the ImhHiddenText
6252        input method hint.
6253
6254        * WebCoreSupport/EditorClientQt.cpp:
6255        (WebCore::EditorClientQt::setInputMethodState):
6256
62572010-06-18  Alexis Menard  <alexis.menard@nokia.com>
6258
6259        Reviewed by Simon Hausmann.
6260
6261        [Qt] Change the target path to QtWebKit.
6262
6263        * declarative/declarative.pro:
6264
62652010-06-15  Dumitru Daniliuc  <dumi@chromium.org>
6266
6267        Reviewed by Adam Barth.
6268
6269        Move isAvailable()/setIsAvailable() from Database/DatabaseSync to AbstractDatabase.
6270        https://bugs.webkit.org/show_bug.cgi?id=39041
6271
6272        * Api/qwebsettings.cpp:
6273        (QWebSettingsPrivate::apply):
6274
62752010-06-17  Robert Hogan  <robert@webkit.org>
6276
6277        [Qt] Build fix
6278
6279        Unreviewed.
6280
6281        Remove includes in qdeclarativewebview*.* that rely on an installation
6282        of QtWebKit.
6283
6284        * declarative/qdeclarativewebview.cpp:
6285        * declarative/qdeclarativewebview_p.h:
6286
62872010-06-17  Robert Hogan  <robert@webkit.org>
6288
6289        Unreviewed, rolling out r61346.
6290        http://trac.webkit.org/changeset/61346
6291        https://bugs.webkit.org/show_bug.cgi?id=33333
6292
6293        Broke inspector tests on Qt
6294
6295        * Api/qwebpage.cpp:
6296        (QWebPage::javaScriptConsoleMessage):
6297
62982010-06-17  Robert Hogan  <robert@webkit.org>
6299
6300        Reviewed by Simon Hausmann.
6301
6302        [Qt] pass plugins/open-and-close-window-with-plugin.html on Qt
6303
6304        Capture logDestroy messages from the test plugin. DRT's WebPage
6305        is already destroyed by the time they are emitted.
6306
6307        https://bugs.webkit.org/show_bug.cgi?id=33333
6308
6309        Unskip:
6310        plugins/open-and-close-window-with-plugin.html
6311        plugins/geturlnotify-during-document-teardown.html
6312
6313        * Api/qwebpage.cpp:
6314        (QWebPage::javaScriptConsoleMessage):
6315
63162010-06-17  Jesus Sanchez-Palencia  <jesus@webkit.org>, Kenneth Rohde Christiansen  <kenneth@webkit.org>
6317
6318        Reviewed by Simon Hausmann.
6319
6320        [Qt] QtWebKit does not support viewport meta tag
6321        https://bugs.webkit.org/show_bug.cgi?id=39902
6322
6323        Add viewport meta tag support to QtWebKit API layer.
6324
6325        This implements didReceiveViewportArguments in our ChromeClientQt
6326        which is hooked up with QWebPage::viewportChangeRequested().
6327        This signal does not affect the current default behavior.
6328        The documentation of the signal explains how to make use of this new feature.
6329
6330        * Api/qwebframe_p.h:
6331        (QWebFramePrivate::QWebFramePrivate):
6332        Store information about whether the page has been laid out or not.
6333        * Api/qwebpage.cpp:
6334        (QWebPage::viewportChangeRequested):
6335        * Api/qwebpage_p.h:
6336        Added class QtViewportHintsPrivate.
6337        * Api/qwebpage.h:
6338        (QWebPage::setPreferredContentsSize):
6339        Improved documentation and now only layout if the page had already
6340        passed layout phase.
6341        Added class QWebPage::ViewportHints.
6342        * WebCoreSupport/ChromeClientQt.cpp:
6343        (WebCore::ChromeClientQt::windowRect):
6344        Modified to work as intended by the DOM, for both QWebView
6345        and QGraphicsWebView.
6346        (WebCore::ChromeClientQt::didReceiveViewportArguments):
6347        Emits the signal QWebPage::viewportChangeRequested.
6348        * WebCoreSupport/ChromeClientQt.h:
6349        * WebCoreSupport/FrameLoaderClientQt.cpp:
6350        (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
6351        (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
6352        Update information about whether the page has been laid out or not.
6353        If the page has been laid out we ignore any further viewport meta data.
6354        * WebCoreSupport/PageClientQt.cpp:
6355        (WebCore::PageClientQWidget::windowRect):
6356        (WebCore::PageClientQGraphicsWidget::windowRect):
6357        (WebCore::PageClientQGraphicsWidget::graphicsItemVisibleRect):
6358        * WebCoreSupport/PageClientQt.h:
6359        The PageClient is now responsible for providing the right window rect.
6360
63612010-06-17  Alexis Menard  <alexis.menard@nokia.com>
6362
6363        Reviewed by Kenneth Rohde Christiansen.
6364
6365        [Qt] Upstream the WebKit QML integration plugin
6366        https://bugs.webkit.org/show_bug.cgi?id=40050
6367
6368        Add to the Qt port the QML WebKit integration plugin.
6369        QDeclarativeWebView is creating the item and expose
6370        properties. The C++ API is not public, only the
6371        properties are.
6372
6373        * declarative/declarative.pro: Added.
6374        * declarative/plugin.cpp: Added.
6375        (WebKitQmlPlugin::registerTypes):
6376        * declarative/qdeclarativewebview.cpp: Added.
6377        (QDeclarativeWebViewPrivate::QDeclarativeWebViewPrivate):
6378        (QDeclarativeWebViewPrivate::):
6379        (QDeclarativeWebViewPrivate::windowObjectsAppend):
6380        (GraphicsWebView::GraphicsWebView):
6381        (GraphicsWebView::mousePressEvent):
6382        (GraphicsWebView::mouseReleaseEvent):
6383        (GraphicsWebView::mouseDoubleClickEvent):
6384        (GraphicsWebView::timerEvent):
6385        (GraphicsWebView::mouseMoveEvent):
6386        (QDeclarativeWebView::QDeclarativeWebView):
6387        (QDeclarativeWebView::~QDeclarativeWebView):
6388        (QDeclarativeWebView::init):
6389        (QDeclarativeWebView::componentComplete):
6390        (QDeclarativeWebView::status):
6391        (QDeclarativeWebView::progress):
6392        (QDeclarativeWebView::doLoadStarted):
6393        (QDeclarativeWebView::doLoadProgress):
6394        (QDeclarativeWebView::pageUrlChanged):
6395        (QDeclarativeWebView::doLoadFinished):
6396        (QDeclarativeWebView::url):
6397        (QDeclarativeWebView::setUrl):
6398        (QDeclarativeWebView::preferredWidth):
6399        (QDeclarativeWebView::setPreferredWidth):
6400        (QDeclarativeWebView::preferredHeight):
6401        (QDeclarativeWebView::setPreferredHeight):
6402        (QDeclarativeWebView::evaluateJavaScript):
6403        (QDeclarativeWebView::updateDeclarativeWebViewSize):
6404        (QDeclarativeWebView::initialLayout):
6405        (QDeclarativeWebView::updateContentsSize):
6406        (QDeclarativeWebView::geometryChanged):
6407        (QDeclarativeWebView::javaScriptWindowObjects):
6408        (QDeclarativeWebView::qmlAttachedProperties):
6409        (QDeclarativeWebViewPrivate::updateWindowObjects):
6410        (QDeclarativeWebView::renderingEnabled):
6411        (QDeclarativeWebView::setRenderingEnabled):
6412        (QDeclarativeWebView::heuristicZoom):
6413        (QDeclarativeWebView::pressGrabTime):
6414        (QDeclarativeWebView::setPressGrabTime):
6415        (QDeclarativeWebView::backAction):
6416        (QDeclarativeWebView::forwardAction):
6417        (QDeclarativeWebView::reloadAction):
6418        (QDeclarativeWebView::stopAction):
6419        (QDeclarativeWebView::title):
6420        (QDeclarativeWebView::icon):
6421        (QDeclarativeWebView::setStatusText):
6422        (QDeclarativeWebView::windowObjectCleared):
6423        (QDeclarativeWebView::statusText):
6424        (QDeclarativeWebView::page):
6425        (QDeclarativeWebView::settingsObject):
6426        (QDeclarativeWebView::setPage):
6427        (QDeclarativeWebView::load):
6428        (QDeclarativeWebView::html):
6429        (QDeclarativeWebView::setHtml):
6430        (QDeclarativeWebView::setContent):
6431        (QDeclarativeWebView::history):
6432        (QDeclarativeWebView::settings):
6433        (QDeclarativeWebView::createWindow):
6434        (QDeclarativeWebView::newWindowComponent):
6435        (QDeclarativeWebView::setNewWindowComponent):
6436        (QDeclarativeWebView::newWindowParent):
6437        (QDeclarativeWebView::setNewWindowParent):
6438        (QDeclarativeWebView::contentsSize):
6439        (QDeclarativeWebView::contentsScale):
6440        (QDeclarativeWebView::setContentsScale):
6441        (QDeclarativeWebView::elementAreaAt):
6442        (QDeclarativeWebPage::QDeclarativeWebPage):
6443        (QDeclarativeWebPage::~QDeclarativeWebPage):
6444        (QDeclarativeWebPage::chooseFile):
6445        (QDeclarativeWebPage::javaScriptAlert):
6446        (QDeclarativeWebPage::javaScriptConfirm):
6447        (QDeclarativeWebPage::javaScriptPrompt):
6448        (QDeclarativeWebPage::viewItem):
6449        (QDeclarativeWebPage::createWindow):
6450        * declarative/qdeclarativewebview_p.h: Added.
6451        (QDeclarativeWebView::):
6452        (QDeclarativeWebView::isComponentCompletePublic):
6453        (QDeclarativeWebViewAttached::QDeclarativeWebViewAttached):
6454        (QDeclarativeWebViewAttached::windowObjectName):
6455        (QDeclarativeWebViewAttached::setWindowObjectName):
6456        (QDeclarativeWebSettings::QDeclarativeWebSettings):
6457        (QDeclarativeWebSettings::standardFontFamily):
6458        (QDeclarativeWebSettings::setStandardFontFamily):
6459        (QDeclarativeWebSettings::fixedFontFamily):
6460        (QDeclarativeWebSettings::setFixedFontFamily):
6461        (QDeclarativeWebSettings::serifFontFamily):
6462        (QDeclarativeWebSettings::setSerifFontFamily):
6463        (QDeclarativeWebSettings::sansSerifFontFamily):
6464        (QDeclarativeWebSettings::setSansSerifFontFamily):
6465        (QDeclarativeWebSettings::cursiveFontFamily):
6466        (QDeclarativeWebSettings::setCursiveFontFamily):
6467        (QDeclarativeWebSettings::fantasyFontFamily):
6468        (QDeclarativeWebSettings::setFantasyFontFamily):
6469        (QDeclarativeWebSettings::minimumFontSize):
6470        (QDeclarativeWebSettings::setMinimumFontSize):
6471        (QDeclarativeWebSettings::minimumLogicalFontSize):
6472        (QDeclarativeWebSettings::setMinimumLogicalFontSize):
6473        (QDeclarativeWebSettings::defaultFontSize):
6474        (QDeclarativeWebSettings::setDefaultFontSize):
6475        (QDeclarativeWebSettings::defaultFixedFontSize):
6476        (QDeclarativeWebSettings::setDefaultFixedFontSize):
6477        (QDeclarativeWebSettings::autoLoadImages):
6478        (QDeclarativeWebSettings::setAutoLoadImages):
6479        (QDeclarativeWebSettings::javascriptEnabled):
6480        (QDeclarativeWebSettings::setJavascriptEnabled):
6481        (QDeclarativeWebSettings::javaEnabled):
6482        (QDeclarativeWebSettings::setJavaEnabled):
6483        (QDeclarativeWebSettings::pluginsEnabled):
6484        (QDeclarativeWebSettings::setPluginsEnabled):
6485        (QDeclarativeWebSettings::privateBrowsingEnabled):
6486        (QDeclarativeWebSettings::setPrivateBrowsingEnabled):
6487        (QDeclarativeWebSettings::javascriptCanOpenWindows):
6488        (QDeclarativeWebSettings::setJavascriptCanOpenWindows):
6489        (QDeclarativeWebSettings::javascriptCanAccessClipboard):
6490        (QDeclarativeWebSettings::setJavascriptCanAccessClipboard):
6491        (QDeclarativeWebSettings::developerExtrasEnabled):
6492        (QDeclarativeWebSettings::setDeveloperExtrasEnabled):
6493        (QDeclarativeWebSettings::linksIncludedInFocusChain):
6494        (QDeclarativeWebSettings::setLinksIncludedInFocusChain):
6495        (QDeclarativeWebSettings::zoomTextOnly):
6496        (QDeclarativeWebSettings::setZoomTextOnly):
6497        (QDeclarativeWebSettings::printElementBackgrounds):
6498        (QDeclarativeWebSettings::setPrintElementBackgrounds):
6499        (QDeclarativeWebSettings::offlineStorageDatabaseEnabled):
6500        (QDeclarativeWebSettings::setOfflineStorageDatabaseEnabled):
6501        (QDeclarativeWebSettings::offlineWebApplicationCacheEnabled):
6502        (QDeclarativeWebSettings::setOfflineWebApplicationCacheEnabled):
6503        (QDeclarativeWebSettings::localStorageDatabaseEnabled):
6504        (QDeclarativeWebSettings::setLocalStorageDatabaseEnabled):
6505        (QDeclarativeWebSettings::localContentCanAccessRemoteUrls):
6506        (QDeclarativeWebSettings::setLocalContentCanAccessRemoteUrls):
6507        * declarative/qmldir: Added.
6508        * docs/qtwebkit.qdocconf:
6509
65102010-06-17  Mark Brand  <mabrand@mabrand.nl>
6511
6512        Reviewed by Simon Hausmann.
6513
6514        [Qt] use "win32-g++*" scope to match all MinGW makespecs
6515
6516        The scope "win32-g++" comes from the name of the makespec. However, it
6517        is frequently used to check for MinGW. This works fine as long as
6518        win32-g++ is the only makespec for MinGW. Now we need the wildcard
6519        to cover "win32-g++-cross" as well.
6520
6521        * Api/DerivedSources.pro:
6522
65232010-05-28  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
6524
6525        Reviewed by Simon Hausmann, Antti Koivisto
6526
6527        [Qt] Add internal Qt Api to configure repaint throttling parameters.
6528        https://bugs.webkit.org/show_bug.cgi?id=38401
6529
6530        * Api/qwebpage.cpp:
6531        (QWebPagePrivate::dynamicPropertyChangeEvent):
6532
65332010-06-16  Alexis Menard <alexis.menard@nokia.com>
6534
6535        Reviewed by Simon Hausmann.
6536
6537        [Qt] Fix tiled backing store painting when calling QGraphicsWebView::setPage() after setResizesToContents(true)
6538
6539        When calling setPage() after setResizesToContents, the value of the property wasn't propagated
6540        to the page client. Therefore the visible rect for the tiled backing store was incorrect.
6541
6542        Simply move the variable assignment into updateResizesToContentsForPage(), which is always called.
6543
6544        * Api/qgraphicswebview.cpp:
6545        (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
6546        (QGraphicsWebView::setResizesToContents):
6547
65482010-06-16  Simon Hausmann  <simon.hausmann@nokia.com>
6549
6550        Rubber-stamped by Tor Arne Vestbø.
6551
6552        Swap WebGL and SiteSpecificQuirks attributes in the QWebSettings
6553        enum, to allow for binary compatibility with qtwebkit-2.0, where
6554        WebGL is not in the settings but SiteSpecificQuirks will be.
6555
6556        * Api/qwebsettings.h:
6557
65582010-06-15  Darin Adler  <darin@apple.com>
6559
6560        Fix build.
6561
6562        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6563        (DumpRenderTreeSupportQt::shouldClose): Call loader()->shouldClose().
6564
65652010-06-15  Yael Aharon  <yael.aharon@nokia.com>
6566
6567        Reviewed by Kenneth Rohde Christiansen.
6568
6569        [Qt] Rename NotificatioIconWrapper to NotificationWrapper
6570        https://bugs.webkit.org/show_bug.cgi?id=40571
6571
6572        * WebCoreSupport/NotificationPresenterClientQt.cpp:
6573        (WebCore::NotificationWrapper::NotificationWrapper):
6574        (WebCore::NotificationWrapper::close):
6575        (WebCore::NotificationWrapper::title):
6576        (WebCore::NotificationWrapper::message):
6577        (WebCore::NotificationWrapper::iconData):
6578        (WebCore::NotificationWrapper::notificationClosed):
6579        (WebCore::NotificationPresenterClientQt::displayNotification):
6580        (WebCore::NotificationPresenterClientQt::cancel):
6581        (WebCore::NotificationPresenterClientQt::notificationForWrapper):
6582        * WebCoreSupport/NotificationPresenterClientQt.h:
6583        (WebCore::NotificationWrapper::~NotificationWrapper):
6584
65852010-06-15  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
6586
6587        Unreviewed, Symbian build fix.
6588
6589        [Qt] Update the def file with recent new exports.
6590
6591        * symbian/eabi/QtWebKitu.def:
6592
65932010-06-15  Yael Aharon  <yael.aharon@nokia.com>
6594
6595        Unreviewed.
6596
6597        Fix typo in reviewer name in r61187
6598
65992010-06-15  Yael Aharon  <yael.aharon@nokia.com>
6600
6601        Reviewed by Simon Fraser.
6602
6603        [Qt] Build fix for Qt minimal after r61121
6604        https://bugs.webkit.org/show_bug.cgi?id=40624
6605
6606        * WebCoreSupport/NotificationPresenterClientQt.cpp:
6607        (WebCore::NotificationIconWrapper::NotificationIconWrapper):
6608        (WebCore::NotificationIconWrapper::close):
6609        (WebCore::NotificationIconWrapper::title):
6610        (WebCore::NotificationIconWrapper::message):
6611        (WebCore::NotificationIconWrapper::iconData):
6612        (WebCore::NotificationIconWrapper::notificationClosed):
6613        * WebCoreSupport/NotificationPresenterClientQt.h:
6614        (WebCore::NotificationIconWrapper::~NotificationIconWrapper):
6615
66162010-06-14  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
6617
6618        Unreviewed, Symbian build fix.
6619
6620        [Qt] Update the def file with recent new exports.
6621
6622        * symbian/eabi/QtWebKitu.def:
6623
66242010-06-13  Yael Aharon  <yael.aharon@nokia.com>
6625
6626        Reviewed by Kenneth Rohde Christiansen.
6627
6628        [Qt] Platform plugin support for Notifications UI
6629        https://bugs.webkit.org/show_bug.cgi?id=40005
6630
6631        Add an interface to the platform plugin to display notifications.
6632        Implemented the notification in the example platform plugin.
6633        This interface is enabled by default, but could be turned off with
6634        a build flag. The platform plugin should control its own lifecycle,
6635        so now the close timer applies only when using the QSystemTrayIcon.
6636        That's because QSystemTrayIcon does not inform its caller when it
6637        is closed.
6638
6639        Changed the way NotificationPresenterClientQt is deleted because it
6640        is being accessed when GC is deleting the Notification objects.
6641        NotificationPresenterClientQt is now detaching itself from the
6642        Notifications before it is deleted.
6643
6644        * Api/qwebkitplatformplugin.h:
6645        (QWebNotificationPresenter::QWebNotificationPresenter):
6646        (QWebNotificationPresenter::~QWebNotificationPresenter):
6647        (QWebKitPlatformPlugin::):
6648        * WebCoreSupport/NotificationPresenterClientQt.cpp:
6649        (WebCore::NotificationIconWrapper::NotificationIconWrapper):
6650        (WebCore::NotificationIconWrapper::title):
6651        (WebCore::NotificationIconWrapper::message):
6652        (WebCore::NotificationIconWrapper::iconData):
6653        (WebCore::NotificationPresenterClientQt::~NotificationPresenterClientQt):
6654        (WebCore::NotificationIconWrapper::notificationClosed):
6655        (WebCore::NotificationPresenterClientQt::displayNotification):
6656        (WebCore::NotificationPresenterClientQt::cancel):
6657        (WebCore::NotificationPresenterClientQt::notificationForWrapper):
6658        (WebCore::NotificationPresenterClientQt::removeReplacedNotificationFromQueue):
6659        (WebCore::NotificationPresenterClientQt::detachNotification):
6660        * WebCoreSupport/NotificationPresenterClientQt.h:
6661        * WebCoreSupport/QtPlatformPlugin.cpp:
6662        (WebCore::QtPlatformPlugin::createNotificationPresenter):
6663        * WebCoreSupport/QtPlatformPlugin.h:
6664        * examples/platformplugin/WebNotificationPresenter.cpp: Added.
6665        (WebNotificationWidget::WebNotificationWidget):
6666        (WebNotificationWidget::~WebNotificationWidget):
6667        (WebNotificationWidget::showNotification):
6668        (WebNotificationWidget::event):
6669        * examples/platformplugin/WebNotificationPresenter.h: Added.
6670        (WebNotificationPresenter::WebNotificationPresenter):
6671        (WebNotificationPresenter::~WebNotificationPresenter):
6672        (WebNotificationPresenter::showNotification):
6673        * examples/platformplugin/WebPlugin.cpp:
6674        (WebPlugin::supportsExtension):
6675        * examples/platformplugin/WebPlugin.h:
6676        (WebPlugin::createNotificationPresenter):
6677        * examples/platformplugin/platformplugin.pro:
6678        * examples/platformplugin/qwebkitplatformplugin.h:
6679        (QWebNotificationPresenter::QWebNotificationPresenter):
6680        (QWebNotificationPresenter::~QWebNotificationPresenter):
6681        (QWebKitPlatformPlugin::):
6682
66832010-06-14  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
6684
6685        Reviewed by Laszlo Gombos.
6686
6687        [Qt] navigator.geolocation support for Qt port
6688        https://bugs.webkit.org/show_bug.cgi?id=39724
6689
6690        Implement ChromeClientQt::requestGeolocationPermissionForFrame() which delegates call to QWebPage::allowGeolocationRequest
6691        Layout and unit test cases for the are also added.
6692
6693        * Api/qwebpage.cpp:
6694        (QWebPage::allowGeolocationRequest):
6695        * Api/qwebpage.h:
6696        * WebCoreSupport/ChromeClientQt.cpp:
6697        (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
6698        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6699        (DumpRenderTreeSupportQt::setMockGeolocationPosition):
6700        (DumpRenderTreeSupportQt::setMockGeolocationError):
6701        * WebCoreSupport/DumpRenderTreeSupportQt.h:
6702        * tests/qwebpage/tst_qwebpage.cpp:
6703        (JSTestPage::shouldInterruptJavaScript):
6704        (JSTestPage::allowGeolocationRequest):
6705        (JSTestPage::setGeolocationPermission):
6706        (tst_QWebPage::geolocationRequestJS):
6707
67082010-06-14  Ilya Tikhonovsky  <loislo@chromium.org>
6709
6710        Reviewed by Pavel Feldman.
6711
6712        WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
6713        data from inspected page to WebInspector as JSON string via http. The native
6714        serialization to JSON string is supported by InspectorValue's classes. This patch
6715        has the implementation of sendMessageToFrontend function. WebKit version of it still
6716        uses ScriptFunctionCall and will be switched to another transport a little bit later.
6717        https://bugs.webkit.org/show_bug.cgi?id=40134
6718
6719        * WebCoreSupport/InspectorClientQt.cpp:
6720        (WebCore::InspectorClientQt::InspectorClientQt):
6721        (WebCore::InspectorClientQt::openInspectorFrontend):
6722        (WebCore::InspectorClientQt::releaseFrontendPage):
6723        (WebCore::InspectorClientQt::sendMessageToFrontend):
6724        * WebCoreSupport/InspectorClientQt.h:
6725
67262010-06-13  Charles Wei  <charles.wei@torchmobile.com.cn>
6727
6728        Reviewed by George Staikos.
6729
6730        Fix the QtWebKit which doesn't recognize the MIME type of HTML/TEXT in uppercase
6731        https://bugs.webkit.org/show_bug.cgi?id=39492
6732
6733        * WebCoreSupport/FrameLoaderClientQt.cpp:
6734        (WebCore::FrameLoaderClientQt::canShowMIMEType):
6735
67362010-06-08  Robert Hogan  <robert@webkit.org>
6737
6738        Reviewed by Eric Seidel.
6739
6740        [Qt] Add support for callShouldCloseOnWebView() to DRT
6741        https://bugs.webkit.org/show_bug.cgi?id=40330
6742
6743        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6744        (DumpRenderTreeSupportQt::shouldClose):
6745        * WebCoreSupport/DumpRenderTreeSupportQt.h:
6746
67472010-06-12  Dawit Alemayehu  <adawit@kde.org>
6748
6749        Reviewed by Kenneth Rohde Christiansen.
6750
6751        Added an attribute to enable/disable site specific quirks mode in WebKit.
6752        The attribute is enabled by default.
6753
6754        https://bugs.webkit.org/show_bug.cgi?id=40073
6755
6756        * Api/qwebsettings.cpp:
6757        (QWebSettingsPrivate::apply):
6758        (QWebSettings::QWebSettings):
6759        * Api/qwebsettings.h:
6760
67612010-06-12  Robert Hogan  <robert@webkit.org>
6762
6763        Reviewed by Kenneth Rohde Christiansen.
6764
6765        [Qt] Fix tst_qwebframe regression from http://trac.webkit.org/changeset/61062
6766
6767        Only use cacheableBindingRootObject() if the object has QtOwnership.
6768
6769        https://bugs.webkit.org/show_bug.cgi?id=40527
6770
6771        * Api/qwebframe.cpp:
6772        (QWebFrame::addToJavaScriptWindowObject):
6773
67742010-06-13  Robert Hogan  <robert@webkit.org>
6775
6776        Reviewed by Alexey Proskuryakov.
6777
6778        FrameLoader::clear() clears JS objects that cached pages later rely on
6779
6780        https://bugs.webkit.org/show_bug.cgi?id=37725
6781        https://bugs.webkit.org/show_bug.cgi?id=31626
6782
6783        Fix the following tests for Qt:
6784
6785        fast/events/pageshow-pagehide-on-back-cached.html
6786        fast/events/pageshow-pagehide-on-back-cached-with-frames.html
6787        fast/loader/input-element-page-cache-crash.html
6788        fast/dom/Window/timer-resume-on-navigation-back.html
6789        loader/go-back-to-different-window-size.html
6790        fast/dom/javascript-url-crash-function.html
6791        fast/dom/location-new-window-no-crash.html
6792        http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-window-open.html
6793
6794        which currently fail because the page's Qt-bindings runtime objects are
6795        cleared when navigating away from the page containing them.
6796
6797        Track Qt-bindings objects in a separate ScriptController::cacheableRootBindingObject().
6798        RuntimeObjects tracked by this root object will not get invalidated on page navigations,
6799        so they will still be available when the pages containing them are retrieved from the
6800        b/f cache.
6801
6802        This means the Qt bindings objects will only get cleared on Frame::pageDestroyed().
6803
6804        * Api/qwebframe.cpp:
6805        (QWebFrame::addToJavaScriptWindowObject):
6806
68072010-06-12  No'am Rosenthal  <noam.rosenthal@nokia.com>
6808
6809        Reviewed by Kenneth Rohde Christiansen.
6810
6811        [Qt] Add documentation to the QtWebkit bridge
6812        https://bugs.webkit.org/show_bug.cgi?id=35861
6813
6814        The previous accepted patch was actually a faulty one; It was hard to trace since it's just a documentation
6815        change. The new patch amends that, with the correct snippets and grammar fixes.
6816
6817        * docs/qtwebkit-bridge.qdoc:
6818        * docs/webkitsnippets/qtwebkit_bridge_snippets.cpp:
6819        (wrapInFunction):
6820
68212010-06-12  Robert Hogan  <robert@webkit.org>
6822
6823        Reviewed by Kenneth Rohde Christiansen.
6824
6825        [Qt] Back-forward list dumping is incorrect
6826
6827        https://bugs.webkit.org/show_bug.cgi?id=36392
6828
6829        Support dumping child history items in DRT.
6830
6831        Unskip:
6832
6833        fast/loader/frame-src-change-added-to-history.html
6834        fast/loader/frame-src-change-not-added-to-history.html
6835        fast/loader/frame-location-change-not-added-to-history.html
6836
6837        * Api/qwebhistory.cpp:
6838        (QWebHistoryItemPrivate::core):
6839        * Api/qwebhistory.h:
6840        * Api/qwebhistory_p.h:
6841        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
6842        (DumpRenderTreeSupportQt::isTargetItem):
6843        (DumpRenderTreeSupportQt::historyItemTarget):
6844        (DumpRenderTreeSupportQt::getChildHistoryItems):
6845        * WebCoreSupport/DumpRenderTreeSupportQt.h:
6846
68472010-06-11  Jesus Sanchez-Palencia  <jesus@webkit.org>
6848
6849        Reviewed by Kenneth Rohde Christiansen.
6850
6851        [Qt] Typo error in QWebPluginFactory Documentation
6852        https://bugs.webkit.org/show_bug.cgi?id=40490
6853
6854        * Api/qwebpluginfactory.cpp:
6855
68562010-06-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
6857
6858        Reviewed by nobody, build fix.
6859
6860        [Qt] Second fix attempt for the build break introduced by r61002.
6861
6862        * Api/qwebpage.cpp:
6863        (QWebPagePrivate::QWebPagePrivate):
6864
68652010-06-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
6866
6867        Reviewed by nobody, build fix.
6868
6869        [Qt] Fix build break introduced by r61002.
6870
6871        * Api/qwebpage.cpp:
6872        (QWebPagePrivate::QWebPagePrivate):
6873
68742010-05-31  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
6875
6876        Reviewed by Simon Hausmann.
6877
6878        [Qt] Implement the simple text code path.
6879        https://bugs.webkit.org/show_bug.cgi?id=40077
6880
6881        Remove the FONT_FAST_PATH macro and use the Qt's
6882        fast text implementation instead of the one of WebKit.
6883
6884        The Qt::TextBypassShaping flag is used to tell Qt to
6885        only use the glyph advances.
6886
6887        Qt 4.7 is needed to get this flag thus the complex path is always
6888        used if QtWebKit is compiled against an earlier version.
6889
6890        Contrary to the WebKit's implementation, the complex code path
6891        is taken if the text is RightToLeft, justified or is formatted
6892        with non-zero letter or word spacing.
6893
6894        * Api/qwebpage.cpp:
6895        (QWebPagePrivate::QWebPagePrivate):
6896
68972010-06-10  Yael Aharon  <yael.aharon@nokia.com>
6898
6899        Reviewed by Kenneth Rohde Christiansen.
6900
6901        [Qt] Support for loading notification icons
6902        https://bugs.webkit.org/show_bug.cgi?id=40004
6903
6904        Take into use the icon that was loaded for the notification.
6905
6906        * WebCoreSupport/NotificationPresenterClientQt.cpp:
6907        (WebCore::NotificationPresenterClientQt::show):
6908
69092010-06-10  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
6910
6911        Reviewed by Simon Hausmann.
6912
6913        [Qt] Memory leak in qwebpage unit test cases
6914        https://bugs.webkit.org/show_bug.cgi?id=40405
6915
6916        * tests/qwebpage/tst_qwebpage.cpp:
6917        (tst_QWebPage::infiniteLoopJS):
6918
69192010-06-10  Raine Makelainen  <raine.makelainen@nokia.com>
6920
6921        Reviewed by Kenneth Rohde Christiansen.
6922
6923        Impossible to set input method hints based HTML5 input types
6924        https://bugs.webkit.org/show_bug.cgi?id=40107
6925
6926        EditorClientQt to set input method hints for "number", "tel",
6927        "email", and "url" HTML input elements.
6928
6929        Tests for HTML input elements and input method hints added for
6930        QGraphicsWebView and QWebView.
6931
6932        * WebCoreSupport/EditorClientQt.cpp:
6933        (WebCore::EditorClientQt::setInputMethodState):
6934        * tests/qgraphicswebview/resources/input_types.html: Added.
6935        * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
6936        (GraphicsWebView::GraphicsWebView):
6937        (GraphicsWebView::fireMouseClick):
6938        (tst_QGraphicsWebView::focusInputTypes):
6939        * tests/qgraphicswebview/tst_qgraphicswebview.qrc: Added.
6940        * tests/qwebview/resources/input_types.html: Added.
6941        * tests/qwebview/tst_qwebview.cpp:
6942        (WebView::fireMouseClick):
6943        (tst_QWebView::focusInputTypes):
6944        * tests/qwebview/tst_qwebview.qrc:
6945
69462010-06-10  Eric Seidel  <eric@webkit.org>
6947
6948        Reviewed by Adam Barth.
6949
6950        Reduce FrameView.h includes to speed up build times
6951        https://bugs.webkit.org/show_bug.cgi?id=40408
6952
6953        * Api/qwebframe.cpp:
6954         - Include RenderLayer.h since it's used in this file.
6955
69562010-06-10  Andy Shaw  <andy.shaw@nokia.com>
6957
6958        Reviewed by Simon Hausmann.
6959
6960        REGRESSION: [Qt] When dragging onto a page that handles the drag in Javascript it will be a move and not a copy by default
6961        https://bugs.webkit.org/show_bug.cgi?id=40401
6962
6963        The correct pattern in Qt for Dnd events is to use acceptProposedAction() instead
6964        of accept().
6965
6966        * Api/qwebpage.cpp:
6967        (QWebPagePrivate::dragEnterEvent):
6968        (QWebPagePrivate::dragMoveEvent):
6969        (QWebPagePrivate::dropEvent):
6970
69712010-06-09  Pierre Rossi  <pierre.rossi@nokia.com>
6972
6973        Reviewed by Kenneth Rohde Christiansen.
6974
6975        QWebPage::findText() does not clear selection when passed empty string
6976        https://bugs.webkit.org/show_bug.cgi?id=31779
6977
6978        * Api/qwebpage.cpp:
6979        (QWebPage::findText):
6980        * tests/qwebpage/tst_qwebpage.cpp:
6981        (tst_QWebPage::findText):
6982
69832010-06-09  Anders Bakken  <agbakken@gmail.com>
6984
6985        Reviewed by David Levin.
6986
6987        [Qt] PageClientQt.h has coding-style errors
6988        https://bugs.webkit.org/show_bug.cgi?id=40257
6989
6990        * WebCoreSupport/PageClientQt.h:
6991
69922010-06-09  Anders Bakken  <agbakken@gmail.com>
6993
6994        Reviewed by David Levin.
6995
6996        [Qt] InspectorClientQt.cpp has coding-style errors
6997        https://bugs.webkit.org/show_bug.cgi?id=40255
6998
6999        * WebCoreSupport/InspectorClientQt.cpp:
7000
70012010-06-09  Anders Bakken  <agbakken@gmail.com>
7002
7003        Reviewed by David Levin.
7004
7005        [Qt] FrameLoaderClientQt.h has coding-style errors
7006        https://bugs.webkit.org/show_bug.cgi?id=40251
7007
7008        * WebCoreSupport/FrameLoaderClientQt.h:
7009        (WebCore::FrameLoaderClientQt::dispatchWillSendSubmitEvent):
7010
70112010-06-09  Anders Bakken  <agbakken@gmail.com>
7012
7013        Reviewed by Kenneth Rohde Christiansen.
7014
7015        [Qt] EditorClientQt.h has coding-style errors
7016        https://bugs.webkit.org/show_bug.cgi?id=40249
7017
7018        * WebCoreSupport/EditorClientQt.h:
7019
70202010-06-09  Anders Bakken  <agbakken@gmail.com>
7021
7022        Reviewed by David Levin.
7023
7024        [Qt] EditCommandQt.cpp/h have coding-style errors
7025        https://bugs.webkit.org/show_bug.cgi?id=40248
7026
7027        * WebCoreSupport/EditCommandQt.cpp:
7028        (EditCommandQt::EditCommandQt):
7029        (EditCommandQt::~EditCommandQt):
7030        (EditCommandQt::redo):
7031        (EditCommandQt::undo):
7032        * WebCoreSupport/EditCommandQt.h:
7033
70342010-06-09  Anders Bakken  <agbakken@gmail.com>
7035
7036        Reviewed by David Levin.
7037
7038        [Qt] DumpRenderTreeSupportQt.cpp has coding-style errors
7039        https://bugs.webkit.org/show_bug.cgi?id=40247
7040
7041        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
7042        (DumpRenderTreeSupportQt::firstRectForCharacterRange):
7043
70442010-06-09  Anders Bakken  <agbakken@gmail.com>
7045
7046        Reviewed by David Levin.
7047
7048        [Qt] DragClientQt.cpp has coding-style errors
7049        https://bugs.webkit.org/show_bug.cgi?id=40246
7050
7051        * WebCoreSupport/DragClientQt.cpp:
7052        (WebCore::DragClientQt::startDrag):
7053
70542010-06-09  Anders Bakken  <agbakken@gmail.com>
7055
7056        Reviewed by Laszlo Gombos.
7057
7058        [Qt] ContextMenuClientQt.h has coding-style errors
7059        https://bugs.webkit.org/show_bug.cgi?id=40242
7060
7061        * WebCoreSupport/ContextMenuClientQt.h:
7062
70632010-06-09  Anders Bakken  <agbakken@gmail.com>
7064
7065        Reviewed by David Levin.
7066
7067        [Qt] ChromeClientQt.cpp has coding-style errors
7068        https://bugs.webkit.org/show_bug.cgi?id=40240
7069
7070        * WebCoreSupport/ChromeClientQt.cpp:
7071        (WebCore::ChromeClientQt::pageRect):
7072        (WebCore::ChromeClientQt::createWindow):
7073        (WebCore::ChromeClientQt::runJavaScriptAlert):
7074        (WebCore::ChromeClientQt::runJavaScriptConfirm):
7075        (WebCore::ChromeClientQt::runJavaScriptPrompt):
7076        (WebCore::ChromeClientQt::print):
7077        (WebCore::ChromeClientQt::attachRootGraphicsLayer):
7078        (WebCore::ChromeClientQt::visibleRectForTiledBackingStore):
7079
70802010-06-09  Sheriff Bot  <webkit.review.bot@gmail.com>
7081
7082        Unreviewed, rolling out r60889.
7083        http://trac.webkit.org/changeset/60889
7084        https://bugs.webkit.org/show_bug.cgi?id=40365
7085
7086        gtk bot has some kind of memory corruption (Requested by
7087        loislo on #webkit).
7088
7089        * WebCoreSupport/InspectorClientQt.cpp:
7090        (WebCore::InspectorClientQt::InspectorClientQt):
7091        (WebCore::InspectorClientQt::openInspectorFrontend):
7092        (WebCore::InspectorFrontendClientQt::InspectorFrontendClientQt):
7093        (WebCore::InspectorFrontendClientQt::closeWindow):
7094        * WebCoreSupport/InspectorClientQt.h:
7095
70962010-06-07  Ilya Tikhonovsky  <loislo@chromium.org>
7097
7098        Reviewed by Pavel Feldman.
7099
7100        WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
7101        data from inspected page to WebInspector as JSON string via http. The native
7102        serialization to JSON string is supported by InspectorValue's classes. This patch
7103        has the implementation of sendMessageToFrontend function. WebKit version of it still
7104        uses ScriptFunctionCall and will be switched to another transport a little bit later.
7105        https://bugs.webkit.org/show_bug.cgi?id=40134
7106
7107        * WebCoreSupport/InspectorClientQt.cpp:
7108        (WebCore::InspectorClientQt::InspectorClientQt):
7109        (WebCore::InspectorClientQt::openInspectorFrontend):
7110        (WebCore::InspectorClientQt::releaseFrontendPage):
7111        (WebCore::InspectorClientQt::sendMessageToFrontend):
7112        * WebCoreSupport/InspectorClientQt.h:
7113
71142010-06-08  Antonio Gomes  <tonikitoo@webkit.org>
7115
7116        Reviewed by Ojan Vafai and Darin Adler.
7117
7118        Refactor platform dependent editing behavior code out of Settings
7119        https://bugs.webkit.org/show_bug.cgi?id=39854
7120
7121        EditingBehavior enum was renamed to EditingBehaviorTypes and moved out from Settings.h to
7122        EditingBehaviorTypes.h . Call sites in WebKit/ adjusted accordingly.
7123
7124        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
7125        (DumpRenderTreeSupportQt::setEditingBehavior):
7126
71272010-06-07  Anders Bakken  <agbakken@gmail.com>
7128
7129        Reviewed by David Levin.
7130
7131        [Qt] NotificationPresenterClientQt.cpp has coding-style errors
7132        https://bugs.webkit.org/show_bug.cgi?id=40256
7133
7134        * WebCoreSupport/NotificationPresenterClientQt.cpp:
7135        (WebCore::NotificationPresenterClientQt::show):
7136
71372010-06-06  Antonio Gomes  <tonikitoo@webkit.org>, Laszlo Gombos  <laszlo.1.gombos@nokia.com>
7138
7139        Reviewed by Kenneth Christiansen, Eric Seidel.
7140
7141        [Qt] Expose the editing behavior setting in DRT to test all editing code paths
7142        https://bugs.webkit.org/show_bug.cgi?id=39680
7143
7144        Make setEditingBehavior() a no-operation if the editingBehavior
7145        argument is not recognized to avoid using an uninitialized variable.
7146
7147        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
7148        (DumpRenderTreeSupportQt::setEditingBehavior):
7149
71502010-06-04  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
7151
7152        Symbian build fix.
7153
7154        [Qt] Updated the def file with recent new exports.
7155
7156        * symbian/eabi/QtWebKitu.def:
7157
71582010-06-03  Yael Aharon  <yael.aharon@nokia.com>
7159
7160        Reviewed by Laszlo Gombos.
7161
7162        [Qt] Don't send notifications event after the page was navigated away
7163        https://bugs.webkit.org/show_bug.cgi?id=40127
7164
7165        Added a check before sending events to the notification and before logging.
7166
7167        * WebCoreSupport/NotificationPresenterClientQt.cpp:
7168        (WebCore::NotificationPresenterClientQt::cancel):
7169        (WebCore::NotificationPresenterClientQt::sendEvent):
7170
71712010-06-02  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
7172
7173        Reviewed by Shinichiro Hamaji.
7174
7175        [Qt] Fix compilation with QT_NO_PROPERTIES
7176        https://bugs.webkit.org/show_bug.cgi?id=38324
7177
7178        * Api/qwebpage.cpp:
7179        (QWebPage::event):
7180        * Api/qwebpage_p.h:
7181        * WebCoreSupport/InspectorClientQt.cpp:
7182        (WebCore::InspectorClientQt::openInspectorFrontend):
7183
71842010-06-02  Luiz Agostini  <luiz.agostini@openbossa.org>
7185
7186        Reviewed by Simon Hausmann.
7187
7188        [Qt] Shared platform plugin
7189        https://bugs.webkit.org/show_bug.cgi?id=39968
7190
7191        Allow several instances of class QtPlatformPlugin to share the QWebKitPlatformPlugin
7192        object provided by a plugin.
7193
7194        Updated plugin interface version number due to ABI breaking change.
7195
7196        * Api/qwebkitplatformplugin.h:
7197        (QWebKitPlatformPlugin::~QWebKitPlatformPlugin):
7198        * WebCoreSupport/QtPlatformPlugin.cpp:
7199        (WebCore::QtPlatformPlugin::load):
7200        (WebCore::QtPlatformPlugin::~QtPlatformPlugin):
7201        (WebCore::QtPlatformPlugin::plugin):
7202        * WebCoreSupport/QtPlatformPlugin.h:
7203        * examples/platformplugin/qwebkitplatformplugin.h:
7204        (QWebKitPlatformPlugin::~QWebKitPlatformPlugin):
7205
72062010-06-02  Raine Makelainen  <raine.makelainen@nokia.com>
7207
7208        Reviewed by Kenneth Rohde Christiansen.
7209
7210        [Qt] On Maemo6 platform auto upper case and predictive text input method hints are not disabled for password field.
7211        https://bugs.webkit.org/show_bug.cgi?id=40062
7212
7213        Introducing Q_WS_MAEMO_6 for Maemo6 specific code. Enabling code that sets input
7214        method hints Qt::ImhNoAutoUppercase and Qt::ImhNoPredictiveText true for Maemo6.
7215
7216        * WebCoreSupport/EditorClientQt.cpp:
7217        (WebCore::EditorClientQt::setInputMethodState):
7218
72192010-06-01  Yael Aharon  <yael.aharon@nokia.com>
7220
7221        Reviewed by Kenneth Rohde Christiansen.
7222
7223        [Qt] Fix the lifecycle of notification objects
7224        https://bugs.webkit.org/show_bug.cgi?id=40003
7225
7226        Notification objects are not tightly related to the page that created them,
7227        and should be decoupled from the page.
7228        Create one NotificationPresenter that handles all notifications.
7229        Add ref/deref to the notification objects when they are added/removed from
7230        the queue of active notifications. The same technique is used for XMLHttpRequest.
7231        Instead of deleting all notifications associated with a page when the page is navigated,
7232        delete them on a timer, using the same timeout that QSystemTrayIcon is using.
7233        Break up the show() method into smaller methods.
7234        Use OwnPtr instead of raw pointer for QSystemTrayIcon.
7235        Move creating the QIcon to just before showing it in the QSyetemTrayIcon.
7236
7237        No new tests as this is just a refactoring. Existing notifications test cover the code.
7238
7239        * Api/qwebpage.cpp:
7240        (QWebPagePrivate::QWebPagePrivate):
7241        (QWebPagePrivate::~QWebPagePrivate):
7242        * Api/qwebpage_p.h:
7243        * WebCoreSupport/ChromeClientQt.cpp:
7244        (WebCore::ChromeClientQt::notificationPresenter):
7245        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
7246        (DumpRenderTreeSupportQt::setNotificationsReceiver):
7247        (DumpRenderTreeSupportQt::allowNotificationForOrigin):
7248        * WebCoreSupport/DumpRenderTreeSupportQt.h:
7249        * WebCoreSupport/FrameLoaderClientQt.cpp:
7250        (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
7251        * WebCoreSupport/NotificationPresenterClientQt.cpp:
7252        (WebCore::NotificationPresenterClientQt::notificationPresenter):
7253        (WebCore::NotificationIconWrapper::NotificationIconWrapper):
7254        (WebCore::NotificationIconWrapper::~NotificationIconWrapper):
7255        (WebCore::NotificationIconWrapper::close):
7256        (WebCore::NotificationPresenterClientQt::NotificationPresenterClientQt):
7257        (WebCore::NotificationPresenterClientQt::removeClient):
7258        (WebCore::NotificationPresenterClientQt::show):
7259        (WebCore::NotificationPresenterClientQt::displayNotification):
7260        (WebCore::NotificationPresenterClientQt::cancel):
7261        (WebCore::NotificationPresenterClientQt::notificationObjectDestroyed):
7262        (WebCore::NotificationPresenterClientQt::requestPermission):
7263        (WebCore::NotificationPresenterClientQt::sendEvent):
7264        (WebCore::NotificationPresenterClientQt::removeReplacedNotificationFromQueue):
7265        (WebCore::NotificationPresenterClientQt::dumpReplacedIdText):
7266        (WebCore::NotificationPresenterClientQt::dumpShowText):
7267        * WebCoreSupport/NotificationPresenterClientQt.h:
7268        (WebCore::NotificationPresenterClientQt::addClient):
7269
72702010-06-01  Noam Rosenthal  <noam.rosenthal@nokia.com>
7271
7272        Reviewed by Kenneth Rohde Christiansen.
7273
7274        [Qt] Add documentation to the QtWebkit bridge
7275        https://bugs.webkit.org/show_bug.cgi?id=35861
7276
7277        This patch includes comprehensive qdoc documentation for the QtWebkit bridge.
7278
7279        * docs/qtwebkit-bridge.qdoc: Added.
7280        * docs/qtwebkit.qdoc:
7281        * docs/webkitsnippets/doc_src_qtscript.qdoc: Added.
7282        * docs/webkitsnippets/qtwebkit_bridge_snippets.cpp: Added.
7283        (wrapInFunction):
7284
72852010-06-01  Raine Makelainen  <raine.makelainen@nokia.com>
7286
7287        Reviewed by Simon Hausmann.
7288
7289        [Qt]: REGRESSION(r58703): QWebSettings::JavascriptCanAccessClipboard has wrong case in "Javascript" part.
7290        https://bugs.webkit.org/show_bug.cgi?id=39878
7291
7292        QWebSettings::JavaScriptCanAccessClipboard reverted back to
7293        QWebSettings::JavascriptCanAccessClipboard. QWebSettings::DOMPasteAllowed enum removed.
7294
7295        Value of QWebSettings::JavascriptCanAccessClipboard to setDOMPasteAllowed and
7296        setJavaScriptCanAccessClipboard of WebCore::Settings.
7297
7298        * Api/qwebsettings.cpp:
7299        (QWebSettingsPrivate::apply):
7300        * Api/qwebsettings.h:
7301
73022010-06-01  Simon Hausmann  <simon.hausmann@nokia.com>
7303
7304        Reviewed by Laszlo Gombos.
7305
7306        [Qt] Rename versioning .pri file to what Qt's mkspecs/features/qt.pri expects.
7307
7308        * qt_webkit_version.pri: Renamed from WebKit/qt/qtwebkit_version.pri.
7309
73102010-05-31  Lyon Chen  <liachen@rim.com>
7311
7312        Reviewed by Kent Tamura.
7313
7314        Enum value FORWARD, BACKWARD, RIGHT, LEFT are causing macro conflicts.
7315        https://bugs.webkit.org/show_bug.cgi?id=35530
7316
7317        Change enum EAlteration from { MOVE, EXTEND } to { AlterationMove, AlterationExtend } and enum EDirection { FORWARD, BACKWARD, RIGHT, LEFT} to { DirectionForward, DirectionBackward, DirectionRight, DirectionLeft } to avoid macro conflict, and also better coding style conformance.
7318
7319        * WebCoreSupport/EditorClientQt.cpp:
7320        (WebCore::EditorClientQt::handleKeyboardEvent):
7321
73222010-05-31  Oswald Buddenhagen  <oswald.buddenhagen@nokia.com>
7323
7324        Reviewed by Simon Hausmann.
7325
7326        [Qt] Escape backslashes in the .pro files
7327
7328        qmake in Qt 4.7 warns about unescaped backspaces and deprecates them.
7329
7330        * Api/DerivedSources.pro:
7331        * docs/docs.pri:
7332
73332010-05-30  Lyon Chen  <liachen@rim.com>
7334
7335        Reviewed by Kent Tamura.
7336
7337        This is a coding style cleanup before fixing to bug 35530.
7338
7339        Enum value FORWARD, BACKWARD, RIGHT, LEFT are causing macro conflicts.
7340        https://bugs.webkit.org/show_bug.cgi?id=35530
7341
7342        * WebCoreSupport/EditorClientQt.cpp:
7343        (WebCore::EditorClientQt::registerCommandForUndo):
7344        (WebCore::EditorClientQt::handleKeyboardEvent):
7345
73462010-05-29  Dawit Alemayehu  <adawit@kde.org>
7347
7348        Reviewed by Kenneth Rohde Christiansen.
7349
7350        Added a WebAction to stop all pending page refresh/redirect
7351        requests set through the <meta http-equiv="refresh"...> tag.
7352
7353        https://bugs.webkit.org/show_bug.cgi?id=29899
7354
7355        * Api/qwebpage.cpp:
7356        (QWebPage::triggerAction):
7357        * Api/qwebpage.h:
7358        * tests/qwebpage/tst_qwebpage.cpp:
7359        (tst_QWebPage::testStopScheduledPageRefresh):
7360
73612010-05-28  Antti Koivisto  <koivisto@iki.fi>
7362
7363        Reviewed by Kenneth Rohde Christiansen.
7364
7365        Add a missing #if ENABLE(), some null checking.
7366
7367        * Api/qwebpage.cpp:
7368        (QWebPagePrivate::dynamicPropertyChangeEvent):
7369
73702010-05-28  Antti Koivisto  <koivisto@iki.fi>
7371
7372        Reviewed by Kenneth Rohde Christiansen.
7373
7374        https://bugs.webkit.org/show_bug.cgi?id=39874
7375        [Qt] Make tiled backing store more configurable
7376
7377        Make tile size, tile creation delay and tiling area dynamically configurable.
7378
7379        * Api/qwebpage.cpp:
7380        (QWebPagePrivate::dynamicPropertyChangeEvent):
7381
73822010-05-28  Yael Aharon  <yael.aharon@nokia.com>
7383
7384        Unreviewed build fix after r60348.
7385
7386        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
7387        (DumpRenderTreeSupportQt::setNotificationsReceiver):
7388
73892010-05-28  Yael Aharon  <yael.aharon@nokia.com>
7390
7391        Reviewed by Laszlo Gombos.
7392
7393        [Qt] Pass all web notification layout tests
7394        https://bugs.webkit.org/show_bug.cgi?id=39146
7395
7396        Add support for multiple simultaneous notifications.
7397        Add a private callback mechanism to the client for security checks.
7398        Notifications are disabled if the client does not set the callbacks.
7399        Support replaceId and cancel.
7400        Send close and display events when needed.
7401
7402        * Api/qwebpage.cpp:
7403        (QWebPagePrivate::QWebPagePrivate):
7404        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
7405        (DumpRenderTreeSupportQt::setNotificationsReceiver):
7406        (DumpRenderTreeSupportQt::allowNotificationForOrigin):
7407        (DumpRenderTreeSupportQt::setCheckPermissionFunction):
7408        (DumpRenderTreeSupportQt::setRequestPermissionFunction):
7409        * WebCoreSupport/DumpRenderTreeSupportQt.h:
7410        * WebCoreSupport/FrameLoaderClientQt.cpp:
7411        (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
7412        * WebCoreSupport/NotificationPresenterClientQt.cpp:
7413        (NotificationIconWrapper::NotificationIconWrapper):
7414        (NotificationIconWrapper::~NotificationIconWrapper):
7415        (NotificationPresenterClientQt::NotificationPresenterClientQt):
7416        (NotificationPresenterClientQt::show):
7417        (NotificationPresenterClientQt::cancel):
7418        (NotificationPresenterClientQt::notificationObjectDestroyed):
7419        (NotificationPresenterClientQt::requestPermission):
7420        (NotificationPresenterClientQt::checkPermission):
7421        (NotificationPresenterClientQt::allowNotificationForOrigin):
7422        (NotificationPresenterClientQt::clearNotificationsList):
7423        (NotificationPresenterClientQt::sendEvent):
7424        * WebCoreSupport/NotificationPresenterClientQt.h:
7425        (WebCore::NotificationPresenterClientQt::~NotificationPresenterClientQt):
7426        (WebCore::NotificationPresenterClientQt::setReceiver):
7427
74282010-05-27  Luiz Agostini  <luiz.agostini@openbossa.org>
7429
7430        Reviewed by Kenneth Rohde Christiansen.
7431
7432        [Qt] Platform plugin example
7433        https://bugs.webkit.org/show_bug.cgi?id=39489
7434
7435        Adding a Qt platform plugin example to repository.
7436
7437        * examples/platformplugin/README: Added.
7438        * examples/platformplugin/WebPlugin.cpp: Added.
7439        (Popup::populateList):
7440        (Popup::onItemSelected):
7441        (WebPopup::WebPopup):
7442        (WebPopup::~WebPopup):
7443        (WebPopup::createSingleSelectionPopup):
7444        (WebPopup::createMultipleSelectionPopup):
7445        (WebPopup::createPopup):
7446        (WebPopup::show):
7447        (WebPopup::hide):
7448        (WebPopup::popupClosed):
7449        (WebPopup::itemClicked):
7450        (SingleSelectionPopup::SingleSelectionPopup):
7451        (MultipleItemListDelegate::MultipleItemListDelegate):
7452        (MultipleItemListDelegate::paint):
7453        (MultipleSelectionPopup::MultipleSelectionPopup):
7454        (WebPlugin::supportsExtension):
7455        * examples/platformplugin/WebPlugin.h: Added.
7456        (Popup::Popup):
7457        (WebPlugin::createSelectInputMethod):
7458        * examples/platformplugin/platformplugin.pro: Added.
7459        * examples/platformplugin/qwebkitplatformplugin.h: Copied from WebKit/qt/Api/qwebkitplatformplugin.h.
7460        (QWebSelectData::~QWebSelectData):
7461        (QWebSelectData::):
7462        (QWebSelectMethod::~QWebSelectMethod):
7463        (QWebKitPlatformPlugin::~QWebKitPlatformPlugin):
7464        (QWebKitPlatformPlugin::):
7465
74662010-05-25  Antonio Gomes  <tonikitoo@webkit.org>
7467
7468        Reviewed by Ojan Vafai.
7469
7470        [Qt] Expose the editing behavior setting in DRT to test all editing code paths
7471        https://bugs.webkit.org/show_bug.cgi?id=39680
7472
7473        Add support to Qt's DRT to setting the editing behavior. Patch is a follow up of
7474        bug 38603, which just stubbed out the Qt bits of it.
7475
7476        * WebCoreSupport/DumpRenderTreeSupportQt.cpp: Implementation of editing behavior control.
7477        (DumpRenderTreeSupportQt::setEditingBehavior):
7478        * WebCoreSupport/DumpRenderTreeSupportQt.h:
7479
74802010-05-24  Robert Hogan  <robert@webkit.org>
7481
7482        Reviewed by Laszlo Gombos.
7483
7484        [Qt] DRT Support for removeOriginAccessWhitelistEntry
7485
7486        Unskips http/tests/xmlhttprequest/origin-whitelisting-removal.html
7487
7488        [Qt] DRT Support for removeOriginAccessWhitelistEntry
7489        https://bugs.webkit.org/show_bug.cgi?id=39565
7490
7491        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
7492        (DumpRenderTreeSupportQt::removeWhiteListAccessFromOrigin):
7493        * WebCoreSupport/DumpRenderTreeSupportQt.h:
7494
74952010-05-24  Darin Adler  <darin@apple.com>
7496
7497        Reviewed by Eric Seidel.
7498
7499        Move view-related functions from Frame to FrameView
7500        https://bugs.webkit.org/show_bug.cgi?id=39366
7501
7502        * Api/qwebframe.cpp:
7503        (QWebFrame::setTextSizeMultiplier): Call functions on FrameView.
7504        (QWebFrame::textSizeMultiplier): Ditto.
7505        (QWebFrame::setZoomFactor): Ditto.
7506        (QWebFrame::zoomFactor): Ditto.
7507        * Api/qwebpage.cpp:
7508        (QWebPage::setContentEditable): Removed call to empty function,
7509        removeEditingStyleFromBodyElement.
7510
75112010-05-23  Noam Rosenthal  <noam.rosenthal@nokia.com>
7512
7513        Reviewed by Kenneth Rohde Christiansen.
7514
7515        [Qt] GraphicsLayer: The rocket animation doesn't scroll together with the page
7516        https://bugs.webkit.org/show_bug.cgi?id=39517
7517
7518        A previous fix to this issue was overridden by the PageClientQt refactor. Reapplying.
7519
7520        * WebCoreSupport/PageClientQt.cpp:
7521        (WebCore::PageClientQGraphicsWidget::update):
7522
75232010-05-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
7524
7525        Reviewed by Kenneth Rohde Christiansen.
7526
7527        [Qt] Update the Symbian version for the user agent
7528        https://bugs.webkit.org/show_bug.cgi?id=38389
7529
7530        Fixes a regression introduced by r58648. Ensure that the "Symbian" string
7531        is only listed one time in the User Agent string.
7532
7533        In addition make an effort to align the User Agent string to already
7534        released WebKit based products for Symbian.
7535
7536        * Api/qwebpage.cpp:
7537        (QWebPage::userAgentForUrl):
7538
75392010-05-21  Steve Block  <steveblock@google.com>
7540
7541        Reviewed by Jeremy Orlow.
7542
7543        Add DeviceOrientation and DeviceOrientationClient
7544        https://bugs.webkit.org/show_bug.cgi?id=39479
7545
7546        * Api/qwebpage.cpp:
7547        (QWebPagePrivate::QWebPagePrivate):
7548
75492010-05-21  Simon Hausmann  <simon.hausmann@nokia.com>
7550
7551        Symbian build fix.
7552
7553        [Qt] Updated the wins def file with one new export.
7554
7555        The DRT symbols are still missing, but I can't build DRT ;(
7556
7557        * symbian/bwins/QtWebKitu.def:
7558
75592010-05-20  Janne Koskinen  <janne.p.koskinen@digia.com>
7560
7561        Reviewed by Kenneth Rohde Christiansen.
7562
7563        [Qt] WINSCW compile fix for qwebframe test
7564        https://bugs.webkit.org/show_bug.cgi?id=38722
7565
7566        WINSCW cannot determine template type up the hierarchy
7567        to common base class.
7568
7569        * tests/qwebframe/tst_qwebframe.cpp:
7570
75712010-05-20  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
7572
7573        Reviewed by Kenneth Rohde Christiansen.
7574
7575        Remove unused "old style" private APIs
7576
7577        These symbols were introduced after QtWebKit v4.6
7578        so no-one should be using them
7579
7580        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
7581
75822010-05-20  Rajiv Ramanasankaran  <rajiv.ramanasankaran@nokia.com>
7583
7584        Reviewed by Simon Hausmann.
7585
7586        [Qt] QWebPage::inputMethodQuery() returns wrong values for Qt::ImCursorPosition, Qt::ImAnchorPosition
7587        https://bugs.webkit.org/show_bug.cgi?id=38779
7588
7589        The earlier implementation was written with the assumption that in this scenario the
7590        anchor position always corresponds to the START index and that the current cursor position
7591        always corresponds to the END index in WebKit.
7592
7593        Updated the implementation of QWebPage::inputMethodQuery(Qt::ImCursorPosition) and
7594        QWebPage::inputMethodQuery(Qt::ImAnchorPosition) for the case where the Editor is not in
7595        composition mode. In the non-composition mode, the Anchor and the Current cursor positions
7596        correspond to the Base and Extent position offsets in WebKit.
7597
7598        Also added the auto-tests for the RIGHT to LEFT and LEFT to RIGHT selections.
7599
7600        * Api/qwebpage.cpp:
7601        (QWebPage::inputMethodQuery): Now returning correct values for Qt::ImCursorPosition and
7602        Qt::ImAnchorPosition when the Editor is not in composition mode.
7603        * tests/qwebpage/tst_qwebpage.cpp:
7604        (tst_QWebPage::inputMethods): Added auto-tests for RIGHT to LEFT and LEFT to RIGHT selections
7605
76062010-05-20  Luiz Agostini  <luiz.agostini@openbossa.org>
7607
7608        Reviewed by Kenneth Rohde Christiansen.
7609
7610        [Qt] Skipping popup focus test for maemo
7611        https://bugs.webkit.org/show_bug.cgi?id=39314
7612
7613        Skipping popup focus test for maemo in qwebframe auto test.
7614
7615        The test method tst_QWebFrame::popupFocus() was testing popup focus AND input
7616        field focus. The input field focus has been removed from the method popupFocus()
7617        and a new test method named inputFieldFocus() has been added. Finally the test
7618        method popupFocus() has been skipped for maemo.
7619
7620        * tests/qwebframe/tst_qwebframe.cpp:
7621
76222010-05-19  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
7623
7624        Reviewed by Kenneth Rohde Christiansen.
7625
7626        Crash fix in the HistoryController.
7627
7628        The problem was casued by a documented feature of the QWebFrame::setHtml().
7629        The method doesn't affect a browsing history (doesn't create a HistoryItem instance), so
7630        m_currentItem and m_previousItem are not set.
7631
7632        A null check was added.
7633
7634        [Qt] The QWebPage crashes on history.pushState().
7635        https://bugs.webkit.org/show_bug.cgi?id=38840
7636
7637        * tests/qwebhistory/tst_qwebhistory.cpp:
7638        (tst_QWebHistory::popPushState_data):
7639        (tst_QWebHistory::popPushState):
7640
76412010-05-19  Antti Koivisto  <koivisto@iki.fi>
7642
7643        Rubber-stamped by Kenneth Rohde Christiansen.
7644
7645        [Qt] TiledBackingStore updates broken when not using resizesToContents mode
7646        https://bugs.webkit.org/show_bug.cgi?id=39359
7647
7648        Put the back logic that was lost in refactoring.
7649
7650        * WebCoreSupport/ChromeClientQt.cpp:
7651        (WebCore::ChromeClientQt::visibleRectForTiledBackingStore):
7652        * WebCoreSupport/PageClientQt.cpp:
7653        (WebCore::PageClientQGraphicsWidget::graphicsItemVisibleRect):
7654        * WebCoreSupport/PageClientQt.h:
7655        (WebCore::PageClientQWidget::viewResizesToContentsEnabled):
7656        (WebCore::PageClientQGraphicsWidget::viewResizesToContentsEnabled):
7657
76582010-05-19  Simon Hausmann  <simon.hausmann@nokia.com>
7659
7660        Symbian build fix.
7661
7662        [Qt] Updated the def file with exports needed for DumpRenderTree.
7663
7664        * symbian/eabi/QtWebKitu.def:
7665
76662010-05-19  Denis Dzyubenko <denis.dzyubenko@nokia.com>
7667
7668        Reviewed by Kenneth Rohde Christiansen.
7669
7670        When creating the UA, do not sassmue the language code is a
7671        two-letter iso639-1 code.
7672
7673        * Api/qwebpage.cpp:
7674        (QWebPage::userAgentForUrl):
7675
76762010-05-18  Antti Koivisto  <koivisto@iki.fi>
7677
7678        Reviewed by Kenneth Rohde Christiansen.
7679
7680        [Qt] Move visible rect calculation from QGraphicsWebViewPrivate to PageClientQGraphicsWidget
7681        https://bugs.webkit.org/show_bug.cgi?id=39294
7682
7683        * Api/qgraphicswebview.cpp:
7684        * WebCoreSupport/PageClientQt.cpp:
7685        (WebCore::PageClientQGraphicsWidget::graphicsItemVisibleRect):
7686        * WebCoreSupport/PageClientQt.h:
7687
76882010-05-18  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
7689
7690        Symbian build fix.
7691
7692        [Qt] Updated the def file with new exports after r59335.
7693
7694        * symbian/eabi/QtWebKitu.def:
7695
76962010-05-18  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
7697
7698        Reviewed by Simon Hausmann.
7699
7700        Fix QWebHistory serialization.
7701
7702        Regression was caused by bug 33224. The streaming function
7703        should generate a documentSequenceNumber for all loaded values.
7704
7705        [Qt] tst_QWebHistory::serialize_2() fails
7706        https://bugs.webkit.org/show_bug.cgi?id=37322
7707
7708        * Api/qwebhistory.cpp:
7709        (operator>>):
7710
77112010-05-17  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
7712
7713        Reviewed by Kenneth Rohde Christiansen.
7714
7715        [Qt] Fix compilation with QT_NO_COMBOBOX
7716        https://bugs.webkit.org/show_bug.cgi?id=38324
7717
7718        * WebCoreSupport/ChromeClientQt.cpp:
7719        (WebCore::ChromeClientQt::createSelectPopup):
7720        * WebCoreSupport/QtFallbackWebPopup.cpp:
7721        * WebCoreSupport/QtFallbackWebPopup.h:
7722
77232010-05-17  Antti Koivisto  <koivisto@iki.fi>
7724
7725        Reviewed by Kenneth Rohde Christiansen.
7726
7727        https://bugs.webkit.org/show_bug.cgi?id=39218
7728        [Qt] Tiled backing store tiles sometimes flicker when exiting a zoom animation
7729
7730        Tiles sometimes flicker when exiting a zoom animation. This happens as a result
7731        of the visible rectangle being momentarily out of sync.
7732
7733        Instead of updating the visible rect by explicitly setting it, pull it through
7734        the client and recompute in WebKit the level.
7735
7736        * Api/qgraphicswebview.cpp:
7737        (QGraphicsWebView::paint):
7738        * WebCoreSupport/ChromeClientQt.cpp:
7739        (WebCore::ChromeClientQt::visibleRectForTiledBackingStore):
7740        * WebCoreSupport/ChromeClientQt.h:
7741
77422010-05-16  Robert Hogan  <robert@webkit.org>
7743
7744        Reviewed by Kenneth Rohde Christiansen.
7745
7746        [Qt] Unskip fast/loader/main-document-url-for-non-http-loads.html
7747
7748        Fix FrameLoaderClientQt.cpp to print relative filename paths correctly.
7749
7750        Move qt_* functions in FrameLoaderClientQt, EditorClientQt, and NotificationPresenterClientQt
7751        to DumpRenderTreeSupportQt. Create new functions to replace them in DumpRenderTreeSupportQt.
7752        Support for the old function names is retained until confirmed that no one uses them outside
7753        QtWebKit.
7754
7755        https://bugs.webkit.org/show_bug.cgi?id=38867
7756
7757        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
7758        (DumpRenderTreeSupportQt::dumpFrameLoader):
7759        (DumpRenderTreeSupportQt::dumpResourceLoadCallbacks):
7760        (DumpRenderTreeSupportQt::dumpResourceLoadCallbacksPath):
7761        (DumpRenderTreeSupportQt::setWillSendRequestReturnsNullOnRedirect):
7762        (DumpRenderTreeSupportQt::setWillSendRequestReturnsNull):
7763        (DumpRenderTreeSupportQt::setWillSendRequestClearHeaders):
7764        (DumpRenderTreeSupportQt::dumpEditingCallbacks):
7765        (DumpRenderTreeSupportQt::dumpSetAcceptsEditing):
7766        (DumpRenderTreeSupportQt::dumpNotification):
7767        (qt_dump_frame_loader):
7768        (qt_dump_resource_load_callbacks):
7769        (qt_dump_resource_load_callbacks_path):
7770        (qt_set_will_send_request_returns_null_on_redirect):
7771        (qt_set_will_send_request_returns_null):
7772        (qt_set_will_send_request_clear_headers):
7773        (qt_dump_editing_callbacks):
7774        (qt_dump_set_accepts_editing):
7775        (qt_dump_notification):
7776        * WebCoreSupport/DumpRenderTreeSupportQt.h:
7777        * WebCoreSupport/EditorClientQt.cpp:
7778        * WebCoreSupport/EditorClientQt.h:
7779        * WebCoreSupport/FrameLoaderClientQt.cpp:
7780        (drtDescriptionSuitableForTestResult):
7781        * WebCoreSupport/FrameLoaderClientQt.h:
7782        * WebCoreSupport/NotificationPresenterClientQt.cpp:
7783        * WebCoreSupport/NotificationPresenterClientQt.h:
7784
77852010-05-16  Robert Hogan  <robert@webkit.org>
7786
7787        Reviewed by Kenneth Rohde Christiansen.
7788
7789        [Qt]Unskip security/set-form-autocomplete-attribute.html
7790
7791        Add support for layoutTestController.elementDoesAutoCompleteForElementWithId().
7792
7793        https://bugs.webkit.org/show_bug.cgi?id=38859
7794
7795        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
7796        (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
7797        * WebCoreSupport/DumpRenderTreeSupportQt.h:
7798
77992010-05-16  Simon Hausmann  <simon.hausmann@nokia.com>
7800
7801        [Qt] Prospective Qt/Mac build fix.
7802
7803        The friend declaration of QGraphicsWidget confuses gcc and thinks that it's an implicit
7804        forward declaration, moving the class into the WebCore namespace (WebCore::QGraphicsWidget).
7805
7806        The declaration seems useless as no method of QGraphicsWidget is going to call anything
7807        in this class.
7808
7809        * WebCoreSupport/PageClientQt.h:
7810
78112010-05-15  Charles Wei  <charles.wei@torchmobile.com.cn>
7812
7813        Reviewed by Simon Hausmann.
7814
7815        This patch fixes the build failure of WebKit on Linux for Qt4.5
7816        https://bugs.webkig.org/show_bug.cgi?id=39108
7817
7818        * Api/qgraphicswebview.cpp:
7819        (QGraphicsWebViewPrivate::syncLayers):
7820        * WebCoreSupport/QtPlatformPlugin.cpp:
7821
78222010-05-14  Kent Hansen <kent.hansen@nokia.com>, Jocelyn Turcotte <jocelyn.turcotte@nokia.com>, Tor Arne Vestbø <tor.arne.vestbo@nokia.com>, Henry Haverinen <henry.haverinen@nokia.com>, Jedrzej Nowacki <jedrzej.nowacki@nokia.com>, Andreas Kling <andreas.kling@nokia.com>
7823
7824        Reviewed by Simon Hausmann.
7825
7826        [Qt] Merge overhaul of the QtWebKit API documentation
7827
7828        Numerous improvements in wording, qdoc warning fixes and
7829        clarifications, done in a team work effort.
7830
7831        No functional changes.
7832
7833        * Api/qwebdatabase.cpp:
7834        * Api/qwebelement.cpp:
7835        * Api/qwebframe.cpp:
7836        * Api/qwebhistoryinterface.cpp:
7837        * Api/qwebinspector.cpp:
7838        * Api/qwebkitversion.cpp:
7839        * Api/qwebpage.cpp:
7840        * Api/qwebpluginfactory.cpp:
7841        * Api/qwebsecurityorigin.cpp:
7842        * Api/qwebsettings.cpp:
7843        * Api/qwebsettings.h:
7844        * docs/qtwebkit.qdoc:
7845        * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
7846        (wrapInFunction):
7847        * docs/webkitsnippets/webelement/main.cpp:
7848        (findButtonAndClick):
7849        (autocomplete1):
7850        (autocomplete2):
7851        (main):
7852
78532010-05-14  Martin Smith  <msmith@trolltech.com>
7854
7855        Reviewed by Simon Hausmann.
7856
7857        Documentation: Fix overview grouping.
7858
7859        * docs/qtwebkit.qdoc:
7860
78612010-05-14  Benjamin Poulain  <benjamin.poulain@nokia.com>
7862
7863        Reviewed by Laszlo Gombos.
7864
7865        [QT] Update the Symbian version for the user agent
7866        https://bugs.webkit.org/show_bug.cgi?id=38389
7867
7868        Update the user agent for Symbian^2 to Symbian^4
7869
7870        * Api/qwebpage.cpp:
7871        (QWebPage::userAgentForUrl):
7872
78732010-05-14  Dawit Alemayehu  <adawit@kde.org>
7874
7875        Reviewed by Simon Hausmann.
7876
7877        Implemented createJavaAppletWidget to activate Java applet support.
7878
7879        https://bugs.webkit.org/show_bug.cgi?id=33044
7880
7881        * WebCoreSupport/FrameLoaderClientQt.cpp:
7882        (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
7883
78842010-05-13  Simon Hausmann  <hausmann@webkit.org>
7885
7886        Symbian build fix.
7887
7888        [Qt] Updated the def file with new exports.
7889
7890        * symbian/eabi/QtWebKitu.def: Add missing gc symbol for QtLauncher
7891
78922010-05-13  Simon Hausmann  <simon.hausmann@nokia.com>
7893
7894        Symbian build fix.
7895
7896        [Qt] Updated the def file with new exports.
7897
7898        * symbian/eabi/QtWebKitu.def:
7899
79002010-05-11  Diego Gonzalez  <diegohcg@webkit.org>
7901
7902        Reviewed by Kenneth Rohde Christiansen.
7903
7904        [Qt] tst_QWebPage::inputMethods failing on Maemo5
7905        https://bugs.webkit.org/show_bug.cgi?id=38685
7906
7907        Check if the SIP (Software Input Panel) is triggered, which normally
7908        happens on mobile platforms, when a user input form receives a mouse click.
7909
7910        * tests/qwebpage/tst_qwebpage.cpp:
7911        (tst_QWebPage::inputMethods):
7912
79132010-05-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
7914
7915        Reviewed by Laszlo Gombos.
7916
7917        [Qt] REGRESSION(r58497) tst_QGraphicsWebView::crashOnViewlessWebPages() is failing
7918        https://bugs.webkit.org/show_bug.cgi?id=38655
7919
7920        Fix double free by moving the connect till after the resize.
7921
7922        The bug is causes by the fact that a resize of an empty page causes a
7923        layout, thus deleting the qgraphicswebview before setHtml is called,
7924        which then deletes it again, causing a double free.
7925
7926        * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
7927        (tst_QGraphicsWebView::crashOnViewlessWebPages):
7928
79292010-05-12  Kenneth Rohde Christiansen  <kenneth@webkit.org>
7930
7931        Reviewed by Laszlo Gombos.
7932
7933        [Qt] Regression(r59152): QGraphicsPageClient is not forwarding scroll and update events to view
7934        https://bugs.webkit.org/show_bug.cgi?id=39016
7935
7936        Some forward calls got lost during the refatory.
7937
7938        * WebCoreSupport/PageClientQt.cpp:
7939        (WebCore::PageClientQGraphicsWidget::scroll):
7940        (WebCore::PageClientQGraphicsWidget::update):
7941
79422010-05-13  Antonio Gomes  <tonikitoo@webkit.org>, Yi Shen <yi.4.shen@nokia.com>
7943
7944        Reviewed by Kenneth Christiansen.
7945
7946        [Qt] Add LayoutTestController interface: computedStyleIncludingVisitedInfo
7947        https://bugs.webkit.org/show_bug.cgi?id=37759
7948
7949        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
7950        (DumpRenderTreeSupportQt::markerTextForListItem):
7951        (DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo):
7952        * WebCoreSupport/DumpRenderTreeSupportQt.h:
7953
79542010-05-12  Joe Ligman  <joseph.ligman@nokia.com>
7955
7956        Reviewed by Laszlo Gombos.
7957
7958        [Qt] Nested overflow div does not scroll
7959        https://bugs.webkit.org/show_bug.cgi?id=38641
7960
7961        Modify qtwebkit_webframe_scrollOverflow, if the current node's render layer
7962        does not scroll it will try and scroll the parent's render layer. Also export
7963        qtwebkit_webframe_scrollOverflow so we can use it independently of
7964        qtwebkit_webframe_scrollRecursively
7965
7966        * Api/qwebframe.cpp:
7967        (qtwebkit_webframe_scrollOverflow):
7968        (qtwebkit_webframe_scrollRecursively):
7969
79702010-05-12  Antonio Gomes  <tonikitoo@webkit.org>
7971
7972        Reviewed by Kenneth Christiansen.
7973
7974        [Qt] Remove the unneeded check for QWidgetPageClient @QGraphicsWebView::detachCurrentPage
7975        https://bugs.webkit.org/show_bug.cgi?id=38989
7976
7977        Reasons:
7978        - There is no need to check for a QWidgetPageClient-based in QGraphicsWebView.
7979        - The client has always to be deleted anyways.
7980
7981        * Api/qgraphicswebview.cpp:
7982        (QGraphicsWebViewPrivate::detachPage):
7983
79842010-05-12  Simon Hausmann  <simon.hausmann@nokia.com>
7985
7986        Reviewed by Laszlo Gombos.
7987
7988        Add a comment to explain the web inspector dynamic property url hook
7989        and that it's there on purpose :)
7990
7991        https://bugs.webkit.org/show_bug.cgi?id=35340
7992
7993        * WebCoreSupport/InspectorClientQt.cpp:
7994        (WebCore::InspectorClientQt::openInspectorFrontend):
7995
79962010-05-11  Antonio Gomes  <tonikitoo@webkit.org>
7997
7998        Reviewed by Kenneth Christiansen.
7999
8000        [Qt] Implement a detachCurrentPage method for QGraphicsWebView and QWebView
8001        https://bugs.webkit.org/show_bug.cgi?id=38939
8002
8003        unsetPageIfExists method was renamed to detachCurrentPage method and is now responsible
8004        for doing all the unset logic of page and pageClient references previously done by
8005        the Q{Graphics}WebView destructor(s).
8006
8007        It is a code clean up, no behaviour change.
8008
8009        * Api/qgraphicswebview.cpp:
8010        (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate):
8011        (QGraphicsWebView::~QGraphicsWebView):
8012        (QGraphicsWebViewPrivate::detachCurrentPage):
8013        (QGraphicsWebView::setPage):
8014        * Api/qwebview.cpp:
8015        (QWebViewPrivate::~QWebViewPrivate):
8016        (QWebView::~QWebView):
8017        (QWebViewPrivate::detachCurrentPage):
8018        (QWebView::setPage):
8019
80202010-05-11  Antonio Gomes  <tonikitoo@webkit.org>
8021
8022        Reviewed by Kenneth Christiansen.
8023
8024        [Qt] emit initialLayoutCompleted signal from FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout
8025        https://bugs.webkit.org/show_bug.cgi?id=38921
8026
8027        Emit initialLayoutCompleted signal from FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout
8028        instead of FrameLoaderClientQt::dispatchDidFirstLayout , because the former ensures that a
8029        visual content layed out on the frame.
8030
8031        It matches to QWebFrame::initialLayoutCompleted signal documentation at:
8032
8033        "... This is the first time you will see contents displayed on the frame ..."
8034
8035        * WebCoreSupport/FrameLoaderClientQt.cpp:
8036        (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
8037        (WebCore::FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout):
8038
80392010-05-11  Jesus Sanchez-Palencia  <jesus@webkit.org>
8040
8041        Reviewed by Kenneth Rohde Christiansen.
8042
8043        Add PageClientQGraphicsWidget specific implementation.
8044        QGraphicsWebViewPrivate doesn't inherit QWebPageClient anymore
8045        and the needed functions were moved to this new PageClient class,
8046        including Tiling and Accelerated Composite specific ones.
8047
8048        [Qt] PageClientQt specific implementation for QGraphicsWidget
8049        https://bugs.webkit.org/show_bug.cgi?id=37866
8050
8051        * Api/qgraphicswebview.cpp:
8052        (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
8053        (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate):
8054        (QGraphicsWebViewPrivate::syncLayers):
8055        (QGraphicsWebViewPrivate::_q_scaleChanged):
8056        (QGraphicsWebView::event):
8057        (QGraphicsWebView::setPage):
8058        (QGraphicsWebView::updateGeometry):
8059        (QGraphicsWebView::setGeometry):
8060        (QGraphicsWebView::setResizesToContents):
8061        * WebCoreSupport/PageClientQt.cpp:
8062        (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
8063        (WebCore::PageClientQGraphicsWidget::scroll):
8064        (WebCore::PageClientQGraphicsWidget::update):
8065        (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
8066        (WebCore::PageClientQGraphicsWidget::syncLayers):
8067        (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
8068        (WebCore::PageClientQGraphicsWidget::markForSync):
8069        (WebCore::PageClientQGraphicsWidget::updateCompositingScrollPosition):
8070        (WebCore::PageClientQGraphicsWidget::updateTiledBackingStoreScale):
8071        (WebCore::PageClientQGraphicsWidget::setInputMethodEnabled):
8072        (WebCore::PageClientQGraphicsWidget::inputMethodEnabled):
8073        (WebCore::PageClientQGraphicsWidget::setInputMethodHint):
8074        (WebCore::PageClientQGraphicsWidget::cursor):
8075        (WebCore::PageClientQGraphicsWidget::updateCursor):
8076        (WebCore::PageClientQGraphicsWidget::palette):
8077        (WebCore::PageClientQGraphicsWidget::screenNumber):
8078        (WebCore::PageClientQGraphicsWidget::ownerWidget):
8079        (WebCore::PageClientQGraphicsWidget::geometryRelativeToOwnerWidget):
8080        (WebCore::PageClientQGraphicsWidget::pluginParent):
8081        (WebCore::PageClientQGraphicsWidget::style):
8082        * WebCoreSupport/PageClientQt.h:
8083        (WebCore::QGraphicsItemOverlay::page):
8084        (WebCore::QGraphicsItemOverlay::boundingRect):
8085        (WebCore::QGraphicsItemOverlay::paint):
8086        (WebCore::QGraphicsItemOverlay::prepareGraphicsItemGeometryChange):
8087        (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
8088        (WebCore::PageClientQGraphicsWidget::isQWidgetClient):
8089        (WebCore::PageClientQGraphicsWidget::allowsAcceleratedCompositing):
8090        (WebCore::PageClientQGraphicsWidget::):
8091
80922010-05-09  Noam Rosenthal  <noam.rosenthal@nokia.com>
8093
8094        Reviewed by Kenneth Rohde Christiansen.
8095
8096        [Qt] Crash in QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate when animation were used
8097        https://bugs.webkit.org/show_bug.cgi?id=38574
8098
8099        The fix uses a QWeakPointer for rootGraphicsLayer, protecting from a crash in case the layer is deleted before the QGraphicsWebView.
8100
8101        * Api/qgraphicswebview.cpp:
8102        (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
8103        (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate):
8104        (QGraphicsWebViewPrivate::setRootGraphicsLayer):
8105        (QGraphicsWebViewPrivate::updateCompositingScrollPosition):
8106
81072010-05-08  Luiz Agostini  <luiz.agostini@openbossa.org>
8108
8109        Reviewed by Simon Hausmann.
8110
8111        [Qt] Platform plugin
8112        https://bugs.webkit.org/show_bug.cgi?id=38438
8113
8114        Select popups delegate private API. To provide select popup delegates
8115        a plugin that implements QWebKitPlatformPlugin must be found
8116        in QCoreApplication::libraryPaths.
8117
8118        * Api/headers.pri:
8119        * Api/qwebkitplatformplugin.h: Added.
8120        (QWebSelectData::~QWebSelectData):
8121        (QWebSelectData::):
8122        (QWebSelectMethod::~QWebSelectMethod):
8123        (QWebKitPlatformPlugin::~QWebKitPlatformPlugin):
8124        (QWebKitPlatformPlugin::):
8125        * WebCoreSupport/ChromeClientQt.cpp:
8126        (WebCore::ChromeClientQt::createSelectPopup):
8127        * WebCoreSupport/ChromeClientQt.h:
8128        * WebCoreSupport/QtPlatformPlugin.cpp: Added.
8129        (WebCore::SelectData::SelectData):
8130        (WebCore::SelectData::itemText):
8131        (WebCore::SelectData::itemToolTip):
8132        (WebCore::SelectData::itemIsEnabled):
8133        (WebCore::SelectData::itemCount):
8134        (WebCore::SelectData::itemIsSelected):
8135        (WebCore::SelectData::multiple):
8136        (WebCore::SelectData::itemType):
8137        (WebCore::SelectInputMethodWrapper::SelectInputMethodWrapper):
8138        (WebCore::SelectInputMethodWrapper::show):
8139        (WebCore::SelectInputMethodWrapper::hide):
8140        (WebCore::SelectInputMethodWrapper::selectItem):
8141        (WebCore::SelectInputMethodWrapper::didHide):
8142        (WebCore::getPluginObject):
8143        (WebCore::QtPlatformPlugin::~QtPlatformPlugin):
8144        (WebCore::QtPlatformPlugin::plugin):
8145        (WebCore::QtPlatformPlugin::createSelectInputMethod):
8146        * WebCoreSupport/QtPlatformPlugin.h: Added.
8147        (WebCore::QtPlatformPlugin::QtPlatformPlugin):
8148
81492010-05-08  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
8150
8151        Reviewed by Simon Hausmann.
8152
8153        [Qt] Document a limitation of QWebPage::linkClicked
8154        https://bugs.webkit.org/show_bug.cgi?id=37694
8155
8156        * Api/qwebpage.cpp:
8157
81582010-05-02  Simon Hausmann  <hausmann@webkit.org>
8159
8160        [Qt] Unreviewed, QtWebKit versioning for the trunk.
8161
8162        The next version is going to be 2.1, based off the trunk.
8163
8164        * Api/qwebkitglobal.h:
8165
81662010-05-07  Simon Hausmann  <simon.hausmann@nokia.com>
8167
8168        Symbian build fix.
8169
8170        [Qt] Updated the def file with absent exports.
8171
8172        * symbian/eabi/QtWebKitu.def:
8173
81742010-05-06  Andreas Kling  <andreas.kling@nokia.com>
8175
8176        Reviewed by Simon Hausmann.
8177
8178        [Qt] Patch to fix compilation warnings for QGraphicsWebView
8179        https://bugs.webkit.org/show_bug.cgi?id=37428
8180
8181        Patch by Alexis Menard <alexis.menard@nokia.com>
8182
8183        * Api/qgraphicswebview.cpp:
8184        (QGraphicsWebView::itemChange):
8185
81862010-05-06  Simon Hausmann  <simon.hausmann@nokia.com>
8187
8188        Reviewed by Kenneth Rohde Christiansen.
8189
8190        [Qt] Replace public inspector url with private property for QtLauncher
8191        https://bugs.webkit.org/show_bug.cgi?id=35340
8192
8193        Replace the public API with a private dynamic property until this feature
8194        is ready.
8195
8196        * Api/qwebsettings.cpp:
8197        * Api/qwebsettings.h:
8198        * WebCoreSupport/InspectorClientQt.cpp:
8199        (WebCore::InspectorClientQt::openInspectorFrontend):
8200        * symbian/bwins/QtWebKitu.def:
8201        * symbian/eabi/QtWebKitu.def:
8202
82032010-05-04  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
8204
8205        Reviewed by Kenneth Rohde Christiansen.
8206
8207        [Qt] QWebPage viewMode property
8208        https://bugs.webkit.org/show_bug.cgi?id=38119
8209
8210        Rename the property from wrt_viewMode to _q_viewMode.
8211
8212        * Api/qwebpage.cpp:
8213        (QWebPagePrivate::dynamicPropertyChangeEvent):
8214        * tests/qwebpage/tst_qwebpage.cpp:
8215        (tst_QWebPage::viewModes):
8216
82172010-05-04  Simon Hausmann  <simon.hausmann@nokia.com>
8218
8219        Rubber-stamped by Tor Arne Vestbø.
8220
8221        [Qt] Preserve binary compatibility with qtwebkit-2.0 branch
8222
8223        Moved the WebGL attribute in QWebSettings to the end of the enum,
8224        to ensure that the numeric values of the enum values following it
8225        are the same as in the release branch.
8226
8227        * Api/qwebsettings.h:
8228
82292010-05-03  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
8230
8231        Reviewed by Simon Hausmann.
8232
8233        [Qt] Expose HTMLTokenizer yielding parameters
8234        https://bugs.webkit.org/show_bug.cgi?id=37023
8235
8236        Enables to set TimeDelay and ChunkSize for
8237        HTMLTokenizer.
8238
8239        * Api/qwebpage.cpp:
8240        (QWebPagePrivate::dynamicPropertyChangeEvent):
8241
82422010-05-03  Abhishek Arya  <inferno@chromium.org>
8243
8244        Reviewed by Adam Barth.
8245
8246        Add support for controlling clipboard access from javascript.
8247        Clipboard access from javascript is disabled by default.
8248        https://bugs.webkit.org/show_bug.cgi?id=27751
8249
8250        * Api/qwebsettings.cpp:
8251        (QWebSettingsPrivate::apply):
8252        * Api/qwebsettings.h:
8253
82542010-05-03  Jens Alfke  <snej@chromium.org>
8255
8256        Reviewed by Darin Fisher.
8257
8258        [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient
8259        https://bugs.webkit.org/show_bug.cgi?id=38397
8260
8261        No tests (functionality is exposed only through native WebKit API.)
8262
8263        * WebCoreSupport/FrameLoaderClientQt.h:
8264        (WebCore::FrameLoaderClientQt::dispatchWillSendSubmitEvent):
8265
82662010-05-03  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
8267
8268        Reviewed by Simon Hausmann.
8269
8270        [Qt] Prune dead code in QWebPage
8271
8272        * Api/qwebpage.cpp:
8273
82742010-05-02  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
8275
8276        Reviewed by Simon Hausmann.
8277
8278        [Qt] Fix compilation with QT_NO_BEARERMANAGEMENT
8279        https://bugs.webkit.org/show_bug.cgi?id=38324
8280
8281        * Api/qwebsettings.cpp:
8282
82832010-04-29  Janne Koskinen  <janne.p.koskinen@digia.com>
8284
8285        Reviewed by Simon Hausmann.
8286
8287        [Qt] QtWebKit versioning added
8288        https://bugs.webkit.org/show_bug.cgi?id=37207
8289
8290        QtWebkit releases separated from Qt release cycle.
8291
8292        * qtwebkit_version.pri: Added.
8293
82942010-05-02  Benjamin Poulain  <benjamin.poulain@nokia.com>
8295
8296        Reviewed by Kenneth Rohde Christiansen.
8297
8298        [Qt] QWebPage::userAgentForUrl is terrible API
8299        https://bugs.webkit.org/show_bug.cgi?id=33875
8300
8301        Simplify the creation of the user agent string to avoid some
8302        overhead for each loaded url.
8303
8304        The static part of the user agent is cached so it only have
8305        to be made once.
8306        This creation has been made in order to simplify the code.
8307
8308        The two variable: application name and current language are
8309        set dynamically when needed.
8310        The default locale is non longer created if the widget locale
8311        is used.
8312
8313        * Api/qwebpage.cpp:
8314        (QWebPage::userAgentForUrl):
8315        * tests/qwebpage/tst_qwebpage.cpp:
8316        (tst_QWebPage::userAgentApplicationName):
8317        (tst_QWebPage::userAgentLocaleChange):
8318
83192010-05-02  Noam Rosenthal  <noam.rosenthal@nokia.com>
8320
8321        Reviewed by Kenneth Rohde Christiansen.
8322
8323        [Qt] GraphicsLayer: animation incorrect when scrolling
8324        https://bugs.webkit.org/show_bug.cgi?id=38371
8325
8326        This is a regression introduced with the invalidate-on-scroll code path, that uses QGraphicsWebViewPrivate::update()
8327        instead of QGraphicsWebViewPrivate::scroll(). The patch makes sure that the scrolling position is correct on
8328        each content update - this shouldn't have a performance impact - the only overhead is an additional value-test on each update.
8329
8330        Tested by http://www.the-art-of-web.com/css/css-animation/
8331
8332        * Api/qgraphicswebview.cpp:
8333        (QGraphicsWebViewPrivate::update):
8334
83352010-05-01  Robert Hogan  <robert@webkit.org>
8336
8337        Reviewed by Simon Hausmann.
8338
8339        [Qt] Add smart paste support
8340
8341        https://bugs.webkit.org/show_bug.cgi?id=38136
8342
8343        * Api/qwebpage.cpp:
8344        (QWebPagePrivate::QWebPagePrivate): Enable smart paste support by default.
8345
83462010-04-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
8347
8348        Reviewed by Kenneth Rohde Christiansen.
8349
8350        [Qt] Reinstate qt_drt_ symbol exports as of QtWebKit 4.6 release
8351        https://bugs.webkit.org/show_bug.cgi?id=38304
8352
8353        This change provides backward compatibility with some previously
8354        exported private symbols. No new functionality introduced.
8355
8356        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
8357        (qt_resumeActiveDOMObjects):
8358        (qt_suspendActiveDOMObjects):
8359        (qt_drt_clearFrameName):
8360        (qt_drt_garbageCollector_collect):
8361        (qt_drt_garbageCollector_collectOnAlternateThread):
8362        (qt_drt_javaScriptObjectsCount):
8363        (qt_drt_numberOfActiveAnimations):
8364        (qt_drt_overwritePluginDirectories):
8365        (qt_drt_pauseAnimation):
8366        (qt_drt_pauseTransitionOfProperty):
8367        (qt_drt_resetOriginAccessWhiteLists):
8368        (qt_drt_run):
8369        (qt_drt_setJavaScriptProfilingEnabled):
8370        (qt_drt_whiteListAccessFromOrigin):
8371        (qt_webpage_groupName):
8372        (qt_webpage_setGroupName):
8373
83742010-04-29  Benjamin Poulain  <benjamin.poulain@nokia.com>
8375
8376        Reviewed by Kenneth Rohde Christiansen.
8377
8378        Get rid of forceLayout() on FrameView
8379        https://bugs.webkit.org/show_bug.cgi?id=38199
8380
8381        The function FrameView::forceLayout() is missleading
8382        because it does not actually force the layout, the call is
8383        equivalent to layout().
8384
8385        This patch replace the call to forceLayout() by layout() in Qt
8386        to avoid the misunderstanding/improve readability.
8387
8388        * Api/qwebpage.cpp:
8389        (QWebPagePrivate::dynamicPropertyChangeEvent):
8390        (QWebPage::setPreferredContentsSize):
8391        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
8392        (DumpRenderTreeSupportQt::setMediaType):
8393        * WebCoreSupport/FrameLoaderClientQt.cpp:
8394        (WebCore::FrameLoaderClientQt::forceLayout):
8395
83962010-04-29  Andreas Kling  <andreas.kling@nokia.com>
8397
8398        Reviewed by Simon Hausmann.
8399
8400        Remove unnecessary call to FrameView::forceLayout() in setViewportSize()
8401        This prevents a double relayout on resize.
8402
8403        https://bugs.webkit.org/show_bug.cgi?id=38179
8404
8405        Thanks to Nate Whetsell <nathan.whetsell@gmail.com> for spotting this.
8406
8407        * Api/qwebpage.cpp:
8408        (QWebPage::setViewportSize):
8409
84102010-04-29  Simon Hausmann  <simon.hausmann@nokia.com>
8411
8412        Reviewed by Tor Arne Vestbø.
8413
8414        [Qt] REGRESSION(r57982): tst_qwebpage::showModalDialog() crashes
8415        https://bugs.webkit.org/show_bug.cgi?id=38314
8416
8417        Make sure that there's always a main frame when returning from createWindow()
8418        to the caller in WebCore.
8419
8420        * WebCoreSupport/ChromeClientQt.cpp:
8421        (WebCore::ChromeClientQt::createWindow):
8422
84232010-04-28  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
8424
8425        Unreviewed, Qt build fix.
8426
8427        [Qt] Guard the body of the function instead of the function for
8428        exported functions.
8429
8430        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
8431        (DumpRenderTreeSupportQt::webInspectorExecuteScript):
8432        (DumpRenderTreeSupportQt::webInspectorClose):
8433        (DumpRenderTreeSupportQt::webInspectorShow):
8434        (DumpRenderTreeSupportQt::setTimelineProfilingEnabled):
8435
84362010-04-28  Antonio Gomes  <tonikitoo@webkit.org>, Yi Shen <yi.4.shen@nokia.com>
8437
8438        Reviewed by Simon Hausmann.
8439
8440        [Qt] tst_QWebHistoryInterface::visitedLinks() fails
8441        https://bugs.webkit.org/show_bug.cgi?id=37323
8442
8443        Patch fixes styleProperty method of QWebElement to make use of
8444        CSSComputedStyleDeclaration::computedStyle 'allowVisitedStyle' parameter
8445        and the corresponding failing QWebHistoryInterface::visitedLinks method.
8446
8447        * Api/qwebelement.cpp:
8448        (QWebElement::styleProperty):
8449        * tests/qwebhistoryinterface/tst_qwebhistoryinterface.cpp:
8450        (tst_QWebHistoryInterface::visitedLinks):
8451
84522010-04-28  Luiz Agostini  <luiz.agostini@openbossa.org>
8453
8454        Reviewed by Kenneth Rohde Christiansen.
8455
8456        [Qt] QWebPage viewMode property
8457        https://bugs.webkit.org/show_bug.cgi?id=38119
8458
8459        Replacing method qt_wrt_setViewMode by wrt_viewMode property.
8460
8461        * Api/qwebpage.cpp:
8462        (QWebPagePrivate::dynamicPropertyChangeEvent):
8463        (QWebPage::event):
8464        * Api/qwebpage_p.h:
8465        * tests/qwebpage/tst_qwebpage.cpp:
8466        (tst_QWebPage::wrt_viewModes):
8467
84682010-04-28  Janne Koskinen  <janne.p.koskinen@digia.com>
8469
8470        Reviewed by Simon Hausmann <simon.hausmann@nokia.com>
8471
8472        [Qt] WINS DEF file freeze
8473
8474        Updated WINSCW def file with added and removed symbols.
8475
8476        * symbian/bwins/QtWebKitu.def:
8477
84782010-04-25  Sam Weinig  <sam@webkit.org>
8479
8480        Reviewed by Maciej Stachowiak.
8481
8482        Fix for https://bugs.webkit.org/show_bug.cgi?id=38097
8483        Disentangle initializing the main thread from initializing threading
8484
8485        * Api/qwebpage.cpp:
8486        (QWebPagePrivate::QWebPagePrivate): Add call to initializeMainThread.
8487
84882010-04-26  Thiago Macieira  <thiago.macieira@nokia.com>
8489
8490        Reviewed by Simon Hausmann.
8491
8492        [Qt] Fix the include header <qstring.h> -> <QtCore/qstring.h>
8493
8494        The module/header.h style inclusion removes the need to have -I$QTDIR/include/depending-module
8495        in the include search path for the application.
8496
8497        * Api/qwebkitversion.h:
8498
84992010-04-26  Bruno Schmidt  <bruno.schmidt@gmail.com>
8500
8501        Reviewed by Kenneth Rohde Christiansen.
8502
8503        [Qt] Exposing an QVariantMap containing QObjectStar to Javascript
8504        causes Segmentation Fault
8505        https://bugs.webkit.org/show_bug.cgi?id=34729
8506
8507        If an QVariantMap containing QObjectStar is added to the to QtWebkit
8508        Javascript, it's use causes Segmentation Fault.
8509        It happens because, in the case QMetaType::QVariantMap, the "root"
8510        object that is inside of a PassRefPtr is passed recursively inside a
8511        loop to recover the content of the map, but the PassRefPtr semantics
8512        prohibit its use inside a loop, so the "root" object mus be passed
8513        using the method "PassRefPtr::get" in order to keep the current
8514        reference.
8515
8516        * tests/qwebframe/tst_qwebframe.cpp:
8517        (MyQObject::MyQObject): new property variantMapProperty
8518        (MyQObject::variantMapProperty): read variantMapProperty
8519        (MyQObject::setVariantMapProperty): write variantMapProperty
8520
85212010-04-25  Shinichiro Hamaji  <hamaji@chromium.org>
8522
8523        Reviewed by Simon Hausmann.
8524
8525        [Qt] layoutTestController.counterValueForElementById crashes for a nonexistent ID
8526        https://bugs.webkit.org/show_bug.cgi?id=34573
8527
8528        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
8529        (DumpRenderTreeSupportQt::counterValueForElementById):
8530
85312010-04-20  Robert Hogan  <robert@webkit.org>
8532
8533        Reviewed by Simon Hausmann.
8534
8535        [Qt] Add more support for textInputController
8536
8537        Add support for selectedRange(), setMarkedText(), insertText(),
8538        and firstRectForCharacterRange().
8539
8540        https://bugs.webkit.org/show_bug.cgi?id=35702
8541
8542        * Api/qwebpage.cpp:
8543        (QWebPagePrivate::inputMethodEvent):
8544        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
8545        (DumpRenderTreeSupportQt::selectedRange):
8546        (DumpRenderTreeSupportQt::firstRectForCharacterRange):
8547        * WebCoreSupport/DumpRenderTreeSupportQt.h:
8548        * tests/qwebpage/tst_qwebpage.cpp:
8549        (tst_QWebPage::inputMethods):
8550
85512010-04-22  John Pavan  <john.pavan@nokia.com>
8552
8553        Reviewed by Laszlo Gombos.
8554
8555        [Qt] inputMethodQuery returns coordinates in web page coordinates rather than in item coordinates.
8556        https://bugs.webkit.org/show_bug.cgi?id=37163
8557
8558
8559        QWebPage::inputMethodQuery is modified so that it
8560        returns coordinates in the widget's coordinate system.
8561        Tests are added for QGraphicsWebView and QWebView
8562        to verify that this behavior is correct after the webpage
8563        has been scrolled.
8564
8565        * Api/qwebpage.cpp:
8566        (QWebPage::inputMethodQuery):
8567        * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
8568        (tst_QGraphicsWebView::microFocusCoordinates):
8569        * tests/qwebview/tst_qwebview.cpp:
8570        (tst_QWebView::microFocusCoordinates):
8571
85722010-04-22  Robert Hogan  <robert@webkit.org>
8573
8574        Reviewed by Simon Hausmann.
8575
8576        [Qt] Fix createPlugin() tests in tst_qwebpage to match behaviour of Qt plugins
8577             when PluginsEnabled is false.
8578
8579        tst_qwebpage should have been updated as part of r56662.
8580        (See https://bugs.webkit.org/show_bug.cgi?id=32196)
8581
8582        Updated documentation of QWebPage::createPlugin and QWebSetting::pluginsEnabled
8583            to match the new behaviour.
8584
8585        * Api/qwebpage.cpp: Update docs.
8586        * Api/qwebsettings.cpp: Update docs.
8587        * tests/qwebpage/tst_qwebpage.cpp:
8588        (createPlugin):
8589        (tst_QWebPage::createPluginWithPluginsEnabled):
8590        (tst_QWebPage::createPluginWithPluginsDisabled):
8591
85922010-04-22  Dave Moore  <davemoore@chromium.org>
8593
8594        Reviewed by Dimitri Glazkov.
8595
8596        Added notification when the favicons for a page are changed
8597        from a script.
8598        The Document object will notify the frame loader, which will
8599        notify the client. Implementations of FrameLoaderClient will
8600        have to add one method; dispatchDidChangeIcons().
8601
8602        https://bugs.webkit.org/show_bug.cgi?id=33812
8603
8604        * WebCoreSupport/FrameLoaderClientQt.cpp:
8605        (WebCore::FrameLoaderClientQt::dispatchDidChangeIcons):
8606        (WebCore::FrameLoaderClientQt::didChangeTitle):
8607        * WebCoreSupport/FrameLoaderClientQt.h:
8608
86092010-04-22  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
8610
8611        Reviewed by Kenneth Rohde Christiansen.
8612
8613        [Qt] Remove translatable strings from the hybridPixmap test.
8614        https://bugs.webkit.org/show_bug.cgi?id=37867
8615
8616        * tests/hybridPixmap/widget.ui:
8617
86182010-04-22  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
8619
8620        Reviewed by Kenneth Rohde Christiansen.
8621
8622        [Qt] Fix autotests .qrc file paths when built in Qt.
8623
8624        Compiling auto-tests from qt/tests/auto/qweb* produced
8625        failing tests since these .pro files include the
8626        ones in WebKit/qt/tests and the .qrc file was
8627        not added to RESOURCES
8628
8629        * tests/benchmarks/loading/loading.pro:
8630        * tests/benchmarks/painting/painting.pro:
8631        * tests/qgraphicswebview/qgraphicswebview.pro:
8632        * tests/qwebelement/qwebelement.pro:
8633        * tests/qwebframe/qwebframe.pro:
8634        * tests/qwebhistory/qwebhistory.pro:
8635        * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
8636        * tests/qwebinspector/qwebinspector.pro:
8637        * tests/qwebpage/qwebpage.pro:
8638        * tests/qwebplugindatabase/qwebplugindatabase.pro:
8639        * tests/qwebview/qwebview.pro:
8640        * tests/tests.pri:
8641
86422010-04-22  Adam Barth  <abarth@webkit.org>
8643
8644        Unreviewed, rolling out r58069.
8645        http://trac.webkit.org/changeset/58069
8646        https://bugs.webkit.org/show_bug.cgi?id=27751
8647
8648        Broke compile on Windows.
8649
8650        * Api/qwebsettings.cpp:
8651        (QWebSettingsPrivate::apply):
8652        * Api/qwebsettings.h:
8653
86542010-04-22  Abhishek Arya  <inferno@chromium.org>
8655
8656        Reviewed by Adam Barth.
8657
8658        Add support for controlling clipboard access from javascript.
8659        Clipboard access from javascript is disabled by default.
8660        https://bugs.webkit.org/show_bug.cgi?id=27751
8661
8662        * Api/qwebsettings.cpp:
8663        (QWebSettingsPrivate::apply):
8664        * Api/qwebsettings.h:
8665
86662010-04-21  Jesus Sanchez-Palencia  <jesus@webkit.org>
8667
8668        Reviewed by Kenneth Rohde Christiansen.
8669
8670        Add PageClientQWidget implementation based on the old
8671        QWebPageWidgetClient to PageClientQt files. Also fix
8672        QWebPage::setView() to use PageClientQWidget.
8673
8674        [Qt] PageClientQt specific implementation for QWidget
8675        https://bugs.webkit.org/show_bug.cgi?id=37858
8676
8677        * Api/qwebpage.cpp:
8678        (QWebPage::setView):
8679        * WebCoreSupport/PageClientQt.cpp: Added.
8680        (WebCore::PageClientQWidget::scroll):
8681        (WebCore::PageClientQWidget::update):
8682        (WebCore::PageClientQWidget::setInputMethodEnabled):
8683        (WebCore::PageClientQWidget::inputMethodEnabled):
8684        (WebCore::PageClientQWidget::setInputMethodHint):
8685        (WebCore::PageClientQWidget::cursor):
8686        (WebCore::PageClientQWidget::updateCursor):
8687        (WebCore::PageClientQWidget::palette):
8688        (WebCore::PageClientQWidget::screenNumber):
8689        (WebCore::PageClientQWidget::ownerWidget):
8690        (WebCore::PageClientQWidget::geometryRelativeToOwnerWidget):
8691        (WebCore::PageClientQWidget::pluginParent):
8692        (WebCore::PageClientQWidget::style):
8693        * WebCoreSupport/PageClientQt.h: Added.
8694        (WebCore::PageClientQWidget::PageClientQWidget):
8695        (WebCore::PageClientQWidget::isQWidgetClient):
8696
86972010-04-21  Jakub Wieczorek  <jwieczorek@webkit.org>
8698
8699        Reviewed by Darin Adler.
8700
8701        List item markers are not always updated after changes in the DOM.
8702        https://bugs.webkit.org/show_bug.cgi?id=37060
8703
8704        * Api/qwebelement.h: Make DumpRenderTreeSupportQt a friend class.
8705        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
8706        (DumpRenderTreeSupportQt::markerTextForListItem): Add a private API to get the marker text for a list item.
8707
87082010-04-21  Yi Shen  <yi.4.shen@nokia.com>
8709
8710        Reviewed by Simon Hausmann.
8711
8712        [Qt] Check the request empty or not in ChromeClientQt::createWindow()
8713        https://bugs.webkit.org/show_bug.cgi?id=37821
8714
8715        * WebCoreSupport/ChromeClientQt.cpp:
8716        (WebCore::ChromeClientQt::createWindow):
8717
87182010-04-21  Shu Chang  <chang.shu@nokia.com>
8719
8720        Reviewed by Simon Hausmann.
8721
8722        [Qt] Fix Symbian build where QT_NO_SYSTEMTRAYICON is defined.
8723        https://bugs.webkit.org/show_bug.cgi?id=37442
8724
8725        * WebCoreSupport/NotificationPresenterClientQt.cpp:
8726        (NotificationPresenterClientQt::show):
8727        * WebCoreSupport/NotificationPresenterClientQt.h:
8728
87292010-04-21  Eric Seidel  <eric@webkit.org>
8730
8731        Unreviewed, rolling out r57963.
8732        http://trac.webkit.org/changeset/57963
8733        https://bugs.webkit.org/show_bug.cgi?id=37759
8734
8735        Three tests started crashing on the Qt bot.
8736
8737        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
8738        (DumpRenderTreeSupportQt::isCommandEnabled):
8739        * WebCoreSupport/DumpRenderTreeSupportQt.h:
8740
87412010-04-21  Yi Shen  <yi.4.shen@nokia.com>
8742
8743        Reviewed by Simon Hausmann.
8744
8745        [Qt] Add LayoutTestController interface: computedStyleIncludingVisitedInfo
8746        https://bugs.webkit.org/show_bug.cgi?id=37759
8747
8748        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
8749        (DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo):
8750        * WebCoreSupport/DumpRenderTreeSupportQt.h:
8751
87522010-04-21  No'am Rosenthal  <noam.rosenthal@nokia.com>
8753
8754        Reviewed by Simon Fraser.
8755
8756        [Qt] Fix or remove the runtime flag for accelerated compositing.
8757        https://bugs.webkit.org/show_bug.cgi?id=37313
8758
8759        This lets the QWebPageClient "veto" the settings value for accelerated compositing.
8760        In this case we allow accelerated compositing only on QGraphicsWebView.
8761
8762        * Api/qgraphicswebview.cpp:
8763        (QGraphicsWebViewPrivate::allowsAcceleratedCompositing):
8764        * WebCoreSupport/ChromeClientQt.cpp:
8765        (WebCore::ChromeClientQt::allowsAcceleratedCompositing):
8766        * WebCoreSupport/ChromeClientQt.h:
8767
87682010-04-20  Adam Barth  <abarth@webkit.org>
8769
8770        Unreviewed build fix.
8771
8772        * Api/qwebframe.cpp:
8773        (QWebFrame::setUrl):
8774
87752010-04-20  Adam Barth  <abarth@webkit.org>
8776
8777        Reviewed by Eric Seidel.
8778
8779        Factor DocumentWriter out of FrameLoader
8780        https://bugs.webkit.org/show_bug.cgi?id=37175
8781
8782        Update these callsites because the method moved to DocumentWriter.
8783
8784        * WebCoreSupport/FrameLoaderClientQt.cpp:
8785        (WebCore::FrameLoaderClientQt::finishedLoading):
8786        (WebCore::FrameLoaderClientQt::setMainDocumentError):
8787        (WebCore::FrameLoaderClientQt::committedLoad):
8788        (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
8789
87902010-04-20  Kent Tamura  <tkent@chromium.org>
8791
8792        Reviewed by Darin Adler.
8793
8794        Change a parameter type of chooseIconForFiles()
8795        https://bugs.webkit.org/show_bug.cgi?id=37504
8796
8797        * WebCoreSupport/ChromeClientQt.cpp:
8798        (WebCore::ChromeClientQt::chooseIconForFiles):
8799        * WebCoreSupport/ChromeClientQt.h:
8800
88012010-04-19  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
8802
8803        Reviewed by Simon Hausmann.
8804
8805        [Qt] Fix compilation against namespaced Qt.
8806
8807        * WebCoreSupport/ChromeClientQt.h:
8808        * WebCoreSupport/QtFallbackWebPopup.h:
8809
88102010-04-18  Robert Hogan  <robert@webkit.org>
8811
8812        Reviewed by Simon Hausmann.
8813
8814        [Qt] Add support for LayoutTestController commands:
8815                   setSmartInsertDeleteEnabled
8816                   setSelectTrailingWhitespaceEnabled
8817                   execCommand
8818                   isCommandEnabled
8819
8820        https://bugs.webkit.org/show_bug.cgi?id=35844
8821
8822        * Api/qwebpage.cpp:
8823        (QWebPagePrivate::QWebPagePrivate):
8824        * Api/qwebpage_p.h:
8825        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
8826        (DumpRenderTreeSupportQt::setSmartInsertDeleteEnabled):
8827        (DumpRenderTreeSupportQt::setSelectTrailingWhitespaceEnabled):
8828        (DumpRenderTreeSupportQt::executeCoreCommandByName):
8829        (DumpRenderTreeSupportQt::isCommandEnabled):
8830        * WebCoreSupport/DumpRenderTreeSupportQt.h:
8831        * WebCoreSupport/EditorClientQt.cpp:
8832        (WebCore::EditorClientQt::smartInsertDeleteEnabled):
8833        (WebCore::EditorClientQt::toggleSmartInsertDelete):
8834        (WebCore::EditorClientQt::isSelectTrailingWhitespaceEnabled):
8835        * WebCoreSupport/EditorClientQt.h:
8836
88372010-04-15  Kent Hansen  <kent.hansen@nokia.com>
8838
8839        Reviewed by Kenneth Rohde Christiansen.
8840
8841        [Qt] Mark QWebFrame::overloadedSlots autotest as expected failure
8842
8843        https://bugs.webkit.org/show_bug.cgi?id=37319
8844
8845        * tests/qwebframe/tst_qwebframe.cpp:
8846
88472010-04-09  Antonio Gomes  <tonikitoo@webkit.org>
8848
8849        Reviewed by Kenneth Christiansen and Tor Arne Vestbø.
8850
8851        REGRESSION(r56552): Broken scrollbars size
8852        https://bugs.webkit.org/show_bug.cgi?id=36853
8853
8854        The regression was caused by r56552, which introduced a fix to bug
8855        webkit.org/b/21300. The bug solved an issue with the resize handle on mac,
8856        but did it in a way that affected all Qt platforms and thus broke the behavior
8857        on non-mac platforms.
8858
8859        This patch makes the mac specific change ifdef'ed and only applied for the mac
8860        platform.
8861
8862        * WebCoreSupport/ChromeClientQt.cpp:
8863        (WebCore::ChromeClientQt::windowResizerRect):
8864
88652010-04-15  Bruno Schmidt  <bruno.schmidt@gmail.com>
8866
8867        Reviewed by Kenneth Rohde Christiansen.
8868
8869        [Qt] Null QObjects properties cause Segmentation Fault
8870        https://bugs.webkit.org/show_bug.cgi?id=34730
8871
8872        QObjects exported to the QWebkit javascript with properties that are
8873        a null "QObject*" cause Segmentation Fault.
8874
8875        If an QObject is added to the javascript context and it contains
8876        properties of the type QObject* with NULL value, calling the property
8877        causes Segmentation Fault.
8878
8879        Follow the tests for the corrections done over WebCore.
8880
8881        * tests/qwebframe/tst_qwebframe.cpp:
8882        (MyQObject::MyQObject): init the field m_objectStar
8883        (MyQObject::objectStarProperty): read the Object* prop
8884        (MyQObject::setObjectStarProperty): write the Object* prop
8885        (tst_QWebFrame::getSetStaticProperty): new tests for the new prop
8886
88872010-04-14  Luiz Agostini  <luiz.agostini@openbossa.org>
8888
8889        Reviewed by Kenneth Rohde Christiansen.
8890
8891        Changing view mode names due to specification changes
8892        https://bugs.webkit.org/show_bug.cgi?id=37615
8893
8894        test: fast/media/media-feature-wgt-view-mode.html
8895
8896        specification: http://dev.w3.org/2006/waf/widgets-vmmf/
8897
8898        * WebCoreSupport/ChromeClientQt.cpp:
8899        (WebCore::ChromeClientQt::isWindowed):
8900        (WebCore::ChromeClientQt::isFullscreen):
8901        (WebCore::ChromeClientQt::isMaximized):
8902        (WebCore::ChromeClientQt::isMinimized):
8903        * WebCoreSupport/ChromeClientQt.h:
8904
89052010-04-14  Luiz Agostini  <luiz.agostini@openbossa.org>
8906
8907        Reviewed by Simon Hausmann.
8908
8909        [Qt] Moving setViewMode from DumpRenderTreeSupportQt to qwebpage.cpp
8910        https://bugs.webkit.org/show_bug.cgi?id=37622
8911
8912        Method qt_wrt_setViewMode was removed from qwebpage.cpp by mistake in r57433
8913        (bug 35844). Moving it back.
8914
8915        * Api/qwebpage.cpp:
8916        (qt_wrt_setViewMode):
8917        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
8918        (DumpRenderTreeSupportQt::setMediaType):
8919        * WebCoreSupport/DumpRenderTreeSupportQt.h:
8920
89212010-04-14  Andreas Kling  <andreas.kling@nokia.com>
8922
8923        Reviewed by Kenneth Rohde Christiansen.
8924
8925        [Qt] Rendering artifacts on Qt plugins when scrolling the page
8926        https://bugs.webkit.org/show_bug.cgi?id=37152
8927
8928        Because we no longer repaint the entire viewport on scroll,
8929        we must trigger a repaint of QtPluginWidgets when their geometry changes.
8930
8931        * WebCoreSupport/FrameLoaderClientQt.cpp:
8932
89332010-04-14  Aaron Boodman  <aa@chromium.org>
8934
8935        Reviewed by David Levin.
8936
8937        Support relative URLs for notifications on Chromium. They weren't working previously because WebCore was inserting
8938        the relative URL into a KURL instance, but when KURL is backed by GURL as it is on Chromium, relative URLs are
8939        unsupported. Fixed by resolving the relative URL first.
8940
8941        https://bugs.webkit.org/show_bug.cgi?id=36623
8942
8943        Adding tests for this is difficult because we don't currently have DRT support for notifications on Mac, only Windows.
8944
8945        * WebCoreSupport/NotificationPresenterClientQt.cpp:
8946        (NotificationPresenterClientQt::show): Return type of NotificationContents::iconURL() changed.
8947
89482010-04-13  Timothy Hatcher  <timothy@apple.com>
8949
8950        Rename SecurityOrigin::whiteListAccessFromOrigin to addOriginAccessWhitelistEntry.
8951        And SecurityOrigin::resetOriginAccessWhiteLists to resetOriginAccessWhitelists.
8952
8953        SecurityOrigin needs a way to remove individual OriginAccessEntries
8954        https://bugs.webkit.org/show_bug.cgi?id=37449
8955
8956        Reviewed by Dave Hyatt.
8957
8958        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
8959        (DumpRenderTreeSupportQt::whiteListAccessFromOrigin):
8960        (DumpRenderTreeSupportQt::resetOriginAccessWhiteLists):
8961
89622010-04-11  Sheriff Bot  <webkit.review.bot@gmail.com>
8963
8964        Unreviewed, rolling out r57468.
8965        http://trac.webkit.org/changeset/57468
8966        https://bugs.webkit.org/show_bug.cgi?id=37433
8967
8968        Broke the world...  Must have applied the patch wrong
8969        (Requested by abarth on #webkit).
8970
8971        * WebCoreSupport/FrameLoaderClientQt.cpp:
8972        (WebCore::FrameLoaderClientQt::finishedLoading):
8973        (WebCore::FrameLoaderClientQt::setMainDocumentError):
8974        (WebCore::FrameLoaderClientQt::committedLoad):
8975        (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
8976
89772010-04-11  Adam Barth  <abarth@webkit.org>
8978
8979        Reviewed by Eric Seidel.
8980
8981        Factor DocumentWriter out of FrameLoader
8982        https://bugs.webkit.org/show_bug.cgi?id=37175
8983
8984        Update these callsites because the method moved to DocumentWriter.
8985
8986        * WebCoreSupport/FrameLoaderClientQt.cpp:
8987        (WebCore::FrameLoaderClientQt::finishedLoading):
8988        (WebCore::FrameLoaderClientQt::setMainDocumentError):
8989        (WebCore::FrameLoaderClientQt::committedLoad):
8990        (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
8991
89922010-04-11  Robert Hogan  <robert@webkit.org>
8993
8994        Reviewed by Simon Hausmann.
8995
8996        [Qt] Add setWillSendRequestReturnsNull and setWillSendRequestClearHeader
8997
8998        https://bugs.webkit.org/show_bug.cgi?id=37410
8999
9000        * WebCoreSupport/FrameLoaderClientQt.cpp:
9001        (qt_set_will_send_request_returns_null):
9002        (qt_set_will_send_request_clear_headers):
9003        (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
9004
90052010-04-10  Robert Hogan  <robert@webkit.org>
9006
9007        Reviewed by Kenneth Rohde Christiansen.
9008
9009        Refactor Qt DRT support in QtWebKit
9010
9011        Move all QT DRT support functions to a static class.
9012
9013        https://bugs.webkit.org/show_bug.cgi?id=35844
9014
9015        * Api/qwebframe.cpp: Remove static functions.
9016        * Api/qwebframe.h: Make DumpRenderTreeSupportQt a friend.
9017        * Api/qwebpage.cpp: Remove static functions.
9018        * Api/qwebpage.h: Make DumpRenderTreeSupportQt a friend.
9019        * Api/qwebsecurityorigin.cpp: Remove static functions.
9020        * WebCoreSupport/DumpRenderTreeSupportQt.cpp: Added.
9021        (DumpRenderTreeSupportQt::DumpRenderTreeSupportQt):
9022        (DumpRenderTreeSupportQt::~DumpRenderTreeSupportQt):
9023        (DumpRenderTreeSupportQt::overwritePluginDirectories):
9024        (DumpRenderTreeSupportQt::workerThreadCount):
9025        (DumpRenderTreeSupportQt::setDumpRenderTreeModeEnabled):
9026        (DumpRenderTreeSupportQt::setFrameFlatteningEnabled):
9027        (DumpRenderTreeSupportQt::webPageSetGroupName):
9028        (DumpRenderTreeSupportQt::webPageGroupName):
9029        (DumpRenderTreeSupportQt::webInspectorExecuteScript):
9030        (DumpRenderTreeSupportQt::webInspectorClose):
9031        (DumpRenderTreeSupportQt::webInspectorShow):
9032        (DumpRenderTreeSupportQt::setTimelineProfilingEnabled):
9033        (DumpRenderTreeSupportQt::hasDocumentElement):
9034        (DumpRenderTreeSupportQt::setJavaScriptProfilingEnabled):
9035        (DumpRenderTreeSupportQt::pauseAnimation):
9036        (DumpRenderTreeSupportQt::pauseTransitionOfProperty):
9037        (DumpRenderTreeSupportQt::pauseSVGAnimation):
9038        (DumpRenderTreeSupportQt::numberOfActiveAnimations):
9039        (DumpRenderTreeSupportQt::clearFrameName):
9040        (DumpRenderTreeSupportQt::javaScriptObjectsCount):
9041        (DumpRenderTreeSupportQt::garbageCollectorCollect):
9042        (DumpRenderTreeSupportQt::garbageCollectorCollectOnAlternateThread):
9043        (DumpRenderTreeSupportQt::counterValueForElementById):
9044        (DumpRenderTreeSupportQt::pageNumberForElementById):
9045        (DumpRenderTreeSupportQt::numberOfPages):
9046        (DumpRenderTreeSupportQt::suspendActiveDOMObjects):
9047        (DumpRenderTreeSupportQt::resumeActiveDOMObjects):
9048        (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
9049        (DumpRenderTreeSupportQt::whiteListAccessFromOrigin):
9050        (DumpRenderTreeSupportQt::resetOriginAccessWhiteLists):
9051        (DumpRenderTreeSupportQt::setDomainRelaxationForbiddenForURLScheme):
9052        (DumpRenderTreeSupportQt::setCaretBrowsingEnabled):
9053        (DumpRenderTreeSupportQt::setMediaType):
9054        (DumpRenderTreeSupportQt::setViewMode):
9055        * WebCoreSupport/DumpRenderTreeSupportQt.h: Added.
9056        * WebCoreSupport/EditorClientQt.h:
9057        * tests/qwebpage/tst_qwebpage.cpp:
9058        (tst_QWebPage::multiplePageGroupsAndLocalStorage):
9059        (tst_QWebPage::inputMethodsTextFormat):
9060        (tst_QWebPage::protectBindingsRuntimeObjectsFromCollector):
9061
90622010-04-11  Robert Hogan  <robert@webkit.org>
9063
9064        Reviewed by Simon Hausmann.
9065
9066        [Qt] Update layoutTestController.DumpResourceLoadCallbacks to match other ports.
9067
9068        Unskip  http/tests/xmlhttprequest/abort-should-cancel-load.html
9069                http/tests/misc/will-send-request-returns-null-on-redirect.html
9070                fast/loader/user-style-sheet-resource-load-callbacks.html
9071                http/tests/misc/window-dot-stop.html
9072                http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-allow.html
9073                http/tests/security/XFrameOptions/x-frame-options-deny.html
9074                http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow.html
9075                http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny.html
9076                http/tests/xmlhttprequest/abort-should-cancel-load.html
9077
9078        QNetworkReply::OperationCanceledError has a value of 5, so update expected results accordingly.
9079
9080        https://bugs.webkit.org/show_bug.cgi?id=37237
9081
9082        * WebCoreSupport/FrameLoaderClientQt.cpp:
9083        (qt_set_will_send_request_returns_null_on_redirect):
9084        (drtDescriptionSuitableForTestResult):
9085        (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
9086        (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
9087        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
9088        (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
9089
90902010-04-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
9091
9092        Reviewed by Kenneth Rohde Christiansen.
9093
9094        [Qt] Implement Desktop Notifications API for QtWebKit
9095        https://bugs.webkit.org/show_bug.cgi?id=35503
9096
9097        Map WebKit notifications to Qt's SystemTray API and
9098        implement DRT tracing.
9099
9100        This patch does not implement the security part of
9101        WebKit notifications.
9102
9103        * Api/qwebpage.cpp:
9104        (QWebPagePrivate::QWebPagePrivate):
9105        * Api/qwebpage.h:
9106        * Api/qwebpage_p.h:
9107        * WebCoreSupport/ChromeClientQt.cpp:
9108        (WebCore::ChromeClientQt::notificationPresenter):
9109        * WebCoreSupport/ChromeClientQt.h:
9110        * WebCoreSupport/NotificationPresenterClientQt.cpp: Added.
9111        (qt_dump_notification):
9112        (NotificationPresenterClientQt::NotificationPresenterClientQt):
9113        (NotificationPresenterClientQt::show):
9114        (NotificationPresenterClientQt::cancel):
9115        (NotificationPresenterClientQt::notificationObjectDestroyed):
9116        (NotificationPresenterClientQt::requestPermission):
9117        (NotificationPresenterClientQt::checkPermission):
9118        * WebCoreSupport/NotificationPresenterClientQt.h: Added.
9119
91202010-04-09  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
9121
9122        Reviewed by Simon Hausmann.
9123
9124        [Qt]Fix compile error with QT_NO_IM
9125        https://bugs.webkit.org/show_bug.cgi?id=36533
9126
9127        * WebCoreSupport/QtFallbackWebPopup.cpp:
9128        (WebCore::QtFallbackWebPopupCombo::hidePopup):
9129
91302010-04-09  Yi Shen  <yi.4.shen@nokia.com>
9131
9132        Reviewed by Kenneth Rohde Christiansen.
9133
9134        [Qt] tst_QWebFrame::popupFocus() fails
9135        https://bugs.webkit.org/show_bug.cgi?id=37320
9136
9137        The QWebPopup class has been moved & renamed, so tst_QWebFrame::popupFocus() should use
9138        the class name "QComboBox", rather than "WebCore::QWebPopup" to find the popup menu.
9139
9140        * tests/qwebframe/tst_qwebframe.cpp:
9141
91422010-04-09  Antonio Gomes  <tonikitoo@webkit.org>
9143
9144        Reviewed by Holger Freyther.
9145
9146        Removing the use of topLevelWidget of QWidget class since it is deprecated/obsolete
9147        since Qt 4.5. window() method is being used instead now.
9148
9149        See http://doc.trolltech.com/4.5/qwidget-obsolete.html#topLevelWidget for more info.
9150
9151        * WebCoreSupport/ChromeClientQt.cpp:
9152        (WebCore::ChromeClientQt::windowRect):
9153        (WebCore::ChromeClientQt::show):
9154        (WebCore::ChromeClientQt::windowResizerRect):
9155
91562010-04-09  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
9157
9158        Reviewed by Simon Hausmann.
9159
9160        [Qt] Fix compile error with QT_NO_ACTION
9161        https://bugs.webkit.org/show_bug.cgi?id=36529
9162
9163        Make sure QT_NO_ACTION is not defined to use QAction
9164
9165        * Api/qgraphicswebview.cpp:
9166        (QGraphicsWebView::pageAction):
9167        * Api/qwebpage.cpp:
9168        (QWebPagePrivate::updateAction):
9169        (QWebPage::updatePositionDependentActions):
9170        * Api/qwebpage.h:
9171        * Api/qwebview.cpp:
9172        * Api/qwebview.h:
9173
91742010-04-09  Simon Hausmann  <simon.hausmann@nokia.com>
9175
9176        Reviewed by Lars Knoll.
9177
9178        [Qt] tests/qgraphicswebview fails
9179        https://bugs.webkit.org/show_bug.cgi?id=37317
9180
9181        * Api/qwebpage.cpp:
9182        (QWebPage::userAgentForUrl): Don't crash if the ownerWidget is null.
9183
91842010-04-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
9185
9186        Reviewed by Simon Hausmann.
9187
9188        [Qt] Warnings when compiling InspectorClientQt.cpp
9189        https://bugs.webkit.org/show_bug.cgi?id=37266
9190
9191        Add a default: for the switch()-case to avoid
9192        warnings.
9193
9194        * WebCoreSupport/InspectorClientQt.cpp:
9195        (WebCore::variantToSetting):
9196
91972010-04-01  Antonio Gomes  <tonikitoo@webkit.org>
9198
9199        Reviewed by David Hyatt.
9200
9201        [Qt] REGRESSION:(r50665) QWebFrame::setScrollBarPolicy(Qt::Vertical,Qt::ScrollBarAlwaysOff) has no effect.
9202        https://bugs.webkit.org/show_bug.cgi?id=29431
9203
9204        Make use of the new lock parameter of set{Vertical,Horizontal}ScrollbarMode.
9205
9206        Always added a qt auto test for set scrollbar policy feature.
9207
9208        * Api/qwebframe.cpp:
9209        (QWebFrame::setScrollBarPolicy):
9210        * tests/qwebframe/tst_qwebframe.cpp:
9211        * WebCoreSupport/FrameLoaderClientQt.cpp:
9212        (FrameLoaderClientQt::transitionToCommittedForNewPage):
9213
92142010-04-08  Joe Ligman  <joseph.ligman@nokia.com>
9215
9216        Reviewed by Simon Hausmann.
9217
9218        [Qt] WebKit crashes while input text through input method.
9219        The formatted text underline painting crashes when painting with invalid indexes.
9220        https://bugs.webkit.org/show_bug.cgi?id=36870
9221
9222        * Api/qwebpage.cpp:
9223        (QWebPagePrivate::inputMethodEvent):
9224        * tests/qwebpage/tst_qwebpage.cpp:
9225        (tst_QWebPage::inputMethodsTextFormat_data):
9226        (tst_QWebPage::inputMethodsTextFormat):
9227
92282010-04-08  Joe Ligman  <joseph.ligman@nokia.com>
9229
9230        Reviewed by Simon Hausmann.
9231
9232        [Qt] qtwebkit_webframe_scrollRecursively scrolls when body.style.overflow="hidden"
9233        https://bugs.webkit.org/show_bug.cgi?id=36674
9234
9235        The scrolling check was based on the frameview's scrolloffset, and
9236        maximumScrollPosition, which does not acknowledge the overflow properties.
9237
9238        I am now basing the scrolling off the scrollbar position. The scrollbars are
9239        affected by the overflow properties indicating when not to scroll. The scrollbar
9240        positions also continue to work for CSS ::-webkit-scrollbar styles.
9241
9242        * Api/qwebframe.cpp:
9243        (qtwebkit_webframe_scrollRecursively):
9244
92452010-04-07  Andrey Kosyakov  <caseq@chromium.org>
9246
9247        Reviewed by Yury Semikhatsky.
9248
9249        Removed redundant FrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest()
9250        https://bugs.webkit.org/show_bug.cgi?id=36949
9251
9252        * WebCoreSupport/FrameLoaderClientQt.cpp:
9253        * WebCoreSupport/FrameLoaderClientQt.h:
9254
92552010-04-07  Dawit Alemayehu  <adawit@kde.org>
9256
9257        Reviewed by Simon Hausmann.
9258
9259        https://bugs.webkit.org/show_bug.cgi?id=36827
9260
9261        Updated the WebCore::shouldTreatAsAttachement function call with the
9262        new more generic replacement WebCore::contentDispositionType.
9263
9264        See comments 39-42 in https://bugs.webkit.org/show_bug.cgi?id=36395
9265
9266        * WebCoreSupport/FrameLoaderClientQt.cpp:
9267        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
9268
92692010-04-07  Andreas Kling  <andreas.kling@nokia.com>
9270
9271        Reviewed by Simon Hausmann.
9272
9273        [Qt] When providing a widget for the PDF mime type it will cause a crash
9274
9275        m_pluginView may actually be a Widget (for embedded Qt widgets),
9276        so always check isPluginView() before calling PluginView specific methods.
9277
9278        https://bugs.webkit.org/show_bug.cgi?id=29450
9279
9280        * WebCoreSupport/FrameLoaderClientQt.cpp:
9281        (WebCore::FrameLoaderClientQt::finishedLoading):
9282        (WebCore::FrameLoaderClientQt::setMainDocumentError):
9283        (WebCore::FrameLoaderClientQt::committedLoad):
9284
92852010-04-06  Diego Gonzalez  <diego.gonzalez@openbossa.org>
9286
9287        Reviewed by Simon Hausmann.
9288
9289        [Qt] Add mechanism to detect QtWebKit 2.0 via the preprocessor
9290        https://bugs.webkit.org/show_bug.cgi?id=36538
9291
9292        * Api/qwebkitglobal.h:
9293
92942010-04-02  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
9295
9296        Reviewed by Kenneth Rohde Christiansen.
9297
9298        [Qt] [Symbian] Rebaseline Symbian def file
9299        https://bugs.webkit.org/show_bug.cgi?id=37038
9300
9301        Switch the ordinal numbers for qtwebkit_webframe_scrollRecursively
9302        and QWebInspector::closeEvent to match QtWebkit 4.6 branch
9303
9304        Fix the signature for qt_drt_setFrameFlatteningEnabled
9305        after r56718.
9306
9307        Add new QtWebKit API symbols introduced not listed in the file yet.
9308
9309        * symbian/eabi/QtWebKitu.def:
9310
93112010-03-30  Antonio Gomes  <tonikitoo@webkit.org>
9312
9313        Reviewed by Adam Treat.
9314
9315        Stored focused frame and document in a vars, instead of querying for them many times.
9316
9317        * Api/qwebpage.cpp:
9318        (QWebPagePrivate::mousePressEvent(QEvent* ev)):
9319        (QWebPagePrivate::mousePressEvent(QGraphicsSceneMouseEvent* ev):
9320
93212010-04-02  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
9322
9323        Reviewed by Eric Seidel.
9324
9325        [Qt]Fix compile error with QT_NO_SETTINGS
9326        https://bugs.webkit.org/show_bug.cgi?id=36533
9327
9328        If QT_NO_SETTINGS is defined, QSettings is not available.
9329
9330        * WebCoreSupport/InspectorClientQt.cpp:
9331        (WebCore::InspectorClientQt::populateSetting):
9332        (WebCore::InspectorClientQt::storeSetting):
9333
93342010-04-02  Luiz Agostini  <luiz.agostini@openbossa.org>
9335
9336        Reviewed by Kenneth Rohde Christiansen.
9337
9338        [Qt] Maemo5 theme - customized popup for <select multiple> elements
9339        https://bugs.webkit.org/show_bug.cgi?id=36368
9340
9341        Using QtMaemoWebPopup instead of QtFallbackWebPopup for Maemo.
9342
9343        * WebCoreSupport/ChromeClientQt.cpp:
9344        (WebCore::ChromeClientQt::createSelectPopup):
9345        * WebCoreSupport/QtFallbackWebPopup.cpp:
9346        (WebCore::QtFallbackWebPopup::show):
9347        (WebCore::QtFallbackWebPopup::populate):
9348
93492010-04-01  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
9350
9351        Reviewed by Kenneth Rohde Christiansen.
9352
9353        Add Single and Multiple Selection Popup for Maemo 5.
9354
9355        [Qt] Maemo5 theme - popup dialogs
9356        https://bugs.webkit.org/show_bug.cgi?id=36789
9357
9358        * WebCoreSupport/QtMaemoWebPopup.cpp:
9359        (WebCore::Maemo5Popup::populateList):
9360        (WebCore::Maemo5Popup::onItemSelected):
9361        (WebCore::QtMaemoWebPopup::createSingleSelectionPopup):
9362        (WebCore::QtMaemoWebPopup::createMultipleSelectionPopup):
9363        (WebCore::Maemo5SingleSelectionPopup::Maemo5SingleSelectionPopup):
9364        (WebCore::MultipleItemListDelegate::MultipleItemListDelegate):
9365        (WebCore::MultipleItemListDelegate::paint):
9366        (WebCore::Maemo5MultipleSelectionPopup::Maemo5MultipleSelectionPopup):
9367        * WebCoreSupport/QtMaemoWebPopup.h:
9368
93692010-03-31  Marcus Bulach  <bulach@chromium.org>
9370
9371        Reviewed by Jeremy Orlow.
9372
9373        Adds Geolocation param for cancelGeolocationPermissionRequestForFrame.
9374        https://bugs.webkit.org/show_bug.cgi?id=35031
9375
9376        * WebCoreSupport/ChromeClientQt.h:
9377        (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
9378
93792010-03-31  Antti Koivisto  <koivisto@iki.fi>
9380
9381        Reviewed by Kenneth Rohde Christiansen.
9382
9383        https://bugs.webkit.org/show_bug.cgi?id=36446
9384        [Qt] QWebSettings::TiledBackingStoreEnabled attribute lacks documentation and default value
9385
9386        * Api/qgraphicswebview.cpp:
9387        * Api/qwebsettings.cpp:
9388        (QWebSettings::QWebSettings):
9389
93902010-03-30  Gavin Barraclough  <barraclough@apple.com>
9391
9392        Rubber stamped by Sam Weinig.
9393
9394        https://bugs.webkit.org/show_bug.cgi?id=36866
9395        Move CString to WTF
9396
9397        * Api/qwebelement.cpp:
9398
93992010-03-30  Joe Ligman  <joseph.ligman@nokia.com>
9400
9401        Reviewed by Kenneth Rohde Christiansen.
9402
9403        [Qt] QGraphicsScene mousePressEvent does not set the clickCausedFocus flag
9404        https://bugs.webkit.org/show_bug.cgi?id=35259
9405
9406        The clickCausedFocus flag is not being set in method
9407        mousePressEvent(QGraphicsSceneMouseEvent* ev). This flag is used
9408        in conjunction with QStyle::RSIP_OnMouseClickAndAlreadyFocused when
9409        deciding to launch the software input panel.
9410
9411        * Api/qwebpage.cpp:
9412        (QWebPagePrivate::mousePressEvent):
9413
94142010-03-30  Luiz Agostini  <luiz.agostini@openbossa.org>
9415
9416        Reviewed by Kenneth Rohde Christiansen.
9417
9418        [Qt] Maemo5 theme - QtMaemoWebPopup class
9419        https://bugs.webkit.org/show_bug.cgi?id=36790
9420
9421        A new QtAbstractWebPopup descendant class to be used for maemo menu lists.
9422        This is the first step. The next step will be the dialogs implementation that
9423        will come in bug 36789 and finally to use QtMaemoWebPopup instead of QtFallbackWebPopup
9424        that will come in bug 36368.
9425
9426        * WebCoreSupport/QtMaemoWebPopup.cpp: Added.
9427        (WebCore::QtMaemoWebPopup::QtMaemoWebPopup):
9428        (WebCore::QtMaemoWebPopup::~QtMaemoWebPopup):
9429        (WebCore::QtMaemoWebPopup::createSingleSelectionPopup):
9430        (WebCore::QtMaemoWebPopup::createMultipleSelectionPopup):
9431        (WebCore::QtMaemoWebPopup::createPopup):
9432        (WebCore::QtMaemoWebPopup::show):
9433        (WebCore::QtMaemoWebPopup::hide):
9434        (WebCore::QtMaemoWebPopup::popupClosed):
9435        (WebCore::QtMaemoWebPopup::itemClicked):
9436        * WebCoreSupport/QtMaemoWebPopup.h: Added.
9437        (WebCore::Maemo5Popup::Maemo5Popup):
9438
94392010-03-29  Dawit Alemayehu  <adawit@kde.org>
9440
9441        Reviewed by Simon Hausmann.
9442
9443        [Qt] Added support for handling the HTTP "Content-Disposition" header.
9444
9445        https://bugs.webkit.org/show_bug.cgi?id=36395
9446
9447        Whenever a server response contains a "Content-Disposition: attachment..." header,
9448        treat the request as a download and emit the unsupportedContent signal.
9449
9450        * Api/qwebpage.cpp:
9451        * WebCoreSupport/FrameLoaderClientQt.cpp:
9452        (WebCore::FrameLoaderClientQt::download):
9453        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
9454
94552010-03-22  Kenneth Rohde Christiansen  <kenneth@webkit.org>
9456
9457        Reviewed by Simon Fraser.
9458
9459        Add support for Widgets 1.0: View Mode Media Feature
9460        https://bugs.webkit.org/show_bug.cgi?id=35446
9461
9462        Add an internal Qt API for changing the view mode media feature
9463        (http://www.w3.org/TR/widgets-vmmf/).
9464
9465        * Api/qwebpage.cpp:
9466        (qt_wrt_setViewMode):
9467        (QWebPagePrivate::priv):
9468        * Api/qwebpage_p.h:
9469        * WebCoreSupport/ChromeClientQt.cpp:
9470        (WebCore::ChromeClientQt::isDocked):
9471        (WebCore::ChromeClientQt::isFloating):
9472        (WebCore::ChromeClientQt::isApplication):
9473        (WebCore::ChromeClientQt::isFullscreen):
9474        * WebCoreSupport/ChromeClientQt.h:
9475
94762010-03-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
9477
9478        Reviewed by Antti Koivisto.
9479
9480        Use 'Mobile Safari' instead of 'Safari' on mobile Qt platforms.
9481
9482        * Api/qwebpage.cpp:
9483        (QWebPage::userAgentForUrl):
9484
94852010-03-29  Simon Hausmann  <simon.hausmann@nokia.com>
9486
9487        Reviewed by Tor Arne Vestbø.
9488
9489        [Qt] unit tests don't compile inside of Qt
9490
9491        https://bugs.webkit.org/show_bug.cgi?id=36756
9492
9493        * tests/tests.pri: Don't do the target substitution inside Qt and find the sources
9494        through VPATH instead of relying on the location of the .pro file exclusively.
9495
94962010-03-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
9497
9498        Reviewed by Antti Koivisto.
9499
9500        Change due to renaming of frame flattening setting.
9501
9502        * Api/qwebpage.cpp:
9503        (qt_drt_setFrameFlatteningEnabled):
9504        * Api/qwebsettings.cpp:
9505        (QWebSettingsPrivate::apply):
9506        * symbian/eabi/QtWebKitu.def:
9507
95082010-03-28  Alexey Proskuryakov  <ap@apple.com>
9509
9510        Build fix. Include WindowsKeyboardCodes.h instead of KeyboardCodes.h.
9511
9512        * WebCoreSupport/EditorClientQt.cpp:
9513
95142010-03-26  Olivier Goffart  <ogoffart@trolltech.com>
9515
9516        Reviewed by Simon Hausmann.
9517
9518        [Qt] Compile with QT_USE_FAST_OPERATOR_PLUS
9519
9520        * WebCoreSupport/InspectorClientQt.cpp:
9521        (WebCore::InspectorClientQt::populateSetting):
9522        (WebCore::InspectorClientQt::storeSetting):
9523
95242010-03-26  David Boddie  <dboddie@trolltech.com>
9525
9526        Reviewed by Simon Hausmann.
9527
9528        [Qt] Doc: Simplified Commercial Editions for Qt 4.7.
9529
9530        * docs/qtwebkit.qdoc:
9531
95322010-03-26  Simon Hausmann  <simon.hausmann@nokia.com>
9533
9534        Symbian build fix.
9535
9536        [Qt] Updated the def file with new exports used by QtLauncher.
9537
9538        * symbian/eabi/QtWebKitu.def:
9539
95402010-03-25  Yael Aharon  <yael.aharon@nokia.com>
9541
9542        Reviewed by Kenneth Rohde Christiansen.
9543
9544        [Qt] QtLauncher crashes on Mac OS and Linux when exiting with QGraphicsView mode enabled
9545        https://bugs.webkit.org/show_bug.cgi?id=35251
9546
9547        Followed the way QWebView registers for the signal QWebPage::destroyed(), to prevent
9548        QGraphicsWebView from referencing QWebPage after it was deleted.
9549
9550        * Api/qgraphicswebview.cpp:
9551        (QGraphicsWebViewPrivate::_q_pageDestroyed):
9552        (QGraphicsWebView::setPage):
9553        * Api/qgraphicswebview.h:
9554
95552010-03-25  Kent Hansen  <kent.hansen@nokia.com>
9556
9557        Reviewed by Simon Hausmann.
9558
9559        [Qt] QWebFrame::pageChanged() signal is not documented
9560        https://bugs.webkit.org/show_bug.cgi?id=36609
9561
9562        * Api/qwebframe.cpp:
9563
95642010-03-25  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
9565
9566        Reviewed by Simon Hausmann.
9567
9568        [Qt] Implement ChromeClient::windowResizerRect()
9569
9570        https://bugs.webkit.org/show_bug.cgi?id=21300
9571
9572        We assume the resize corner to be in the lower right corner of
9573        the window and having the width and height of the scrollbars.
9574
9575        The helper function geometryRelativeToOwnerWidget() in the page
9576        client is used to clip the resize rect to the actual size of the
9577        viewport, not the size of the QGraphicsView.
9578
9579        * Api/qgraphicswebview.cpp:
9580        * Api/qwebpage.cpp:
9581        * WebCoreSupport/ChromeClientQt.cpp:
9582
95832010-03-25  Shu Chang  <chang.shu@nokia.com>
9584
9585        Reviewed by Simon Hausmann.
9586
9587        [Qt] Added documentation for delete button.
9588        https://bugs.webkit.org/show_bug.cgi?id=31560
9589
9590        * Api/qwebsettings.cpp:
9591
95922010-03-25  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
9593
9594        Reviewed by Eric Seidel.
9595
9596        [Qt]Fix compile error with QT_NO_DESKTOPSERVICES
9597        https://bugs.webkit.org/show_bug.cgi?id=36533
9598
9599        * Api/qwebsettings.cpp:
9600        (QWebSettings::enablePersistentStorage):
9601
96022010-03-25  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
9603
9604        Reviewed by Eric Seidel.
9605
9606        [Qt]Fix compile error with QT_NO_DEBUG_STREAM
9607        https://bugs.webkit.org/show_bug.cgi?id=36533
9608
9609        * Api/qgraphicswebview.cpp:
9610        (QGraphicsWebViewPrivate::graphicsItemVisibleRect):
9611
96122010-03-25  Kenneth Rohde Christiansen  <kenneth@webkit.org>
9613
9614        Reviewed by Eric Seidel.
9615
9616        Make QWebPage not depend on view() but use the client->ownerWidget()
9617        instead. Also, handle the case where there is not page client.
9618
9619        * Api/qwebpage.cpp:
9620        (QWebPagePrivate::createContextMenu):
9621        (QWebPagePrivate::keyPressEvent):
9622        (QWebPage::javaScriptAlert):
9623        (QWebPage::javaScriptConfirm):
9624        (QWebPage::javaScriptPrompt):
9625        (QWebPage::shouldInterruptJavaScript):
9626        (QWebPage::createWindow):
9627        (QWebPage::action):
9628        (QWebPage::extension):
9629        (QWebPage::chooseFile):
9630        (QWebPage::userAgentForUrl):
9631
96322010-03-24  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
9633
9634        Reviewed by Kenneth Rohde Christiansen.
9635
9636        Add the FrameFlatteningEnabled WebAttribute to QWebSettings.
9637
9638        [Qt] Missing QWebSettings for Frame Flattening
9639        https://bugs.webkit.org/show_bug.cgi?id=36553
9640
9641        * Api/qwebsettings.cpp:
9642        (QWebSettingsPrivate::apply):
9643        (QWebSettings::QWebSettings):
9644        * Api/qwebsettings.h:
9645
96462010-03-24  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
9647
9648        Reviewed by Laszlo Gombos.
9649
9650        Auto-uppercase and predictive text need to be disabled for S60 (as for maemo)
9651        https://bugs.webkit.org/show_bug.cgi?id=33176
9652
9653        * WebCoreSupport/EditorClientQt.cpp:
9654
96552010-03-24  Kent Hansen  <kent.hansen@nokia.com>
9656
9657        Reviewed by Simon Hausmann.
9658
9659        [Qt] Rename QWebSettings::XSSAuditorEnabled to XSSAuditingEnabled
9660        https://bugs.webkit.org/show_bug.cgi?id=36522
9661
9662        For consistency with other QWebSettings attributes.
9663
9664        * Api/qwebsettings.cpp:
9665        (QWebSettingsPrivate::apply):
9666        * Api/qwebsettings.h:
9667
96682010-03-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
9669
9670        Reviewed by Simon Hausmann.
9671
9672        Calling setView(0) on a QWebPage being shown by a QGraphicsWebView,
9673        would uninstall the page client, deleting the QGraphicsWebViewPrivate
9674        instance. If called with an argument, it would do a wrong static_cast
9675        and crash.
9676
9677        * Api/qwebpage.cpp:
9678        (QWebPageWidgetClient::QWebPageWidgetClient):
9679        (QWebPageWidgetClient::isQWidgetClient):
9680        (QWebPageWidgetClient::screenNumber):
9681        (QWebPage::QWebPage):
9682        (QWebPage::setView):
9683        * Api/qgraphicswebview.cpp:
9684        (QGraphicsWebViewPrivate::unsetPageIfExists):
9685        (QGraphicsWebView::setPage):
9686        * Api/qwebpage.cpp:
9687        (QWebPageWidgetClient::isQWidgetClient):
9688        (QWebPageWidgetClient::screenNumber):
9689        (QWebPage::QWebPage):
9690        (QWebPage::setView):
9691        * Api/qwebpage.h:
9692        * Api/qwebview.cpp:
9693        (QWebViewPrivate::unsetPageIfExists):
9694        (QWebView::setPage):
9695
96962010-03-24  Kent Tamura  <tkent@chromium.org>
9697
9698        Reviewed by Darin Adler.
9699
9700        Make Icon::createIconForFiles() optional.
9701        https://bugs.webkit.org/show_bug.cgi?id=35072
9702
9703        - Rename iconForFiles() to chooseIconForFiles().
9704        - Call Icon::createIconForFiles() from chooseIconForFiles().
9705
9706        * WebCoreSupport/ChromeClientQt.cpp:
9707        (WebCore::ChromeClientQt::chooseIconForFiles):
9708        * WebCoreSupport/ChromeClientQt.h:
9709
97102010-03-23  Luiz Agostini  <luiz.agostini@openbossa.org>
9711
9712        Reviewed by Kenneth Rohde Christiansen.
9713
9714        QGraphicsWebView crash when calling setView on the QWebPage...
9715        https://bugs.webkit.org/show_bug.cgi?id=36436
9716
9717        Checking for pageClient existance before showing popups.
9718
9719        * WebCoreSupport/QtFallbackWebPopup.cpp:
9720        (WebCore::QtFallbackWebPopup::show):
9721
97222010-03-23  Anders Bakken <anders.bakken@nokia.com>, Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
9723
9724        Reviewed by Kenneth Rohde Christiansen.
9725
9726        Check if q->scene() is available before actually using it
9727        on QGraphicsWebViewPrivate.
9728
9729        QGraphicsWebView crash
9730        https://bugs.webkit.org/show_bug.cgi?id=32670
9731
9732        * Api/qgraphicswebview.cpp:
9733        (QGraphicsWebViewPrivate::screenNumber):
9734        (QGraphicsWebViewPrivate::ownerWidget):
9735
97362010-03-23  David Leong  <david.leong@nokia.com>
9737
9738        Reviewed by Laszlo Gombos.
9739
9740        Build fix for Symbian Def file.
9741
9742        * symbian/eabi/QtWebKitu.def:
9743
97442010-03-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
9745
9746        Reviewed by Kenneth Rohde Christiansen.
9747
9748        [Qt] Remove support for Qt v4.4
9749        https://bugs.webkit.org/show_bug.cgi?id=36389
9750
9751        * Api/qwebelement.cpp:
9752        (QWebElement::classes):
9753        * Api/qwebpage.cpp:
9754        (QWebPagePrivate::editorActionForKeyEvent):
9755        (QWebPage::userAgentForUrl):
9756        * WebCoreSupport/EditorClientQt.cpp:
9757        (WebCore::EditorClientQt::handleKeyboardEvent):
9758        * tests/tests.pro:
9759
97602010-03-22  Kent Hansen  <kent.hansen@nokia.com>
9761
9762        Reviewed by Laszlo Gombos.
9763
9764        [Qt] Fix qdoc warnings
9765        https://bugs.webkit.org/show_bug.cgi?id=36447
9766
9767        * Api/qgraphicswebview.cpp: Add missing ().
9768        * Api/qwebframe.cpp: Remove reference to non-existent parameter "url".
9769        * Api/qwebsettings.cpp:  Document parameter "location".
9770
97712010-03-22  Jakub Wieczorek  <jwieczorek@webkit.org>
9772
9773        Reviewed by Simon Hausmann.
9774
9775        [Qt] Don't construct a QLineEdit every time when painting a text field
9776        https://bugs.webkit.org/show_bug.cgi?id=36373
9777
9778        Add a simple benchmark covering this area.
9779
9780        * tests/benchmarks/painting/tst_painting.cpp:
9781        (tst_Painting::textAreas):
9782
97832010-03-22  Yi Shen  <shenyi2006@gmail.com>
9784
9785        Reviewed by Simon Hausmann.
9786
9787        https://bugs.webkit.org/show_bug.cgi?id=35933
9788        [Qt] [Symbian] Can not backward select (highlight) text using virtual keyboard
9789        Make sure the selection start index is smaller than the selection end index.
9790
9791        * Api/qwebpage.cpp:
9792        (QWebPagePrivate::inputMethodEvent):
9793        * tests/qwebpage/tst_qwebpage.cpp:
9794        (tst_QWebPage::inputMethods):
9795
97962010-03-21  Kristian Amlie  <kristian.amlie@nokia.com>
9797
9798        Reviewed by Simon Hausmann.
9799
9800        Fixed updating the VKB display when inputting into QGraphicsWebView.
9801        https://bugs.webkit.org/show_bug.cgi?id=36292
9802
9803        * Api/qgraphicswebview.cpp:
9804        (QGraphicsWebViewPrivate::_q_updateMicroFocus):
9805        (QGraphicsWebView::setPage):
9806        * Api/qgraphicswebview.h:
9807
98082010-03-19  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
9809
9810        Unreviewed.
9811
9812        Buildfix for Qt v4.5.
9813
9814        * Api/qgraphicswebview.cpp:
9815        (QGraphicsWebViewOverlay::q):
9816
98172010-03-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
9818
9819        Reviewed by Darin Adler.
9820
9821        Make it possible for the Qt DRT to set the media type from
9822        the LayoutTestController.
9823
9824        * Api/qwebframe.cpp:
9825        (qt_drt_setMediaType):
9826
98272010-03-18  Joe Ligman  <joseph.ligman@nokia.com>
9828
9829        Reviewed by Simon Hausmann.
9830
9831        [Qt] New API scrollRecursively has several problems.
9832        https://bugs.webkit.org/show_bug.cgi?id=35873
9833
9834        Remove scrollRecursively from the Qt 4.7 API
9835        Update the internal API to accept a hit test position
9836        for nested scrolling
9837
9838        * Api/qwebframe.cpp:
9839        (webframe_scrollOverflow):
9840        (qtwebkit_webframe_scrollRecursively):
9841        * Api/qwebframe.h:
9842        * Api/qwebframe_p.h:
9843        * tests/qwebframe/tst_qwebframe.cpp:
9844
98452010-03-18  Antti Koivisto  <koivisto@iki.fi>
9846
9847        Reviewed by Kenneth Rohde Christiansen.
9848
9849        https://bugs.webkit.org/show_bug.cgi?id=36102
9850        [Qt] Scaling control API for tiled backing store
9851
9852        The scale is set by passing the QGraphicsWebView scale to the backing store. The
9853        only new API is the tiledBackingStoreFrozen property which allows disabling
9854        all updates (for example during zoom animation).
9855
9856        * Api/qgraphicswebview.cpp:
9857        (QGraphicsWebViewPrivate::_q_scaleChanged):
9858        (QGraphicsWebViewPrivate::updateTiledBackingStoreScale):
9859        (QGraphicsWebView::QGraphicsWebView):
9860        (QGraphicsWebView::isTiledBackingStoreFrozen):
9861        (QGraphicsWebView::setTiledBackingStoreFrozen):
9862        * Api/qgraphicswebview.h:
9863        * Api/qwebframe.cpp:
9864        * Api/qwebframe_p.h:
9865
98662010-03-17  Antti Koivisto  <koivisto@iki.fi>
9867
9868        Reviewed by Tor Arne Vestbø.
9869
9870        Fix Qt build with tiled backing store disabled.
9871
9872        * Api/qwebframe.cpp:
9873        * Api/qwebframe_p.h:
9874
98752010-03-17  Chang Shu  <chang.shu@nokia.com>
9876
9877        Reviewed by Laszlo Gombos.
9878
9879        https://bugs.webkit.org/show_bug.cgi?id=36139
9880        [Qt] Clean up cache while setting cache quota. This behavior matches other platforms,
9881        such as mac and gtk.
9882
9883         * Api/qwebsettings.cpp:
9884        (QWebSettings::setOfflineWebApplicationCacheQuota):
9885
98862010-03-17  Csaba Osztrogonác  <ossy@webkit.org>
9887
9888        Reviewed by Kenneth Rohde Christiansen.
9889
9890        [Qt] Enable accelerated compositing by default
9891        https://bugs.webkit.org/show_bug.cgi?id=35866
9892
9893        * Api/qwebsettings.cpp:
9894        (QWebSettings::QWebSettings):
9895
98962010-03-15  Antti Koivisto  <koivisto@iki.fi>
9897
9898        Reviewed by Simon Hausmann.
9899
9900        https://bugs.webkit.org/show_bug.cgi?id=36121
9901        [Qt] Make WebKit scrollbars work with tiling
9902
9903        - Use the scrollbar overlay (implemented for accelerated compositing) when in tiled mode.
9904        - Make overlay compile unconditionally, enable on demand. This removes bunch of unneeded ifdefs.
9905        - Update the scroll position to the backing store as needed.
9906        - Renamed some methods.
9907
9908        * Api/qgraphicswebview.cpp:
9909        (QGraphicsWebViewPrivate::):
9910        (QGraphicsWebViewPrivate::createOrDeleteOverlay):
9911        (QGraphicsWebViewPrivate::setRootGraphicsLayer):
9912        (QGraphicsWebViewPrivate::updateCompositingScrollPosition):
9913        (QGraphicsWebViewPrivate::scroll):
9914        (QGraphicsWebViewPrivate::update):
9915        (QGraphicsWebViewPrivate::graphicsItemVisibleRect):
9916        (QGraphicsWebView::paint):
9917        (QGraphicsWebView::setPage):
9918        (QGraphicsWebView::updateGeometry):
9919        (QGraphicsWebView::setGeometry):
9920        * Api/qwebframe.cpp:
9921        (QWebFramePrivate::renderFromTiledBackingStore):
9922        * Api/qwebframe_p.h:
9923
99242010-03-15  Robert Hogan  <robert@webkit.org>
9925
9926        Reviewed by Simon Hausmann.
9927
9928        [Qt] Fix crash in QWebView::setPage()
9929
9930        tst_qwebpage was crashing on setPage(0)
9931
9932        https://bugs.webkit.org/show_bug.cgi?id=36137
9933
9934        * Api/qwebview.cpp:
9935        (QWebView::setPage):
9936
99372010-03-16  Yury Semikhatsky <yurys@chromium.org>
9938
9939        Reviewed by Pavel Feldman.
9940
9941        Introduce InspectorFrontendClient that provides InspectorFrontend with an interface to the embedder. InspectorClient now serves as a delegate for InspectorController and does not contain methods for managing inspector frontend window. That allows to create remote InspectorFrontendHost.
9942
9943        Introduce InspectorFrontendClient that would provide InspectorFrontend with an interface to the embedder
9944        https://bugs.webkit.org/show_bug.cgi?id=35036
9945
9946        * Api/qwebinspector.cpp:
9947        (QWebInspector::hideEvent):
9948        (QWebInspector::closeEvent):
9949        * Api/qwebinspector.h:
9950        * Api/qwebpage.h:
9951        * WebCoreSupport/InspectorClientQt.cpp:
9952        (WebCore::InspectorClientQt::openInspectorFrontend):
9953        (WebCore::InspectorFrontendClientQt::InspectorFrontendClientQt):
9954        (WebCore::InspectorFrontendClientQt::frontendLoaded):
9955        (WebCore::InspectorFrontendClientQt::localizedStringsURL):
9956        (WebCore::InspectorFrontendClientQt::hiddenPanels):
9957        (WebCore::InspectorFrontendClientQt::bringToFront):
9958        (WebCore::InspectorFrontendClientQt::closeWindow):
9959        (WebCore::InspectorFrontendClientQt::attachWindow):
9960        (WebCore::InspectorFrontendClientQt::detachWindow):
9961        (WebCore::InspectorFrontendClientQt::setAttachedWindowHeight):
9962        (WebCore::InspectorFrontendClientQt::inspectedURLChanged):
9963        (WebCore::InspectorFrontendClientQt::updateWindowTitle):
9964        * WebCoreSupport/InspectorClientQt.h:
9965
99662010-03-15  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
9967
9968        Unreviewed.
9969
9970        [Qt] Build fix if TILED_BACKING_STORE is disabled.
9971
9972        * Api/qwebframe.cpp:
9973        (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
9974
99752010-03-14  Chang Shu  <chang.shu@nokia.com>
9976
9977        Reviewed by Simon Hausmann.
9978
9979        [Qt] [Symbian] Use Symbian native dialog providers for combo pupups.
9980        https://bugs.webkit.org/show_bug.cgi?id=35919
9981
9982        * WebCoreSupport/QtFallbackWebPopup.cpp:
9983        (WebCore::QtFallbackWebPopup::show):
9984        (WebCore::ResetAndDestroy):
9985        (WebCore::QtFallbackWebPopup::showS60BrowserDialog):
9986        * WebCoreSupport/QtFallbackWebPopup.h:
9987
99882010-03-14  Antti Koivisto  <koivisto@iki.fi>
9989
9990        Reviewed by Simon Hausmann.
9991
9992        https://bugs.webkit.org/show_bug.cgi?id=35146
9993        Support tiled backing store
9994
9995        Implements a basic tiled backing store mechanism. Tiles are created and
9996        deleted on demand. The page content is cached to the tiles. Tile content
9997        is kept in sync with the document. Since the backing store covers area
9998        larger than the currently visible viewport, the document can be scrolled
9999        quickly without having to enter rendering tree painting.
10000
10001        The tile management code is platform independent. This patch has simple QPixmap
10002        based tile implementation for Qt.
10003
10004        The feature is behind ENABLE_TILED_BACKING_STORE flag.
10005
10006        * Api/qgraphicswebview.cpp:
10007        (QGraphicsWebViewPrivate::visibleRect):
10008        (QGraphicsWebView::paint):
10009        * Api/qwebframe.cpp:
10010        (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
10011        * Api/qwebframe.h:
10012        * Api/qwebsettings.cpp:
10013        (QWebSettingsPrivate::apply):
10014        * Api/qwebsettings.h:
10015
100162010-03-13  Csaba Osztrogonác  <ossy@webkit.org>
10017
10018        [Qt] Enable accelerated compositing by default
10019        https://bugs.webkit.org/show_bug.cgi?id=35866
10020
10021        Unreviewed. Roll-out r55955, because it broke 3 tests:
10022        - animations/fill-mode-transform.html
10023        - animations/play-state.html
10024        - animations/simultaneous-start-left.html
10025
10026        * Api/qwebsettings.cpp:
10027        (QWebSettings::QWebSettings):
10028
100292010-03-13  Simon Hausmann  <simon.hausmann@nokia.com>
10030
10031        Reviewed by Kenneth Rohde Christiansen.
10032
10033        [Qt] Enable accelerated compositing by default
10034        https://bugs.webkit.org/show_bug.cgi?id=35866
10035
10036        * Api/qwebsettings.cpp:
10037        (QWebSettings::QWebSettings):
10038
100392010-03-11  Anders Carlsson  <andersca@apple.com>
10040
10041        Reviewed by David Hyatt.
10042
10043        Remove invalidateContents, it isn't used and it never makes sense to only invalidate the contents.
10044
10045        * WebCoreSupport/ChromeClientQt.cpp:
10046        * WebCoreSupport/ChromeClientQt.h:
10047
100482010-03-10  Robert Hogan  <robert@webkit.org>
10049
10050        Reviewed by Simon Hausmann.
10051
10052        [Qt] Add Support for WebKitEnableCaretBrowsing to Qt DRT
10053
10054        Unskip test fast/events/multiline-link-arrow-navigation.html
10055        Fix typo (superfluous space) in QWebSettings docs.
10056
10057        https://bugs.webkit.org/show_bug.cgi?id=35593
10058
10059        * Api/qwebpage.cpp:
10060        (qt_drt_enableCaretBrowsing):
10061        * Api/qwebsettings.cpp:
10062        (QWebSettingsPrivate::apply): fix typo in docs
10063
100642010-03-02  Adam Treat  <atreat@rim.com>
10065
10066        Reviewed by Dave Hyatt.
10067
10068        Adapt the qt port to the refactoring of repaint methods.
10069
10070        https://bugs.webkit.org/show_bug.cgi?id=34214
10071
10072        * WebCoreSupport/ChromeClientQt.cpp:
10073        (WebCore::ChromeClientQt::invalidateContents):
10074        (WebCore::ChromeClientQt::invalidateWindow):
10075        (WebCore::ChromeClientQt::invalidateContentsAndWindow):
10076        (WebCore::ChromeClientQt::invalidateContentsForSlowScroll):
10077        * WebCoreSupport/ChromeClientQt.h:
10078
100792010-03-08  Eric Uhrhane  <ericu@chromium.org>
10080
10081        Reviewed by David Levin.
10082
10083        Remove the now-redundant Settings fields for the Database
10084        https://bugs.webkit.org/show_bug.cgi?id=35763
10085
10086        No new tests; this code isn't called.
10087
10088        * Api/qwebsettings.cpp:
10089        (QWebSettingsPrivate::apply): Remove the call into Settings.
10090
100912010-03-08  Simon Hausmann  <simon.hausmann@nokia.com>
10092
10093        Reviewed by Laszlo Gombos.
10094
10095        [Qt] Binary incompatibility between Qt 4.6's WebKit and trunk in QWebSettings
10096        https://bugs.webkit.org/show_bug.cgi?id=35858
10097
10098        Moved the enum value added in r54873 to the end of the enum, to preserve
10099        binary compatibility. DnsPrefetchEnabled was in the last release and needs
10100        to remain after LocalContentCanAccessRemoteUrls.
10101
10102        * Api/qwebsettings.h:
10103
101042010-03-06  Mark Rowe  <mrowe@apple.com>
10105
10106        Rubber-stamped by Sam Weinig.
10107
10108        Remove unnecessary includes of wtf/Platform.h.  This is already pulled in by the prefix header.
10109
10110        * WebCoreSupport/EditCommandQt.cpp:
10111
101122010-03-02  Antonio Gomes  <tonikitoo@webkit.org>
10113
10114        Reviewed by Simon Hausmann.
10115        Patch by Antonio Gomes <tonikitoo@webkit.org>
10116
10117        [Qt] QWebSettings attribute for toggle Spatial Navigation on/off
10118        https://bugs.webkit.org/show_bug.cgi?id=33714 (Qt API part)
10119
10120        Added 'SpatialNavigationEnabled' attribute to QWebSettings.
10121
10122        * Api/qwebsettings.cpp:
10123        (QWebSettingsPrivate::apply):
10124        * Api/qwebsettings.h:
10125
101262010-03-04  Simon Hausmann  <simon.hausmann@nokia.com>
10127
10128        Reviewed by Kenneth Rohde Christiansen.
10129
10130        [Qt] qwebelement.h does not include QtCore headers correctly
10131        https://bugs.webkit.org/show_bug.cgi?id=35748
10132
10133        The header files of QtCore must be included as QtCore/foo.h.
10134
10135        See also http://bugreports.qt.nokia.com/browse/QTBUG-8661
10136
10137        * Api/qwebelement.h:
10138
101392010-03-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
10140
10141        Reviewed by Tor Arne Vestbø.
10142
10143        [Qt] Make the OUTPUT_DIR variable in qmake projects independent of build-webkit's logic.
10144
10145        This also allows shadow builds relying only on qmake to work properly.
10146
10147        * tests/benchmarks/loading/loading.pro:
10148        * tests/benchmarks/painting/painting.pro:
10149        * tests/hybridPixmap/hybridPixmap.pro:
10150        * tests/qgraphicswebview/qgraphicswebview.pro:
10151        * tests/qwebelement/qwebelement.pro:
10152        * tests/qwebframe/qwebframe.pro:
10153        * tests/qwebhistory/qwebhistory.pro:
10154        * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
10155        * tests/qwebinspector/qwebinspector.pro:
10156        * tests/qwebpage/qwebpage.pro:
10157        * tests/qwebplugindatabase/qwebplugindatabase.pro:
10158
101592010-03-02  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
10160
10161        Reviewed by Kenneth Rohde Christiansen.
10162
10163        [Qt] Fix generation of forwarding headers
10164
10165        The dependencies were a bit wrong, so we ended up not generating
10166        forwarding headers for qwebkitversion.h and qwebkitglobal.h
10167
10168        The forwarding headers are now the only targets depending on the
10169        real headers. All other targets either depend on the generated
10170        class headers, or the forwarding headers.
10171
10172        * Api/DerivedSources.pro:
10173
101742010-03-02  Eric Uhrhane  <ericu@chromium.org>
10175
10176        Reviewed by David Levin.
10177
10178        Move database enable bit fully out of settings
10179        This is stage one of a three-stage commit [webkit, then chromium, then
10180        webkit again].  In this change I'm adding calls to
10181        Database::setIsAvailable inside Settings::setDatabaseEnabled and
10182        anywhere else that called it, and switching webkit fully over to using
10183        that flag [added in a previous checkin].  Phase two will remove
10184        Chromium's use of Settings for the Database, and phase three will remove
10185        the Setting for the Database enable entirely, leaving only
10186        Database::isAvailable/setIsAvailable.
10187
10188        No new tests; tested by existing storage tests.
10189
10190        https://bugs.webkit.org/show_bug.cgi?id=35310
10191
10192        * Api/qwebsettings.cpp:
10193        (QWebSettingsPrivate::apply):  Add a call to Database::setIsAvailable
10194
101952010-03-02  Simon Hausmann  <simon.hausmann@nokia.com>
10196
10197        Symbian build fix.
10198
10199        [Qt] Updated the def file with one new export, to fix
10200        QtLauncher linkage.
10201
10202        * symbian/eabi/QtWebKitu.def:
10203
102042010-03-01  Jakob Petsovits  <jpetsovits@rim.com>
10205
10206        Reviewed by Adam Barth.
10207
10208        Adapt to the new ZoomMode enum.
10209        https://bugs.webkit.org/show_bug.cgi?id=35347
10210
10211        * Api/qwebframe.cpp:
10212        (QWebFrame::setTextSizeMultiplier):
10213        (QWebFrame::setZoomFactor):
10214        * Api/qwebsettings.cpp:
10215        (QWebSettingsPrivate::apply):
10216
102172010-02-26  Diego Gonzalez  <diego.gonzalez@openbossa.org>
10218
10219        Reviewed by Simon Hausmann.
10220
10221        Fix documentation of QWebSettings::setUserStyleSheetUrl method
10222
10223        The base 64 data in the exemple shows a not valid code.
10224
10225        REGRESSION: QWebSettings::setUserStyleSheetUrl is not working with a data URL (Base64)
10226        https://bugs.webkit.org/show_bug.cgi?id=34802
10227
10228        * Api/qwebsettings.cpp:
10229
102302010-02-26  Jamey Hicks  <jamey.hicks@nokia.com>
10231
10232        Reviewed by Laszlo Gombos.
10233
10234        [Qt] added QWebSettings::setInspectorUrl() and QWebSettings::inspectorUrl()
10235
10236        Enables the use of alternate Web Inspector frontends by changing
10237        the location of the frontend.
10238
10239        This is required so that the Web Inspector may be run from an
10240        external process or an external tool such as Eclipse or Aptana may
10241        be used instead of the in-process Web Inspector UI.
10242
10243        https://bugs.webkit.org/show_bug.cgi?id=35340
10244
10245        * Api/qwebsettings.cpp:
10246        (QWebSettings::QWebSettings):
10247        (QWebSettings::setInspectorUrl):
10248        (QWebSettings::inspectorUrl):
10249        * Api/qwebsettings.h:
10250        * WebCoreSupport/InspectorClientQt.cpp:
10251        (WebCore::InspectorClientQt::createPage):
10252
102532010-02-25  Jarkko Sakkinen  <jarkko.sakkinen@tieto.com>
10254
10255        Reviewed by Kenneth Rohde Christiansen.
10256
10257        Qt WebGL support
10258
10259        Adds enabling and disabling of WebGL support to QWebSettings.
10260        https://bugs.webkit.org/show_bug.cgi?id=35153
10261
10262        * Api/qwebsettings.cpp:
10263        (QWebSettingsPrivate::apply):
10264        (QWebSettings::QWebSettings):
10265        * Api/qwebsettings.h:
10266
102672010-02-19  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
10268
10269        Reviewed by Kenneth Rohde Christiansen.
10270
10271        [Qt] Remove QGVLauncher
10272
10273        https://bugs.webkit.org/show_bug.cgi?id=35292
10274
10275        * QGVLauncher/QGVLauncher.pro: Removed.
10276        * QGVLauncher/main.cpp: Removed.
10277
102782010-02-23  Steve Block  <steveblock@google.com>
10279
10280        Reviewed by Darin Adler.
10281
10282        Adds ChromeClient::cancelGeolocationPermissionRequestForFrame
10283        https://bugs.webkit.org/show_bug.cgi?id=34962
10284
10285        This method is required so that a Geolocation object can cancel an
10286        asynchronous permission request. This allows the chrome client to cancel
10287        any UI it is showing for the permission request.
10288
10289        * WebCoreSupport/ChromeClientQt.h:
10290        (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
10291
102922010-02-22  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
10293
10294        Unreviewed Symbian build fix.
10295
10296        [Qt] Updated the def file with new exports to enable
10297        building DumpRenderTree.
10298
10299        * symbian/eabi/QtWebKitu.def:
10300
103012010-02-18  Noam Rosenthal  <noam.rosenthal@nokia.com>
10302
10303        Reviewed by Kenneth Rohde Christiansen.
10304
10305        [Qt] Minor improvement to hybrid QPixmap
10306        https://bugs.webkit.org/show_bug.cgi?id=34507
10307
10308        * tests/hybridPixmap/test.html: use assignToHTMLImageElement on an
10309        existing element instead of toHTMLImageElement which creates a new one
10310
103112010-02-17  Dmitry Titov  <dimich@chromium.org>
10312
10313        Reviewed by David Levin, Darin Fisher, Simon Hausmann.
10314
10315        When a live iframe element is moved between pages, it still depends on the old page.
10316        https://bugs.webkit.org/show_bug.cgi?id=34382
10317
10318        * Api/qwebframe_p.h:
10319        (QWebFramePrivate::setPage): Added.
10320        * WebCoreSupport/FrameLoaderClientQt.cpp:
10321        (WebCore::FrameLoaderClientQt::didTransferChildFrameToNewDocument):
10322        The QWebFrame caches a QWebPage which should be replaced when Frame is re-parented.
10323        Also, the QWebFrame is a child (in QT terms) of QWebPage - so update that relationship as well.
10324        Emit a signal that QWebFrame moved to a different QWebPage.
10325
10326        * WebCoreSupport/FrameLoaderClientQt.h:
10327
103282010-02-17  Kent Tamura  <tkent@chromium.org>
10329
10330        Reviewed by Eric Seidel.
10331
10332        Introduces new Icon loading interface in order to support
10333        asynchronous loading.
10334        https://bugs.webkit.org/show_bug.cgi?id=32054
10335
10336        Add an empty implementation of ChromeClient::iconForFiles().
10337
10338        * WebCoreSupport/ChromeClientQt.cpp:
10339        (WebCore::ChromeClientQt::iconForFiles):
10340        * WebCoreSupport/ChromeClientQt.h:
10341
103422010-02-17  Diego Gonzalez  <diego.gonzalez@openbossa.org>
10343
10344        Reviewed by Ariya Hidayat.
10345
10346        Make possible Qt DRT to get total number of pages to be printed
10347
10348        LayoutTests:
10349            printing/numberOfPages.html
10350
10351        [Qt] DRT: Get total number of pages to be printed
10352        https://bugs.webkit.org/show_bug.cgi?id=34955
10353
10354        * Api/qwebframe.cpp:
10355        (qt_drt_numberOfPages):
10356        (qt_drt_evaluateScriptInIsolatedWorld):
10357
103582010-02-16  Ariya Hidayat  <ariya.hidayat@gmail.com>
10359
10360        Reviewed by Simon Hausmann.
10361
10362        [Qt] Allow scrolling to an anchor programmatically.
10363        https://bugs.webkit.org/show_bug.cgi?id=29856
10364
10365        * Api/qwebframe.cpp:
10366        (QWebFrame::scrollToAnchor): New API function.
10367        * Api/qwebframe.h:
10368        * tests/qwebframe/tst_qwebframe.cpp: New tests for scrollToAnchor().
10369
103702010-02-16  Ariya Hidayat  <ariya.hidayat@gmail.com>
10371
10372        Reviewed by Laszlo Gombos.
10373
10374        Fix building with Qt < 4.6.
10375        https://bugs.webkit.org/show_bug.cgi?id=34885
10376
10377        * Api/qgraphicswebview.cpp:
10378        (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
10379
103802010-02-16  Simon Hausmann  <simon.hausmann@nokia.com>
10381
10382        Unreviewed Symbian build fix.
10383
10384        Updated the def file with two new exports used by QtLauncher.
10385
10386        * symbian/eabi/QtWebKitu.def:
10387
103882010-02-16  Ismail Donmez  <ismail@namtrac.org>
10389
10390        Reviewed by Pavel Feldman.
10391
10392        Fix compilation with inspector disabled.
10393        https://bugs.webkit.org/show_bug.cgi?id=32724
10394
10395        * Api/qwebpage.cpp:
10396        (qt_drt_webinspector_executeScript):
10397        (qt_drt_webinspector_close):
10398        (qt_drt_webinspector_show):
10399        (qt_drt_setTimelineProfilingEnabled):
10400
104012010-02-16  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
10402
10403        Reviewed by Simon Hausman.
10404
10405        [Qt] Fix include paths for forwarding headers in standalone builds.
10406
10407        * Api/DerivedSources.pro: Use relative paths for package builds and added some
10408        documentation.
10409
104102010-02-15  Noam Rosenthal  <noam.rosenthal@nokia.com>
10411
10412        Reviewed by Simon Hausmann.
10413
10414        [Qt] QtWebkit bridge: enable passing a QWebElement to a signal/slot/property
10415        Add Q_DECLARE_METATYPE to QWebElement, add relevant tests to
10416        tst_qwebframe
10417        https://bugs.webkit.org/show_bug.cgi?id=34901
10418
10419        * Api/qwebelement.h: declare metatype
10420        * tests/qwebframe/tst_qwebframe.cpp:
10421        (MyQObject::webElementProperty): new test for QWebElement
10422        (MyQObject::setWebElementProperty): new test for QWebElement
10423        (MyQObject::myOverloadedSlot): new test for QWebElement
10424
104252010-02-15  Robert Hogan  <robert@roberthogan.net>, Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
10426
10427        Reviewed by Simon Hausmann.
10428
10429        [Qt] DRT: Support evaluateInWebInspector(), setTimelineProfilingEnabled().
10430
10431        Support LayoutTestController.evaluateInWebInspector(), setTimelineProfilingEnabled() in Qt DRT.
10432
10433        https://bugs.webkit.org/show_bug.cgi?id=33096
10434
10435        This allows the following tests to pass:
10436
10437        inspector/console-format-collections.html
10438        inspector/styles-iframe.html
10439        inspector/syntax-highlight-css.html
10440        inspector/syntax-highlight-javascript.html
10441        inspector/timeline-enum-stability.html
10442        inspector/timeline-layout.html
10443        inspector/timeline-mark-timeline.html
10444        inspector/timeline-paint.html
10445        inspector/timeline-parse-html.html
10446        inspector/timeline-recalculate-styles.html
10447        inspector/timeline-script-tag-1.html
10448        inspector/timeline-script-tag-2.html
10449        inspector/timeline-trivial.html
10450        inspector/cookie-resource-match.html
10451        inspector/elements-img-tooltip.html
10452        inspector/elements-panel-selection-on-refresh.html
10453        inspector/inspected-objects-not-overriden.html
10454        inspector/timeline-event-dispatch.html
10455        inspector/timeline-network-resource.html
10456        inspector/elements-panel-rewrite-href.html
10457        inspector/console-dir.html
10458        inspector/console-dirxml.html
10459        inspector/console-format.html
10460        inspector/console-tests.html
10461        inspector/elements-panel-structure.html
10462        inspector/evaluate-in-frontend.html
10463        inspector/console-clear.html
10464
10465        * Api/qwebpage.cpp:
10466        (qt_drt_webinspector_executeScript):
10467        (qt_drt_webinspector_close):
10468        (qt_drt_webinspector_show):
10469        (qt_drt_setTimelineProfilingEnabled):
10470
10471        * WebCoreSupport/InspectorClientQt.cpp:
10472        (InspectorClientQt::createPage)
10473
104742010-02-12  Antti Koivisto  <koivisto@iki.fi>
10475
10476        Reviewed by Kenneth Rohde Christiansen and Simon Hausmann.
10477
10478        https://bugs.webkit.org/show_bug.cgi?id=34885
10479        Add a QGraphicsWebView mode that makes it automatically resize itself to the size of the content.
10480
10481        This is useful for cases where the client wants to implement page panning and zooming by manipulating
10482        the graphics item.
10483
10484        Add a option to QGVLauncher to test this mode.
10485
10486        * Api/qgraphicswebview.cpp:
10487        (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
10488        (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
10489        (QGraphicsWebViewPrivate::_q_contentsSizeChanged):
10490        (QGraphicsWebView::setPage):
10491        (QGraphicsWebView::setResizesToContents):
10492        (QGraphicsWebView::resizesToContents):
10493        * Api/qgraphicswebview.h:
10494        * QGVLauncher/main.cpp:
10495        (WebView::WebView):
10496        (MainView::MainView):
10497        (MainView::setMainWidget):
10498        (MainView::resizeEvent):
10499        (main):
10500
105012010-02-12  Diego Gonzalez  <diego.gonzalez@openbossa.org>
10502
10503        Reviewed by Kenneth Rohde Christiansen.
10504
10505        Qt DRT now dump the frame loader callbacks when LayoutTestController()
10506        method is called.
10507
10508        LayoutTests:
10509            http/tests/security/mixedContent/data-url-script-in-iframe.html
10510            http/tests/security/mixedContent/empty-url-plugin-in-frame.html
10511            http/tests/security/mixedContent/insecure-css-in-iframe.html
10512            http/tests/security/mixedContent/insecure-iframe-in-iframe.html
10513            http/tests/security/mixedContent/insecure-image-in-iframe.html
10514            http/tests/security/mixedContent/insecure-plugin-in-iframe.html
10515            http/tests/security/mixedContent/insecure-script-in-iframe.html
10516            http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe.html
10517            http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe.html
10518
10519        [Qt] Make possible Qt DRT dump frame load callbacks
10520        https://bugs.webkit.org/show_bug.cgi?id=34702
10521
10522        * WebCoreSupport/FrameLoaderClientQt.cpp:
10523        (WebCore::FrameLoaderClientQt::didDisplayInsecureContent):
10524        (WebCore::FrameLoaderClientQt::didRunInsecureContent):
10525
105262010-02-10  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
10527
10528        Reviewed by Tor Arne Vestbø.
10529
10530        [Qt] Make qtlauncher and qgvlauncher use the generated headers
10531        path to make sure they are correctly generated.
10532
10533        * tests/tests.pri:
10534
105352010-02-10  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
10536
10537        Reviewed by Tor Arne Vestbø.
10538
10539        [Qt] Ensure relative paths in generated .pri files to ensure that
10540        a source package with pre-generated derived sources can be compiled.
10541
10542        - Re-add a separate headers.pri file for WEBKIT_API_HEADERS
10543        - Rename the generated headers.pri to classheaders.pri to avoid
10544        confusion with the one generated by synqt since they don't have the
10545        same content.
10546        - Remove private headers list variable from classheaders.pri
10547        - Use $$PWD in classheaders.pri
10548        - Remove classheaders.pri from the installed files
10549
10550        * Api/DerivedSources.pro:
10551
105522010-02-10  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
10553
10554        Reviewed by Tor Arne Vestbø.
10555
10556        [Qt] Minor fixes on QtWebKit headers generation.
10557
10558        - Adds QtWebKit to the generated headers destination path
10559        - Improve compatibility with MinGW
10560
10561        * Api/DerivedSources.pro:
10562
105632010-02-09  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
10564
10565        Reviewed by nobody, build fix.
10566
10567        [Qt] Fix standalone build with MinGW.
10568
10569        * tests/qwebelement/tst_qwebelement.cpp:
10570        * tests/tests.pri:
10571
105722010-02-10  Diego Gonzalez  <diego.gonzalez@openbossa.org>
10573
10574        Reviewed by Kenneth Rohde Christiansen.
10575
10576        Implement pageNumberForElementById() method in Qt DRT LayoutTestController,
10577        to make Qt DRT able to get page number.
10578
10579        LayoutTests:
10580            printing/page-break-always.html
10581            printing/pageNumerForElementById.html
10582            printing/css2.1/page-break-before-000.html
10583            printing/css2.1/page-break-after-000.html
10584            printing/css2.1/page-break-after-004.html
10585            printing/css2.1/page-break-before-001.html
10586            printing/css2.1/page-break-after-001.html
10587            printing/css2.1/page-break-after-002.html
10588            printing/css2.1/page-break-before-002.html
10589            printing/css2.1/page-break-inside-000.html
10590
10591        [Qt] Make possible Qt DRT get a page number for element by ID
10592        https://bugs.webkit.org/show_bug.cgi?id=34777
10593
10594        * Api/qwebframe.cpp:
10595        (qt_drt_pageNumberForElementById):
10596
105972010-02-09  Yael Aharon  <yael.aharon@nokia.com>
10598
10599        Reviewed by Adam Barth.
10600
10601        [Qt] Unit test for window.runModalDialog
10602        https://bugs.webkit.org/show_bug.cgi?id=34755
10603
10604        * tests/qwebpage/tst_qwebpage.cpp:
10605        (TestModalPage::TestModalPage):
10606        (TestModalPage::createWindow):
10607        (tst_QWebPage::showModalDialog):
10608
106092010-02-09  Andreas Kling  <andreas.kling@nokia.com>
10610
10611        Reviewed by Kenneth Rohde Christiansen.
10612
10613        [Qt] Sync with API changes in Maemo 5 kinetic scrolling
10614
10615        https://bugs.webkit.org/show_bug.cgi?id=34747
10616
10617        This is a forward-port of http://qt.gitorious.org/+qt-developers/qt/x11-maemo/commit/08497561
10618
10619        * Api/qwebview.cpp:
10620        (qt_sendSpontaneousEvent):
10621        (QWebViewKineticScroller::QWebViewKineticScroller):
10622        (QWebViewKineticScroller::setWidget):
10623        (QWebViewKineticScroller::eventFilter):
10624        (QWebViewKineticScroller::cancelLeftMouseButtonPress):
10625        (QWebViewKineticScroller::currentFrame):
10626        (QWebViewKineticScroller::scrollingFrameAt):
10627        (QWebViewKineticScroller::maximumScrollPosition):
10628        (QWebViewKineticScroller::scrollPosition):
10629        (QWebViewKineticScroller::viewportSize):
10630        (QWebViewKineticScroller::setScrollPosition):
10631        (QWebViewKineticScroller::sendEvent):
10632        (QWebView::QWebView):
10633
106342010-02-09  Yael Aharon  <yael.aharon@nokia.com>
10635
10636        Reviewed by Kenneth Rohde Christiansen.
10637
10638        [Qt] Webkit in Qt does not have window.showModalDialog
10639        https://bugs.webkit.org/show_bug.cgi?id=25585
10640
10641        Create a new eventloop when runModal() is called.
10642        Added comemnt in QWebPage::createWindow that the application is responsible
10643        for setting the modality of the appropriate window.
10644
10645        * Api/qwebpage.cpp:
10646        * WebCoreSupport/ChromeClientQt.cpp:
10647        (WebCore::ChromeClientQt::ChromeClientQt):
10648        (WebCore::ChromeClientQt::~ChromeClientQt):
10649        (WebCore::ChromeClientQt::canRunModal):
10650        (WebCore::ChromeClientQt::runModal):
10651        * WebCoreSupport/ChromeClientQt.h:
10652
106532010-01-19  Kenneth Rohde Christiansen  <kenneth@webkit.org>
10654
10655        Reviewed by Dave Hyatt.
10656
10657        Implement flattening of framesets
10658        https://bugs.webkit.org/show_bug.cgi?id=32717
10659
10660        Privately export the setFrameSetFlatteningEnabled setting for
10661        use with the Qt DRT.
10662
10663        * Api/qwebpage.cpp:
10664        (qt_drt_setFrameSetFlatteningEnabled):
10665        (QWebPagePrivate::core):
10666        * Api/qwebpage_p.h:
10667
106682010-02-05  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
10669
10670        [Qt] Fix build on Windows
10671
10672        Reviewed by Kenneth Rohde Christiansen.
10673
10674        DerivedSources for our API headers failed on Windows,
10675        due to Windows not accepting ; as a command separator,
10676        not needing quotes for echo, and needing < and > escaped.
10677
10678        We now detect Windows and set these quote markers and
10679        escape markers accordingly, as well as use && for separating
10680        individual commands.
10681
10682        * Api/DerivedSources.pro:
10683
106842010-02-05  Yury Semikhatsky  <yurys@chromium.org>
10685
10686        Reviewed by Pavel Feldman.
10687
10688        Remove unused inmport of ScriptFunctionCall.h
10689
10690        https://bugs.webkit.org/show_bug.cgi?id=33592
10691
10692        * Api/qwebelement.cpp:
10693
106942010-02-05  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
10695
10696        Reviewed by Simon Hausmann.
10697
10698        [Qt] Generate convenience headers (QWebView, etc) using qmake
10699
10700        In Qt this is done using syncqt, but we use a pro-file instead
10701        that generates makefile-rules for each of the extra headers.
10702
10703        These extra headers are installed alongside the normal headers.
10704
10705        * Api/DerivedSources.pro: Added. List of headers + pro file magic
10706        * Api/headers.pri: Removed, list of headers is now in the above file
10707
107082010-02-04  No'am Rosenthal  <noam.rosenthal@nokia.com>
10709
10710        Reviewed by Ariya Hidayat.
10711
10712        [Qt] Tuning and optimizations to GraphicsLayerQt. Mainly reduced usage
10713        of QTimer::singleShot, and moved syncLayers() from paint() to update()
10714        https://bugs.webkit.org/show_bug.cgi?id=34062
10715
10716        * Api/qgraphicswebview.cpp:
10717        (QGraphicsWebViewPrivate::update): Moved the sync operation to update
10718        (QGraphicsWebView::paint): Moved the sync operation to update
10719
107202010-02-03  Andras Becsi  <abecsi@webkit.org>
10721
10722        Unreviewed build fix.
10723
10724        [Qt] Roll-out r54281 because it broke the build on the Qt Release bot.
10725
10726        * Api/qgraphicswebview.cpp:
10727        (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
10728        (QGraphicsWebViewPrivate::markForSync):
10729        (QGraphicsWebViewPrivate::update):
10730        (QGraphicsWebView::paint):
10731
107322010-02-02  Kenneth Rohde Christiansen  <kenneth@webkit.org>
10733
10734        Reviewed by Ariya Hidayat.
10735
10736        Do not use a proxy widget for the QComboBox on Maemo 5, as it
10737        is not working properly and it is not needed at all, as the
10738        comboboxes comes up in their full width on the screen and
10739        do not depend on view.
10740
10741        * WebCoreSupport/QtFallbackWebPopup.cpp:
10742        (WebCore::QtFallbackWebPopup::show):
10743
107442010-02-02  Jessie Berlin  <jberlin@webkit.org>
10745
10746        Rubber Stamped by Holger Freyther.
10747
10748        [Qt] Fix style issue identified in bug:
10749        https://bugs.webkit.org/show_bug.cgi?id=34329
10750
10751        * WebCoreSupport/InspectorClientQt.cpp:
10752        (WebCore::InspectorClientWebPage::InspectorClientWebPage):
10753        Fix indentation.
10754
107552010-02-01  Jessie Berlin  <jberlin@webkit.org>
10756
10757        Reviewed by Holger Freyther.
10758
10759        [Qt] Enable inspecting the Web Inspector in QtLauncher
10760
10761        https://bugs.webkit.org/show_bug.cgi?id=34329
10762
10763        * WebCoreSupport/InspectorClientQt.cpp:
10764        (WebCore::InspectorClientWebPage::InspectorClientWebPage):
10765        Allow the DeveloperExtrasEnabled setting to default to true for the page containing the Web Inspector.
10766
107672010-02-02  Andreas Kling  <andreas.kling@nokia.com>
10768
10769        Reviewed by Kenneth Rohde Christiansen.
10770
10771        [Qt] Display HTML tags verbatim in JS alert/confirm/prompt boxes
10772
10773        https://bugs.webkit.org/show_bug.cgi?id=34429
10774
10775        * Api/qwebpage.cpp:
10776        (QWebPage::javaScriptAlert):
10777        (QWebPage::javaScriptConfirm):
10778        (QWebPage::javaScriptPrompt):
10779
107802010-02-02  Noam Rosenthal  <noam.rosenthal@nokia.com>
10781
10782        Reviewed by Kenneth Rohde Christiansen.
10783
10784        [Qt] Enable a way to measure FPS in QGVLauncher
10785        run QGVLauncher with --show-fps to see ongoing fps measurements
10786        This is not meant as accurate FPS, but rather as a way to find
10787        improvements/regressions
10788        https://bugs.webkit.org/show_bug.cgi?id=34450
10789
10790        * QGVLauncher/main.cpp:
10791        (MainView::MainView): initialize FPS values
10792        (MainView::paintEvent): count a painted frame here
10793        (MainView::printFps): we print the fps with qDebug every 5 seconds.
10794
107952010-01-29  Ben Murdoch  <benm@google.com>
10796
10797        Reviewed by Dimitri Glazkov.
10798
10799        [Android] Android needs functionality in the ChromeClient to be informed when touch events are and are not needed by the webpage.
10800        https://bugs.webkit.org/show_bug.cgi?id=34215
10801
10802        Add needTouchEvents() to the ChromeClient which is called when the page decides it needs or no longer needs to be informed of touch events.
10803
10804        * WebCoreSupport/ChromeClientQt.h:
10805        (WebCore::ChromeClientQt::needTouchEvents): Add an empty implementation.
10806
108072010-01-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
10808
10809        Reviewed by Simon Hausmann
10810
10811        Disable auto-uppercase and predictive text on Maemo5, just like the
10812        build-in MicroB Browser.
10813
10814        * WebCoreSupport/EditorClientQt.cpp:
10815        (WebCore::EditorClientQt::setInputMethodState):
10816
108172010-01-28  Andreas Kling  <andreas.kling@nokia.com>
10818
10819        Reviewed by Kenneth Rohde Christiansen.
10820
10821        [Qt] Support kinetic scrolling on Maemo 5
10822
10823        https://bugs.webkit.org/show_bug.cgi?id=34267
10824
10825        Patch by Ralf Engels <ralf.engels@nokia.com> and
10826        Robert Griebl <rgriebl@trolltech.com>
10827
10828        * Api/qwebview.cpp:
10829        (QWebViewKineticScroller::QWebViewKineticScroller):
10830        (QWebViewKineticScroller::eventFilter):
10831        (QWebViewKineticScroller::currentFrame):
10832        (QWebViewKineticScroller::scrollingFrameAt):
10833        (QWebViewKineticScroller::attachToWidget):
10834        (QWebViewKineticScroller::removeFromWidget):
10835        (QWebViewKineticScroller::positionRange):
10836        (QWebViewKineticScroller::position):
10837        (QWebViewKineticScroller::viewportSize):
10838        (QWebViewKineticScroller::setPosition):
10839        (QWebView::QWebView):
10840
108412010-01-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
10842
10843        Reviewed by Simon Hausmann.
10844
10845        Do not set the combobox font on Maemo5 and S60; use the
10846        default instead.
10847
10848        * WebCoreSupport/QtFallbackWebPopup.cpp:
10849        (WebCore::QtFallbackWebPopup::populate):
10850
108512010-01-28  Trond Kjernåsen <trond@trolltech.com>
10852
10853        Reviewed by Simon Hausmann.
10854
10855        [Qt] Fix for endless print loop when printing web pages
10856
10857        * Api/qwebframe.cpp:
10858        (QWebFrame::print):
10859
108602010-01-27  Diego Gonzalez  <diego.gonzalez@openbossa.org>
10861
10862        Reviewed by Kenneth Rohde Christiansen.
10863
10864        [Qt] DRT Provide worker thread ability to track counters
10865        https://bugs.webkit.org/show_bug.cgi?id=34221
10866
10867        Implement workerThreadCount() in LayoutTestController of Qt DRT
10868
10869        Tests:
10870        fast/workers/dedicated-worker-lifecycle.html
10871        fast/workers/shared-worker-frame-lifecycle.html
10872        fast/workers/shared-worker-lifecycle.html
10873        fast/workers/worker-lifecycle.html
10874
10875        * Api/qwebpage.cpp:
10876        (qt_drt_workerThreadCount):
10877
108782010-01-27  Simon Hausmann  <simon.hausmann@nokia.com>
10879
10880        Reviewed by Laszlo Gombos.
10881
10882        [Qt] Update the .def files with exported symbols
10883
10884        * symbian/eabi/QtWebKitu.def: Add two mangled missing new symbols for arm eabi.
10885
108862010-01-27  Kent Hansen  <kent.hansen@nokia.com>
10887
10888        Reviewed by Simon Hausmann.
10889
10890        [Qt] Meta-methods can't be introspected using ES5 API
10891        https://bugs.webkit.org/show_bug.cgi?id=34087
10892
10893        Test that Object.getOwnPropertyDescriptor and
10894        Object.getOwnPropertyNames work with meta-methods.
10895
10896        * tests/qwebframe/tst_qwebframe.cpp:
10897
108982010-01-26  Simon Hausmann  <simon.hausmann@nokia.com>
10899
10900        Reviewed by Kenneth Rohde Christiansen.
10901
10902        [Qt] Show comboboxes on Maemo 5
10903        https://bugs.webkit.org/show_bug.cgi?id=34088
10904
10905        Don't try to show the combobox by simulating a mouse event from QCursor::pos() to
10906        get the combobox position right. The position on Maemo 5 is independent from the mouse
10907        and there's no QCursor::pos().
10908
10909        * WebCoreSupport/QtFallbackWebPopup.cpp:
10910        (WebCore::QtFallbackWebPopup::show):
10911
109122010-01-26  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
10913
10914        Reviewed by Simon Hausmann.
10915
10916        First steps of the QtScript API.
10917
10918        Two new classes were created; QScriptEngine and QScriptValue.
10919        The first should encapsulate a javascript context and the second a script
10920        value.
10921
10922        This API is still in development, so it isn't compiled by default.
10923        To trigger compilation, pass --qmakearg="CONFIG+=build-qtscript" to
10924        build-webkit.
10925
10926        https://bugs.webkit.org/show_bug.cgi?id=32565
10927
10928        * docs/qtwebkit.qdocconf:
10929
109302010-01-26  Holger Hans Peter Freyther  <zecke@selfish.org>
10931
10932        Reviewed by Simon Hausmann.
10933
10934        [Qt] JavaScript prompt is currently broken
10935        https://bugs.webkit.org/show_bug.cgi?id=30914
10936
10937        In r52152 a patch was landed to convert a null QString
10938        to an empty WebCore::String in case the prompt was accepted
10939        but the default implementation returned the null QString.
10940
10941        The patch tried to avoid assign to result twice and
10942        was not checking the QString if it is null but the default
10943        value. This lead to always returning an empty string on
10944        successful prompts. Fix it by checking the variable 'x'
10945        for isNull.
10946
10947        The manual test case used didn't cover the case of non
10948        empty input, replace it with an automatic test case that
10949        should cover all cases.
10950
10951        * WebCoreSupport/ChromeClientQt.cpp:
10952        (WebCore::ChromeClientQt::runJavaScriptPrompt): Fix the bug.
10953        * tests/qwebpage/tst_qwebpage.cpp: Add automatic test case
10954        (JSPromptPage::JSPromptPage):
10955        (JSPromptPage::javaScriptPrompt):
10956        (tst_QWebPage::testJSPrompt):
10957
109582010-01-25  Simon Hausmann  <hausmann@webkit.org>
10959
10960        Reviewed by Kenneth Rohde Christiansen.
10961
10962        [Qt] In RenderThemeQt determine the QStyle from the page client instead of the page's view
10963        https://bugs.webkit.org/show_bug.cgi?id=34053
10964
10965        * Api/qgraphicswebview.cpp:
10966        (QGraphicsWebViewPrivate::style): Implement QWebPageClient::style() and return the graphics
10967        widget's style.
10968        * Api/qwebpage.cpp:
10969        (QWebPageWidgetClient::style): Implement QWebPageClient::style() and return the widget's style.
10970
109712010-01-25  Janne Koskinen  <janne.p.koskinen@digia.com>
10972
10973        Reviewed by Simon Hausmann.
10974
10975        [Qt] Phone backup support for QtWebkit for Symbian devices.
10976        https://bugs.webkit.org/show_bug.cgi?id=34077
10977
10978        * symbian/backup_registration.xml: Added.
10979
109802010-01-23  Girish Ramakrishnan  <girish@forwardbias.in>
10981
10982        Reviewed by Kenneth Rohde Christiansen.
10983
10984        [Qt] Fix positioning of ComboBox popup in QGraphicsWebView.
10985
10986        Wrap the popup in a QGraphicsProxyWidget, so that the popup
10987        transforms with the item.
10988
10989        https://bugs.webkit.org/show_bug.cgi?id=33887
10990
10991        * WebCoreSupport/QtFallbackWebPopup.cpp:
10992        (WebCore::QtFallbackWebPopupCombo::hidePopup):
10993        (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
10994        (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
10995        (WebCore::QtFallbackWebPopup::show):
10996        * WebCoreSupport/QtFallbackWebPopup.h:
10997
109982010-01-22  Peter Kasting  <pkasting@google.com>
10999
11000        Not reviewed, backout.
11001
11002        Back out r52673, which caused several regressions.
11003        https://bugs.webkit.org/show_bug.cgi?id=32533
11004
11005        * WebCoreSupport/QtFallbackWebPopup.cpp:
11006        (WebCore::QtFallbackWebPopupCombo::hidePopup):
11007
110082010-01-22  Girish Ramakrishnan  <girish@forwardbias.in>
11009
11010        Reviewed by Simon Hausmann.
11011
11012        [Qt] Save the QWebPageClient instead of the ownerWidget in QtAbstractWebPopup
11013
11014        The QWebPageClient is required for the QtFallbackWebPopup. QtFallbackWebPopup will
11015        need it to create a QGraphicsProxyWidget (in a future commit) for the
11016        QGraphicsWebView's web popup.
11017
11018        * WebCoreSupport/QtFallbackWebPopup.cpp:
11019        (WebCore::QtFallbackWebPopup::show):
11020
110212010-01-22  Girish Ramakrishnan  <girish@forwardbias.in>
11022
11023        Reviewed by Kenneth Rohde Christiansen.
11024
11025        QState::polished() was renamed to QState::propertiesAssigned() when
11026        Qt 4.6.0 was released.
11027
11028        * QGVLauncher/main.cpp:
11029        (MainWindow::init):
11030
110312010-01-21  Diego Gonzalez  <diego.gonzalez@openbossa.org>
11032
11033        Reviewed by Kenneth Rohde Christiansen.
11034
11035        [Qt] add setDomainRelaxationForbiddenForURLScheme in Qt DRT
11036        https://bugs.webkit.org/show_bug.cgi?id=33945
11037
11038        * Api/qwebsecurityorigin.cpp:
11039        (qt_drt_setDomainRelaxationForbiddenForURLScheme):
11040
110412010-01-21  No'am Rosenthal  <noam.rosenthal@nokia.com>
11042
11043        Reviewed by Antti Koivisto.
11044
11045        [Qt] Implement GraphicsLayer for accelerated layer compositing
11046        https://bugs.webkit.org/show_bug.cgi?id=33514
11047
11048        Here we have the QGraphicsWebView support for accelerated compositing
11049
11050        * Api/qgraphicswebview.cpp:
11051        (QGraphicsWebViewOverlay::q): access to container object
11052        (QGraphicsWebViewOverlay::boundingRect): overlay has same rect as the
11053        webview
11054        (QGraphicsWebViewOverlay::paint): paint everything but the contents
11055        (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate): some vars needed
11056        for accelerated compositing
11057        (QGraphicsWebViewPrivate::):
11058        (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate):
11059        (QGraphicsWebViewPrivate::setRootGraphicsLayer): make sure we have a
11060        scrollbar overlay, and that the new graphics layer is parented by the
11061        web-view
11062        (QGraphicsWebViewPrivate::markForSync): flush changes at earliest
11063        convenience or during the next draw
11064
11065        (QGraphicsWebViewPrivate::updateCompositingScrollPosition): sync the
11066        position of the compositing layer with the scroll position
11067        (QGraphicsWebViewPrivate::syncLayers): flush changes now
11068        (QGraphicsWebViewPrivate::scroll): make sure we also move the
11069        compositing layer
11070        (QGraphicsWebViewPrivate::update): also update the overlay if needed
11071        (QGraphicsWebView::QGraphicsWebView): initialize overlay with 0
11072        (QGraphicsWebView::paint): paint only contents if we have an overlay,
11073        sync the compositing layers now if needed
11074        (QGraphicsWebView::setPage): also clean up the compositing
11075        (QGraphicsWebView::updateGeometry): also update overlay geo
11076        (QGraphicsWebView::setGeometry): also update overlay geo
11077        * Api/qgraphicswebview.h: reimp compositing stuff from QWebPageClient
11078        * Api/qwebsettings.cpp: init new settings flag for compositing as
11079        false
11080        (QWebSettingsPrivate::apply): apply new settings flag for compositing
11081        (QWebSettings::QWebSettings):
11082        * Api/qwebsettings.h: new settings flag for compositing
11083        * Api/qwebview.cpp:
11084        (QWebView::setPage): qwebview doesn't support compositing: always false
11085        * QGVLauncher/main.cpp:
11086        (WebView::WebView): some more cmdline arguments + compositing
11087        (MainWindow::init): some more cmdline arguments
11088        (main): ditto
11089        * WebCoreSupport/ChromeClientQt.cpp:
11090        (WebCore::ChromeClientQt::attachRootGraphicsLayer): reimp for
11091        accel-compositing
11092        (WebCore::ChromeClientQt::setNeedsOneShotDrawingSynchronization):
11093        reimp for accel compositing
11094        (WebCore::ChromeClientQt::scheduleCompositingLayerSync): reimp for
11095        accel compositing
11096        * WebCoreSupport/ChromeClientQt.h: reimps for accel compositing
11097
110982010-01-21  Benjamin Poulain  <benjamin.poulain@nokia.com>
11099
11100        Reviewed by Simon Hausmann.
11101
11102        [Qt] Improve the autotests of QtWebkit
11103        https://bugs.webkit.org/show_bug.cgi?id=32216
11104
11105        Remove qWait() of the test when possible.
11106
11107        * tests/qwebpage/tst_qwebpage.cpp:
11108        (tst_QWebPage::loadFinished):
11109        (tst_QWebPage::database):
11110        (tst_QWebPage::testEnablePersistentStorage):
11111        (tst_QWebPage::errorPageExtension):
11112        (tst_QWebPage::screenshot):
11113
111142010-01-21  Simon Hausmann  <simon.hausmann@nokia.com>
11115
11116        Prospective build fix for the Qt build.
11117
11118        Fix compilation against Qt without WebKit support by not including QtWebKit/QWebView
11119        but widget.h instead and instantiating QWebView through a typedef, to ensure we're using
11120        our locally built WebKit.
11121
11122        * tests/hybridPixmap/widget.h:
11123        * tests/hybridPixmap/widget.ui:
11124
111252010-01-21  No'am Rosenthal  <noam.rosenthal@nokia.com>
11126
11127        Reviewed by Simon Hausmann.
11128
11129        [Qt] Adding QPixmap/QImage support for the Qt hybrid layer
11130        https://bugs.webkit.org/show_bug.cgi?id=32461
11131
11132        * tests/hybridPixmap: Added.
11133        * tests/hybridPixmap/hybridPixmap.pro: Added.
11134        * tests/hybridPixmap/resources.qrc: Added.
11135        * tests/hybridPixmap/test.html: Added.
11136        * tests/hybridPixmap/tst_hybridPixmap.cpp: Added.
11137        (tst_hybridPixmap::tst_hybridPixmap): tests most of the use cases for
11138        hybrid pixmap/image manipulation
11139        (tst_hybridPixmap::init): QTestLib initialization
11140        (tst_hybridPixmap::cleanup): QTestLib cleanup
11141        (tst_hybridPixmap::hybridPixmap): run the html file
11142        * tests/hybridPixmap/widget.cpp: Added.
11143        (Widget::Widget):
11144        (Widget::refreshJS):
11145        (Widget::start):
11146        (Widget::completeTest):
11147        (Widget::setPixmap):
11148        (Widget::pixmap):
11149        (Widget::setImage):
11150        (Widget::image):
11151        (Widget::~Widget):
11152        (Widget::changeEvent):
11153        (Widget::compare):
11154        (Widget::imageSlot):
11155        (Widget::pixmapSlot):
11156        (Widget::randomSlot):
11157        * tests/hybridPixmap/widget.h: Added.
11158        * tests/hybridPixmap/widget.ui: Added.
11159        * tests/tests.pro:
11160
111612010-01-21  Luiz Agostini  <luiz.agostini@openbossa.org>
11162
11163        Reviewed by Kenneth Rohde Christiansen.
11164
11165        [Qt] Custom select popups.
11166        https://bugs.webkit.org/show_bug.cgi?id=33418
11167
11168        Adjusting QtFallbackWebPopupCombo to the changes in WebCore layer.
11169
11170        * WebCoreSupport/ChromeClientQt.cpp:
11171        (WebCore::ChromeClientQt::createSelectPopup):
11172        * WebCoreSupport/ChromeClientQt.h:
11173        * WebCoreSupport/QtFallbackWebPopup.cpp:
11174        (WebCore::QtFallbackWebPopupCombo::QtFallbackWebPopupCombo):
11175        (WebCore::QtFallbackWebPopupCombo::showPopup):
11176        (WebCore::QtFallbackWebPopupCombo::hidePopup):
11177        (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
11178        (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
11179        (WebCore::QtFallbackWebPopup::show):
11180        (WebCore::QtFallbackWebPopup::hide):
11181        (WebCore::QtFallbackWebPopup::populate):
11182        * WebCoreSupport/QtFallbackWebPopup.h:
11183
111842010-01-19  Steve Block  <steveblock@google.com>
11185
11186        Reviewed by Adam Barth.
11187
11188        Renames WebCore/bridge/runtime.[cpp|h] to WebCore/bridge/Bridge.[cpp|h]
11189        https://bugs.webkit.org/show_bug.cgi?id=33801
11190
11191        * Api/qwebframe.cpp:
11192
111932010-01-14  Brian Weinstein  <bweinstein@apple.com>
11194
11195        Reviewed by Adam Roben.
11196
11197        Drag and Drop source/destination code needs cleanup.
11198        <https://bugs.webkit.org/show_bug.cgi?id=33691>.
11199
11200        Update to new way of calling sourceOperation.
11201
11202        * WebCoreSupport/DragClientQt.cpp:
11203        (WebCore::DragClientQt::startDrag):
11204
112052010-01-14  Simon Hausmann  <simon.hausmann@nokia.com>
11206
11207        Reviewed by Tor Arne Vestbø.
11208
11209        [Qt] Symbian build fixes.
11210
11211        * tests/qwebpage/tst_qwebpage.cpp: Include util.h
11212        * tests/tests.pri: Don't define TESTS_SOURCE_DIR, it doesn't work.
11213        * tests/util.h: Define TESTS_SOURCE_DIR here, just like it's done in Qt.
11214
112152010-01-14  Simon Hausmann  <simon.hausmann@nokia.com>
11216
11217        Reviewed by Kenneth Rohde Christiansen.
11218
11219        [Qt] Update Symbian .def symbol export files after private API additions.
11220
11221        * symbian/bwins/QtWebKitu.def:
11222        * symbian/eabi/QtWebKitu.def:
11223
112242010-01-13  Darin Adler  <darin@apple.com>
11225
11226        Reviewed by Dan Bernstein.
11227
11228        Move more of the selection and caret painting code from Frame to SelectionController.
11229        https://bugs.webkit.org/show_bug.cgi?id=33619
11230
11231        * Api/qwebpage.cpp:
11232        (QWebPagePrivate::inputMethodEvent): Seems possibly wrong to be directly invoking this
11233        setCaretVisible here, but I updated it to call it in its new location.
11234
112352010-01-11  Simon Hausmann  <simon.hausmann@nokia.com>
11236
11237        Reviewed by Holger Freyther.
11238
11239        [Qt] Add private API for QWebFrame scrolling, to maintain binary compatibility with Qt 4.6.
11240
11241        This is just a temporary addition until we have introduced #ifdefs to allow
11242        safely removing the private API again.
11243
11244        * Api/qwebframe.cpp:
11245        (qtwebkit_webframe_scrollRecursively):
11246
112472010-01-10  Robert Hogan  <robert@roberthogan.net>
11248
11249        Reviewed by Adam Barth.
11250
11251        [Qt] Add enableXSSAuditor support to QWebSettings and DRT.
11252
11253        https://bugs.webkit.org/show_bug.cgi?id=33419
11254
11255        * Api/qwebsettings.cpp:
11256        (QWebSettingsPrivate::apply):
11257        * Api/qwebsettings.h:
11258
112592010-01-09  Daniel Bates  <dbates@webkit.org>
11260
11261        No review, rolling out r53044.
11262        http://trac.webkit.org/changeset/53044
11263        https://bugs.webkit.org/show_bug.cgi?id=33419
11264
11265        We need to look into this some more because the Qt
11266        bot is failing the XSSAuditor tests. See bug #33419
11267        for more details.
11268
11269        * Api/qwebsettings.cpp:
11270        * Api/qwebsettings.h:
11271
112722010-01-09  Daniel Bates  <dbates@webkit.org>
11273
11274        Reviewed by Adam Barth.
11275
11276        https://bugs.webkit.org/show_bug.cgi?id=33419
11277
11278        Adds support for the XSSAuditor to the Qt DRT.
11279
11280        * Api/qwebsettings.cpp: Updated comment to reflect added key XSSAuditorEnabled.
11281        * Api/qwebsettings.h: Adds settings key XSSAuditorEnabled.
11282
112832010-01-08  Luiz Agostini  <luiz.agostini@openbossa.org>
11284
11285        Reviewed by Kenneth Rohde Christiansen.
11286
11287        [Qt] Delegation client
11288        https://bugs.webkit.org/show_bug.cgi?id=32826
11289
11290        Added method createPopup to ChromeClientQt used to create popups.
11291        QtFallbackWebPopup moved from WebCore/platform/qt to
11292        WebKit/qt/WebCoreSupport.
11293
11294        * WebCoreSupport/ChromeClientQt.cpp:
11295        (WebCore::ChromeClientQt::createPopup):
11296        * WebCoreSupport/ChromeClientQt.h:
11297        * WebCoreSupport/QtFallbackWebPopup.cpp: Added.
11298        (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
11299        (WebCore::QtFallbackWebPopup::show):
11300        (WebCore::QtFallbackWebPopup::populate):
11301        (WebCore::QtFallbackWebPopup::showPopup):
11302        (WebCore::QtFallbackWebPopup::hidePopup):
11303        (WebCore::QtFallbackWebPopup::activeChanged):
11304        (WebCore::QtFallbackWebPopup::setParent):
11305        * WebCoreSupport/QtFallbackWebPopup.h: Added.
11306        (WebCore::QtFallbackWebPopup::hide):
11307
113082010-01-07  Yael Aharon  <yael.aharon@nokia.com>
11309
11310        Reviewed by Kenneth Rohde Christiansen.
11311
11312        [Qt] Allow the application to override online/offline network status
11313        https://bugs.webkit.org/show_bug.cgi?id=32684
11314
11315        Add a setting so that applications can overide the network status.
11316        Applications that use this setting still need to block network access
11317        through QNAM.
11318
11319        * Api/qwebsettings.cpp:
11320        (qt_networkAccessAllowed):
11321
113222010-01-07  Yongjun Zhang  <yongjun.zhang@nokia.com>, Laszlo Gombos  <laszlo.1.gombos@nokia.com>
11323
11324        Reviewed by Simon Hausmann.
11325
11326        [Qt] need an API to suspend and resume active Javascript DOM objects.
11327        https://bugs.webkit.org/show_bug.cgi?id=31673
11328
11329        Add suspend and resume DOM objects private API to QWebFrame.
11330
11331        * Api/qwebframe.cpp:
11332        (qt_suspendActiveDOMObjects):
11333        (qt_resumeActiveDOMObjects):
11334
113352010-01-06  Andreas Kling  <andreas.kling@nokia.com>
11336
11337        Reviewed by Simon Hausmann.
11338
11339        [Qt] Return an invalid Qt::ImMicroFocus if queried while the view needs to layout.
11340
11341        https://bugs.webkit.org/show_bug.cgi?id=33204
11342
11343        * Api/qwebpage.cpp:
11344        (QWebPage::inputMethodQuery):
11345
113462010-01-05  Yael Aharon  <yael.aharon@nokia.com>
11347
11348        Reviewed by Kenneth Rohde Christiansen.
11349
11350        Drag & drop layout tests fail even when run manually
11351        https://bugs.webkit.org/show_bug.cgi?id=33055
11352
11353        No new tests. Fix 3 layout tests when run manually.
11354        fast/events/drag-and-drop.html
11355        fast/events/drag-and-drop-dataTransfer-types-nocrash.html
11356        fast/events/drag-and-drop-fire-drag-dragover.html
11357        Running these tests in DRT will be fixed in 31332.
11358
11359        * Api/qwebpage.cpp:
11360        (dropActionToDragOp):
11361        (dragOpToDropAction):
11362        (QWebPagePrivate::dragEnterEvent):
11363        (QWebPagePrivate::dragMoveEvent):
11364        (QWebPagePrivate::dropEvent):
11365        Accept drag events even if they are not over a drop target.
11366        This is to ensure that drag events will continue to be delivered.
11367
11368        * Api/qwebpage_p.h:
11369        * WebCoreSupport/DragClientQt.cpp:
11370        (WebCore::dragOperationToDropActions):
11371        (WebCore::dropActionToDragOperation):
11372        (WebCore::DragClientQt::startDrag):
11373        Send dragEnd event.
11374
113752010-01-04  Daniel Bates  <dbates@webkit.org>
11376
11377        Reviewed by Eric Seidel.
11378
11379        https://bugs.webkit.org/show_bug.cgi?id=33097
11380
11381        Cleans up the File menu to better conform to the File menu in Safari
11382        both in terms of options and keyboard shortcuts. Adds a "Quit" menu
11383        options to close all open windows.
11384
11385        * QGVLauncher/main.cpp:
11386        (MainWindow::buildUI):
11387
113882009-12-31  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
11389
11390        Reviewed by Kenneth Rohde Christiansen.
11391
11392        [Qt] Enable all HTML5 persistent features for QGVLauncher
11393        https://bugs.webkit.org/show_bug.cgi?id=33086
11394
11395        * QGVLauncher/main.cpp: Call enablePersistentStorage()
11396        (main):
11397
113982009-12-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
11399
11400        Reviewed by Simon Hausmann.
11401
11402        [Qt] It should be possible to disable inspector
11403        https://bugs.webkit.org/show_bug.cgi?id=32724
11404
11405        This change fixes the build break. Some QtWebKit interfaces
11406        will not be fully functional (most notable QWebInspector) if
11407        INSPECTOR is disabled.
11408
11409        * Api/qwebinspector.cpp:
11410        (QWebInspector::showEvent):
11411        (QWebInspector::closeEvent):
11412        * Api/qwebpage.cpp:
11413        (webActionForContextMenuAction):
11414        (QWebPagePrivate::getOrCreateInspector):
11415        (QWebPagePrivate::inspectorController):
11416        (QWebPage::triggerAction):
11417        (QWebPage::updatePositionDependentActions):
11418        * WebCoreSupport/InspectorClientQt.cpp:
11419        (WebCore::InspectorClientQt::showWindow):
11420        (WebCore::InspectorClientQt::closeWindow):
11421
114222009-12-30  Janne Koskinen  <janne.p.koskinen@digia.com>
11423
11424        Reviewed by Simon Hausmann.
11425
11426        Upstream Symbian def files from Qt 4.6.
11427
11428        These files define the ABI of QtWebKit on Symbian.
11429
11430        * symbian/bwins/QtWebKitu.def: Added.
11431        * symbian/eabi/QtWebKitu.def: Added.
11432
114332009-12-29  Daniel Bates  <dbates@webkit.org>
11434
11435        Reviewed by Ariya Hidayat.
11436
11437        https://bugs.webkit.org/show_bug.cgi?id=32925
11438
11439        Adds an Open File dialog to make it convenient to open a file
11440        to view in the browser.
11441
11442        * QGVLauncher/main.cpp:
11443        (MainWindow::load): Modified to call loadURL.
11444        (MainWindow::openFile): Added.
11445        (MainWindow::loadURL): Added.
11446        (MainWindow::buildUI): Added menu item Open File.
11447
114482009-12-29  Robert Hogan  <robert@roberthogan.net>
11449
11450        Reviewed by Eric Seidel.
11451
11452        [Qt] Fix crash on LayoutTests/fast/loader/empty-embed-src-attribute.html
11453
11454        Related to https://bugs.webkit.org/show_bug.cgi?id=23806
11455
11456        If an embedded document is loaded within a page and it has an empty
11457        URL, use a blank URL for the load request.
11458
11459        https://bugs.webkit.org/show_bug.cgi?id=33017
11460
11461        * WebCoreSupport/FrameLoaderClientQt.cpp:
11462        (WebCore::FrameLoaderClientQt::createFrame):
11463
114642009-12-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
11465
11466        Rubber-stamped by Simon Hausmann and Holger Freyther.
11467
11468        [Qt] Remove WebKit/qt/WebKitPart empty directory
11469
11470        The content of the directory has been removed by r34888.
11471
11472        * WebKitPart: Removed.
11473
114742009-12-29  Jakub Wieczorek  <faw217@gmail.com>
11475
11476        Reviewed by Eric Seidel.
11477
11478        [Qt] DRT: Frame loader callbacks differ from the Mac port
11479        https://bugs.webkit.org/show_bug.cgi?id=32989
11480
11481        Remove messages from the callbacks that should not dump them to match
11482        the expected results for the http/loading tests.
11483
11484        Unskip some http/loading tests which succeed now.
11485
11486        * WebCoreSupport/FrameLoaderClientQt.cpp:
11487        (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
11488        (WebCore::FrameLoaderClientQt::dispatchWillClose):
11489        (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
11490        (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
11491
114922009-12-29  Robert Hogan  <robert@roberthogan.net>
11493
11494        Reviewed by Eric Seidel.
11495
11496        [Qt] fix fast/dom/Window/window-onFocus.html
11497
11498        Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
11499        window.onblur was getting dispatched twice from QtWebKit.
11500
11501        https://bugs.webkit.org/show_bug.cgi?id=32990
11502
11503        * Api/qwebpage.cpp:
11504        (QWebPagePrivate::focusOutEvent):
11505
115062009-12-24  Girish Ramakrishnan  <girish@forwardbias.in>
11507
11508        Reviewed by Gustavo Noronha.
11509
11510        Doc : QGraphicsWebView::zoomFactor was introduced in 4.6.
11511
11512        * Api/qgraphicswebview.cpp:
11513
115142009-12-22  Simon Hausmann  <simon.hausmann@nokia.com>
11515
11516        Rubber-stamped by Holger Freyther.
11517
11518        Moved QtLauncher to WebKitTools/
11519
11520        * QtLauncher: Removed.
11521        * QtLauncher/QtLauncher.pro: Removed.
11522        * QtLauncher/main.cpp: Removed.
11523
115242009-12-21  David Boddie  <dboddie@trolltech.com>
11525
11526        Reviewed by Simon Hausmann.
11527
11528        Doc: Minor fixes to language.
11529
11530        * Api/qwebpage.cpp:
11531
115322009-12-21  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
11533
11534        Reviewed by Simon Hausmann.
11535
11536        [Qt] Clean up the WebKit layer unit-tests
11537
11538            - Use tests.pri for common options
11539            - Standardize file naming
11540            - Move all resources to 'resources' subdir
11541            - Standardize how TESTS_SOURCE_DIR is used
11542            - Get rid of UID3 for symbian (autogenerated)
11543            - Don't build app bundles on Mac OS X
11544
11545        * tests/benchmarks/loading/loading.pro: Added.
11546        * tests/benchmarks/loading/tst_loading.pro: Removed.
11547        * tests/benchmarks/painting/painting.pro: Added.
11548        * tests/benchmarks/painting/tst_painting.pro: Removed.
11549        * tests/qgraphicswebview/qgraphicswebview.pro:
11550        * tests/qwebelement/qwebelement.pro:
11551        * tests/qwebelement/qwebelement.qrc: Removed.
11552        * tests/qwebelement/resources/image.png: Renamed from WebKit/qt/tests/qwebelement/image.png.
11553        * tests/qwebelement/resources/style.css: Renamed from WebKit/qt/tests/qwebelement/style.css.
11554        * tests/qwebelement/resources/style2.css: Renamed from WebKit/qt/tests/qwebelement/style2.css.
11555        * tests/qwebelement/tst_qwebelement.qrc: Added.
11556        * tests/qwebframe/qwebframe.pro:
11557        * tests/qwebframe/qwebframe.qrc: Removed.
11558        * tests/qwebframe/resources/image.png: Renamed from WebKit/qt/tests/qwebframe/image.png.
11559        * tests/qwebframe/resources/style.css: Renamed from WebKit/qt/tests/qwebframe/style.css.
11560        * tests/qwebframe/resources/test1.html: Renamed from WebKit/qt/tests/qwebframe/test1.html.
11561        * tests/qwebframe/resources/test2.html: Renamed from WebKit/qt/tests/qwebframe/test2.html.
11562        * tests/qwebframe/resources/testiframe.html: Renamed from WebKit/qt/tests/qwebframe/testiframe.html.
11563        * tests/qwebframe/resources/testiframe2.html: Renamed from WebKit/qt/tests/qwebframe/testiframe2.html.
11564        * tests/qwebframe/tst_qwebframe.cpp:
11565        * tests/qwebframe/tst_qwebframe.qrc: Added.
11566        * tests/qwebhistory/qwebhistory.pro:
11567        * tests/qwebhistory/resources/page1.html: Renamed from WebKit/qt/tests/qwebhistory/data/page1.html.
11568        * tests/qwebhistory/resources/page2.html: Renamed from WebKit/qt/tests/qwebhistory/data/page2.html.
11569        * tests/qwebhistory/resources/page3.html: Renamed from WebKit/qt/tests/qwebhistory/data/page3.html.
11570        * tests/qwebhistory/resources/page4.html: Renamed from WebKit/qt/tests/qwebhistory/data/page4.html.
11571        * tests/qwebhistory/resources/page5.html: Renamed from WebKit/qt/tests/qwebhistory/data/page5.html.
11572        * tests/qwebhistory/resources/page6.html: Renamed from WebKit/qt/tests/qwebhistory/data/page6.html.
11573        * tests/qwebhistory/tst_qwebhistory.cpp:
11574        (tst_QWebHistory::):
11575        * tests/qwebhistory/tst_qwebhistory.qrc:
11576        * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
11577        * tests/qwebinspector/qwebinspector.pro:
11578        * tests/qwebpage/qwebpage.pro:
11579        * tests/qwebpage/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebpage/frametest/frame_a.html.
11580        * tests/qwebpage/resources/iframe.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe.html.
11581        * tests/qwebpage/resources/iframe2.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe2.html.
11582        * tests/qwebpage/resources/iframe3.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe3.html.
11583        * tests/qwebpage/resources/index.html: Renamed from WebKit/qt/tests/qwebpage/frametest/index.html.
11584        * tests/qwebpage/tst_qwebpage.cpp:
11585        (tst_QWebPage::backActionUpdate):
11586        (tst_QWebPage::frameAt):
11587        (tst_QWebPage::errorPageExtensionInFrameset):
11588        (tst_QWebPage::screenshot):
11589        * tests/qwebpage/tst_qwebpage.qrc:
11590        * tests/qwebplugindatabase/qwebplugindatabase.pro:
11591        * tests/qwebview/qwebview.pro:
11592        * tests/qwebview/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebview/data/frame_a.html.
11593        * tests/qwebview/resources/index.html: Renamed from WebKit/qt/tests/qwebview/data/index.html.
11594        * tests/qwebview/tst_qwebview.cpp:
11595        (tst_QWebView::reusePage):
11596        (tst_QWebView::crashTests):
11597        * tests/qwebview/tst_qwebview.qrc:
11598        * tests/resources/image2.png: Renamed from WebKit/qt/tests/qwebframe/resources/image2.png.
11599        * tests/tests.pri: Added.
11600        * tests/tests.pro:
11601
116022009-12-18  Ariya Hidayat  <ariya.hidayat@gmail.com>
11603
11604        Build fix, not reviewed.
11605
11606        * QtLauncher/main.cpp:
11607        (MainWindow::setTouchMocking): Leave setTouchMocking as an empty
11608        function for Qt < 4.6 so that moc still creates a slot for that.
11609        Otherwise, it would have generated a linker error.
11610
116112009-12-18  Adam Roben  <aroben@apple.com>
11612
11613        Qt build fix
11614
11615        * Api/qwebpage.cpp: Added #include.
11616
116172009-12-18  Adam Roben  <aroben@apple.com>
11618
11619        Qt build fix
11620
11621        * Api/qwebpage.cpp:
11622        Added #includes.
11623
116242009-12-18  Joe Ligman  <joseph.ligman@nokia.com>
11625
11626        Reviewed by Kenneth Rohde Christiansen.
11627
11628        [Qt] Add new API to QWebFrame to scrollRecursively starting with any css overflow
11629        then checking current frame and then ancestors
11630        https://bugs.webkit.org/show_bug.cgi?id=32668
11631
11632        * Api/qwebframe.cpp:
11633        (QWebFramePrivate::scrollOverflow):
11634        (QWebFrame::scrollRecursively):
11635        * Api/qwebframe.h:
11636        * Api/qwebframe_p.h:
11637        * tests/qwebframe/qwebframe.qrc:
11638        * tests/qwebframe/testiframe.html: Added.
11639        * tests/qwebframe/testiframe2.html: Added.
11640        * tests/qwebframe/tst_qwebframe.cpp:
11641
116422009-12-18  Simon Hausmann  <simon.hausmann@nokia.com>
11643
11644        Reviewed by Tor Arne Vestbø.
11645
11646        [Qt] Fix infinite recursion in touch mocking.
11647
11648        Don't send the fake touch events to the view, as that'll trigger the
11649        event filter again.
11650
11651        * QtLauncher/main.cpp:
11652        (MainWindow::sendTouchEvent):
11653
116542009-12-17  Benjamin Poulain  <benjamin.poulain@nokia.com>
11655
11656        Reviewed by Simon Hausmann.
11657
11658        [Qt] Add support for mocking touch events with Q(GV)Launcher
11659        https://bugs.webkit.org/show_bug.cgi?id=32434
11660
11661        The event delivery should go through QCoreApplication::sendEvent()
11662
11663        * QtLauncher/main.cpp:
11664        (MainWindow::sendTouchEvent):
11665
116662009-12-17  Kim Grönholm  <kim.gronholm@nomovok.com>
11667
11668        Reviewed by Simon Hausmann.
11669
11670        [Qt] Add support for touch events in QWebView and QGraphicsWebView
11671        https://bugs.webkit.org/show_bug.cgi?id=32432
11672
11673        * Api/qgraphicswebview.cpp:
11674        (QGraphicsWebView::QGraphicsWebView):
11675        (QGraphicsWebView::sceneEvent):
11676        * Api/qwebview.cpp:
11677        (QWebView::QWebView):
11678        (QWebView::event):
11679
116802009-12-17  Kim Grönholm  <kim.gronholm@nomovok.com>
11681
11682        Reviewed by Simon Hausmann.
11683
11684        [Qt] Add support for mocking touch events with QtLauncher
11685        https://bugs.webkit.org/show_bug.cgi?id=32434
11686
11687        * QtLauncher/main.cpp:
11688        (MainWindow::MainWindow):
11689        (MainWindow::sendTouchEvent):
11690        (MainWindow::eventFilter):
11691        (MainWindow::setTouchMocking):
11692        (MainWindow::setupUI):
11693
116942009-12-14  Holger Hans Peter Freyther  <zecke@selfish.org>
11695
11696        Reviewed by Kenneth Rohde Christiansen.
11697
11698        [Qt] Fix JavaScript prompt behavior for empty/null strings.
11699        https://bugs.webkit.org/show_bug.cgi?id=30914
11700
11701        The patch is based on the work done by Gupta Manish.
11702
11703        In the default implementation of the JavaScript prompt
11704        we are using a QInputDialog to get the text and this has
11705        one quirk with regard to not entering any text.
11706
11707        In other WebKit ports and in Firefox an empty string is
11708        returned but in the Qt case it is a null string.
11709
11710        Change the API documentation in QWebPage to mention we want to
11711        have a non null string but do the fixup in the ChromeClientQt
11712        to support existing code.
11713
11714        * Api/qwebpage.cpp:
11715        (QWebPage::javaScriptPrompt): Change API documentation
11716        * WebCoreSupport/ChromeClientQt.cpp:
11717        (WebCore::ChromeClientQt::runJavaScriptPrompt): Fixup null QString
11718
117192009-11-24  Holger Hans Peter Freyther  <zecke@selfish.org>
11720
11721        Reviewed by Simon Hausmann.
11722
11723        [Qt] Do not disable the inspector on show and hide
11724        https://bugs.webkit.org/show_bug.cgi?id=31851
11725
11726        On Qt/X11 with some window managers the window will be
11727        hidden when switching windows. In this case all the results
11728        are gone when coming back to the window.
11729
11730        Attempt to use the CloseEvent to figure out if the window
11731        was closed and withdrawn as this is more friendly to the
11732        user of the inspector client.
11733
11734        * Api/qwebinspector.cpp:
11735        (QWebInspector::hideEvent):
11736        (QWebInspector::closeEvent):
11737        * Api/qwebinspector.h:
11738
117392009-12-14  Benjamin Poulain  <benjamin.poulain@nokia.com>
11740
11741        Reviewed by Kenneth Rohde Christiansen.
11742
11743        [Qt] Improve the autotests of QtWebkit
11744        https://bugs.webkit.org/show_bug.cgi?id=32216
11745
11746        Refactor tst_qwebelement to remove the qWait()
11747
11748        * tests/qwebelement/tst_qwebelement.cpp:
11749        (tst_QWebElement::style):
11750
117512009-12-14  Andreas Kling  <andreas.kling@nokia.com>
11752
11753        Reviewed by Simon Hausmann.
11754
11755        Fix the QWebPage inputMethods() autotest after r51758
11756        to compare the Qt::ImFont property's family against an explicitly
11757        previously configured family.
11758
11759        https://bugs.webkit.org/show_bug.cgi?id=32491
11760
11761        * tests/qwebpage/tst_qwebpage.cpp:
11762        (tst_QWebPage::inputMethods):
11763
117642009-12-13  Sam Weinig  <sam@webkit.org>
11765
11766        Reviewed by Dan Bernstein.
11767
11768        Fix for https://bugs.webkit.org/show_bug.cgi?id=32499
11769        Add client based Geolocation provider
11770
11771        Add first cut of a client based Geolocation provider. This is guarded by
11772        ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a
11773        GeolocationControllerClient interface that no-one currently implements,
11774        but will in a subsequent patch.
11775
11776        * Api/qwebpage.cpp:
11777        (QWebPagePrivate::QWebPagePrivate):
11778
117792009-12-13  Benjamin Poulain  <benjamin.poulain@nokia.com>
11780
11781        Reviewed by Simon Hausmann.
11782
11783        Add a test in Qt for https://bugs.webkit.org/show_bug.cgi?id=29005
11784        https://bugs.webkit.org/show_bug.cgi?id=29008
11785
11786        * tests/qwebframe/tst_qwebframe.cpp:
11787
117882009-12-13  Simon Hausmann  <hausmann@webkit.org>
11789
11790        Reviewed by Holger Freyther.
11791
11792        [Qt] Re-enable QWebView::renderHints property for Qt for Symbian
11793
11794        https://bugs.webkit.org/show_bug.cgi?id=28273
11795
11796        The bug in Qt's moc that triggered a linking error when declaring this
11797        property has been fixed and we can remove the workaround.
11798
11799        * Api/qwebview.h:
11800
118012009-12-11  Yael Aharon  <yael.aharon@nokia.com>
11802
11803        Unreviewed build fix for Qt versions < 4.6.
11804
11805        * tests/qwebframe/tst_qwebframe.cpp:
11806        * tests/qwebview/tst_qwebview.cpp:
11807        (tst_QWebView::reusePage):
11808
118092009-12-11  Girish Ramakrishnan  <girish@forwardbias.in>
11810
11811        Reviewed by Tor Arne Vestbø.
11812
11813        [Qt] Updated QWebElement documentation
11814
11815        findAll() returns a QWebElementCollection, not QList<QWebElement>.
11816
11817        * docs/webkitsnippets/webelement/main.cpp:
11818        (findAll):
11819
118202009-12-11  Simon Hausmann  <hausmann@webkit.org>, Kim Grönholm  <kim.gronholm@nomovok.com>
11821
11822        Reviewed by Antti Koivisto.
11823
11824        Forward Qt touch events to the event handler as platform touch events.
11825
11826        https://bugs.webkit.org/show_bug.cgi?id=32114
11827
11828        * Api/qwebpage.cpp:
11829        (QWebPagePrivate::touchEvent):
11830        (QWebPage::event):
11831        * Api/qwebpage_p.h:
11832
118332009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
11834
11835        Reviewed by Kenneth Rohde Christiansen.
11836
11837        [Qt] Improve the autotests of QtWebkit
11838        https://bugs.webkit.org/show_bug.cgi?id=32216
11839
11840        Remove the calls to qWait() of the autotest of QWebView
11841
11842        * tests/qwebview/tst_qwebview.cpp:
11843        (tst_QWebView::reusePage):
11844
118452009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
11846
11847        Reviewed by Kenneth Rohde Christiansen.
11848
11849        [Qt] Improve the autotests of QtWebkit
11850        https://bugs.webkit.org/show_bug.cgi?id=32216
11851
11852        Refactor tst_qwebframe to remove qWait() and use
11853        the function waitForSignal() from util.h
11854
11855        * tests/qwebframe/tst_qwebframe.cpp:
11856
118572009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
11858
11859        Reviewed by Kenneth Rohde Christiansen.
11860
11861        [Qt] Improve the autotests of QtWebkit
11862        https://bugs.webkit.org/show_bug.cgi?id=32216
11863
11864        Refactor the test of QGraphicsWebView:
11865        -make waitForSignal() available to all the tests.
11866        -remove QTest::qWait()
11867
11868        * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
11869        (tst_QGraphicsWebView::crashOnViewlessWebPages):
11870        * tests/util.h:
11871        (waitForSignal):
11872
118732009-12-07  Girish Ramakrishnan  <girish@forwardbias.in>
11874
11875        Reviewed by Simon Hausmann.
11876
11877        [Qt] Plugins: Force windowless mode when there is no native window handle
11878
11879        Inject wmode=opaque while instantiating the plugin for the case when the
11880        webpage is not backed by a native window handle.
11881
11882        https://bugs.webkit.org/show_bug.cgi?id=32059
11883
11884        * WebCoreSupport/FrameLoaderClientQt.cpp:
11885        (WebCore::FrameLoaderClientQt::createPlugin):
11886
118872009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
11888
11889        Reviewed by Kenneth Rohde Christiansen.
11890
11891        [Qt] Corrects QtLauncher style
11892
11893        * QtLauncher/main.cpp:
11894        (WebPage::acceptNavigationRequest):
11895        (MainWindow::MainWindow):
11896        (MainWindow::webPage):
11897        (MainWindow::webView):
11898        (MainWindow::changeLocation):
11899        (MainWindow::loadFinished):
11900        (MainWindow::showLinkHover):
11901        (MainWindow::zoomIn):
11902        (MainWindow::zoomOut):
11903        (MainWindow::print):
11904        (MainWindow::setEditable):
11905        (MainWindow::dumpHtml):
11906        (MainWindow::selectElements):
11907        (MainWindow::newWindow):
11908        (MainWindow::setupUI):
11909        (WebPage::createWindow):
11910        (WebPage::createPlugin):
11911        (main):
11912
119132009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
11914
11915        Reviewed by Kenneth Rohde Christiansen.
11916
11917        [Qt] QtLauncher: add a menu to show or hide the web inspector.
11918        https://bugs.webkit.org/show_bug.cgi?id=32149
11919
11920        * QtLauncher/main.cpp:
11921        (WebInspector::WebInspector):
11922        (WebInspector::showEvent):
11923        (WebInspector::hideEvent):
11924        (MainWindow::MainWindow):
11925        (MainWindow::setupUI):
11926
119272009-12-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
11928
11929        Reviewed by Antti Koivisto.
11930
11931        Split out the renderPrivate in two methods, one for working on
11932        relative coordinates (relative to the viewport) and one for
11933        working on absolute coordinates. The latter is more effecient
11934        for implementing tiling, as you don't need translate the coords,
11935        and because it avoid clipping to the viewport.
11936
11937        No behaviour changes, so no new tests.
11938
11939        * Api/qwebframe.cpp:
11940        (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
11941        (QWebFramePrivate::renderRelativeCoords):
11942        (QWebFrame::render):
11943        * Api/qwebframe_p.h:
11944
119452009-12-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
11946
11947        Reviewed by Simon Hausmann.
11948
11949        [Qt] Allow removing 'qrc' as a local security origin scheme
11950
11951        * tests/qwebpage/tst_qwebpage.cpp:
11952
119532009-12-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
11954
11955        Reviewed by Simon Hausmann.
11956
11957        [Qt] Clean up argument parsing in the QtLauncher
11958
11959        * QtLauncher/main.cpp:
11960
119612009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
11962
11963        Reviewed by Kenneth Rohde Christiansen.
11964
11965        [Qt] Prevent the inspector from closing its wrapping widget.
11966        This is not necessary anymore since we now hide the embedded
11967        close button.
11968        https://bugs.webkit.org/show_bug.cgi?id=32149
11969
11970        * WebCoreSupport/InspectorClientQt.cpp:
11971        (WebCore::InspectorClientQt::showWindow):
11972        (WebCore::InspectorClientQt::closeWindow):
11973
119742009-12-03  İsmail Dönmez  <ismail@namtrac.org>
11975
11976        Reviewed by Eric Seidel.
11977
11978        Fix compilation when SVG is disabled.
11979
11980        * Api/qwebframe.cpp:
11981        (qt_drt_pauseSVGAnimation):
11982
119832009-12-03  Brady Eidson  <beidson@apple.com>
11984
11985        Reviewed by Sam Weinig.
11986
11987        <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
11988
11989        * WebCoreSupport/FrameLoaderClientQt.cpp:
11990        (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
11991        (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
11992        (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
11993        * WebCoreSupport/FrameLoaderClientQt.h:
11994
119952009-12-03  Pavel Feldman  <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
11996
11997        Reviewed by Timothy Hatcher.
11998
11999        Web Inspector: Simplify the settings support in inspector controller.
12000
12001        https://bugs.webkit.org/show_bug.cgi?id=32076
12002
12003        * WebCoreSupport/InspectorClientQt.cpp:
12004        (WebCore::InspectorClientQt::populateSetting):
12005        (WebCore::InspectorClientQt::storeSetting):
12006        (WebCore::variantToSetting):
12007        (WebCore::settingToVariant):
12008        * WebCoreSupport/InspectorClientQt.h:
12009
120102009-12-03  Ben Murdoch  <benm@google.com>
12011
12012        Reviewed by Brady Eidson.
12013
12014        [Android] The FrameLoaderClient is unaware of BackForwardList changes.
12015        https://bugs.webkit.org/show_bug.cgi?id=31914
12016
12017        * WebCoreSupport/FrameLoaderClientQt.cpp:
12018        (WebCore::FrameLoaderClientQt::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
12019        (WebCore::FrameLoaderClientQt::dispatchDidRemoveBackForwardItem): ditto.
12020        (WebCore::FrameLoaderClientQt::dispatchDidChangeBackForwardIndex): ditto.
12021        * WebCoreSupport/FrameLoaderClientQt.h:
12022
120232009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
12024
12025        Not reviewed. Try to fix Qt build.
12026
12027        * Api/qwebframe.cpp:
12028        (qt_drt_pauseSVGAnimation):
12029
120302009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
12031
12032        Reviewed by Simon Fraser.
12033
12034        Add SVG animation test framework with 'snapshot' functionality
12035        https://bugs.webkit.org/show_bug.cgi?id=31897
12036
12037        Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
12038        forwarding the call to SVGDocumentExtensions, if SVG is enabled.
12039
12040        Implemented just like the existing pauseAnimation* methods for CSS animations.
12041
12042        * Api/qwebframe.cpp:
12043        (qt_drt_pauseSVGAnimation):
12044
120452009-12-01  Daniel Bates  <dbates@webkit.org>
12046
12047        Reviewed by Kenneth Rohde Christiansen.
12048
12049        https://bugs.webkit.org/show_bug.cgi?id=31898
12050
12051        Makes QtLauncher default to the http scheme for URLs.
12052
12053        * QtLauncher/main.cpp:
12054        (MainWindow::MainWindow):
12055        (MainWindow::changeLocation):
12056        (main):
12057
120582009-11-30  Abhinav Mithal  <abhinav.mithal@nokia.com>
12059
12060        Reviewed by Simon Hausmann.
12061
12062        [Qt][Symbian] Report SymbianOS in user agent string for Symbian
12063        https://bugs.webkit.org/show_bug.cgi?id=31961
12064
12065        * Api/qwebpage.cpp:
12066        (QWebPage::userAgentForUrl):
12067
120682009-11-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
12069
12070        Reviewed by Kenneth Rohde Christiansen.
12071
12072        [Qt] Fix minor waning in QtWebKit
12073        https://bugs.webkit.org/show_bug.cgi?id=31963
12074
12075        * tests/qwebpage/tst_qwebpage.cpp:
12076        (ErrorPage::extension): Remove info wariable as it is
12077        not used.
12078
120792009-11-28  Simon Hausmann  <simon.hausmann@nokia.com>
12080
12081        Reviewed by Kenneth Rohde Christiansen.
12082
12083        [Qt] SoftwareInputPanelRequest event sent when clicking in newly loaded page
12084
12085        https://bugs.webkit.org/show_bug.cgi?id=31401
12086
12087        Don't set the event unless there is a focused node we can use
12088        for editing afterwards.
12089
12090        * Api/qwebpage.cpp:
12091        (QWebPagePrivate::handleSoftwareInputPanel):
12092        * tests/qwebpage/tst_qwebpage.cpp:
12093        (tst_QWebPage::inputMethods):
12094
120952009-11-26  Simon Hausmann  <simon.hausmann@nokia.com>
12096
12097        Rubber-stamped by Holger Freyther.
12098
12099        Removed unused ICO image plugin handler.
12100
12101        * Plugins/ICOHandler.cpp: Removed.
12102        * Plugins/ICOHandler.h: Removed.
12103        * Plugins/Plugins.pro: Removed.
12104
121052009-11-12  Holger Hans Peter Freyther  <zecke@selfish.org>
12106
12107        Reviewed by Kenneth Rohde Christiansen.
12108
12109        [Qt] Do not show the QWidget when the WebCore::Widget is hidden
12110        https://bugs.webkit.org/show_bug.cgi?id=31203
12111
12112        The clipping code was making a QWidget visible even if the
12113        WebCore::Widget was hidden. Fix the bug by calling setVisible
12114        only if the WebCore::Widget Widget::isSelfVisible.
12115
12116        * WebCoreSupport/FrameLoaderClientQt.cpp:
12117        (WebCore::QtPluginWidget::show): Override WebCore::Widget::show to call handleVisibility
12118        (WebCore::QtPluginWidget::handleVisibility): New method to call setVisible when we are visible
12119        (FrameLoaderClientQt::createPlugin): Hide the QWidget by default
12120
121212009-11-23  David Boddie  <dboddie@trolltech.com>
12122
12123        Reviewed by Simon Hausmann.
12124
12125        Updated the QWebElement documentation with links to examples and
12126        external resources.
12127        Fixed the project file for the webelement snippet and tidied up the
12128        markers used for quoting the code.
12129
12130        * Api/qwebelement.cpp:
12131        * docs/webkitsnippets/webelement/main.cpp:
12132        (findAll):
12133        * docs/webkitsnippets/webelement/webelement.pro:
12134
121352009-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
12136
12137        Reviewed by Kenneth Rohde Christiansen.
12138
12139        [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
12140        the wrapped object died before the gc removed the instance.
12141
12142        https://bugs.webkit.org/show_bug.cgi?id=31681
12143
12144        Added a unit-test to verify that wrapping a QObject with the
12145        same identity as a previously but now dead object works.
12146
12147        * tests/qwebframe/tst_qwebframe.cpp:
12148
121492009-11-19  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
12150
12151        Reviewed by Kenneth Rohde Christiansen.
12152
12153        [Qt] Add instantiation tests for QWebInspector.
12154
12155        * tests/qwebinspector/qwebinspector.pro: Added.
12156        * tests/qwebinspector/tst_qwebinspector.cpp: Added.
12157        (tst_QWebInspector::attachAndDestroy):
12158        * tests/tests.pro:
12159
121602009-11-19  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
12161
12162        Reviewed by Kenneth Rohde Christiansen.
12163
12164        [Qt] Fix QWebInspector destruction problem.
12165        https://bugs.webkit.org/show_bug.cgi?id=31664
12166
12167        * Api/qwebpage.cpp:
12168        (QWebPage::~QWebPage):
12169
121702009-11-19  Olivier Goffart  <ogoffart@trolltech.com>
12171
12172        Reviewed by Simon Hausmann.
12173
12174        [Qt] Normalize signal and slot signatures.
12175
12176        * Api/qgraphicswebview.cpp:
12177        (QGraphicsWebView::setPage):
12178        * Api/qwebview.cpp:
12179        (QWebView::setPage):
12180        * WebCoreSupport/FrameLoaderClientQt.cpp:
12181        (WebCore::FrameLoaderClientQt::setFrame):
12182        * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
12183        (wrapInFunction):
12184        * tests/qwebframe/tst_qwebframe.cpp:
12185        * tests/qwebpage/tst_qwebpage.cpp:
12186        (tst_QWebPage::modified):
12187        (tst_QWebPage::database):
12188
121892009-11-18  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
12190
12191        Reviewed by Kenneth Rohde Christiansen.
12192
12193        [Qt] Remove support for Qt v4.3 or older versions
12194        https://bugs.webkit.org/show_bug.cgi?id=29469
12195
12196        * Api/qcookiejar.cpp: Removed.
12197        * Api/qcookiejar.h: Removed.
12198        * Api/qgraphicswebview.cpp:
12199        (QGraphicsWebView::event):
12200        * Api/qwebframe.cpp:
12201        (QWebFrame::load):
12202        * Api/qwebframe.h:
12203        * Api/qwebkitglobal.h:
12204        * Api/qwebnetworkinterface.cpp: Removed.
12205        * Api/qwebnetworkinterface.h: Removed.
12206        * Api/qwebnetworkinterface_p.h: Removed.
12207        * Api/qwebpage.cpp:
12208        (QWebPagePrivate::QWebPagePrivate):
12209        (QWebPagePrivate::acceptNavigationRequest):
12210        (QWebPage::acceptNavigationRequest):
12211        (QWebPage::action):
12212        (QWebPage::userAgentForUrl):
12213        * Api/qwebpage.h:
12214        * Api/qwebpage_p.h:
12215        * Api/qwebview.cpp:
12216        (QWebView::load):
12217        (QWebView::event):
12218        * Api/qwebview.h:
12219        * QtLauncher/main.cpp:
12220        (MainWindow::print):
12221        (MainWindow::setupUI):
12222        (main):
12223        * WebCoreSupport/FrameLoaderClientQt.cpp:
12224        (WebCore::FrameLoaderClientQt::download):
12225        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
12226        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
12227        (WebCore::FrameLoaderClientQt::startDownload):
12228        (WebCore::FrameLoaderClientQt::createPlugin):
12229
122302009-11-18  Shu Chang  <Chang.Shu@nokia.com>
12231
12232        Reviewed by Eric Seidel.
12233
12234        [Qt] Add support for displaying deleteButton.
12235        https://bugs.webkit.org/show_bug.cgi?id=31560
12236
12237        Test: LayoutTests/editing/deleting/5408255.html
12238
12239        * Api/qwebsettings.cpp:
12240        (graphics):
12241        * Api/qwebsettings.h:
12242
122432009-11-18  Paul Olav Tvete  <paul.tvete@nokia.com>
12244
12245        Reviewed by Simon Hausmann.
12246
12247        [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit.
12248
12249        * tests/qwebelement/tst_qwebelement.cpp:
12250        (tst_QWebElement::render):
12251
122522009-11-18  Simon Hausmann  <simon.hausmann@nokia.com>
12253
12254        Reviewed by Tor Arne Vestbø.
12255
12256        Clarify and simplify the legal section in the overview documentation,
12257        after review with our legal team.
12258
12259        * docs/qtwebkit.qdoc:
12260
122612009-11-18  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
12262
12263        Reviewed by Simon Hausmann.
12264
12265        [Qt] Add QtLauncher support for opening links in the default browser
12266
12267        This can be triggered by either the context menu or by clicking a link
12268        while holding down the Alt key. Opening a link in a new windows is
12269        triggered by holding down Shift.
12270
12271        * QtLauncher/main.cpp:
12272
122732009-11-17  Yael Aharon  <yael.aharon@nokia.com>
12274
12275        Reviewed by Kenneth Rohde Christiansen.
12276
12277        [Qt] QGLLauncher does not support drag&drop of local files
12278        https://bugs.webkit.org/show_bug.cgi?id=31057
12279
12280        Enable accepting files in QGraphicsWebView.
12281
12282        * Api/qgraphicswebview.cpp:
12283        (QGraphicsWebView::QGraphicsWebView):
12284        (QGraphicsWebView::dragEnterEvent):
12285
122862009-11-17  Antonio Gomes  <tonikitoo@webkit.org>
12287
12288        Reviewed by Kenneth Christiansen.
12289
12290        [Qt] better test coverage for ErrorPageExtension
12291        https://bugs.webkit.org/show_bug.cgi?id=31583
12292
12293        Improved the coverage of current ErrorPageExtension tests by
12294        adding autotests involving frameset and iframes.
12295
12296        * tests/qwebpage/tst_qwebpage.cpp:
12297        (ErrorPage::extension): Make the ErrorPageExtension
12298        to work for all frames, not only the main frame.
12299        (tst_QWebPage::errorPageExtension): Stop using
12300        the 'frameset.html' resouce in this method since
12301        an autotest specific for frameset's is being added.
12302        (tst_QWebPage::errorPageExtensionInIFrames): Added.
12303        (tst_QWebPage::errorPageExtensionInFrameset): Added.
12304
123052009-11-16  Simon Hausmann  <simon.hausmann@nokia.com>
12306
12307        Reviewed by Kenneth Rohde Christiansen.
12308
12309        API documentation fixes.
12310
12311        * Api/qgraphicswebview.cpp: Removed duplicate docs.
12312        * Api/qwebelement.cpp: Added missing docs.
12313        * Api/qwebsettings.cpp: Ditto.
12314
123152009-11-14  Antonio Gomes  <tonikitoo@webkit.org>
12316
12317        Reviewed by Antti Koivisto.
12318
12319        [Qt] Broken back/forward after using ErrorPageExtension to set error page
12320        https://bugs.webkit.org/show_bug.cgi?id=30573
12321
12322        Implemented autotests for covering the back/forward
12323        reset problem involving error pages.
12324
12325        * tests/qwebpage/tst_qwebpage.cpp:
12326        (tst_QWebPage::errorPageExtension):
12327
123282009-11-13  Adam Roben  <aroben@apple.com>
12329
12330        Update for changes to FrameLoaderClient
12331
12332        Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
12333        window objects in isolated worlds are cleared
12334
12335        Reviewed by Dave Hyatt.
12336
12337        * WebCoreSupport/FrameLoaderClientQt.cpp:
12338        (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
12339        * WebCoreSupport/FrameLoaderClientQt.h:
12340        Replaced windowObjectCleared with this function. Does nothing if the
12341        passed-in world is not the mainThreadNormalWorld().
12342
123432009-11-13  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
12344
12345        Reviewed by Kenneth Rohde Christiansen.
12346
12347        [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
12348        This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.
12349
12350        * Api/qwebsettings.cpp:
12351        (QWebSettingsPrivate::apply):
12352        (QWebSettings::setMaximumPagesInCache):
12353
123542009-11-13  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
12355
12356        Reviewed by Kenneth Rohde Christiansen.
12357
12358        [Qt] Fix initial QWebView focus behavior.
12359
12360        focusController->setFocused(true) was not always called.
12361        https://bugs.webkit.org/show_bug.cgi?id=31466
12362
12363        * Api/qwebpage.cpp:
12364        (QWebPagePrivate::focusInEvent):
12365
123662009-11-13  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
12367
12368        Reviewed by Simon Hausmann.
12369
12370        Update documentation for the Qt API
12371
12372        * Api/qgraphicswebview.cpp:
12373        * Api/qwebelement.cpp:
12374        * Api/qwebframe.cpp:
12375        * Api/qwebsettings.cpp:
12376        * Api/qwebview.cpp:
12377
123782009-11-13  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
12379
12380        Reviewed by Simon Hausmann.
12381
12382        Use correct install-path when running qdoc3
12383
12384        * docs/docs.pri:
12385
123862009-11-12  Shinichiro Hamaji  <hamaji@chromium.org>
12387
12388        Reviewed by Darin Adler.
12389
12390        externalRepresentation should take Frame as the argument
12391        https://bugs.webkit.org/show_bug.cgi?id=31393
12392
12393        No new tests as this is just a refactoring.
12394
12395        * Api/qwebframe.cpp:
12396        (QWebFrame::renderTreeDump):
12397
123982009-11-12  Antonio Gomes  <tonikitoo@webkit.org>
12399
12400        Reviewed by Jan Alonzo.
12401
12402        [Qt] Various doc fixes
12403        https://bugs.webkit.org/show_bug.cgi?id=31358
12404
12405        QWebPage's constructor docs are mentioning "QWebView":
12406        "Constructs an empty QWebView with parent".
12407
12408        * Api/qwebpage.cpp:
12409
124102009-11-12  Benjamin Poulain  <benjamin.poulain@nokia.com>
12411
12412        Reviewed by Kenneth Rohde Christiansen.
12413
12414        Custom printing shrink factors
12415        https://bugs.webkit.org/show_bug.cgi?id=29042
12416
12417        This reverts commit r49769. The public API for this needs to be reviewed
12418        before its inclusion in Qt.
12419
12420        * Api/qwebsettings.cpp:
12421        (QWebSettingsPrivate::apply):
12422        (QWebSettings::QWebSettings):
12423        * Api/qwebsettings.h:
12424
124252009-11-11  Antonio Gomes  <tonikitoo@webkit.org>
12426
12427        Reviewed by Kenneth Christiansen.
12428
12429        [Qt] Various doc fixes
12430        https://bugs.webkit.org/show_bug.cgi?id=31358
12431
12432        Fixed wrong documentation: item's dimensions do fit to Web page
12433        content by default.
12434
12435        Kenneth agreed to land this as a followup patch to the
12436        just landed documentation patch.
12437
12438        * Api/qgraphicswebview.cpp:
12439
124402009-11-11  David Boddie  <dboddie@trolltech.com>
12441
12442        Reviewed by Kenneth Christiansen.
12443
12444        [Qt] Various doc fixes
12445        https://bugs.webkit.org/show_bug.cgi?id=31323
12446
12447        Fixed and synchronized QWebView related documentation.
12448
12449        * Api/qgraphicswebview.cpp:
12450        * Api/qwebview.cpp:
12451
124522009-11-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
12453
12454        Unreviewed buildbot fix.
12455
12456        Export a method to the DRT to know if the document has a
12457        document element.
12458
12459        * Api/qwebframe.cpp:
12460        (qt_drt_hasDocumentElement):
12461
124622009-11-11  Liang QI  <liang.qi@nokia.com>
12463
12464        [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian.
12465
12466        * tests/qwebframe/qwebframe.pro:
12467        * tests/qwebframe/tst_qwebframe.cpp:
12468        * tests/qwebpage/qwebpage.pro:
12469        * tests/qwebpage/tst_qwebpage.cpp:
12470
124712009-11-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
12472
12473        Reviewed by Simon Hausmann.
12474
12475        Fix a crash in the layout test plugins/document-open.html
12476
12477        * Api/qwebframe.cpp:
12478        (QWebFrame::toPlainText):
12479
124802009-11-11  Warwick Allison  <warwick.allison@nokia.com>, Simon Hausmann  <simon.hausmann@nokia.com>
12481
12482        Reviewed by Tor Arne Vestbø.
12483
12484        [Qt] Regression: Preserve the parent of plugin objects when using
12485        QtWebKit with only a QWebPage.
12486
12487        * WebCoreSupport/FrameLoaderClientQt.cpp:
12488        (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent
12489        plugins to 0.
12490        * tests/qwebpage/tst_qwebpage.cpp:
12491        (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0.
12492        (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later
12493        (after the page)
12494        (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin.
12495        (PluginTracerPage::PluginTracerPage): Set up the plugin parent.
12496        (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the
12497        plugin parent remains unchanged.
12498
124992009-11-11  David Boddie  <dboddie@trolltech.com>
12500
12501        [Qt] Doc: Added internal or hidden placeholder documentation.
12502
12503        * Api/qwebpage.cpp:
12504
125052009-11-11  Martin Smith  <msmith@trolltech.com>
12506
12507        [Qt] doc: Changed Trolltech to Nokia
12508
12509        * Api/qwebview.cpp:
12510
125112009-11-11  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
12512
12513        Reviewed by Kenneth Rohde Christiansen.
12514
12515        https://bugs.webkit.org/show_bug.cgi?id=31323
12516        Fix a few compiler warnings
12517
12518        * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets
12519        to make it explicit where the else case belongs
12520
125212009-11-11  Simon Hausmann  <simon.hausmann@nokia.com>
12522
12523        Reviewed by Tor Arne Vestbø.
12524
12525        Fix enabling of software input panel when activating editable elements
12526        in QGraphicsWebView.
12527
12528        * Api/qgraphicswebview.cpp:
12529        (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to
12530        query for input method support.
12531        * Api/qwebpage.cpp:
12532        (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget.
12533        (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to
12534        test for input method support. Instead query using QWebPageClient
12535        and send the SIPR event to the ownerWidget() instead of the view().
12536        The latter is null for QGraphicsWebView.
12537        * tests/qwebpage/tst_qwebpage.cpp:
12538        (EventSpy::EventSpy):
12539        (EventSpy::eventFilter):
12540        (tst_QWebPage::inputMethods): Modify the test to verify that SIPR
12541        events are dispatched when activating focusable content.
12542
125432009-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
12544
12545        Unreviewed documentation fixes.
12546
12547        Added a few improvements from Jocelyn Turcotte to the
12548        createWindow docs.
12549
12550        * Api/qwebview.cpp:
12551
125522009-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
12553
12554        Unreviewed documentation fix.
12555
12556        [Qt] Make qwebpage's createWindow not qwebview dependent.
12557        https://bugs.webkit.org/show_bug.cgi?id=30771
12558
12559        Update documentation to make it clear that a reimplementation
12560        of the createWindow method of the associated QWebPage can
12561        result in the QWebView::createWindow method to never be called.
12562
12563        * Api/qwebview.cpp:
12564
125652009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
12566
12567        Reviewed by Kenneth Rohde Christiansen.
12568
12569        [Qt] Few classes have virtual functions but non-virtual destructor
12570        https://bugs.webkit.org/show_bug.cgi?id=31269
12571
12572        * Api/qgraphicswebview.cpp:
12573        (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual
12574        destructor.
12575
125762009-11-09  Benjamin Poulain  <benjamin.poulain@nokia.com>
12577
12578        Reviewed by Kenneth Rohde Christiansen.
12579
12580        https://bugs.webkit.org/show_bug.cgi?id=30628
12581        Add an API to get all the attributes from a QWebElement.
12582
12583        * Api/qwebelement.cpp:
12584        (QWebElement::attributesName):
12585        * Api/qwebelement.h:
12586        * tests/qwebelement/tst_qwebelement.cpp:
12587        (tst_QWebElement::listAttributes):
12588
125892009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
12590
12591        Reviewed by Kenneth Rohde Christiansen.
12592
12593        Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
12594        https://bugs.webkit.org/show_bug.cgi?id=31040
12595
12596        * Api/qwebpage.cpp:
12597        (QWebPagePrivate::handleScrolling):
12598
125992009-11-09  Mark Mentovai  <mark@chromium.org>
12600
12601        Reviewed by Dan Bernstein.
12602
12603        Track "can have scrollbar" state within FrameView independently of the
12604        individual scrollbar states in ScrollView.
12605
12606        rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
12607        REGRESSION (r48064): mint.com loses scrollbars after coming out of
12608        edit mode.
12609
12610        rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
12611        REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
12612
12613        Test: fast/overflow/scrollbar-restored.html
12614
12615        * Api/qwebframe.cpp:
12616        (QWebFrame::setScrollBarPolicy):
12617
126182009-11-09  Benjamin Poulain  <benjamin.poulain@nokia.com>
12619
12620        Reviewed by Kenneth Rohde Christiansen.
12621
12622        https://bugs.webkit.org/show_bug.cgi?id=30772
12623        Add a non-const iterator to QWebElementCollection.
12624        Move the two attributes of the iterator to private.
12625
12626        * Api/qwebelement.h:
12627        (const_iterator::begin):
12628        (const_iterator::end):
12629        (const_iterator::constBegin):
12630        (const_iterator::constEnd):
12631        (const_iterator::iterator::iterator):
12632        (const_iterator::iterator::operator*):
12633        (const_iterator::iterator::operator==):
12634        (const_iterator::iterator::operator!=):
12635        (const_iterator::iterator::operator<):
12636        (const_iterator::iterator::operator<=):
12637        (const_iterator::iterator::operator>):
12638        (const_iterator::iterator::operator>=):
12639        (const_iterator::iterator::operator++):
12640        (const_iterator::iterator::operator--):
12641        (const_iterator::iterator::operator+=):
12642        (const_iterator::iterator::operator-=):
12643        (const_iterator::iterator::operator+):
12644        (const_iterator::iterator::operator-):
12645        * tests/qwebelement/tst_qwebelement.cpp:
12646        (tst_QWebElement::nonConstIterator):
12647        (tst_QWebElement::constIterator):
12648
126492009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
12650
12651        Reviewed by Kenneth Christiansen.
12652
12653        [Qt] Remove the sessionStorage setting (per Page)
12654        https://bugs.webkit.org/show_bug.cgi?id=31249
12655
12656        This setting allows to run sessionStorage on/off on a per page
12657        basis. Remove this prematurely exposed API.
12658
12659        * Api/qwebsettings.cpp:
12660        (QWebSettingsPrivate::apply):
12661        (QWebSettings::QWebSettings):
12662        * tests/qwebpage/tst_qwebpage.cpp:
12663        (tst_QWebPage::database):
12664        (tst_QWebPage::testOptionalJSObjects):
12665
126662009-11-09  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
12667
12668        Reviewed by Simon Hausmann.
12669
12670        [Qt] Remove the QWebPage:webInspectorTriggered signal.
12671        User customization of the communication between QWebPage
12672        and QWebInspector will be properly designed in the next version.
12673        https://bugs.webkit.org/show_bug.cgi?id=30773
12674
12675        * Api/qwebinspector.cpp:
12676        * Api/qwebpage.cpp:
12677        (QWebPagePrivate::getOrCreateInspector):
12678        (QWebPage::triggerAction):
12679        * Api/qwebpage.h:
12680        * QtLauncher/main.cpp:
12681        (MainWindow::MainWindow):
12682
126832009-11-05  Simon Hausmann  <hausmann@webkit.org>
12684
12685        Reviewed by Tor Arne Vestbø.
12686
12687        Added a missing re-implementation of QGraphicsItem::inputMethodQuery().
12688
12689        * Api/qgraphicswebview.cpp:
12690        (QGraphicsWebView::inputMethodQuery):
12691        * Api/qgraphicswebview.h:
12692
126932009-11-04  Simon Hausmann  <hausmann@webkit.org>
12694
12695        Reviewed by Tor Arne Vestbø.
12696
12697        Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(),
12698        similar to QWebView.
12699
12700        * Api/qgraphicswebview.cpp:
12701        (QGraphicsWebView::sizeHint):
12702        * Api/qgraphicswebview.h:
12703
127042009-11-04  Simon Hausmann  <hausmann@webkit.org>
12705
12706        Reviewed by Tor Arne Vestbø.
12707
12708        Removed zoomFactoryChanged() signal and added
12709        linkClicked() to QGraphicsWebView, for consistency with
12710        QWebView.
12711
12712        * Api/qgraphicswebview.cpp:
12713        (QGraphicsWebView::setPage):
12714        (QGraphicsWebView::setZoomFactor):
12715        * Api/qgraphicswebview.h:
12716
127172009-11-04  Simon Hausmann  <hausmann@webkit.org>
12718
12719        Reviewed by Tor Arne Vestbø.
12720
12721        Added QGraphicsWebView::findText() for convenience and consistency
12722        with QWebView.
12723
12724        * Api/qgraphicswebview.cpp:
12725        (QGraphicsWebView::findText):
12726        * Api/qgraphicswebview.h:
12727
127282009-11-04  Simon Hausmann  <hausmann@webkit.org>
12729
12730        Reviewed by Tor Arne Vestbø.
12731
12732        Added QGraphicsWebView::pageAction() and triggerPageAction(), for
12733        consistency with QWebView.
12734
12735        * Api/qgraphicswebview.cpp:
12736        (QGraphicsWebView::pageAction):
12737        (QGraphicsWebView::triggerPageAction):
12738        * Api/qgraphicswebview.h:
12739
127402009-11-04  Simon Hausmann  <hausmann@webkit.org>
12741
12742        Reviewed by Tor Arne Vestbø.
12743
12744        Removed QGraphicsWebView::toHtml() after API review.
12745
12746        That's consistent with QWebView and also based on the assumption that
12747        toHtml() is called less frequently than setHtml().
12748
12749        * Api/qgraphicswebview.cpp:
12750        * Api/qgraphicswebview.h:
12751        * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
12752        (tst_QGraphicsWebView::qgraphicswebview):
12753
127542009-11-04  Simon Hausmann  <hausmann@webkit.org>
12755
12756        Reviewed by Tor Arne Vestbø.
12757
12758        Removed the interactive property of QGraphicsWebView.
12759
12760        There are clearly use-cases for this feature, but it will require
12761        more work to make this fully work with an enum to have fine-grained
12762        control over the interactivity levels. For now it is easy to achieve
12763        in user-code what the boolean property did.
12764
12765        * Api/qgraphicswebview.cpp:
12766        (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
12767        (QGraphicsWebView::hoverMoveEvent):
12768        (QGraphicsWebView::mouseMoveEvent):
12769        (QGraphicsWebView::mousePressEvent):
12770        (QGraphicsWebView::mouseReleaseEvent):
12771        (QGraphicsWebView::mouseDoubleClickEvent):
12772        (QGraphicsWebView::keyPressEvent):
12773        (QGraphicsWebView::keyReleaseEvent):
12774        (QGraphicsWebView::dragLeaveEvent):
12775        (QGraphicsWebView::dragMoveEvent):
12776        (QGraphicsWebView::dropEvent):
12777        (QGraphicsWebView::wheelEvent):
12778        (QGraphicsWebView::inputMethodEvent):
12779        * Api/qgraphicswebview.h:
12780        * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
12781        (tst_QGraphicsWebView::qgraphicswebview):
12782
127832009-11-04  Simon Hausmann  <hausmann@webkit.org>
12784
12785        Reviewed by Tor Arne Vestbø.
12786
12787        Make the QGraphicsWebView constructor explicit.
12788
12789        * Api/qgraphicswebview.h:
12790
127912009-11-05  Shu Chang  <Chang.Shu@nokia.com>
12792
12793        Reviewed by Tor Arne Vestbø.
12794
12795        Add support for Shift-PageUp and Shift-PageDown key events.
12796        https://bugs.webkit.org/show_bug.cgi?id=31166
12797
12798        Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
12799
12800        * WebCoreSupport/EditorClientQt.cpp:
12801        (WebCore::EditorClientQt::handleKeyboardEvent):
12802
128032009-11-05  Simon Hausmann  <hausmann@webkit.org>
12804
12805        Last Qt 4.5 build fix (*sigh*)
12806
12807        * tests/qwebpage/tst_qwebpage.cpp:
12808        (inputMethodHints): inputMethodHints() is only used for
12809        Qt 4.6, so guard the whole function.
12810
128112009-11-05  Simon Hausmann  <hausmann@webkit.org>
12812
12813        Another prospective build fix against Qt 4.5 (build bot)
12814
12815        Don't compile & run the QGraphicsWebView portion of the
12816        input methods auto test with Qt 4.5.
12817
12818        * tests/qwebpage/tst_qwebpage.cpp:
12819        (tst_QWebPage::inputMethods_data):
12820        (inputMethodHints):
12821        (inputMethodEnabled):
12822        (tst_QWebPage::inputMethods):
12823
128242009-11-05  Simon Hausmann  <hausmann@webkit.org>
12825
12826        Prospective build fix against Qt 4.5 (build bot)
12827
12828        * Api/qgraphicswebview.cpp:
12829        (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the
12830        use of Qt 4.6 specific API with #ifdefs.
12831
128322009-11-01  Simon Hausmann  <hausmann@webkit.org>
12833
12834        Reviewed by Kenneth Christiansen.
12835
12836        [Qt] Fix enabling of input method support on QGraphicsWebView.
12837        https://bugs.webkit.org/show_bug.cgi?id=30605
12838
12839        Instead of setting the unsupported widget attribute on the
12840        QGraphicsWidget in setInputMethodEnabled() set the
12841        ItemAcceptsInputMethod GraphicsItem flag directly.
12842
12843        Changed the existing input method auto test to run once
12844        on a QWebView and once on a QGraphicsWebView.
12845
12846        * Api/qgraphicswebview.cpp:
12847        (QGraphicsWebViewPrivate::setInputMethodEnabled):
12848        * tests/qwebpage/tst_qwebpage.cpp:
12849        (tst_QWebPage::inputMethods_data):
12850        (inputMethodHints):
12851        (inputMethodEnabled):
12852        (tst_QWebPage::inputMethods):
12853
128542009-11-04  Simon Hausmann  <hausmann@webkit.org>
12855
12856        Reviewed by Kenneth Christiansen.
12857
12858        Added QGraphicsWebView::modified property, for consistency
12859        with QWebView.
12860
12861        * Api/qgraphicswebview.cpp:
12862        (QGraphicsWebView::isModified):
12863        * Api/qgraphicswebview.h:
12864        * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
12865        (tst_QGraphicsWebView::qgraphicswebview):
12866
128672009-11-04  Simon Hausmann  <hausmann@webkit.org>
12868
12869        Reviewed by Kenneth Christiansen.
12870
12871        Removed status and progress properties of QGraphicsWebView.
12872        Added loadProgress and statusBarMessage signals instead,
12873        after API review.
12874
12875        * Api/qgraphicswebview.cpp:
12876        (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
12877        (QGraphicsWebView::setPage):
12878        * Api/qgraphicswebview.h:
12879        * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
12880        (tst_QGraphicsWebView::qgraphicswebview):
12881
128822009-11-04  Yael Aharon  <yael.aharon@nokia.com>
12883
12884        Reviewed by Simon Hausmann.
12885
12886        [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView.
12887        https://bugs.webkit.org/show_bug.cgi?id=30979
12888
12889        Decouple QWebViewPrivate from QWebPageClient, and automatically create
12890        QWebPageWidgetClient whenever the view is QWidget based.
12891
12892        * Api/qwebpage.cpp:
12893        (QWebPageWidgetClient::QWebPageWidgetClient):
12894        (QWebPageWidgetClient::scroll):
12895        (QWebPageWidgetClient::update):
12896        (QWebPageWidgetClient::setInputMethodEnabled):
12897        (QWebPageWidgetClient::setInputMethodHint):
12898        (QWebPageWidgetClient::cursor):
12899        (QWebPageWidgetClient::updateCursor):
12900        (QWebPageWidgetClient::palette):
12901        (QWebPageWidgetClient::screenNumber):
12902        (QWebPageWidgetClient::ownerWidget):
12903        (QWebPageWidgetClient::pluginParent):
12904        (QWebPage::setView):
12905        * Api/qwebview.cpp:
12906        (QWebView::~QWebView):
12907        (QWebView::setPage):
12908        (QWebView::event):
12909
129102009-11-03  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
12911
12912        Reviewed by Simon Hausmann.
12913
12914        [Qt] Fix build of unit-test after r50454.
12915
12916        * tests/qwebpage/tst_qwebpage.cpp:
12917
129182009-11-03  Simon Hausmann  <hausmann@webkit.org>
12919
12920        Reviewed by Tor Arne Vestbø.
12921
12922        Make QWebPluginDatabase private API for now.
12923
12924        https://bugs.webkit.org/show_bug.cgi?id=30775
12925
12926        * Api/headers.pri:
12927        * Api/qwebplugindatabase.cpp:
12928        * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h.
12929        * Api/qwebsettings.cpp:
12930        * Api/qwebsettings.h:
12931        * QtLauncher/main.cpp:
12932        (MainWindow::setupUI):
12933        * tests/tests.pro:
12934
129352009-11-03  Simon Hausmann  <hausmann@webkit.org>
12936
12937        Rubber-stamped by Tor Arne Vestbø.
12938
12939        Oops, also remove the API docs of the removed networkRequestStarted() signal.
12940
12941        * Api/qwebpage.cpp:
12942
129432009-11-03  Simon Hausmann  <hausmann@webkit.org>
12944
12945        Reviewed by Tor Arne Vestbø.
12946
12947        Replace the QWebPage::networkRequestStarted() signal with the originatingObject
12948        property set to the QWebFrame that belongs to the request.
12949
12950        https://bugs.webkit.org/show_bug.cgi?id=29975
12951
12952        * Api/qwebpage.h:
12953        * WebCoreSupport/FrameLoaderClientQt.cpp:
12954        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
12955        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
12956        (WebCore::FrameLoaderClientQt::startDownload):
12957        * tests/qwebpage/tst_qwebpage.cpp:
12958        (tst_QWebPage::loadFinished):
12959        (TestNetworkManager::createRequest):
12960        (tst_QWebPage::originatingObjectInNetworkRequests):
12961
129622009-11-02  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
12963
12964        Reviewed by Adam Barth.
12965
12966        QWebView crash fix.
12967
12968        The QWebView should not crash if the stop() method is called from
12969        a function triggered by the loadProgress signal.
12970
12971        A null pointer protection was added in the ProgressTracker::incrementProgress.
12972
12973        New autotest was created.
12974
12975        https://bugs.webkit.org/show_bug.cgi?id=29425
12976
12977        * tests/qwebview/tst_qwebview.cpp:
12978        (WebViewCrashTest::WebViewCrashTest):
12979        (WebViewCrashTest::loading):
12980        (tst_QWebView::crashTests):
12981
129822009-11-01  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
12983
12984        Reviewed by Eric Seidel.
12985
12986        Turn on warnings for QtWebKit for gcc
12987        https://bugs.webkit.org/show_bug.cgi?id=30958
12988
12989        * Api/qwebpage.cpp:
12990        (QWebPagePrivate::QWebPagePrivate): Reorder initialization list
12991        to fix compiler warnings.
12992        * WebCoreSupport/FrameLoaderClientQt.cpp:
12993        (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
12994
129952009-10-30  Evan Stade  <estade@chromium.org>
12996
12997        Reviewed by David Levin.
12998
12999        Notify the chrome when the focused node has changed.
13000        https://bugs.webkit.org/show_bug.cgi?id=30832
13001
13002        Added stub implementation for new ChromeClient function.
13003
13004        * WebCoreSupport/ChromeClientQt.cpp:
13005        (WebCore::ChromeClientQt::focusedNodeChanged):
13006        * WebCoreSupport/ChromeClientQt.h:
13007
130082009-10-30  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
13009
13010        Reviewed by Tor Arne Vestbø.
13011
13012        [Qt] Remove the QWebInspector::windowTitleChanged signal,
13013        QEvent::WindowTitleChange can be used to achieve the same.
13014        https://bugs.webkit.org/show_bug.cgi?id=30927
13015
13016        * Api/qwebinspector.cpp:
13017        * Api/qwebinspector.h:
13018        * WebCoreSupport/InspectorClientQt.cpp:
13019        (WebCore::InspectorClientQt::updateWindowTitle):
13020
130212009-10-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
13022
13023        Reviewed by Tor Arne Vestbø.
13024
13025        [Qt] Implement DELETE HTTP method for XmlHttpRequest
13026        https://bugs.webkit.org/show_bug.cgi?id=30894
13027
13028        No new tests as this functionality is already tested by the
13029        xmlhttprequest LayoutTests. As this patch depends on an unreleased
13030        version of the dependent QtNetwork library and the tests will be
13031        enabled later once the dependent library is released (and the
13032        buildbot is updated).
13033
13034        * Api/qwebframe.cpp:
13035        (QWebFrame::load):
13036
130372009-10-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13038
13039        Reviewed by Tor Arne Vestbø.
13040
13041        Remove QWebView::guessUrlFromString() and replace its use
13042        with the new QUrl::fromUserInput() if using Qt 4.6 or newer.
13043
13044        * Api/qwebview.cpp:
13045        * Api/qwebview.h:
13046        * QGVLauncher/main.cpp:
13047        (urlFromUserInput):
13048        (WebPage::applyProxy):
13049        (MainWindow::load):
13050        * QtLauncher/main.cpp:
13051        (urlFromUserInput):
13052        (MainWindow::MainWindow):
13053        (MainWindow::changeLocation):
13054        * tests/qwebview/tst_qwebview.cpp:
13055
130562009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13057
13058        Reviewed by Tor Arne Vestbø.
13059
13060        Serialize directly to the stream, and not first to an QByteArray,
13061        that is later serialized. That is slower and also uses more bytes.
13062
13063        * Api/qwebhistory.cpp:
13064        (operator<<):
13065        (operator>>):
13066
130672009-10-28  Shinichiro Hamaji  <hamaji@chromium.org>
13068
13069        Reviewed by Eric Seidel.
13070
13071        [Qt] WebFrame::counterValueForElementById must not be exposed
13072        https://bugs.webkit.org/show_bug.cgi?id=30882
13073
13074        * Api/qwebframe.cpp:
13075        (qt_drt_counterValueForElementById):
13076        * Api/qwebframe.h:
13077
130782009-10-27  Shinichiro Hamaji  <hamaji@chromium.org>
13079
13080        Reviewed by Darin Adler.
13081
13082        Provide a way to get counter values with layoutTestContoller
13083        https://bugs.webkit.org/show_bug.cgi?id=30555
13084
13085        * Api/qwebframe.cpp:
13086        (QWebFrame::counterValueForElementById):
13087        (QWebHitTestResult::frame):
13088        * Api/qwebframe.h:
13089
130902009-10-28  Antonio Gomes  <tonikitoo@webkit.org>
13091
13092        Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248.
13093
13094        [Qt] [API] Make it possible to have 'invisible' loads
13095        https://bugs.webkit.org/show_bug.cgi?id=29248
13096
13097        * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png.
13098
130992009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13100
13101        Reviewed by Tor Arne Vestbø.
13102
13103        [Qt] QWebHistory::saveState() is inconsistent with the Qt API
13104        https://bugs.webkit.org/show_bug.cgi?id=30710
13105
13106        Make the versioning internal and enforce it in the WebCore
13107        part. Adjust the comments, as well as remove now dead code.
13108
13109        * Api/qwebhistory.cpp:
13110        (operator<<):
13111        (operator>>):
13112        * Api/qwebhistory.h:
13113
131142009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13115
13116        Reviewed by Holger Freyther.
13117
13118        [Qt] QWebHistory::saveState() is inconsistent with the Qt API
13119        https://bugs.webkit.org/show_bug.cgi?id=30710
13120
13121        Remove the QWebHistory::saveState() and ::restoreState() as
13122        they are inconsistent with the Qt API.
13123
13124        Update unittests to reflect the change.
13125
13126        * Api/qwebhistory.cpp:
13127        (operator<<):
13128        (operator>>):
13129        * Api/qwebhistory.h:
13130        * tests/qwebhistory/tst_qwebhistory.cpp:
13131        (saveHistory):
13132        (restoreHistory):
13133        (tst_QWebHistory::saveAndRestore_crash_1):
13134        (tst_QWebHistory::saveAndRestore_crash_2):
13135        (tst_QWebHistory::saveAndRestore_crash_3):
13136        (tst_QWebHistory::clear):
13137
131382009-10-27  Antonio Gomes  <tonikitoo@webkit.org>
13139
13140        Reviewed by Holger Freyther.
13141
13142        Complementary fix to bug 30779.
13143
13144        By mistake I used QWeakPointer's toStrongRef() method which docs
13145        explicitly say to not be used in this situation (when the tracked
13146        pointer is devired from QObject). Instead QWeakPointer's data()
13147        is recommended.
13148
13149        * Api/qwebpage.cpp:
13150        (QWebPage::view):
13151
131522009-10-27  Holger Hans Peter Freyther  <zecke@selfish.org>
13153
13154        Reviewed by Simon Fraser.
13155
13156        Change HitTestResult methods to use (3d) transformation aware methods
13157        https://bugs.webkit.org/show_bug.cgi?id=27347
13158
13159        The HitTestResult::boundingBox method was removed. The
13160        RenderObject must be used directly. In contrast to the
13161        old HitTestResult::boundingBox method this code must use
13162        a (3d) transformation aware method to not run into an
13163        assert in SVGRenderBase::mapLocalToContainer.
13164
13165        * Api/qwebframe.cpp:
13166        (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
13167
131682009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13169
13170        Rubberstamped by Oliver Hunt.
13171
13172        Change two methods to be internal for DRT use only.
13173
13174        Part of [Qt] Review all new API in Qt 4.6
13175        https://bugs.webkit.org/show_bug.cgi?id=29843#c11
13176
13177        * Api/qwebsecurityorigin.cpp:
13178        (qt_drt_whiteListAccessFromOrigin):
13179        (qt_drt_resetOriginAccessWhiteLists):
13180        (QWebSecurityOrigin::localSchemes):
13181        * Api/qwebsecurityorigin.h:
13182
131832009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13184
13185        Reviewed by Tor Arne Vestbø.
13186
13187        Make sure that initiating a rotation while rotating won't make
13188        it end up at rotation positions that are not a multiply of
13189        180 degrees.
13190
13191        * QGVLauncher/main.cpp:
13192        (MainView::animatedFlip):
13193
131942009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13195
13196        Unreviewed Qt build fix.
13197
13198        Update the tests as well to the new API change.
13199
13200        * tests/qwebelement/tst_qwebelement.cpp:
13201        (tst_QWebElement::clear):
13202
132032009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13204
13205        Rubberstamped by Tor Arne Vestbø.
13206
13207        [Qt] QWebElement::removeChildren() should be
13208        QWebElement::removeAllChildren()
13209        https://bugs.webkit.org/show_bug.cgi?id=30630
13210
13211        * Api/qwebelement.cpp:
13212        (QWebElement::removeAllChildren):
13213        * Api/qwebelement.h:
13214
132152009-10-27  Antonio Gomes  <tonikitoo@webkit.org>
13216
13217        Reviewed by Antti Koivisto and Holger Freyther.
13218
13219        Make QWebPagePrivate's (QWidget) view to be a QWeakPointer.
13220        https://bugs.webkit.org/show_bug.cgi?id=30779
13221
13222        The fact that it was been set from external objects of qwebpage
13223        and not being deleted internally can lead to dangling references.
13224
13225        * Api/qgraphicswebview.cpp:
13226        (QGraphicsWebView::~QGraphicsWebView):
13227        * Api/qwebpage.cpp:
13228        (QWebPagePrivate::QWebPagePrivate):
13229        (QWebPagePrivate::createContextMenu):
13230        (QWebPagePrivate::handleSoftwareInputPanel):
13231        (QWebPagePrivate::keyPressEvent):
13232        (QWebPage::setView):
13233        (QWebPage::view):
13234        (QWebPage::javaScriptAlert):
13235        (QWebPage::javaScriptConfirm):
13236        (QWebPage::javaScriptPrompt):
13237        (QWebPage::shouldInterruptJavaScript):
13238        (QWebPage::createWindow):
13239        (QWebPage::extension):
13240        (QWebPage::chooseFile):
13241        (QWebPage::userAgentForUrl):
13242        * Api/qwebpage_p.h:
13243        * Api/qwebview.cpp:
13244        (QWebView::~QWebView):
13245
132462009-10-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13247
13248        Unreviewed documentation fix from David Boddie (Qt Doc Team)
13249
13250        Removes the check around the RenderHints property documentation
13251        that was clearly added to synchronize the source and header files
13252        when the #if !defined(Q_OS_SYMBIAN) guards was added to the
13253        property.
13254
13255        The documentation has also been updated to ensure that Symbian
13256        users know that there is no actual RenderHints property on their
13257        platform.
13258
13259        * Api/qwebview.cpp:
13260
132612009-10-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13262
13263        Unreviewed documentation fix from David Boddie (Qt Doc Team)
13264
13265        Ensure that qdoc will always see the RenderHints property.
13266
13267        The property was only defined in the header file if the Q_OS_SYMBIAN
13268        symbol was not defined, resulting in the property not showing up
13269        in the Qt documentation just because one platform doesn't support it.
13270
13271        A follow up commit will improve the documentation for the property
13272        and note that it is not supported on the Symbiam platform.
13273
13274        * Api/qwebview.h:
13275
132762009-10-26  Benjamin Poulain  <benjamin.poulain@nokia.com>
13277
13278        Reviewed by Tor Arne Vestbø.
13279
13280        [Qt] Reintroduce QWebElementCollection
13281
13282        Revert the patch that has replaced QWebElementCollection
13283        with QList<QWebElement>. Update the tests accordingly.
13284
13285        Remove the constness of the return type of QWebElement operator[].
13286
13287        https://bugs.webkit.org/show_bug.cgi?id=30767
13288
13289        * Api/qwebelement.cpp:
13290        (QWebElement::findAll):
13291        (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
13292        (QWebElementCollectionPrivate::create):
13293        (QWebElementCollection::QWebElementCollection):
13294        (QWebElementCollection::operator=):
13295        (QWebElementCollection::~QWebElementCollection):
13296        (QWebElementCollection::operator+):
13297        (QWebElementCollection::append):
13298        (QWebElementCollection::count):
13299        (QWebElementCollection::at):
13300        (QWebElementCollection::toList):
13301        * Api/qwebelement.h:
13302        (const_iterator::begin):
13303        (const_iterator::end):
13304        (const_iterator::operator[]):
13305        * Api/qwebframe.cpp:
13306        (QWebFrame::findAllElements):
13307        * Api/qwebframe.h:
13308        * QtLauncher/main.cpp:
13309        (MainWindow::selectElements):
13310        * tests/qwebelement/tst_qwebelement.cpp:
13311        (tst_QWebElement::simpleCollection):
13312        (tst_QWebElement::iteration):
13313        (tst_QWebElement::emptyCollection):
13314        (tst_QWebElement::appendCollection):
13315        (tst_QWebElement::nullSelect):
13316        (tst_QWebElement::hasSetFocus):
13317        (tst_QWebElement::render):
13318        * tests/qwebpage/tst_qwebpage.cpp:
13319        (tst_QWebPage::inputMethods):
13320
133212009-10-24  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
13322
13323        Reviewed by Holger Freyther.
13324
13325        [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian
13326        https://bugs.webkit.org/show_bug.cgi?id=30476
13327
13328        Assign ReadUserData WriteUserData NetworkServices Symbian capabilities
13329        to all QtWebkit executables.
13330
13331        * QGVLauncher/QGVLauncher.pro:
13332        * QtLauncher/QtLauncher.pro:
13333        * tests/benchmarks/loading/tst_loading.pro:
13334        * tests/benchmarks/painting/tst_painting.pro:
13335        * tests/qgraphicswebview/qgraphicswebview.pro:
13336        * tests/qwebelement/qwebelement.pro:
13337        * tests/qwebframe/qwebframe.pro:
13338        * tests/qwebhistory/qwebhistory.pro:
13339        * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
13340        * tests/qwebpage/qwebpage.pro:
13341        * tests/qwebplugindatabase/qwebplugindatabase.pro:
13342        * tests/qwebview/qwebview.pro:
13343
133442009-10-22  Gavin Barraclough  <barraclough@apple.com>
13345
13346        Reviewed by NOBODY (speculative build fix - qt is currently already broken!)
13347        Build fix following bug #30696.
13348
13349        * Api/qwebelement.cpp:
13350        (setupScriptContext):
13351        * Api/qwebframe.cpp:
13352        (QWebFrame::evaluateJavaScript):
13353
133542009-10-22  Shu Chang  <Chang.Shu@nokia.com>
13355
13356        Reviewed by Eric Seidel.
13357
13358        [Qt] Enable track visited links in QWebPage
13359        https://bugs.webkit.org/show_bug.cgi?id=30574
13360
13361        Test: fast/history/clicked-link-is-visited.html
13362
13363        * Api/qwebpage.cpp:
13364        (QWebPagePrivate::QWebPagePrivate):
13365
133662009-10-22  Girish Ramakrishnan  <girish@forwardbias.in>
13367
13368        Reviewed by Eric Seidel.
13369
13370        [Qt] Add Print Shortcut to QtLauncher
13371
13372        https://bugs.webkit.org/show_bug.cgi?id=30682
13373
13374        * QtLauncher/main.cpp:
13375        (MainWindow::setupUI):
13376
133772009-10-22  Antonio Gomes  <tonikitoo@webkit.org>
13378
13379        Rubberstamped by Tor Arne Vestbø.
13380
13381        Code standarlization for QGVLauncher.
13382
13383        1) Made member initilization lists in constructors
13384           to be per line.
13385        2) Made applyProxy method inline as all other methods in
13386           WebPage class.
13387
13388        * QGVLauncher/main.cpp:
13389        (WebPage::WebPage):
13390        (WebPage::applyProxy):
13391        (MainView::MainView):
13392        (MainWindow::MainWindow):
13393        (MainWindow::init):
13394
133952009-10-22  Antonio Gomes  <tonikitoo@webkit.org>
13396
13397        Reviewed by Tor Arne Vestbø.
13398
13399        Add a Y-Axis rotation to QGVLauncher.
13400
13401        It uses the QStateMachine API from Qt 4.6.
13402
13403        * QGVLauncher/main.cpp:
13404        (WebView::WebView):
13405        (WebView::setYRotation):
13406        (WebView::yRotation):
13407        (MainView::flip):
13408        (MainView::animatedYFlip):
13409        (SharedScene::SharedScene):
13410        (SharedScene::webView):
13411        (MainWindow::init):
13412        (MainWindow::animatedYFlip):
13413        (MainWindow::buildUI):
13414
134152009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13416
13417        Reviewed By Adam Barth.
13418
13419        Add some actions to the menu for cursor debugging.
13420
13421        GraphicsView based launcher only.
13422
13423        * QGVLauncher/main.cpp:
13424        (MainView::setWaitCursor):
13425        (MainView::resetCursor):
13426        (MainView::flip):
13427        (MainWindow::setWaitCursor):
13428        (MainWindow::resetCursor):
13429        (MainWindow::buildUI):
13430
134312009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13432
13433        Rubberstamped by Adam Barth.
13434
13435        Remove clipRenderToViewport as agreed upon in
13436        https://bugs.webkit.org/show_bug.cgi?id=29843
13437
13438        * Api/qwebframe.cpp:
13439        * Api/qwebframe.h:
13440        * Api/qwebframe_p.h:
13441        (QWebFramePrivate::QWebFramePrivate):
13442
134432009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13444
13445        Reviewed by Adam Barth.
13446
13447        Update the tests to test the new render functionality, and take
13448        into consideration that render() clips to the frame itself as well
13449        as the viewport.
13450
13451        QWebFrame::render() now always clips, so the old tests were bogus.
13452
13453        Rendering pure contents (no scrollbars etc) without clipping can now
13454        be accomplished using QWebFrame::documentElement()->render(...)
13455
13456        * Api/qwebframe.cpp:
13457        * Api/qwebframe.h:
13458        * Api/qwebframe_p.h:
13459        (QWebFramePrivate::QWebFramePrivate):
13460        * tests/qwebframe/tst_qwebframe.cpp:
13461
134622009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13463
13464        Rubberstamped by Adam Barth.
13465
13466        As we do not support rendering a QWebFrame without it being clipped
13467        the the frame as well as the viewport, we now set the viewport size
13468        to the size of the contents.
13469
13470        Rendering pure contents (no scrollbars etc) without clipping can be
13471        acomplished using QWebFrame::documentElement()->render(...)
13472
13473        * tests/qwebelement/tst_qwebelement.cpp:
13474        (tst_QWebElement::render):
13475
134762009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13477
13478        Reviewed by Tor Arne Vestbø.
13479
13480        Add menu item to dump the plugin list to the console,
13481        which can be handy for debugging.
13482
13483        * QtLauncher/main.cpp:
13484        (MainWindow::dumpPlugins):
13485        (MainWindow::setupUI):
13486
134872009-10-19  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13488
13489        Reviewed by Tor Arne Vestbø.
13490
13491        Introduce new render method on QWebFrame, which supports specifying
13492        which layers to render (scrollbars, contents, pan-icon).
13493
13494        * Api/qwebframe.cpp:
13495        (QWebFramePrivate::renderPrivate):
13496        (QWebFrame::render):
13497        * Api/qwebframe.h:
13498        * Api/qwebframe_p.h:
13499
135002009-10-19  Antonio Gomes  <tonikitoo@webkit.org>
13501
13502        Reviewed by Ariya Hidayat.
13503
13504        [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView
13505        https://bugs.webkit.org/show_bug.cgi?id=30549
13506
13507        Patch reimplements QGraphicsItem's itemChange method, and make
13508        CursorChange event to be emitted after cursor has already been
13509        set.
13510
13511        QWidget::setCursor send the event just after it sets the cursor,
13512        then patch makes both behaviors compatible.
13513
13514        * Api/qgraphicswebview.cpp:
13515        (QGraphicsWebView::itemChange):
13516        * Api/qgraphicswebview.h:
13517
135182009-10-19  Nate Chapin  <japhet@chromium.org>
13519
13520        Unreviewed, build fix.
13521
13522        Update call to FrameLoader::loadFrameRequest().
13523
13524        * Api/qwebpage.cpp:
13525        (QWebPage::triggerAction):
13526
135272009-10-19  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
13528
13529        Reviewed by Ariya Hidayat.
13530
13531        Add QWebElement::render API which allows rendering of single
13532        element.
13533
13534        * Api/qwebelement.cpp:
13535        (QWebElement::render):
13536        * Api/qwebelement.h:
13537        * tests/qwebelement/tst_qwebelement.cpp:
13538        (tst_QWebElement::render):
13539        * tests/qwebelement/qwebelement.qrc:
13540        * tests/qwebelement/image.png: Added.
13541
135422009-10-19  Markus Goetz <Markus.Goetz@nokia.com>
13543
13544        Reviewed by Ariya Hidayat.
13545
13546        QWebPage: Doc: setNetworkAccessManager should only be called once.
13547
13548        * Api/qwebpage.cpp:
13549
135502009-10-19  Antonio Gomes  <tonikitoo@webkit.org>
13551
13552        Reviewed by Tor Arne.
13553
13554        Wrong ifdef combination in QGraphicsWebView's event method.
13555
13556        * Api/qgraphicswebview.cpp:
13557        (QGraphicsWebView::event):
13558
135592009-10-19  Girish Ramakrishnan  <girish@forwardbias.in>
13560
13561        Reviewed by Holger Freyther.
13562
13563        [Qt] Windowed Plugins: Don't crash when client is 0.
13564
13565        Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView.
13566        In addition, setFrameRect()/updatePluginWidget() is called even if the
13567        plugin was not succesfully loaded. updatePluginWidget() updates the
13568        window rect which is, in theory, useful to draw something that indicates
13569        that we didn't load successfully.
13570
13571        So, a status check is added to setNPWindowIfNeeded.
13572
13573        https://bugs.webkit.org/show_bug.cgi?id=30380
13574
13575        * tests/qwebpage/qwebpage.pro:
13576        * tests/qwebpage/tst_qwebpage.cpp:
13577        (takeScreenshot):
13578        (tst_QWebPage::screenshot_data):
13579        (tst_QWebPage::screenshot):
13580        * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
13581
135822009-10-19  Girish Ramakrishnan  <girish@forwardbias.in>
13583
13584        Reviewed by Holger Freyther.
13585
13586        [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView.
13587
13588        Fixes various sources of crashes:
13589        1. The PluginContainer is a child of QWebView. When the view gets deleted,
13590        the PluginView is not notified about the deletion of PluginContainer.
13591        2. QWebView destructor does not set client to 0.
13592        3. Sometimes pending paint events are sent after the plugin has died, so add
13593        a check in PluginView::setNPWindowIfNeeded.
13594
13595        https://bugs.webkit.org/show_bug.cgi?id=30354
13596
13597        * Api/qwebview.cpp:
13598        (QWebView::~QWebView):
13599        * tests/qwebview/qwebview.pro:
13600        * tests/qwebview/tst_qwebview.cpp:
13601        (tst_QWebView::reusePage_data):
13602        (tst_QWebView::reusePage):
13603
136042009-10-19  Jakob Truelsen  <antialize@gmail.com>
13605
13606        Reviewed by Adam Barth.
13607
13608        https://bugs.webkit.org/show_bug.cgi?id=29042
13609
13610        Allow one to costumize the minimal and maximal shrink factors,
13611        Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor,
13612        setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings.
13613
13614
13615        * Api/qwebsettings.cpp:
13616        (QWebSettingsPrivate::apply):
13617        (QWebSettings::QWebSettings):
13618        (QWebSettings::setPrintingMinimumShrinkFactor):
13619        (QWebSettings::printingMinimumShrinkFactor):
13620        (QWebSettings::setPrintingMaximumShrinkFactor):
13621        (QWebSettings::printingMaximumShrinkFactor):
13622        * Api/qwebsettings.h:
13623
136242009-10-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13625
13626        Reviewed by Simon Hausmann.
13627
13628        Rename fixedContentsSize property to preferredContentsSize as
13629        agreed upon with Simon Hausmann and Matthias Ettrich.
13630
13631        * Api/qwebpage.cpp:
13632        (QWebPage::preferredContentsSize):
13633        (QWebPage::setPreferredContentsSize):
13634        * Api/qwebpage.h:
13635        * WebCoreSupport/FrameLoaderClientQt.cpp:
13636        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
13637
136382009-10-16  Antonio Gomes  <tonikitoo@webkit.org>
13639
13640        Reviewed by Simon Hausmann.
13641
13642        [Qt] QGLauncher leaks WebPage object
13643        https://bugs.webkit.org/show_bug.cgi?id=30465
13644
13645        Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor.
13646
13647        * Api/qwebpage.cpp:
13648        (QWebPage::view):
13649        * Api/qwebpage_p.h:
13650        * QGVLauncher/main.cpp:
13651        (SharedScene::SharedScene):
13652        (SharedScene::~SharedScene):
13653
136542009-10-16  Antonio Gomes  <tonikitoo@webkit.org>
13655
13656        Reviewed by Simon Hausmann.
13657
13658        [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash
13659        https://bugs.webkit.org/show_bug.cgi?id=30459
13660
13661        Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods,
13662        since QWebPageClient would do the trick.
13663
13664        * Api/qgraphicswebview.cpp:
13665        (QGraphicsWebView::hoverMoveEvent):
13666        * Api/qwebpage.cpp:
13667        (QWebPagePrivate::mouseMoveEvent):
13668        (QWebPagePrivate::mousePressEvent):
13669        (QWebPagePrivate::mouseDoubleClickEvent):
13670        (QWebPagePrivate::mouseReleaseEvent):
13671        (QWebPagePrivate::wheelEvent):
13672        (QWebPagePrivate::dragEnterEvent):
13673        (QWebPagePrivate::dragLeaveEvent):
13674        (QWebPagePrivate::dragMoveEvent):
13675
136762009-10-16  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
13677
13678        Pull out r49676 as it caused build breakges on Symbian
13679
13680        * Api/qwebpage.cpp:
13681
136822009-10-16  Yael Aharon  <yael.aharon@nokia.com>
13683
13684        Reviewed by Tor Arne Vestbø.
13685
13686        [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
13687        https://bugs.webkit.org/show_bug.cgi?id=30179
13688
13689        Added "c" style static methods for the application to hook up for
13690        receiving notifications when a plugin is created or destroyed.
13691
13692        * Api/qwebpage.cpp:
13693
136942009-10-15  Antonio Gomes  <tonikitoo@webkit.org>
13695
13696        Rubberstamped by Tor Arne.
13697
13698        Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*).
13699
13700        * QGVLauncher/main.cpp:
13701        (WebPage::WebPage):
13702
137032009-10-15  Antonio Gomes  <tonikitoo@webkit.org>
13704
13705        Reviewed by Tor Arne.
13706
13707        [Qt] QGLauncher crashes while closing a window
13708        https://bugs.webkit.org/show_bug.cgi?id=30385
13709
13710        Set page's pageClient reference to '0' at QGWV deletion.
13711
13712        * Api/qgraphicswebview.cpp:
13713        (QGraphicsWebView::~QGraphicsWebView):
13714        * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
13715        (WebPage::WebPage):
13716        (WebPage::aborting):
13717        (tst_QGraphicsWebView::crashOnViewlessWebPages):
13718
137192009-10-13  Antonio Gomes  <tonikitoo@webkit.org>
13720
13721        Reviewed by Simon Hausmann.
13722
13723        [Qt] Make context menu to work in QGraphicsWebView
13724        https://bugs.webkit.org/show_bug.cgi?id=30336
13725
13726        * Api/qgraphicswebview.cpp:
13727        (QGraphicsWebView::event):
13728
137292009-10-13  Girish Ramakrishnan  <girish@forwardbias.in>
13730
13731        Reviewed by Simon Hausmann.
13732
13733        [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead.
13734
13735        This is a bug for two reasons:
13736        1. Everytime we use winId(), we end up creating a native widget. This causes an
13737        unnecessary copy of contents from the backing store to the native widget.
13738        2. Neither windowed nor windowless plugins require the winId of the QWebView or
13739        QGraphicsView.
13740
13741        Introduce ownerWidget() which returns a QWidget * without creating a native widget
13742        (as opposed to QWidget::find(winId)).
13743
13744        https://bugs.webkit.org/show_bug.cgi?id=30170
13745
13746        * Api/qgraphicswebview.cpp:
13747        (QGraphicsWebViewPrivate::ownerWidget):
13748        * Api/qwebview.cpp:
13749        (QWebViewPrivate::ownerWidget):
13750
137512009-10-13  Antonio Gomes  <tonikitoo@webkit.org>
13752
13753        Reviewed by Simon Hausmann.
13754
13755        [Qt] Add some initial autotests for QWebPage's ErrorPageExtention
13756        https://bugs.webkit.org/show_bug.cgi?id=30296
13757
13758        * tests/qwebpage/tst_qwebpage.cpp:
13759        (ErrorPage::ErrorPage):
13760        (ErrorPage::supportsExtension):
13761        (ErrorPage::extension):
13762        (tst_QWebPage::errorPageExtension):
13763
137642009-10-13  Antonio Gomes  <tonikitoo@webkit.org>
13765
13766        Reviewed by Simon Hausmann.
13767
13768        [Qt] better handle possible edge cases on qwebframe::requestedUrl use
13769        https://bugs.webkit.org/show_bug.cgi?id=30216
13770
13771        QWebFrame::requestedUrl can be called at any time during the load
13772        process, including:
13773
13774        * An error handling (whereas an alternate error page for unsuccessful
13775          load is being set);
13776        * A ssl error exception call;
13777        * During navigation notifications/callbacks (titleChanged, urlChanged,
13778          progresses, addHistoryEntry, etc);
13779        * Among others.
13780
13781        This patch makes requestedUrl calls to fallback to FrameLoaderClient
13782        m_loadError's failingURL when an error has occurred, unless it is
13783        null/empty.
13784
13785        Also, m_loadError is now being reset at each the main frame starts a
13786        load, in order to avoid previous load errors footprints.
13787
13788        * Api/qwebframe.cpp:
13789        (QWebFrame::requestedUrl):
13790        * WebCoreSupport/FrameLoaderClientQt.cpp:
13791        (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
13792
137932009-10-12  Jakub Wieczorek  <faw217@gmail.com>
13794
13795        Reviewed by Simon Hausmann.
13796
13797        [Qt] Missing default value for the default text encoding.
13798        https://bugs.webkit.org/show_bug.cgi?id=30311
13799
13800        QtWebKit has provided a default, hardcoded value for default charset but since
13801        the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded
13802        value has had no effect.
13803
13804        Added a regression test and unskipped fast/dom/Document/document-charset.html,
13805        which is passing now.
13806
13807        * Api/qwebpage.cpp:
13808        (QWebPagePrivate::QWebPagePrivate):
13809        * Api/qwebsettings.cpp:
13810        (QWebSettings::QWebSettings):
13811        * tests/qwebpage/tst_qwebpage.cpp:
13812        (tst_QWebPage::defaultTextEncoding):
13813
138142009-10-12  Kenneth Rohde Christiansen  <kenneth@webkit.org>
13815
13816        Reviewed by Simon Hausmann.
13817
13818        Implement the new palette() methods on the page clients
13819
13820        * Api/qgraphicswebview.cpp:
13821        (QGraphicsWebViewPrivate::palette):
13822        * Api/qwebview.cpp:
13823        (QWebViewPrivate::palette):
13824
138252009-10-12  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
13826
13827        Reviewed by Simon Hausmann.
13828
13829        QWebPage's createViewlessPlugin autotest crash fix.
13830
13831        It is possible that plugins that are QWidgets or QGraphicsWidgets
13832        are created before a view has been assigned to a QWebPage. The
13833        plug-ins won't be fully functional, as by design, they should
13834        visualise something, but they won't crash and will stay in memory.
13835
13836        An autotest that covers this use-case, is included.
13837
13838        https://bugs.webkit.org/show_bug.cgi?id=30118
13839
13840        * WebCoreSupport/FrameLoaderClientQt.cpp:
13841        (WebCore::FrameLoaderClientQt::createPlugin):
13842        * tests/qwebpage/tst_qwebpage.cpp:
13843        (PluginTrackedPageWidget::PluginTrackedPageWidget):
13844        (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget):
13845        (PluginTrackedPageGraphicsWidget::createPlugin):
13846        (tst_QWebPage::destroyPlugin):
13847        (tst_QWebPage::createViewlessPlugin):
13848
138492009-10-09  Joe Ligman  <joseph.ligman@nokia.com>
13850
13851        Reviewed by Simon Hausmann.
13852
13853        Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt
13854        setInputMethodState. This change is needed so widgets such as the s60 software
13855        input panel can receive input method events for password fields.
13856        It's up to the Qt platform to determine which widget will receive input method
13857        events when these flags are set.
13858        Also added implementation for setInputMethodEnabled and setInputMethodHint
13859        to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct
13860        dependency on QWebView and uses QWebPageClient.
13861        Added autotest to tst_qwebpage.cpp
13862        https://bugs.webkit.org/show_bug.cgi?id=30023
13863
13864        * Api/qgraphicswebview.cpp:
13865        (QGraphicsWebViewPrivate::setInputMethodEnabled):
13866        (QGraphicsWebViewPrivate::setInputMethodHint):
13867        * Api/qwebview.cpp:
13868        (QWebViewPrivate::setInputMethodEnabled):
13869        (QWebViewPrivate::setInputMethodHint):
13870        * WebCoreSupport/EditorClientQt.cpp:
13871        (WebCore::EditorClientQt::setInputMethodState):
13872        * tests/qwebpage/tst_qwebpage.cpp:
13873        (tst_QWebPage::inputMethods):
13874
138752009-10-08  Adam Barth  <abarth@webkit.org>
13876
13877        Reviewed by Eric Seidel.
13878
13879        Move executeScript from FrameLoader to ScriptController
13880        https://bugs.webkit.org/show_bug.cgi?id=30200
13881
13882        Update API call.
13883
13884        * Api/qwebframe.cpp:
13885        (QWebFrame::evaluateJavaScript):
13886
138872009-10-08  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
13888
13889        Reviewed by Simon Hausmann.
13890
13891        Part of testOptionalJSObjects autotest was marked as "expect to fail".
13892
13893        Two places in tst_QWebPage::testOptionalJSObjects were marked as
13894        expected to fail. The problem concern checking if a feature is enabled
13895        or disabled. According to discussion on webkit dev mailing list
13896        a disabled feature should be invisible from java script level, but
13897        there are exceptions from the rule. So we decided to disable the test
13898        for now.
13899
13900        https://bugs.webkit.org/show_bug.cgi?id=29867
13901
13902        * tests/qwebpage/tst_qwebpage.cpp:
13903        (tst_QWebPage::testOptionalJSObjects):
13904
139052009-10-07  Adam Barth  <abarth@webkit.org>
13906
13907        Reviewed by Darin Adler.
13908
13909        Factor PolicyChecker out of FrameLoader
13910        https://bugs.webkit.org/show_bug.cgi?id=30155
13911
13912        Move the policy callback to the policy object.
13913
13914        * WebCoreSupport/FrameLoaderClientQt.cpp:
13915        (WebCore::FrameLoaderClientQt::callPolicyFunction):
13916
139172009-10-07  Antonio Gomes  <tonikitoo@webkit.org>
13918
13919        Reviewed by Simon Hausmann.
13920
13921        [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
13922        https://bugs.webkit.org/show_bug.cgi?id=30166
13923
13924        * Api/qgraphicswebview.cpp:
13925        (QGraphicsWebViewPrivate::_q_doLoadFinished):
13926        * Api/qgraphicswebview.h:
13927        * QGVLauncher/main.cpp:
13928        (MainWindow::init):
13929        (MainWindow::loadFinished):
13930
139312009-10-07  Girish Ramakrishnan  <girish@forwardbias.in>
13932
13933        Reviewed by Simon Hausmann.
13934
13935        Add a simple rotation effect to QGVLauncher
13936
13937        https://bugs.webkit.org/show_bug.cgi?id=30162
13938
13939        * QGVLauncher/main.cpp:
13940        (MainView::animatedFlip):
13941        (MainWindow::animatedFlip):
13942        (MainWindow::buildUI):
13943
139442009-10-07  Volker Hilsheimer  <volker.hilsheimer@nokia.com>
13945
13946        Reviewed by Simon Hausmann.
13947
13948        Doc: Document HTML and status as properties.
13949
13950        * Api/qgraphicswebview.cpp:
13951
139522009-10-07  Martin Smith  <msmith@trolltech.com>
13953
13954        Reviewed by Simon Hausmann.
13955
13956        Fix qdoc warning about disabled renderHints property
13957        on Symbian.
13958
13959        * Api/qwebview.cpp:
13960        * Api/qwebview.h:
13961
139622009-10-06  Adam Barth  <abarth@webkit.org>
13963
13964        Reviewed by Eric Seidel.
13965
13966        Move setLocalLoadPolicy and friends to SecurityOrigin
13967        https://bugs.webkit.org/show_bug.cgi?id=30110
13968
13969        Call the new API.
13970
13971        * Api/qwebpage.cpp:
13972        (QWebPagePrivate::QWebPagePrivate):
13973
139742009-10-06  Benjamin C Meyer  <bmeyer@rim.com>
13975
13976        Reviewed by Ariya Hidayat.
13977
13978        When the drag data contains an image set it on the QDrag so it will be visible to the user.
13979
13980        * WebCoreSupport/DragClientQt.cpp:
13981        (WebCore::DragClientQt::startDrag):
13982
139832009-10-06  Pavel Feldman  <pfeldman@chromium.org>
13984
13985        Reviewed by Timothy Hatcher.
13986
13987        Web Inspector: close inspector client view on
13988        InspectorController::close API call.
13989
13990        In order to run batch web inspector layout tests (and not affect
13991        subsequent tests) we should close inspector client's view upon
13992        InspectorController::close API call.
13993
13994        https://bugs.webkit.org/show_bug.cgi?id=30009
13995
13996        * WebCoreSupport/InspectorClientQt.cpp:
13997        (WebCore::InspectorClientQt::createPage):
13998
139992009-10-06  Janne Koskinen  <janne.p.koskinen@digia.com>
14000
14001        Reviewed by Simon Hausmann.
14002
14003        [Qt] don't enable input methods on Symbian by default.
14004        https://bugs.webkit.org/show_bug.cgi?id=30117
14005
14006        If input methods are enabled Symbian FEP will be launched on every
14007        pointer event making webpage navigation impossible with QWebView.
14008
14009        * Api/qwebview.cpp:
14010        (QWebView::QWebView):
14011
140122009-10-05  Holger Hans Peter Freyther  <zecke@selfish.org>
14013
14014        Reviewed by Simon Hausmann.
14015
14016        QtLauncher: print the number of loaded urls
14017
14018        When using the -r mode print the number of URLs loaded so far. This
14019        is extremly useful when opening the same URL over and over again and
14020        one wants to see the progress.
14021
14022        * QtLauncher/main.cpp:
14023        (URLLoader::URLLoader):
14024        (URLLoader::loadNext):
14025
140262009-10-05  Girish Ramakrishnan  <girish@forwardbias.in>
14027
14028        Reviewed by Simon Hausmann.
14029
14030        Add screenshot option to menubar
14031
14032        https://bugs.webkit.org/show_bug.cgi?id=30067
14033
14034        * QtLauncher/main.cpp:
14035        (MainWindow::screenshot):
14036        (MainWindow::setupUI):
14037
140382009-10-05  Girish Ramakrishnan  <girish@forwardbias.in>
14039
14040        Reviewed by Simon Hausmann.
14041
14042        Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow.
14043
14044        https://bugs.webkit.org/show_bug.cgi?id=30068
14045
14046        * QtLauncher/main.cpp:
14047        (MainWindow::MainWindow):
14048
140492009-10-05  Kenneth Rohde Christiansen  <kenneth@webkit.org>
14050
14051        Rubberstamped by Simon Hausmann.
14052
14053        Add documentation to the ErrorPageExtension.
14054
14055        * Api/qwebpage.cpp:
14056
140572009-10-02  Yael Aharon  <yael.aharon@nokia.com>
14058
14059        Reviewed by Simon Hausmann.
14060
14061        [Qt] Inform the application when a new request is created
14062        https://bugs.webkit.org/show_bug.cgi?id=29975
14063
14064        Add a signal to QWebPage, to inform the application when a request is created.
14065
14066        * Api/qwebpage.cpp:
14067        * Api/qwebpage.h:
14068        * tests/qwebpage/tst_qwebpage.cpp:
14069        (tst_QWebPage::loadFinished):
14070
140712009-10-05  Kenneth Rohde Christiansen  <kenneth@webkit.org>
14072
14073        Reviewed by Simon Hausmann.
14074
14075        ErrorPageExtension: Add a pointer to the QWebFrame that had
14076        an error.
14077
14078        * Api/qwebpage.h:
14079        * WebCoreSupport/FrameLoaderClientQt.cpp:
14080        (WebCore::FrameLoaderClientQt::callErrorPageExtension):
14081
140822009-10-05  Kenneth Rohde Christiansen  <kenneth@webkit.org>
14083
14084        Reviewed by Tor Arne Vestbø.
14085
14086        Do not empty the offline web appcache when clearing
14087        memory caches. That one is not in memory, but stored
14088        in sqlite.
14089
14090        * Api/qwebsettings.cpp:
14091        (QWebSettings::clearMemoryCaches):
14092
140932009-10-05  J-P Nurmi  <jpnurmi@gmail.com>
14094
14095        Reviewed by Simon Hausmann.
14096
14097        Added QGraphicsWidget-plugins support to FrameLoaderClientQt.
14098
14099        https://bugs.webkit.org/show_bug.cgi?id=29710
14100
14101        * Api/qgraphicswebview.cpp:
14102        (QGraphicsWebViewPrivate::pluginParent):
14103        * Api/qwebview.cpp:
14104        (QWebViewPrivate::pluginParent):
14105        * WebCoreSupport/FrameLoaderClientQt.cpp:
14106        (WebCore::):
14107        (WebCore::FrameLoaderClientQt::createPlugin):
14108
141092009-10-03  Adam Barth  <abarth@webkit.org>
14110
14111        Unreview build fix.  I wish I had a try server...
14112
14113        * Api/qwebpage.cpp:
14114        (QWebPagePrivate::updateAction):
14115
141162009-10-02  Norbert Leser  <norbert.leser@nokia.com>
14117
14118        Reviewed by Simon Hausmann.
14119
14120        Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR.
14121        Otherwise, it is inconsistent with class declaration of QCursor.
14122
14123        * Api/qgraphicswebview.cpp:
14124        * Api/qwebview.cpp:
14125
141262009-10-02  Prasanth Ullattil  <prasanth.ullattil@nokia.com>
14127
14128        Reviewed by Simon Hausmann.
14129
14130        Fix compiler warnings about unused function arguments.
14131
14132        * Api/qwebframe.cpp:
14133        (QWebFrame::scrollBarMinimum):
14134        * Api/qwebpage.cpp:
14135        (QWebPagePrivate::focusInEvent):
14136        (QWebPagePrivate::focusOutEvent):
14137        (QWebPagePrivate::leaveEvent):
14138        (QWebPage::javaScriptAlert):
14139        (QWebPage::javaScriptConfirm):
14140        (QWebPage::javaScriptPrompt):
14141        (QWebPage::triggerAction):
14142        (QWebPage::acceptNavigationRequest):
14143        (QWebPage::chooseFile):
14144        * WebCoreSupport/ChromeClientQt.cpp:
14145        (WebCore::ChromeClientQt::repaint):
14146        (WebCore::ChromeClientQt::mouseDidMoveOverElement):
14147        (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
14148        * WebCoreSupport/ContextMenuClientQt.cpp:
14149        (WebCore::ContextMenuClientQt::downloadURL):
14150        * WebCoreSupport/FrameLoaderClientQt.cpp:
14151        (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
14152        (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
14153        (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
14154        (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
14155        (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
14156        (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
14157        (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
14158        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
14159        (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
14160        * WebCoreSupport/InspectorClientQt.cpp:
14161        (WebCore::InspectorClientQt::setAttachedWindowHeight):
14162        (WebCore::InspectorClientQt::highlight):
14163        (WebCore::InspectorClientQt::removeSetting):
14164
141652009-10-01  Simon Hausmann  <simon.hausmann@nokia.com>
14166
14167        Reviewed by Tor Arne Vestbø.
14168
14169        Make Software Input Panel requests work with QGraphicsWebView
14170        _and_ QWebView by sharing the event code in handleSoftwareInputPanel().
14171
14172        * Api/qwebpage.cpp:
14173        (QWebPagePrivate::mouseReleaseEvent):
14174        (QWebPagePrivate::handleSoftwareInputPanel):
14175        * Api/qwebpage_p.h:
14176
141772009-10-01  Alexis Menard  <alexis.menard@nokia.com>
14178
14179        Reviewed by Tor Arne Vestbø.
14180
14181        Rename QWebGraphicsItem to QGraphicsWebView
14182
14183        * Api/headers.pri:
14184        * Api/qwebpage.h:
14185        * Api/qwebgraphicsitem.cpp: Renamed.
14186        * Api/qwebgraphicsitem.h: Renamed.
14187        * WebKit/qt/QGVLauncher/main.cpp:
14188        * tests/tests.pro:
14189        * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed.
14190        * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed.
14191
141922009-10-01  Antonio Gomes   <tonikitoo@webkit.org>
14193
14194        Reviewed by Simon Hausmann.
14195
14196        https://bugs.webkit.org/show_bug.cgi?id=29248
14197        [Qt] [API] Make it possible to have 'invisible' loads
14198
14199        Make QWebFrame's setHtml and setContent methods to not change
14200        session and global history at all.
14201
14202        * Api/qwebframe.cpp:
14203        (QWebFrame::setHtml):
14204        (QWebFrame::setContent):
14205        * tests/qwebframe/qwebframe.pro:
14206        * tests/qwebframe/tst_qwebframe.cpp:
14207
142082009-10-01  Kristian Amlie  <kristian.amlie@nokia.com>
14209
14210        Reviewed by Simon Hausmann.
14211
14212        Fixed software input panel support on web input elements.
14213
14214        Send the RequestSoftwareInputPanel event if the element supports focus
14215        and the element is clicked.
14216
14217        * Api/qwebpage.cpp:
14218        (QWebPagePrivate::QWebPagePrivate):
14219        (QWebPagePrivate::mousePressEvent):
14220        (QWebPagePrivate::mouseReleaseEvent):
14221        * Api/qwebpage_p.h:
14222
142232009-10-01  Joe Ligman  <joseph.ligman@nokia.com>
14224
14225        Reviewed by Simon Hausmann.
14226
14227        Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent
14228
14229        https://bugs.webkit.org/show_bug.cgi?id=29681
14230
14231        Some additional changes from Kristian Amlie <kristian.amlie@nokia.com>:
14232
14233            * Fixed surrounding text to exclude preedit string
14234            * Avoid emission of microFocusChanged during setComposition()
14235
14236        * Api/qwebpage.cpp:
14237        (QWebPagePrivate::inputMethodEvent):
14238        (QWebPage::inputMethodQuery):
14239        * WebCoreSupport/EditorClientQt.cpp:
14240        (WebCore::EditorClientQt::respondToChangedSelection):
14241        * tests/qwebpage/tst_qwebpage.cpp:
14242        (tst_QWebPage::inputMethods):
14243
142442009-09-30  Kenneth Rohde Christiansen  <kenneth@webkit.org>
14245
14246        Reviewed by David Hyatt.
14247
14248        Add the failed URL to the ErrorPageExtension, as it is quite
14249        useful for creating error pages.
14250
14251        * Api/qwebpage.h:
14252        * WebCoreSupport/FrameLoaderClientQt.cpp:
14253        (WebCore::FrameLoaderClientQt::callErrorPageExtension):
14254
142552009-09-29  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
14256
14257        Reviewed by Tor Arne Vestbø.
14258
14259        [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard.
14260        This fixes https://bugs.webkit.org/show_bug.cgi?id=19674.
14261
14262        * Api/qwebsettings.cpp:
14263        (QWebSettings::QWebSettings):
14264
142652009-09-29  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
14266
14267        Reviewed by Simon Hausmann.
14268
14269        https://bugs.webkit.org/show_bug.cgi?id=29844
14270
14271        QWebPage dependency autotest fix.
14272
14273        Fix for database() autotest. All opened databases should be removed at
14274        end of test.
14275
14276        * tests/qwebpage/tst_qwebpage.cpp:
14277        (tst_QWebPage::database):
14278
142792009-09-29  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
14280
14281        Reviewed by Simon Hausmann.
14282
14283        Some QWebHistory and QWebPage autotest crash fixes.
14284
14285        Some checking for m_mainFrame were added. MainFrame should be created
14286        at some point of QWebPage live cicle.
14287
14288        https://bugs.webkit.org/show_bug.cgi?id=29803
14289
14290        * Api/qwebpage.cpp:
14291        (QWebPage::~QWebPage):
14292        (QWebPage::currentFrame):
14293        (QWebPage::history):
14294        (QWebPage::selectedText):
14295        (QWebPage::updatePositionDependentActions):
14296        * tests/qwebpage/tst_qwebpage.cpp:
14297        (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
14298
142992009-09-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
14300
14301        Reviewed by Simon Hausmann and Tor Arne Vestbø.
14302
14303        Implement QWebPage Extension for error pages, incl.
14304        an example on how to use it in QtLauncher.
14305
14306        Correct our use of ResourceError.
14307
14308        * Api/qwebpage.h:
14309        (ExtensionOption::):
14310        (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn):
14311        * QtLauncher/main.cpp:
14312        (WebPage::supportsExtension):
14313        (MainWindow::MainWindow):
14314        (MainWindow::selectElements):
14315        (WebPage::extension):
14316        * WebCoreSupport/FrameLoaderClientQt.cpp:
14317        (WebCore::FrameLoaderClientQt::cancelledError):
14318        (WebCore::FrameLoaderClientQt::blockedError):
14319        (WebCore::FrameLoaderClientQt::cannotShowURLError):
14320        (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
14321        (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
14322        (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
14323        (WebCore::FrameLoaderClientQt::callErrorPageExtension):
14324        (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
14325        (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
14326        * WebCoreSupport/FrameLoaderClientQt.h:
14327
143282009-09-28  Andre Poenitz  <andre.poenitz@trolltech.com>
14329
14330        Reviewed by Simon Hausmann.
14331
14332        Compile fix with namespaced Qt.
14333
14334        * Api/qwebinspector_p.h:
14335
143362009-09-27  Joe Ligman  <joseph.ligman@mindspring.com>
14337
14338        Reviewed by Simon Hausmann.
14339
14340        [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for
14341        clients that want to check/set the focus node of the document.
14342        https://bugs.webkit.org/show_bug.cgi?id=29682
14343
14344        * Api/qwebelement.cpp:
14345        (QWebElement::hasFocus):
14346        (QWebElement::setFocus):
14347        * Api/qwebelement.h:
14348        * tests/qwebelement/tst_qwebelement.cpp:
14349        (tst_QWebElement::hasSetFocus):
14350
143512009-09-25  Csaba Osztrogonac  <oszi@inf.u-szeged.hu>
14352
14353        Reviewed by Simon Hausmann.
14354
14355        [Qt] Make tst_qwebframe work if Qt built without SSL support
14356        https://bugs.webkit.org/show_bug.cgi?id=29735
14357
14358        * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added.
14359
143602009-09-24  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
14361
14362        Reviewed by Simon Hausmann.
14363
14364        [Qt] Update QWebElement API to remove script related methods.
14365        QWebElement::evaluateScript is the only one kept, these are
14366        removed to postpone most of the QtWebKit<->JavaScript API design
14367        after 4.6.
14368        https://bugs.webkit.org/show_bug.cgi?id=29708
14369
14370        * Api/qwebelement.cpp:
14371        * Api/qwebelement.h:
14372        Methods removed:
14373        - QWebElement::callFunction
14374        - QWebElement::functions
14375        - QWebElement::scriptableProperty
14376        - QWebElement::setScriptableProperty
14377        - QWebElement::scriptableProperties
14378        * tests/qwebelement/tst_qwebelement.cpp:
14379        (tst_QWebElement::evaluateScript):
14380
143812009-09-25  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
14382
14383        Reviewed by Simon Hausmann.
14384
14385        [Qt] Rename QWebElement::evaluateScript
14386        to QWebElement::evaluateJavaScript.
14387        https://bugs.webkit.org/show_bug.cgi?id=29709
14388
14389        * Api/qwebelement.cpp:
14390        (QWebElement::evaluateJavaScript):
14391        * Api/qwebelement.h:
14392        * tests/qwebelement/tst_qwebelement.cpp:
14393        (tst_QWebElement::evaluateJavaScript):
14394
143952009-09-25  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
14396
14397        Reviewed by Simon Hausmann.
14398
14399        [Qt] Update the stypeProperty API of QWebElement.
14400        https://bugs.webkit.org/show_bug.cgi?id=29711
14401
14402        * Api/qwebelement.cpp:
14403        (QWebElement::styleProperty):
14404        - Merge the stypeProperty and the computedStyleProperty methods
14405        - Remove the default value for the style resolving enum
14406        - Rename ResolveRule to StyleResolveStrategy
14407        (QWebElement::setStyleProperty):
14408        - Remove the priority argument since it is possible to control the
14409          behaviour by adding !important or removing in the value.
14410        * Api/qwebelement.h:
14411        * tests/qwebelement/tst_qwebelement.cpp:
14412        (tst_QWebElement::style):
14413        (tst_QWebElement::computedStyle):
14414        * tests/qwebframe/tst_qwebframe.cpp:
14415
144162009-09-24  Jon Honeycutt  <jhoneycutt@apple.com>
14417
14418        Reviewed by Alice Liu.
14419
14420        * Api/qwebpage.cpp:
14421        (QWebPagePrivate::QWebPagePrivate):
14422        Pass 0 for new Page constructor argument.
14423
144242009-09-24  Martin Smith  <msmith@trolltech.com>
14425
14426        Reviewed by Simon Hausmann.
14427
14428        qdoc: Added \brief texts to all the since 4.6 functions.
14429
14430        * Api/qwebhistory.cpp:
14431
144322009-09-23  J-P Nurmi  <jpnurmi@gmail.com>
14433
14434        Reviewed by Simon Hausmann.
14435
14436        Prevent QWebPage::setView() from changing the viewport size on the fly
14437        in case the view doesn't actually change. QWebPage::setView() is
14438        called upon every QWebGraphicsItem::hoverMoveEvent(), which forced
14439        the viewport size to be equal to the size of the whole graphics view.
14440
14441        https://bugs.webkit.org/show_bug.cgi?id=29676
14442
14443        * Api/qwebpage.cpp:
14444        (QWebPage::setView):
14445
144462009-09-23  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
14447
14448        Reviewed by Simon Hausmann.
14449
14450        [Qt] Crash fix in QWebHistory back and forward methods.
14451
14452        QWebHistory::back() and QWebHistory::forward() were crashing on
14453        ASSERT in WebCore::BackForwardList. The methods should check
14454        canGoBack() and canGoForward() at the beginning.
14455
14456        https://bugs.webkit.org/show_bug.cgi?id=29675
14457
14458        * Api/qwebhistory.cpp:
14459        (QWebHistory::back):
14460        (QWebHistory::forward):
14461
144622009-09-23  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
14463
14464        Reviewed by Simon Hausmann.
14465
14466        [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions
14467
14468        In QWebHistory's methods that change item count or current item call
14469        to QWebPage::updateNavigationActions should be executed.
14470        QWebHistory::clear() and QWebHistory::restorState() were changed.
14471        New helper method, QWebPagePrivate accesor, were created in
14472        QWebHistoryPrivate class.
14473        Two autotest were developed.
14474
14475        https://bugs.webkit.org/show_bug.cgi?id=29246
14476
14477        * Api/qwebhistory.cpp:
14478        (QWebHistory::clear):
14479        (QWebHistory::restoreState):
14480        (QWebHistoryPrivate::page):
14481        * Api/qwebhistory_p.h:
14482        * tests/qwebhistory/tst_qwebhistory.cpp:
14483        (tst_QWebHistory::saveAndRestore_1):
14484        (tst_QWebHistory::clear):
14485
144862009-09-23  Norbert Leser  <norbert.leser@nokia.com>
14487
14488        Reviewed by Tor Arne Vestbø.
14489
14490        Need to guard QX11Info include with Q_WS_X11.
14491        That class may not be available (in QT 4.5 for Symbian, for instance).
14492        Completes fixes in r48627 and r48604.
14493
14494        * Api/qwebgraphicsitem.cpp:
14495        * Api/qwebview.cpp:
14496
144972009-09-22  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
14498
14499        Reviewed by Simon Hausmann.
14500
14501        [Qt] Add default timeout while waiting for signals in QWebPage auto
14502        tests.
14503        https://bugs.webkit.org/show_bug.cgi?id=29637
14504
14505        * tests/qwebpage/tst_qwebpage.cpp:
14506        (waitForSignal):
14507
145082009-09-22  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
14509
14510        Reivewed by Simon Hausmann.
14511
14512        Fix the Qt/Mac build after r48604 (Implement new QWebPageClient class)
14513
14514        There's no QWidget::x11Info() on Mac, and setPlatformPluginWidget()
14515        takes a QWidget*, not a QWebPageClient*
14516
14517        * Api/qwebgraphicsitem.cpp:
14518        (QWebGraphicsItemPrivate::screenNumber):
14519        * Api/qwebview.cpp:
14520        (QWebViewPrivate::screenNumber):
14521
145222009-09-21  Kenneth Rohde Christiansen  <kenneth@webkit.org>
14523
14524        Reviewed by Simon Hausmann.
14525
14526        For Qt, platformPageClient() will now return a class derived from
14527        the QWebPageClient, so the patch adapts our Qt hooks to go though
14528        this class and not depend on the QWebView.
14529
14530        * Api/qwebgraphicsitem.cpp:
14531        (QWebGraphicsItemPrivate::scroll):
14532        (QWebGraphicsItemPrivate::update):
14533        (QWebGraphicsItemPrivate::cursor):
14534        (QWebGraphicsItemPrivate::updateCursor):
14535        (QWebGraphicsItemPrivate::screenNumber):
14536        (QWebGraphicsItemPrivate::winId):
14537        (QWebGraphicsItem::event):
14538        (QWebGraphicsItem::setPage):
14539        * Api/qwebgraphicsitem.h:
14540        * Api/qwebpage.cpp:
14541        (QWebPagePrivate::QWebPagePrivate):
14542        * Api/qwebpage_p.h:
14543        * Api/qwebview.cpp:
14544        (QWebViewPrivate::scroll):
14545        (QWebViewPrivate::update):
14546        (QWebViewPrivate::cursor):
14547        (QWebViewPrivate::updateCursor):
14548        (QWebViewPrivate::screenNumber):
14549        (QWebViewPrivate::winId):
14550        (QWebView::setPage):
14551        (QWebView::event):
14552        * WebCoreSupport/ChromeClientQt.cpp:
14553        (WebCore::ChromeClientQt::repaint):
14554        (WebCore::ChromeClientQt::scroll):
14555        (WebCore::ChromeClientQt::platformPageClient):
14556
145572009-09-21  Yael Aharon  <yael.aharon@nokia.com>
14558
14559        Reviewed by Simon Hausmann.
14560
14561        https://bugs.webkit.org/show_bug.cgi?id=29609
14562        Build fix for windows when using Qt 4.5.0.
14563
14564        * Api/qwebpage.cpp:
14565        (QWebPage::userAgentForUrl):
14566
145672009-09-19  Benjamin Poulain  <benjamin.poulain@nokia.com>
14568
14569        Reviewed by Simon Hausmann.
14570
14571        https://bugs.webkit.org/show_bug.cgi?id=29345
14572        The tests of QWebFrame did not use QTRY_VERIFY for
14573        tests involving the event loop.
14574
14575        * tests/qwebframe/tst_qwebframe.cpp:
14576        * tests/util.h: Added. Copy of tests/shared/util.h of Qt
14577
145782009-09-19  Jakub Wieczorek  <faw217@gmail.com>
14579
14580        Reviewed by Simon Hausmann.
14581
14582        [Qt] Add an autotest stub for QWebGraphicsItem.
14583
14584        It just calls all the functions and makes sure they don't crash.
14585
14586        * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Added.
14587        * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Added.
14588        (tst_QWebGraphicsItem::qwebgraphicsitem):
14589        * tests/tests.pro:
14590
145912009-09-18  Norbert Leser  <norbert.leser@nokia.com>
14592
14593        Reviewed by Eric Seidel.
14594
14595        Corrected the Symbian specific UID3 values to be assigned
14596        from the "unprotected" pool that permits self-signing of
14597        those test and demo executables. (Added new UID3 values
14598        where they were missing for new components.)
14599
14600        * QGVLauncher/QGVLauncher.pro:
14601        * QtLauncher/QtLauncher.pro:
14602        * tests/benchmarks/loading/tst_loading.pro:
14603        * tests/benchmarks/painting/tst_painting.pro:
14604        * tests/qwebelement/qwebelement.pro:
14605        * tests/qwebframe/qwebframe.pro:
14606        * tests/qwebhistory/qwebhistory.pro:
14607        * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
14608        * tests/qwebpage/qwebpage.pro:
14609        * tests/qwebplugindatabase/qwebplugindatabase.pro:
14610        * tests/qwebview/qwebview.pro:
14611
146122009-09-17  Kenneth Rohde Christiansen  <kenneth@webkit.org>
14613
14614        Reviewed by Simon Hausmann.
14615
14616        Make PlatformWindow return something else than PlatformWidget
14617        https://bugs.webkit.org/show_bug.cgi?id=29085
14618
14619        Reflect the rename of platformWindow and it's return type.
14620
14621        * WebCoreSupport/ChromeClientQt.cpp:
14622        (WebCore::ChromeClientQt::platformPageClient):
14623        * WebCoreSupport/ChromeClientQt.h:
14624
146252009-09-18  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
14626
14627        Reviewed by Simon Hausmann.
14628
14629        [Qt] Add persistence support for configuration options in the
14630        inspector.
14631
14632        * Api/qwebinspector.cpp:
14633        * QtLauncher/main.cpp:
14634        (main):
14635        * WebCoreSupport/InspectorClientQt.cpp:
14636        (WebCore::InspectorClientQt::populateSetting):
14637        (WebCore::InspectorClientQt::storeSetting):
14638        (WebCore::variantToSetting):
14639        (WebCore::settingToVariant):
14640
146412009-09-18  Simon Hausmann  <simon.hausmann@nokia.com>
14642
14643        Reviewed by Ariya Hidayat.
14644
14645        Fixed a bunch of documentation warnings.
14646
14647        * Api/qwebgraphicsitem.cpp:
14648        * Api/qwebplugindatabase.cpp:
14649        * Api/qwebpluginfactory.cpp:
14650        * Api/qwebsecurityorigin.cpp:
14651
146522009-09-18  Warwick Allison  <warwick.allison@nokia.com>
14653
14654        Reviewed by Simon Hausmann.
14655
14656        Added a test that console output works.
14657
14658        * tests/qwebpage/tst_qwebpage.cpp:
14659        (ConsolePage::ConsolePage):
14660        (ConsolePage::javaScriptConsoleMessage):
14661        (tst_QWebPage::consoleOutput):
14662
146632009-09-17  Kenneth Rohde Christiansen  <kenneth@webkit.org>
14664
14665        Reviewed by Simon Hausmann.
14666
14667        Improve documentation for Page Cache.
14668
14669        * Api/qwebsettings.cpp:
14670
146712009-09-17  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
14672
14673        Reviewed by Simon Hausmann.
14674
14675        [Qt] Update QWebSettings::setUserStyleSheetUrl() docs and test
14676
14677        https://bugs.webkit.org/show_bug.cgi?id=29081
14678
14679        The documentation now specifies that the URL has to be a local file
14680        or a a data-URL (with utf-8 and base64-encoded data), as these are the
14681        only two schemes that the current code path accepts.
14682
14683        The auto-test has been updated to reflect this limitation.
14684
14685        At a later point we should concider adding API for the new way of
14686        doing both user defined stylesheets and scripts.
14687
14688        * Api/qwebsettings.cpp:
14689        * tests/qwebpage/tst_qwebpage.cpp:
14690
146912009-09-17  Janne Koskinen  <janne.p.koskinen@digia.com>
14692
14693        Reviewed by Simon Hausmann.
14694
14695        Symbian build fix.
14696
14697        Moved the #ifdefs around _q_cleanupLeakMessages() into the function
14698        definition.
14699
14700        QMake is not being able to distinguish between release and debug builds
14701        in Symbian build. This is a Symbian toolchain issue.
14702
14703        * Api/qwebpage.cpp:
14704        (QWebPagePrivate::_q_cleanupLeakMessages):
14705        * Api/qwebpage.h:
14706        * Api/qwebpage_p.h:
14707
147082009-09-17  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
14709
14710        Reviewed by Simon Hausmann.
14711
14712        Small cosmetic documentation fixlet in the QWebInspector.
14713
14714        * Api/qwebinspector.cpp:
14715
147162009-09-16  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
14717
14718        Reviewed by Eric Seidel.
14719
14720        Detect and add Windows7 properly to the user agent.
14721
14722        * Api/qwebpage.cpp:
14723        (QWebPage::userAgentForUrl):
14724
147252009-09-16  Andras Becsi  <andrewbecsi@yahoo.co.uk>
14726
14727        Rubberstamped by Kenneth Christiansen.
14728
14729        [Qt] Build fix for previous changes.
14730
14731        * QGVLauncher/main.cpp:
14732        (MainView::flip):
14733
147342009-09-16  Kenneth Rohde Christiansen  <kenneth@webkit.org>
14735
14736        Unreviewed potential Qt < 4.6 build fix.
14737
14738        * QGVLauncher/main.cpp:
14739        (MainView::flip):
14740
147412009-09-16  Kenneth Rohde Christiansen  <kenneth@webkit.org>
14742
14743        Reviewed by Simon Hausmann.
14744
14745        Add a "Flip effect" to our GraphicsView based launcher.
14746
14747        * QGVLauncher/main.cpp:
14748        (MainView::resizeEvent):
14749        (MainView::flip):
14750        (MainWindow::flip):
14751        (MainWindow::buildUI):
14752
147532009-09-16  Zoltan Herczeg  <zherczeg@inf.u-szeged.hu>
14754
14755        Rubber-stamped by Simon Hausmann.
14756
14757        [Qt] Typo fix. Pass the window object to the Format
14758        menu. In this way Qt can free its internal graphical
14759        objects during exit.
14760
14761        * QtLauncher/main.cpp:
14762        (MainWindow::setupUI):
14763
147642009-09-16  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
14765
14766        Reviewed by Tor Arne Vestbø.
14767
14768        [Qt] Build break fix on gcc ARM.
14769
14770        * Api/qwebgraphicsitem.cpp:
14771        (QWebGraphicsItemPrivate::_q_doLoadProgress):
14772
147732009-09-16  Warwick Allison  <warwick.allison@nokia.com>
14774
14775        Reviewed by Simon Hausmann.
14776
14777        Fix a crash in QWebFrame::hasFocus() with a simple null pointer check
14778        when the focused frame is null. We do the same check in other places
14779        where we call kit().
14780
14781        * Api/qwebframe.cpp:
14782        (QWebFrame::hasFocus):
14783
147842009-09-16  Jure Repinc  <jlp@holodeck1.com>
14785
14786        Reviewed by Simon Hausmann.
14787
14788        Fixed a typo found during translation.
14789
14790        * WebCoreSupport/FrameLoaderClientQt.cpp:
14791        (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
14792
147932009-09-14  Jakub Wieczorek  <faw217@gmail.com>
14794
14795        Reviewed by Simon Hausmann.
14796
14797        [Qt] QWebGraphicsItem should check for null QWebPage.
14798        https://bugs.webkit.org/show_bug.cgi?id=29185
14799
14800        Don't crash in QWebGraphicsItem when the page is still null, by
14801        either checking if it's the case or constructing the default one.
14802
14803        * Api/qwebgraphicsitem.cpp:
14804        (QWebGraphicsItem::icon):
14805        (QWebGraphicsItem::setZoomFactor):
14806        (QWebGraphicsItem::zoomFactor):
14807        (QWebGraphicsItem::setGeometry):
14808        (QWebGraphicsItem::load):
14809        (QWebGraphicsItem::setHtml):
14810        (QWebGraphicsItem::toHtml):
14811        (QWebGraphicsItem::setContent):
14812        (QWebGraphicsItem::history):
14813        (QWebGraphicsItem::settings):
14814
148152009-09-11  David Boddie  <dboddie@trolltech.com>
14816
14817        Reviewed by Simon Hausmann.
14818
14819        Doc: Note that Netscape plugins are only available on desktop platforms.
14820
14821        * docs/qtwebkit.qdoc:
14822
148232009-09-11  Martin Smith  <msmith@trolltech.com>
14824
14825        Reviewed by Simon Hausmann.
14826
14827        Adjust the name of the contentspage for the documentation
14828        to the new name used in Qt 4.6.
14829
14830        * docs/qtwebkit.qdoc:
14831
148322009-09-11  Ariya Hidayat  <ariya.hidayat@nokia.com>
14833
14834        Reviewed by Simon Hausmann.
14835
14836        Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general
14837        renaming.
14838
14839        * Api/qwebpluginfactory.cpp:
14840        * docs/webkitsnippets/simple/main.cpp:
14841        (main):
14842        * docs/webkitsnippets/webpage/main.cpp:
14843        (main):
14844
148452009-09-11  Volker Hilsheimer  <volker.hilsheimer@nokia.com>
14846
14847        Reviewed by Simon Hausmann.
14848
14849        Restructure the documentation, both on a file and on a content level.
14850
14851        * Api/qwebdatabase.cpp:
14852        * Api/qwebelement.cpp:
14853        * Api/qwebframe.cpp:
14854        * Api/qwebhistory.cpp:
14855        * Api/qwebhistoryinterface.cpp:
14856        * Api/qwebpage.cpp:
14857        * Api/qwebpluginfactory.cpp:
14858        * Api/qwebsecurityorigin.cpp:
14859        * Api/qwebsettings.cpp:
14860        * Api/qwebview.cpp:
14861        * docs/qtwebkit.qdoc:
14862
148632009-09-11  Yongjun Zhang  <yongjun.zhang@nokia.com>
14864
14865        Reviewed by Simon Hausmann.
14866
14867        https://bugs.webkit.org/show_bug.cgi?id=29136
14868        [Qt] emit microFocusChanged() signal when no QWidget-based view is present.
14869
14870        emit microFocusChange() signal regardless of view.
14871
14872        * WebCoreSupport/EditorClientQt.cpp:
14873        (WebCore::EditorClientQt::setInputMethodState):
14874
148752009-09-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
14876
14877        Reviewed by Simon Hausmann.
14878
14879        https://bugs.webkit.org/show_bug.cgi?id=28806
14880
14881        [Qt] Make the WebInspector available as a QWidget.
14882
14883        * Api/headers.pri:
14884        * Api/qwebelement.cpp:
14885        (QWebElement::enclosingElement):
14886        * Api/qwebelement.h:
14887        * Api/qwebinspector.cpp: Added.
14888        * Api/qwebinspector.h: Added.
14889        * Api/qwebinspector_p.h: Added.
14890        * Api/qwebpage.cpp:
14891        (QWebPagePrivate::QWebPagePrivate):
14892        (QWebPagePrivate::setInspector):
14893        (QWebPagePrivate::getOrCreateInspector):
14894        (QWebPagePrivate::inspectorController):
14895        (QWebPage::~QWebPage):
14896        (QWebPage::triggerAction):
14897        * Api/qwebpage.h:
14898        * Api/qwebpage_p.h:
14899        * Api/qwebsettings.cpp:
14900        * QtLauncher/main.cpp:
14901        (MainWindow::MainWindow):
14902        * WebCoreSupport/InspectorClientQt.cpp:
14903        (WebCore::InspectorClientWebPage::InspectorClientWebPage):
14904        (WebCore::InspectorClientWebPage::createWindow):
14905        (WebCore::InspectorClientQt::createPage):
14906        (WebCore::InspectorClientQt::showWindow):
14907        (WebCore::InspectorClientQt::closeWindow):
14908        (WebCore::InspectorClientQt::attachWindow):
14909        (WebCore::InspectorClientQt::detachWindow):
14910        (WebCore::InspectorClientQt::updateWindowTitle):
14911        * WebCoreSupport/InspectorClientQt.h:
14912        * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: Added.
14913
149142009-09-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
14915
14916        Reviewed by Eric Seidel.
14917
14918        [Qt] Fix comparison between signed and unsigned integer warnings
14919        https://bugs.webkit.org/show_bug.cgi?id=29162
14920
14921        No functional change.
14922
14923        * Api/qwebelement.cpp:
14924        (QWebElement::findAll):
14925        * Api/qwebhistory.cpp:
14926        (QWebHistory::items):
14927        (QWebHistory::backItems):
14928        (QWebHistory::forwardItems):
14929        (QWebHistory::saveState):
14930        * Api/qwebplugindatabase.cpp:
14931        (QWebPluginDatabase::setSearchPaths):
14932        * WebCoreSupport/ChromeClientQt.cpp:
14933        (WebCore::ChromeClientQt::runOpenPanel):
14934        * WebCoreSupport/FrameLoaderClientQt.cpp:
14935        (WebCore::FrameLoaderClientQt::createPlugin):
14936
149372009-09-10  Simon Hausmann  <hausmann@webkit.org>
14938
14939        Rubber-stamped by Ariya Hidayat.
14940
14941        Fix a bunch of qdoc warnings: Invalid references, non-standard
14942        wording, etc.
14943
14944        * Api/qwebelement.cpp:
14945        * Api/qwebgraphicsitem.cpp:
14946        * Api/qwebsecurityorigin.cpp:
14947
149482009-09-10  Simon Hausmann  <hausmann@webkit.org>
14949
14950        Reviewed by Ariya Hidayat.
14951
14952        Fix context menu event delivery with QWebGraphicsItem.
14953
14954        Re-implement the correct context menu virtual function using
14955        a QGraphicsSceneContextMenuEvent and forward & handle it in
14956        QWebPage.
14957
14958        * Api/qwebgraphicsitem.cpp:
14959        (QWebGraphicsItem::contextMenuEvent):
14960        * Api/qwebgraphicsitem.h:
14961        * Api/qwebpage.cpp:
14962        (QWebPagePrivate::contextMenuEvent):
14963        (QWebPage::event):
14964        * Api/qwebpage_p.h:
14965
149662009-09-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
14967
14968        Unreviewed.
14969
14970        Build fix for QtWebKit for Mac after r48219.
14971
14972        qevent and qstyleoption are QtGui interfaces.
14973
14974        * Api/qwebgraphicsitem.cpp:
14975        * Api/qwebgraphicsitem.h:
14976
149772009-09-09  Simon Hausmann  <hausmann@webkit.org>
14978
14979        Reviewed by Tor Arne Vestbø.
14980
14981        Call the right base class function QGraphicsWidget::event() instead
14982        of skipping it and using QObject::event() instead.
14983
14984        * Api/qwebgraphicsitem.cpp:
14985        (QWebGraphicsItem::event):
14986
149872009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>
14988
14989        Unreviewed.
14990
14991        Fix comment at Tor Arne Vestbø's request.
14992
14993        * Api/qwebgraphicsitem.cpp:
14994        (QWebGraphicsItem::sceneEvent):
14995        (QWebGraphicsItem::event):
14996
149972009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>
14998
14999        Reviewed by Tor Arne Vestbø.
15000
15001        Implement some virtual event methods so that we can fix
15002        event-related bugs in Qt patch releases.
15003
15004        * Api/qwebgraphicsitem.cpp:
15005        (QWebGraphicsItem::sceneEvent):
15006        (QWebGraphicsItem::event):
15007        * Api/qwebgraphicsitem.h:
15008
150092009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>, Antonio Gomes  <antonio.gomes@openbossa.org>
15010
15011        Reviewed by Simon Hausmann.
15012
15013        Add a new QGraphicsWidget based version of the "QWebView"
15014        under the name "QWebGraphicsItem".
15015
15016        https://bugs.webkit.org/show_bug.cgi?id=28862
15017
15018        Includes an alternative Qt launcher using the QGraphicsView.
15019
15020        * Api/headers.pri:
15021        * Api/qwebgraphicsitem.cpp: Added.
15022        * Api/qwebgraphicsitem.h: Added.
15023        * Api/qwebpage.h:
15024        * QGVLauncher/QGVLauncher.pro: Copied from WebKit/qt/QtLauncher/QtLauncher.pro.
15025        * QGVLauncher/main.cpp: Added.
15026        * WebCoreSupport/ChromeClientQt.cpp:
15027        (WebCore::ChromeClientQt::repaint):
15028        (WebCore::ChromeClientQt::scroll):
15029
150302009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
15031
15032        Unreviewed build fix.
15033
15034        Potential build fix for Qt 4.5
15035
15036        * Api/qwebpage.cpp:
15037        (QWebPagePrivate::mousePressEvent):
15038
150392009-09-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
15040
15041        Reviewed by Simon Hausmann.
15042
15043        https://bugs.webkit.org/show_bug.cgi?id=29007
15044        Add a test for the signal QWebFrame::javaScriptWindowObjectCleared()
15045
15046        * tests/qwebframe/tst_qwebframe.cpp:
15047
150482009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
15049
15050        Reviewed by Simon Hausmann.
15051
15052        [Qt] Fix unused variable warnings
15053        https://bugs.webkit.org/show_bug.cgi?id=29018
15054
15055        * Api/qwebpage.cpp:
15056        (QWebPagePrivate::keyPressEvent):
15057        * WebCoreSupport/FrameLoaderClientQt.cpp:
15058        (WebCore::FrameLoaderClientQt::startDownload):
15059        (WebCore::FrameLoaderClientQt::createFrame):
15060
150612009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
15062
15063        Reviewed by Ariya Hidayat.
15064
15065        [Qt] Use the declaration order in initializer lists
15066        https://bugs.webkit.org/show_bug.cgi?id=29017
15067
15068        * Api/qwebframe_p.h:
15069
150702009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
15071
15072        Reviewed by Simon Hausmann.
15073
15074        Add support for handling QGraphicsScene events.
15075
15076        * Api/qwebpage.cpp:
15077        (QWebPagePrivate::mouseMoveEvent):
15078        (QWebPagePrivate::mousePressEvent):
15079        (QWebPagePrivate::mouseDoubleClickEvent):
15080        (QWebPagePrivate::mouseTripleClickEvent):
15081        (QWebPagePrivate::handleClipboard):
15082        (QWebPagePrivate::mouseReleaseEvent):
15083        (QWebPagePrivate::wheelEvent):
15084        (QWebPagePrivate::dragEnterEvent):
15085        (QWebPagePrivate::dragLeaveEvent):
15086        (QWebPagePrivate::dragMoveEvent):
15087        (QWebPagePrivate::dropEvent):
15088        (QWebPage::event):
15089        * Api/qwebpage_p.h:
15090
150912009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
15092
15093        Reviewed by Simon Hausmann.
15094
15095        [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
15096        https://bugs.webkit.org/show_bug.cgi?id=28865
15097
15098        Clean up the unserCursor hack to use the QCursor set
15099        as a property of the QWidget by WebCore::WidgetQt.
15100
15101        Remove all code that are no longer necessary for getting
15102        cursor change events.
15103
15104        Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
15105                 Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07
15106
15107        * Api/qwebpage.cpp:
15108        * Api/qwebpage_p.h:
15109        * Api/qwebview.cpp:
15110        (QWebViewPrivate::QWebViewPrivate):
15111        (QWebView::event):
15112
151132009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
15114
15115        Reviewed by Simon Hausmann.
15116
15117        [Qt] QtWebKit single API to enable persistency
15118        https://bugs.webkit.org/show_bug.cgi?id=28682
15119
15120        Disable LocalStorage, ApplicationCache, HTML5 offline storage by
15121        default.
15122
15123        If persistency is enabled the default directory for LocalStorage and
15124        ApplicationCache is now based on QDesktopServices::DataLocation and not
15125        QDesktopServices::CacheLocation (as it is expected to keep this data
15126        around after a reboot).
15127
15128        If persistency is enabled initialize HTML5 offline storage as well - this
15129        fixed offline Storage for QtLauncher.
15130
15131        * Api/qwebpage.cpp:
15132        (QWebPagePrivate::QWebPagePrivate):
15133        * Api/qwebsettings.cpp:
15134        (QWebSettings::QWebSettings):
15135        (QWebSettings::enablePersistentStorage):
15136        * Api/qwebsettings.h: Add a new API called enablePersistentStorage
15137        * QtLauncher/main.cpp: Use the new enablePersistentStorage API
15138        (main):
15139
151402009-09-07  Jakub Wieczorek  <faw217@gmail.com>
15141
15142        Reviewed by Simon Hausmann.
15143
15144        Speed up the QWebPluginInfo::supportsMimeType() function.
15145        https://bugs.webkit.org/show_bug.cgi?id=27651
15146
15147        Instead of going through the MIME types list constructed with
15148        mimeTypes() function, look up the internal mimeToDescriptions map.
15149
15150        * Api/qwebplugindatabase.cpp:
15151        (QWebPluginInfo::supportsMimeType):
15152
151532009-09-07  Jakub Wieczorek  <faw217@gmail.com>
15154
15155        Reviewed by Simon Hausmann.
15156
15157        Speed up the QWebPluginInfo::mimeTypes() function.
15158        https://bugs.webkit.org/show_bug.cgi?id=27651
15159
15160        Instead of constructing a list of MIME types every time it is called,
15161        do this only once.
15162
15163        * Api/qwebplugindatabase.cpp:
15164        (QWebPluginInfo::mimeTypes):
15165        (QWebPluginInfo::operator=):
15166        * Api/qwebplugindatabase.h:
15167        * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
15168        (tst_QWebPluginDatabase::operatorassign_data):
15169        (tst_QWebPluginDatabase::operatorassign):
15170
151712009-09-07  Jakub Wieczorek  <faw217@gmail.com>
15172
15173        Reviewed by Simon Hausmann.
15174
15175        Remove the private classes from QWebPluginDatabase.
15176        https://bugs.webkit.org/show_bug.cgi?id=27651
15177
15178        Instead, hold the PluginDatabase and PluginPackage objects as class
15179        members and take care of refcounting on our own instead of using RefPtr.
15180
15181        This way we not only made the code cleaner but also got rid of
15182        redundant allocations when constructing null QWebPluginInfo objects.
15183
15184        The private classes have been forward-declared and the d-pointers left
15185        to be on the safe side.
15186
15187        * Api/qwebplugindatabase.cpp:
15188        (QWebPluginInfo::QWebPluginInfo):
15189        (QWebPluginInfo::~QWebPluginInfo):
15190        (QWebPluginInfo::name):
15191        (QWebPluginInfo::description):
15192        (QWebPluginInfo::mimeTypes):
15193        (QWebPluginInfo::path):
15194        (QWebPluginInfo::isNull):
15195        (QWebPluginInfo::setEnabled):
15196        (QWebPluginInfo::isEnabled):
15197        (QWebPluginInfo::operator==):
15198        (QWebPluginInfo::operator!=):
15199        (QWebPluginInfo::operator=):
15200        (QWebPluginDatabase::QWebPluginDatabase):
15201        (QWebPluginDatabase::~QWebPluginDatabase):
15202        (QWebPluginDatabase::plugins):
15203        (QWebPluginDatabase::searchPaths):
15204        (QWebPluginDatabase::setSearchPaths):
15205        (QWebPluginDatabase::addSearchPath):
15206        (QWebPluginDatabase::refresh):
15207        (QWebPluginDatabase::pluginForMimeType):
15208        (QWebPluginDatabase::setPreferredPluginForMimeType):
15209        * Api/qwebplugindatabase.h:
15210        * Api/qwebplugindatabase_p.h: Removed.
15211
152122009-09-05  Jakub Wieczorek  <faw217@gmail.com>
15213
15214        Reviewed by Eric Seidel.
15215
15216        [Qt] r47424 broke binary compatibility
15217        https://bugs.webkit.org/show_bug.cgi?id=28996
15218
15219        Append the new DnsPrefetchEnabled attribute at the end of the enum.
15220
15221        * Api/qwebsettings.h:
15222
152232009-09-04  Mark Mentovai  <mark@chromium.org>
15224
15225        Reviewed by Dave Hyatt.
15226
15227        https://bugs.webkit.org/show_bug.cgi?id=28614
15228
15229        Account for scrollbar state changes that occur during layout.
15230
15231        * Api/qwebframe.cpp:
15232        (QWebFrame::setScrollBarPolicy):
15233
15234        Eliminate duplicated (and incorrect) scrollbar mode tracking between
15235        FrameView and ScrollView.
15236
152372009-09-04  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
15238
15239        Reviewed by Eric Seidel.
15240
15241        [Qt] Fix tst_QWebPage::database autotest failure
15242        https://bugs.webkit.org/show_bug.cgi?id=28961
15243
15244        Make sure that the test case enables the feature before
15245        the feature gets tested
15246
15247        * tests/qwebpage/tst_qwebpage.cpp:
15248        (tst_QWebPage::database):
15249
152502009-09-04  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
15251
15252        Reviewed by Eric Seidel.
15253
15254        Any QtWebKit application crashes on exit if the inspector is
15255        used during the session rather then exiting.
15256
15257        If a QWebView has a QWebPage that is destroyed the QWebView
15258        does not update its pointer and will crash the next time
15259        it access the page pointers (such as in its destructor).
15260
15261        InspectorClientView should not call deleteLater when the page
15262        is destroyed because it does not have a parent and is a top
15263        level widget.  close() needs to be called so that QApplication
15264        can exit the application if quitOnLastWindowClosed is set
15265        and a InspectorClientView is the last window, otherwise
15266        the application will never exit.
15267
15268        * Api/qwebview.cpp:
15269        (QWebViewPrivate::_q_pageDestroyed):
15270        (QWebView::setPage):
15271        * Api/qwebview.h:
15272        * WebCoreSupport/InspectorClientQt.cpp:
15273        (WebCore::InspectorClientView::InspectorClientView):
15274
152752009-09-03  Adam Barth  <abarth@webkit.org>
15276
15277        Reviewed by eric@webkit.org.
15278
15279        https://bugs.webkit.org/show_bug.cgi?id=24696
15280
15281        Stub implementations of mixed content methods of FrameLoaderClient.
15282
15283        * WebCoreSupport/FrameLoaderClientQt.cpp:
15284        (WebCore::FrameLoaderClientQt::didDisplayInsecureContent):
15285        (WebCore::FrameLoaderClientQt::didRunInsecureContent):
15286        * WebCoreSupport/FrameLoaderClientQt.h:
15287
152882009-09-03  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
15289
15290        Reviewed by Eric Seidel.
15291
15292        [Qt] Add a setting to turn SessionStorage on/off
15293        https://bugs.webkit.org/show_bug.cgi?id=28836
15294
15295        * Api/qwebsettings.cpp:
15296        (QWebSettingsPrivate::apply):
15297        (QWebSettings::QWebSettings):
15298        * Api/qwebsettings.h:
15299        * tests/qwebpage/tst_qwebpage.cpp:
15300        (testFlag):
15301        (tst_QWebPage::testOptionalJSObjects):
15302
153032009-09-02  Richard Moore  <rich@kde.org>
15304
15305        Reviewed by Tor Arne Vestbø.
15306
15307        [Qt] Make sure we relayout the page after evaluating JS
15308
15309        https://bugs.webkit.org/show_bug.cgi?id=28235
15310
15311        QtWebKit does not always seem to reflow the page when evaluating
15312        javascript. This patch changes the way evaluateJavaScript works to
15313        use the frameloader which ensures that this is done properly.
15314
15315        * Api/qwebframe.cpp:
15316        (QWebFrame::evaluateJavaScript):
15317        * tests/qwebframe/tst_qwebframe.cpp:
15318
153192009-08-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
15320
15321        Reviewed by Holger Freyther.
15322
15323        https://bugs.webkit.org/show_bug.cgi?id=25889
15324        [GTK] scrollbar policy for main frame is not implementable
15325
15326        Add empty implementation for new ChromeClient method.
15327
15328        * WebCoreSupport/ChromeClientQt.h:
15329        (WebCore::ChromeClientQt::scrollbarsModeDidChange):
15330
153312009-08-27  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
15332
15333        Reviewed by Ariya Hidayat.
15334
15335        QWebHistory::clear() modifications.
15336
15337        Clear() method was changed. If QWebHistory is empty (there is no
15338        elements even current) clear() do nothing. If there at least one
15339        element clear() will delete everything apart of current.
15340
15341        New autotests in QWebHistory
15342
15343        New autotests were added to QWebHistory. They should check some crashes
15344        in save and restore state process and clear() method and general
15345        behavior on where QWebHistory::count() == 0 or QWebHistory::count() == 1
15346
15347        Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=28711
15348
15349        * Api/qwebhistory.cpp:
15350        (QWebHistory::clear):
15351        * tests/qwebhistory/tst_qwebhistory.cpp:
15352        (tst_QWebHistory::back):
15353        (tst_QWebHistory::forward):
15354        (tst_QWebHistory::saveAndRestore_crash_1):
15355        (tst_QWebHistory::saveAndRestore_crash_2):
15356        (tst_QWebHistory::saveAndRestore_crash_3):
15357        (tst_QWebHistory::clear):
15358
153592009-08-27  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
15360
15361        Reviewed by Ariya Hidayat.
15362
15363        [Qt] Cleanup, old and commented part of source code was removed.
15364        Fix some formatting problems.
15365
15366        https://bugs.webkit.org/show_bug.cgi?id=28712
15367
15368        * Api/qwebhistory_p.h:
15369        (QWebHistoryPrivate::QWebHistoryPrivate):
15370
153712009-08-26  Adam Barth  <abarth@webkit.org>
15372
15373        Reviewed by Oliver Hunt.
15374
15375        Don't let local files access web URLs
15376        https://bugs.webkit.org/show_bug.cgi?id=28480
15377
15378        * Api/qwebsettings.cpp:
15379        (QWebSettings::QWebSettings):
15380
153812009-08-25  Antonio Gomes   <antonio.gomes@openbossa.org>
15382
15383        Reviewed by Ariya Hidayat.
15384
15385        Bug 28708 - Make possible to better use ResourceError in FrameLoaderClientQt class.
15386
15387        * Api/qwebframe.cpp:
15388        (QWebFrame::requestedUrl):
15389        * WebCoreSupport/FrameLoaderClientQt.cpp:
15390        (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
15391        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
15392        (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
15393        (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
15394        (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
15395        * WebCoreSupport/FrameLoaderClientQt.h:
15396
153972009-08-22  Adam Barth  <abarth@webkit.org>
15398
15399        Revert 47684.  We're going to do this later once clients have had a
15400        chance to opt into the setting they like.
15401
15402        * Api/qwebsettings.cpp:
15403        (QWebSettings::QWebSettings):
15404
154052009-08-22  Adam Barth  <abarth@webkit.org>
15406
15407        Reviewed by Eric Seidel.
15408
15409        Don't let local files access web URLs
15410        https://bugs.webkit.org/show_bug.cgi?id=28480
15411
15412        * Api/qwebsettings.cpp:
15413        (QWebSettings::QWebSettings):
15414
154152009-08-19  Aaron Boodman  <aa@chromium.org>
15416
15417        Speculative build break fix for qt.
15418
15419        * Api/qwebsecurityorigin.cpp:
15420        (QWebSecurityOrigin::whiteListAccessFromOrigin):
15421        * Api/qwebsecurityorigin.h:
15422
154232009-08-19  Aaron Boodman  <aa@chromium.org>
15424
15425        Reviewed by David Levin.
15426
15427        https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
15428        specify a more granular policy for cross-origin XHR access.
15429
15430        * Api/qwebsecurityorigin.cpp: Add API to manipulate origin access whitelists.
15431        (QWebSecurityOrigin::whiteListAccessFromOrigin): Ditto.
15432        (QWebSecurityOrigin::resetOriginAccessWhiteLists): Ditto.
15433        * Api/qwebsecurityorigin.h: Ditto.
15434
154352009-08-18  Markus Goetz <Markus.Goetz@nokia.com>
15436
15437        Reviwed by Ariya Hidayat.
15438
15439        [Qt] For prefecthDNS, the pre-fetching has to be enabled in the
15440        WebSettings.
15441
15442        * Api/qwebsettings.cpp:
15443        (QWebSettings::QWebSettings):
15444        * Api/qwebsettings.h:
15445
154462009-08-17  Darin Adler  <darin@apple.com>
15447
15448        Try to fix Qt build again.
15449
15450        * WebCoreSupport/EditorClientQt.cpp: Move "using namespace".
15451
154522009-08-17  Darin Adler  <darin@apple.com>
15453
15454        Try to fix Qt build.
15455
15456        * WebCoreSupport/EditorClientQt.cpp:
15457        (WebCore::EditorClientQt::shouldShowDeleteInterface):
15458        Use getAttribute(classAttr) instead of className() function.
15459
154602009-08-14  Yongjun Zhang  <yongjun.zhang@nokia.com>
15461
15462        Reviewed by Simon Hausmann.
15463
15464        RVCT elftran fails to resolve QPainter::staticMetaObject coming with
15465        QWebView::RenderHints property.
15466
15467        This is a temporary fix and will be revereted when the right symbols
15468        exported from Qt lib in S60.
15469
15470        https://bugs.webkit.org/show_bug.cgi?id=28181
15471
15472        * Api/qwebview.h:
15473
154742009-08-14  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
15475
15476        Reviewed by Simon Hausmann.
15477
15478        [Qt] Public API to configure the storage path for HTML5 localStorage
15479        https://bugs.webkit.org/show_bug.cgi?id=28036
15480
15481        Disables LocalStorage for QtWebKit by default by setting
15482        QWebSettings::LocalStorageEnabled to false.
15483
15484        Sets up a default for the LocalStorage path so that clients would only
15485        need to enable the LocalStorageEnabled setting to turn on LocalStoragre
15486        support.
15487
15488        Turn on LocalStorage support for QtLauncher and the relevant test
15489        since LocalStorage is now disabled by default for QtWebkit.
15490
15491        * Api/qwebpage.cpp:
15492        (defaultCachePath):
15493        (initializeApplicationCachePathIfNecessary):
15494        (QWebPagePrivate::QWebPagePrivate):
15495        * Api/qwebsettings.cpp:
15496        (QWebSettingsPrivate::apply):
15497        (QWebSettings::QWebSettings):
15498        (QWebSettings::setLocalStoragePath):
15499        (QWebSettings::localStoragePath):
15500        * Api/qwebsettings.h:
15501        * QtLauncher/main.cpp:
15502        (main):
15503        * tests/qwebpage/tst_qwebpage.cpp:
15504        (tst_QWebPage::multiplePageGroupsAndLocalStorage):
15505
155062009-08-14  Yael Aharon  <yael.aharon@nokia.com>
15507
15508        Reviewed by Simon Hausmann.
15509
15510        [Qt] Allow applications to register their own local URL scheme.
15511        https://bugs.webkit.org/show_bug.cgi?id=28240
15512
15513        * Api/qwebsecurityorigin.cpp:
15514        (QWebSecurityOrigin::addLocalScheme):
15515        (QWebSecurityOrigin::removeLocalScheme):
15516        (QWebSecurityOrigin::localSchemes):
15517        * Api/qwebsecurityorigin.h:
15518        * tests/qwebpage/tst_qwebpage.cpp:
15519        (tst_QWebPage::localURLSchemes):
15520
155212009-08-13  Mark Rowe  <mrowe@apple.com>
15522
15523        Try and fix the Qt build.
15524
15525        * Api/qwebelement.cpp:
15526
155272009-08-13  Kavindra Devi Palaraja  <kavindra.palaraja@nokia.com>
15528
15529        Reviewed by Simon Hausmann.
15530
15531        Doc - Some cleanup on the documentation of QWebElement
15532
15533        * Api/qwebelement.cpp:
15534
155352009-08-13  Norbert Leser  <norbert.leser@nokia.com>
15536
15537        Reviewed by Simon Hausmann.
15538
15539        Symbian target components (library and executable files)
15540        require Unique Identifiers (i.e., UID3).
15541        These identifiers are defined in the respective project
15542        files, conditionally for "symbian" platform.
15543
15544        * QtLauncher/QtLauncher.pro:
15545        * tests/qwebelement/qwebelement.pro:
15546        * tests/qwebframe/qwebframe.pro:
15547        * tests/qwebhistory/qwebhistory.pro:
15548        * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
15549        * tests/qwebpage/qwebpage.pro:
15550        * tests/qwebview/qwebview.pro:
15551
155522009-08-12  George Wright  <george.wright@torchmobile.com>
15553
15554        Reviewed by Adam Treat.
15555
15556        Initialise zoom levels independent of whether a URL is valid or not to
15557        fix https://bugs.webkit.org/show_bug.cgi?id=28162
15558
15559        * QtLauncher/main.cpp:
15560        (MainWindow::MainWindow):
15561
155622009-08-12  Joerg Bornemann  <joerg.bornemann@trolltech.com>
15563
15564        Reviewed by Simon Hausmann.
15565
15566        QtWebKit compile fix for Windows CE
15567
15568        There's no getenv on Windows CE, use qgetenv instead.
15569
15570        * Api/qwebpage.cpp:
15571        (qt_drt_overwritePluginDirectories):
15572
155732009-08-10  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
15574
15575        Reviewed by Simon Hausmann.
15576
15577        Various fixes and improvements to the QWebPluginInfo, QWebPluginDatabase and QWebSettings documentation.
15578
15579        * Api/qwebplugindatabase.cpp:
15580        * Api/qwebsettings.cpp:
15581
155822009-08-08  Volker Hilsheimer  <volker.hilsheimer@nokia.com>
15583
15584        Reviewed by Simon Hausmann.
15585
15586        Doc: there is no group of explicitly shared classes, only one class uses this.
15587
15588        Explain the implications in the QWebHistoryItem documentation, and get rid
15589        of the "group".
15590
15591        * Api/qwebhistory.cpp:
15592
155932009-08-05  Csaba Osztrogonac  <oszi@inf.u-szeged.hu>
15594
15595        Reviewed by Simon Hausmann.
15596
15597        [Qt] Fix build error caused by http://trac.webkit.org/changeset/46763
15598
15599        * Api/qwebpluginfactory.h: Export macro added.
15600
156012009-08-04  Antonio Gomes   <antonio.gomes@openbossa.org>
15602
15603        Reviewed by Simon Hausmann.
15604
15605        [Qt] QWebFrame::requestedUrl method can mis-behave in case of unhandled sslErrors.
15606        https://bugs.webkit.org/show_bug.cgi?id=27804
15607
15608        * Api/qwebframe.cpp:
15609        (QWebFrame::requestedUrl):
15610        * tests/qwebframe/tst_qwebframe.cpp:
15611
156122009-08-04  Simon Hausmann  <simon.hausmann@nokia.com>
15613
15614        Reviewed by Tor Arne Vestbø.
15615
15616        Rename QWebPlugin to QWebPluginInfo, as discussed on IRC.
15617
15618        * Api/qwebplugindatabase.cpp:
15619        (QWebPluginInfoPrivate::QWebPluginInfoPrivate):
15620        (QWebPluginInfo::QWebPluginInfo):
15621        (QWebPluginInfo::~QWebPluginInfo):
15622        (QWebPluginInfo::name):
15623        (QWebPluginInfo::description):
15624        (QWebPluginInfo::mimeTypes):
15625        (QWebPluginInfo::supportsMimeType):
15626        (QWebPluginInfo::path):
15627        (QWebPluginInfo::isNull):
15628        (QWebPluginInfo::setEnabled):
15629        (QWebPluginInfo::isEnabled):
15630        (QWebPluginInfo::operator==):
15631        (QWebPluginInfo::operator!=):
15632        (QWebPluginInfo::operator=):
15633        (QWebPluginDatabase::plugins):
15634        (QWebPluginDatabase::pluginForMimeType):
15635        (QWebPluginDatabase::setPreferredPluginForMimeType):
15636        * Api/qwebplugindatabase.h:
15637        * Api/qwebplugindatabase_p.h:
15638        * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
15639        (tst_QWebPluginDatabase::installedPlugins):
15640        (tst_QWebPluginDatabase::searchPaths):
15641        (tst_QWebPluginDatabase::null_data):
15642        (tst_QWebPluginDatabase::null):
15643        (tst_QWebPluginDatabase::pluginForMimeType):
15644        (tst_QWebPluginDatabase::enabled):
15645        (tst_QWebPluginDatabase::operatorequal_data):
15646        (tst_QWebPluginDatabase::operatorequal):
15647        (tst_QWebPluginDatabase::preferredPlugin):
15648
156492009-08-04  Simon Hausmann  <simon.hausmann@nokia.com>
15650
15651        Reviewed by Adam Treat.
15652
15653        Replace QWebPlugin::MimeType with a typedef to
15654        QWebPluginFactory::MimeType.
15655
15656        * Api/qwebplugindatabase.cpp:
15657        * Api/qwebplugindatabase.h:
15658        * Api/qwebpluginfactory.cpp:
15659        (QWebPluginFactory::MimeType::operator==):
15660        * Api/qwebpluginfactory.h:
15661
156622009-08-04  Jakub Wieczorek  <faw217@gmail.com>
15663
15664        Reviewed by Simon Hausmann.
15665
15666        Add QWebPluginDatabase API to the Qt API.
15667
15668        https://bugs.webkit.org/show_bug.cgi?id=27651
15669
15670        * Api/headers.pri:
15671        * Api/qwebplugindatabase.cpp: Added.
15672        (QWebPluginPrivate::QWebPluginPrivate):
15673        (QWebPluginDatabasePrivate::QWebPluginDatabasePrivate):
15674        (QWebPlugin::MimeType::operator==):
15675        (QWebPlugin::QWebPlugin):
15676        (QWebPlugin::~QWebPlugin):
15677        (QWebPlugin::name):
15678        (QWebPlugin::description):
15679        (QWebPlugin::mimeTypes):
15680        (QWebPlugin::supportsMimeType):
15681        (QWebPlugin::path):
15682        (QWebPlugin::isNull):
15683        (QWebPlugin::setEnabled):
15684        (QWebPlugin::isEnabled):
15685        (QWebPlugin::operator==):
15686        (QWebPlugin::operator!=):
15687        (QWebPlugin::operator=):
15688        (QWebPluginDatabase::QWebPluginDatabase):
15689        (QWebPluginDatabase::~QWebPluginDatabase):
15690        (QWebPluginDatabase::plugins):
15691        (QWebPluginDatabase::defaultSearchPaths):
15692        (QWebPluginDatabase::searchPaths):
15693        (QWebPluginDatabase::setSearchPaths):
15694        (QWebPluginDatabase::addSearchPath):
15695        (QWebPluginDatabase::refresh):
15696        (QWebPluginDatabase::pluginForMimeType):
15697        (QWebPluginDatabase::setPreferredPluginForMimeType):
15698        * Api/qwebplugindatabase.h: Added.
15699        * Api/qwebplugindatabase_p.h: Added.
15700        * Api/qwebsettings.cpp:
15701        (QWebSettings::pluginDatabase):
15702        * Api/qwebsettings.h:
15703        * tests/qwebplugindatabase/qwebplugindatabase.pro: Added.
15704        * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp: Added.
15705        (tst_QWebPluginDatabase::installedPlugins):
15706        (tst_QWebPluginDatabase::searchPaths):
15707        (tst_QWebPluginDatabase::null_data):
15708        (tst_QWebPluginDatabase::null):
15709        (tst_QWebPluginDatabase::pluginForMimeType):
15710        (tst_QWebPluginDatabase::enabled):
15711        (tst_QWebPluginDatabase::operatorequal_data):
15712        (tst_QWebPluginDatabase::operatorequal):
15713        (tst_QWebPluginDatabase::preferredPlugin):
15714        * tests/tests.pro:
15715
157162009-08-03  Balazs Kelemen  <kelemen.balazs.3@stud.u-szeged.hu>
15717
15718        Reviewed by Simon Hausmann.
15719
15720        Do memory cleanup when running robotized QtLauncher in debug as well.
15721
15722        * QtLauncher/main.cpp:
15723        (launcherMain):
15724        (main):
15725
157262009-07-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
15727
15728        Reviewed by Tor Arne Vestbø.
15729
15730        [Qt] Initialize HTML5 Application Cache for QtWebKit to a sensible default
15731        https://bugs.webkit.org/show_bug.cgi?id=27866
15732
15733        * Api/qwebpage.cpp:
15734        (initializeApplicationCachePathIfNecessary):
15735        (QWebPagePrivate::QWebPagePrivate):
15736
157372009-07-31  Jakob Petsovits  <jakob.petsovits@torchmobile.com>
15738
15739        Reviewed by Adam Treat.
15740
15741        Build QtWebKit without benchmark tests for Qt < 4.5.
15742        https://bugs.webkit.org/show_bug.cgi?id=27886
15743
15744        The QBENCHMARK macro is only available from 4.5 on,
15745        so builds for Qt < 4.5 shouldn't try to build those.
15746
15747        * tests/tests.pro:
15748
157492009-07-31  Kenneth Rohde Christiansen  <kenneth@webkit.org>
15750
15751        Reviewed by Adam Treat.
15752
15753        Fix warning by migrating use of QString.sprintf(...) to
15754        QString.arg().arg()...
15755
15756        * WebCoreSupport/EditorClientQt.cpp:
15757        (dumpRange):
15758
157592009-07-31  Kenneth Rohde Christiansen  <kenneth@webkit.org>
15760
15761        Reviewed by Tor Arne Vestbø.
15762
15763        Expose the Offline Web Application Cache in the Qt API.
15764
15765        * Api/qwebsettings.cpp:
15766        (QWebSettings::QWebSettings):
15767        (QWebSettings::setOfflineWebApplicationCachePath):
15768        (QWebSettings::offlineWebApplicationCachePath):
15769        (QWebSettings::setOfflineWebApplicationCacheQuota):
15770        (QWebSettings::offlineWebApplicationCacheQuota):
15771        * Api/qwebsettings.h:
15772
157732009-07-30  Kenneth Rohde Christiansen  <kenneth@webkit.org>
15774
15775        Reviewed by Adam Treat.
15776
15777        Add missing Q_OBJECT to class inheriting from QObject.
15778
15779        * tests/qwebframe/tst_qwebframe.cpp:
15780
157812009-07-30  Kenneth Rohde Christiansen  <kenneth@webkit.org>
15782
15783        Reviewed by Adam Treat.
15784
15785        Fix indentation.
15786
15787        * tests/qwebframe/tst_qwebframe.cpp:
15788
157892009-07-30  Volker Hilsheimer <volker.hilsheimer@nokia.com>
15790
15791        Reviewed by Simon Hausmann.
15792
15793        Fix documentation links to examples.
15794
15795        * Api/qwebview.cpp:
15796
157972009-07-30  Balazs Kelemen  <kelemen.balazs.3@stud.u-szeged.hu>
15798
15799        Reviewed by Simon Hausmann.
15800
15801        Allocate MainWindow on heap in robotized QtLauncher as well.
15802
15803        * QtLauncher/main.cpp:
15804        (main):
15805
158062009-07-29  Kevin McCullough  <kmccullough@apple.com>
15807
15808        Reviewed by Darin Adler.
15809
15810        Added foundation work to allow a testing infrastructure for the Web
15811        Inspector.
15812
15813        * WebCoreSupport/InspectorClientQt.cpp:
15814        (WebCore::InspectorClientQt::inspectorWindowObjectCleared):
15815        * WebCoreSupport/InspectorClientQt.h:
15816
158172009-07-29  Zoltan Herczeg  <zherczeg@inf.u-szeged.hu>
15818
15819        Reviewed by Simon Hausmann.
15820
15821        [Qt] In debug mode, this fix frees cached resources
15822        and other unreferenced objects (by calling the
15823        garbage collector) to remove the LEAK messages.
15824        https://bugs.webkit.org/show_bug.cgi?id=27767
15825
15826        * Api/qwebframe.cpp:
15827        (qt_drt_cache_clear):
15828        * QtLauncher/main.cpp:
15829        (main):
15830
158312009-07-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
15832
15833        Fix the Qt build by adapting to the changes of ScriptObject.
15834
15835        * Api/qwebelement.cpp:
15836        (setupScriptObject):
15837
158382009-07-28  Robert Hogan  <robert@roberthogan.net>
15839
15840        Reviewed by Simon Hausmann.
15841
15842        Add WebKit version API to Qt.
15843
15844        Get the current version of WebKit from WebKit/mac/Configurations/Version.xcconfig
15845        at compile time and make it available to Qt applications through
15846        qWebKitVersion().
15847
15848        Also amend the User Agent string to place the Safari clause outside
15849        the final bracket and to the end of the UA string.
15850
15851        https://bugs.webkit.org/show_bug.cgi?id=27158
15852
15853        Minor build tweak by Simon Hausmann (adding export macros to new functions).
15854
15855        * Api/headers.pri:
15856        * Api/qwebkitversion.cpp: Added.
15857        (webKitVersion):
15858        (webKitMajorVersion):
15859        (webKitMinorVersion):
15860        * Api/qwebkitversion.h: Added.
15861        * Api/qwebpage.cpp:
15862        (QWebPage::userAgentForUrl):
15863        * tests/qwebview/tst_qwebview.cpp:
15864        (tst_QWebView::getWebKitVersion):
15865
158662009-07-28  Simon Hausmann  <simon.hausmann@nokia.com>
15867
15868        Rubber-stamped by Ariya Hidayat.
15869
15870        Fix compilation with the precompiled header.
15871
15872        * WebKit_pch.h: Don't include JSDOMBinding.h and MathObject.h,
15873        as they include AtomicString.h. AtomicString.cpp needs to enable
15874        a #define before including AtomicString.h, which breaks if the PCH
15875        forces the inclusion beforehand.
15876
158772009-07-28  Ariya Hidayat  <ariya.hidayat@nokia.com>
15878
15879        Reviewed by Simon Hausmann.
15880
15881        Added tests to ensure that scroll position can be changed
15882        programmatically, even when the scroll bar policy is set to off.
15883
15884        * tests/qwebframe/tst_qwebframe.cpp:
15885
158862009-07-28  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
15887
15888        Reviewed by Simon Hausmann.
15889
15890        Fix a few compilation warnings in the QWebFrame tests.
15891
15892        * tests/qwebframe/tst_qwebframe.cpp:
15893
158942009-07-28  Andre Pedralho  <andre.pedralho@openbossa.org>
15895
15896         Reviewed by Simon Hausmann.
15897
15898         Fixed tst_QWebFrame::hasSetFocus test which was using
15899         an undefined resource.
15900         https://bugs.webkit.org/show_bug.cgi?id=27512
15901
15902         * tests/qwebframe/tst_qwebframe.cpp:
15903
159042009-07-28  Simon Hausmann  <simon.hausmann@nokia.com>
15905
15906        Reviewed by Ariya Hidayat.
15907
15908        Make it possible to pass relative file names to QtLauncher.
15909
15910        * QtLauncher/main.cpp:
15911        (MainWindow::MainWindow):
15912
159132009-07-27  Alexey Proskuryakov  <ap@webkit.org>
15914
15915        Reviewed by Darin Adler.
15916
15917        https://bugs.webkit.org/show_bug.cgi?id=27735
15918        Give a helpful name to JSLock constructor argument
15919
15920        * Api/qwebframe.cpp:
15921        (QWebFrame::addToJavaScriptWindowObject):
15922
159232009-07-27  Volker Hilsheimer <volker.hilsheimer@nokia.com>
15924
15925        Reviewed by Simon Hausmann.
15926
15927        QWebView's "enabled" parameter should default to true, as with QGraphicsView and
15928        QPainter.
15929
15930        * Api/qwebview.cpp: Add reference to QPainter::renderHints().
15931        * Api/qwebview.h: Add default for enabled argument.
15932
159332009-07-26  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
15934
15935        Reviewed by Simon Hausmann.
15936
15937        More documentation cleanups in the QWebElement class overview.
15938
15939        * Api/qwebelement.cpp:
15940
159412009-07-26  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
15942
15943        Reviewed by Simon Hausmann.
15944
15945        Clean up documentation of QWebElement's findFirst and findAll functions,
15946        as well as their QWebFrame counterparts.
15947
15948        * Api/qwebelement.cpp:
15949        * Api/qwebframe.cpp:
15950
159512009-07-26  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
15952
15953        Reviewed by Simon Hausmann.
15954
15955        Various documentation cleanups
15956
15957        * Fixed qdoc warnings
15958        * Hide QWebNetworkInterface from the class overview
15959        * Mention QWebElement in the module overview
15960        * More cleanups
15961
15962        * Api/qwebframe.cpp:
15963        * Api/qwebnetworkinterface.cpp:
15964        * Api/qwebview.cpp:
15965        * docs/qtwebkit.qdoc:
15966
159672009-07-26  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
15968
15969        Reviewed by Simon Hausmann.
15970
15971        Added missing class diagram referenced from the docs, taken from the Qt
15972        documentation.
15973
15974        * docs/qtwebkit.qdocconf: Register the image directory with
15975        qdoc.
15976        * docs/qwebview-diagram.png: Added.
15977
159782009-07-24  Antonio Gomes   <antonio.gomes@openbossa.org>
15979
15980        Reviewed by Adam Treat.
15981
15982        As per discussion on IRC, changed originalUrl by requestedUrl.
15983
15984        * Api/qwebframe.cpp:
15985        (QWebFrame::requestedUrl):
15986        * Api/qwebframe.h:
15987        * tests/qwebframe/tst_qwebframe.cpp:
15988
159892009-07-24  Andre Pedralho  <andre.pedralho@openbossa.org>
15990
15991        Reviewed by Adam Treat.
15992
15993        Removed void QWebFrame::renderContents(...) and added the Q_PROPERTY
15994        clipRenderToViewport to control whether QWebFrame::render would call
15995        FrameView::paintContents rather than FrameView::paint and do not clip
15996        the frame content to viewport.
15997
15998
15999        * Api/qwebframe.cpp:
16000        (QWebFramePrivate::renderPrivate):
16001        (QWebFrame::clipRenderToViewport):
16002        (QWebFrame::setClipRenderToViewport):
16003        * Api/qwebframe.h:
16004        * Api/qwebframe_p.h:
16005        (QWebFramePrivate::QWebFramePrivate):
16006        * tests/qwebframe/tst_qwebframe.cpp:
16007
160082009-07-24  Antonio Gomes   <antonio.gomes@openbossa.org>
16009
16010        Reviewed by Simon Hausmann.
16011
16012        [QT] Implement originalUrl getter method to the API
16013        https://bugs.webkit.org/show_bug.cgi?id=25867
16014
16015        * Api/qwebframe.cpp:
16016        (QWebFrame::originalUrl):
16017        * Api/qwebframe.h:
16018        * tests/qwebframe/qwebframe.qrc:
16019        * tests/qwebframe/test1.html: Added.
16020        * tests/qwebframe/test2.html: Added.
16021        * tests/qwebframe/tst_qwebframe.cpp:
16022
160232009-07-24  Kenneth Rohde Christiansen  <kenneth@webkit.org>
16024
16025        Build fix for Qt.
16026
16027        Fix build issue introduced in 46344
16028        ([Bug 22700] ApplicationCache should have size limit)
16029
16030        Remove method only added to the Qt ChromeClient.
16031
16032        * WebCoreSupport/ChromeClientQt.h:
16033
160342009-07-24  Andrei Popescu  <andreip@google.com>
16035
16036        Reviewed by Anders Carlsson.
16037
16038        ApplicationCache should have size limit
16039        https://bugs.webkit.org/show_bug.cgi?id=22700
16040
16041        * WebCoreSupport/ChromeClientQt.cpp:
16042        (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
16043        Adds empty implementation of the reachedMaxAppCacheSize callback.
16044        * WebCoreSupport/ChromeClientQt.h:
16045
160462009-07-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
16047
16048        Reviewed by Simon Hausmann.
16049
16050        [Qt] Add simple proxy support for QtLauncher
16051        https://bugs.webkit.org/show_bug.cgi?id=27495
16052
16053        Picks up proxy settings from the http_proxy environment
16054        variable.
16055
16056        * QtLauncher/QtLauncher.pro: Add QtNetwork dependency for all
16057        platforms.
16058        * QtLauncher/main.cpp:
16059        (MainWindow::MainWindow):
16060
160612009-07-23  Simon Hausmann  <simon.hausmann@nokia.com>
16062
16063        Reviewed by Holger Freyther.
16064
16065        Added a testcase to verify that cached methods in the QOBject bindings
16066        remain alife even after garbage collection.
16067
16068        * tests/qwebpage/tst_qwebpage.cpp:
16069        (tst_QWebPage::protectBindingsRuntimeObjectsFromCollector):
16070
160712009-07-23  Zoltan Herczeg  <zherczeg@inf.u-szeged.hu>
16072
16073        Reviewed by Simon Hausmann.
16074
16075        Fixing two issues related to QtLauncher
16076          - MainWindow objects are not always freed after close
16077          - JavaScript window.close() sometimes crashes
16078        https://bugs.webkit.org/show_bug.cgi?id=27601
16079
16080        * QtLauncher/main.cpp:
16081        (MainWindow::MainWindow):
16082        (main):
16083
160842009-07-21  Volker Hilsheimer <volker.hilsheimer@nokia.com>
16085
16086        Reviewed by Simon Hausmann.
16087
16088        Various improvements to the API documentation.
16089
16090        * Updated link to W3c Database spec
16091        * Formatting fixes, cleanups
16092        * Add missing \since 4.6 tags to QWebPage::frameAt
16093        * Extend QWebDatabase and QWebSecurityOrigin docs.
16094
16095        * Api/qwebdatabase.cpp:
16096        * Api/qwebpage.cpp:
16097        * Api/qwebsecurityorigin.cpp:
16098        * Api/qwebview.cpp:
16099
161002009-07-21  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
16101
16102        Rubber-stamped by Simon Hausmann.
16103
16104        Remove preliminary-tag from QWebElement
16105
16106        * Api/qwebelement.cpp:
16107
161082009-07-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
16109
16110        Reviewed by Eric Seidel.
16111
16112        Fix Qt code to follow the WebKit Coding Style.
16113
16114        * Api/qcookiejar.cpp:
16115        (QCookieJar::setCookieJar):
16116        (QCookieJar::cookieJar):
16117        * Api/qcookiejar.h:
16118        * Api/qwebdatabase.cpp:
16119        (QWebDatabase::QWebDatabase):
16120        (QWebDatabase::removeDatabase):
16121        * Api/qwebdatabase.h:
16122        * Api/qwebdatabase_p.h:
16123        * Api/qwebelement.h:
16124        * Api/qwebframe.cpp:
16125        (QWebFrame::title):
16126        (QWebFrame::print):
16127        * Api/qwebframe.h:
16128        * Api/qwebframe_p.h:
16129        * Api/qwebhistory.cpp:
16130        (QWebHistory::clear):
16131        * Api/qwebhistory.h:
16132        * Api/qwebhistory_p.h:
16133        * Api/qwebhistoryinterface.cpp:
16134        (gCleanupInterface):
16135        (QWebHistoryInterface::setDefaultInterface):
16136        (QWebHistoryInterface::defaultInterface):
16137        (QWebHistoryInterface::QWebHistoryInterface):
16138        * Api/qwebhistoryinterface.h:
16139        * Api/qwebnetworkinterface.cpp:
16140        (QWebNetworkManager::started):
16141        (QWebNetworkManager::finished):
16142        (QWebNetworkInterfacePrivate::parseDataUrl):
16143        (QWebNetworkInterface::addJob):
16144        (WebCoreHttp::onResponseHeaderReceived):
16145        (WebCoreHttp::onReadyRead):
16146        * Api/qwebnetworkinterface.h:
16147        * Api/qwebnetworkinterface_p.h:
16148        * Api/qwebpage.cpp:
16149        (QWebPagePrivate::editorCommandForWebActions):
16150        (QWebPagePrivate::createContextMenu):
16151        (QWebPagePrivate::focusInEvent):
16152        (QWebPage::fixedContentsSize):
16153        (QWebPage::setContentEditable):
16154        (QWebPage::swallowContextMenuEvent):
16155        (QWebPage::findText):
16156        * Api/qwebpage.h:
16157        * Api/qwebpage_p.h:
16158        * Api/qwebpluginfactory.h:
16159        * Api/qwebsecurityorigin.h:
16160        * Api/qwebsecurityorigin_p.h:
16161        * Api/qwebsettings.cpp:
16162        (QWebSettingsPrivate::QWebSettingsPrivate):
16163        (QWebSettingsPrivate::apply):
16164        (QWebSettings::globalSettings):
16165        (QWebSettings::QWebSettings):
16166        (QWebSettings::fontSize):
16167        (QWebSettings::setUserStyleSheetUrl):
16168        (QWebSettings::setDefaultTextEncoding):
16169        (QWebSettings::setIconDatabasePath):
16170        (QWebSettings::iconDatabasePath):
16171        (QWebSettings::iconForUrl):
16172        (QWebSettings::setWebGraphic):
16173        (QWebSettings::setFontFamily):
16174        (QWebSettings::fontFamily):
16175        (QWebSettings::testAttribute):
16176        (qt_websettings_setLocalStorageDatabasePath):
16177        * Api/qwebsettings.h:
16178        * Api/qwebview.cpp:
16179        (QWebView::setPage):
16180        (QWebView::event):
16181        * Api/qwebview.h:
16182
161832009-07-20  Holger Hans Peter Freyther  <zecke@selfish.org>
16184
16185        Reviewed by Simon Hausmann.
16186
16187        [Qt] Add test for loading webpages...
16188
16189        Performance test for loading webpages. Wait for the loadFinished
16190        signal to be fired. This should include a non empty layout.
16191
16192        * tests/benchmarks/loading/tst_loading.cpp: Added.
16193        (waitForSignal):
16194        (tst_Loading::init):
16195        (tst_Loading::cleanup):
16196        (tst_Loading::load_data):
16197        (tst_Loading::load):
16198        * tests/benchmarks/loading/tst_loading.pro: Added.
16199        * tests/tests.pro:
16200
162012009-07-20  Holger Hans Peter Freyther  <zecke@selfish.org>
16202
16203        Reviewed by Simon Hausmann.
16204
16205        [Qt] Add a test case for drawing a simple viewrect to a QPixmap
16206
16207        * tests/benchmarks/painting/tst_painting.cpp: Added.
16208        (waitForSignal):
16209        (tst_Painting::init):
16210        (tst_Painting::cleanup):
16211        (tst_Painting::paint_data):
16212        (tst_Painting::paint):
16213        * tests/benchmarks/painting/tst_painting.pro: Added.
16214        * tests/tests.pro:
16215
162162009-07-20  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
16217
16218        Reviewed by Holger Freyther.
16219
16220        [Qt] Add an option for QtLauncher to build without QtUiTools dependency
16221        https://bugs.webkit.org/show_bug.cgi?id=27438
16222
16223        Based on Norbert Leser's work.
16224
16225        * QtLauncher/main.cpp:
16226        (WebPage::createPlugin):
16227
162282009-07-17  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
16229
16230        Reviewed by Adam Treat.
16231
16232        Coding style fixes.
16233
16234        * Api/qcookiejar.cpp:
16235        (QCookieJarPrivate::QCookieJarPrivate):
16236        (qHash):
16237        (QCookieJar::cookieJar):
16238        * Api/qwebelement.cpp:
16239        (QWebElement::functions):
16240        (QWebElement::scriptableProperties):
16241        * Api/qwebframe.cpp:
16242        (QWebFrame::metaData):
16243        (QWebFrame::scrollBarValue):
16244        (QWebFrame::scroll):
16245        (QWebFrame::scrollPosition):
16246        (QWebFrame::print):
16247        * Api/qwebnetworkinterface.cpp:
16248        (decodePercentEncoding):
16249        (QWebNetworkRequestPrivate::init):
16250        (QWebNetworkRequestPrivate::setURL):
16251        (QWebNetworkRequest::QWebNetworkRequest):
16252        (QWebNetworkRequest::operator=):
16253        (QWebNetworkRequest::setUrl):
16254        (QWebNetworkRequest::setHttpHeader):
16255        (QWebNetworkRequest::httpHeaderField):
16256        (QWebNetworkRequest::setHttpHeaderField):
16257        (QWebNetworkRequest::setPostData):
16258        (QWebNetworkJob::setResponse):
16259        (QWebNetworkJob::frame):
16260        (QWebNetworkManager::add):
16261        (QWebNetworkManager::cancel):
16262        (QWebNetworkManager::started):
16263        (QWebNetworkManager::data):
16264        (QWebNetworkManager::finished):
16265        (QWebNetworkManager::addHttpJob):
16266        (QWebNetworkManager::cancelHttpJob):
16267        (QWebNetworkManager::httpConnectionClosed):
16268        (QWebNetworkInterfacePrivate::sendFileData):
16269        (QWebNetworkInterfacePrivate::parseDataUrl):
16270        (QWebNetworkManager::doWork):
16271        (QWebNetworkInterface::setDefaultInterface):
16272        (QWebNetworkInterface::defaultInterface):
16273        (QWebNetworkInterface::QWebNetworkInterface):
16274        (QWebNetworkInterface::addJob):
16275        (QWebNetworkInterface::cancelJob):
16276        (WebCoreHttp::WebCoreHttp):
16277        (WebCoreHttp::request):
16278        (WebCoreHttp::scheduleNextRequest):
16279        (WebCoreHttp::getConnection):
16280        (WebCoreHttp::onResponseHeaderReceived):
16281        (WebCoreHttp::onReadyRead):
16282        (WebCoreHttp::onRequestFinished):
16283        (WebCoreHttp::onAuthenticationRequired):
16284        (WebCoreHttp::onProxyAuthenticationRequired):
16285        * Api/qwebpage.cpp:
16286        (QWebPagePrivate::QWebPagePrivate):
16287        (QWebPagePrivate::mouseReleaseEvent):
16288        (QWebPagePrivate::inputMethodEvent):
16289        (QWebPagePrivate::shortcutOverrideEvent):
16290        (QWebPage::inputMethodQuery):
16291        (QWebPage::javaScriptPrompt):
16292        (QWebPage::updatePositionDependentActions):
16293        (QWebPage::userAgentForUrl):
16294        (QWebPagePrivate::_q_onLoadProgressChanged):
16295        (QWebPage::totalBytes):
16296        (QWebPage::bytesReceived):
16297        * Api/qwebsettings.cpp:
16298        (QWebSettings::iconForUrl):
16299        (QWebSettings::setObjectCacheCapacities):
16300        * Api/qwebview.cpp:
16301        (QWebView::paintEvent):
16302        (QWebView::changeEvent):
16303
163042009-07-17  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
16305
16306        Reviewed by Simon Hausmann.
16307
16308        Overwrite the plugin directories for the DRT.
16309        Part of https://bugs.webkit.org/show_bug.cgi?id=27215
16310
16311        * Api/qwebpage.cpp:
16312        (qt_drt_overwritePluginDirectories): Only set the plugin directories
16313        to the ones in the QTWEBKIT_PLUGIN_PATH environment variable.
16314
163152009-07-16  Xiaomei Ji  <xji@chromium.org>
16316
16317        Reviewed by Dan Bernstein.
16318
16319        This is the 2nd part of fixing "RTL: tooltip does not get its directionlity from its element's."
16320        https://bugs.webkit.org/show_bug.cgi?id=24187
16321
16322        Add one extra parameter to the callee of HitTestResult::title() due to the signature change.
16323
16324        * Api/qwebframe.cpp:
16325        (QWebHitTestResultPrivate::QWebHitTestResultPrivate): Add direction as a parameter to the callee of HitTestResult::title().
16326        * WebCoreSupport/ChromeClientQt.cpp:
16327        (WebCore::ChromeClientQt::mouseDidMoveOverElement): Add direction as a parameter to the callee of HitTestResult::title().
16328
163292009-07-16  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
16330
16331        Reviewed by Adam Treat.
16332
16333        Add new action to qwebpage to reload without cache.
16334
16335        * Api/qwebpage.cpp:
16336        (QWebPagePrivate::updateAction):
16337        (QWebPagePrivate::updateNavigationActions):
16338        (QWebPage::triggerAction):
16339        * Api/qwebpage.h:
16340
163412009-07-16  Xiaomei Ji  <xji@chromium.org>
16342
16343        Reviewed by Darin Adler.
16344
16345        Fix tooltip does not get its directionality from its element's directionality.
16346        https://bugs.webkit.org/show_bug.cgi?id=24187
16347
16348        Per mitz's suggestion in comment #6, while getting the plain-text
16349        title, we also get the directionality of the title. How to handle
16350        the directionality is up to clients. Clients could ignore it,
16351        or use attribute or unicode control characters to display the title
16352        as what they want.
16353
16354
16355        * WebCoreSupport/ChromeClientQt.cpp:
16356        (WebCore::ChromeClientQt::setToolTip): Add directionality as 2nd parameter to setToopTip() (without handling it yet).
16357        * WebCoreSupport/ChromeClientQt.h: Add directionality as 2nd parameter to setToolTip().
16358
163592009-07-15  Yael Aharon  <yael.aharon@nokia.com>
16360
16361        Reviewed by Simon Hausmann.
16362
16363        https://bugs.webkit.org/show_bug.cgi?id=27285
16364
16365        When the user clicks a link with a target attribute, the newly created window should be visible.
16366        Make new windows created in Qtlauncher visible.
16367
16368        * QtLauncher/main.cpp:
16369        (WebPage::createWindow):
16370
163712009-07-14  Adam Treat  <adam.treat@torchmobile.com>
16372
16373        Reviewed by Zack Rusin.
16374
16375        https://bugs.webkit.org/show_bug.cgi?id=26983
16376
16377        The default constructed values for QSize and WebCore::IntSize are different.  The former
16378        produces an invalid size whereas the latter produces a size of zero.  This was causing
16379        a layout to be triggered when constructing a view and an assert to be hit.  This patch fixes
16380        the crash by taking care not to cause an unnecessary layout triggered by ScrollView::setFixedLayoutSize.
16381
16382        * WebCoreSupport/FrameLoaderClientQt.cpp:
16383        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
16384
163852009-07-13  Simon Hausmann  <simon.hausmann@nokia.com>
16386
16387        Reviewed by Ariya Hidayat.
16388
16389        Fix qdoc warnings for QWebPage::shouldInterruptJavaScript() and mention
16390        how to re-implement it.
16391
16392        * Api/qwebpage.cpp:
16393
163942009-07-13  Simon Hausmann  <hausmann@webkit.org>
16395
16396        Reviewed by Ariya Hidayat.
16397
16398        Fix crash with plugins when the plugin stream is cancelled.
16399
16400        Similar to r26667 handle the case where didReceiveResponse on the
16401        plugin view results in failure to set up the stream and
16402        setMainDocumentError being called instead. This will set the
16403        m_pluginView back to 0 and we need check for it before calling
16404        didReceiveData.
16405
16406        This was triggered by consecutive execution of
16407        LayoutTests/plugins/return-error-from-new-stream-callback-in-full-frame-plugin.html
16408        followed by LayoutTests/scrollbars/scrollbar-crash-on-refresh.html
16409
16410        * WebCoreSupport/FrameLoaderClientQt.cpp:
16411        (WebCore::FrameLoaderClientQt::committedLoad):
16412
164132009-07-13  Simon Hausmann  <hausmann@webkit.org>
16414
16415        Reviewed by Ariya Hidayat.
16416
16417        Added QWebDatabase::removeAllDatabases, as a way to delete all
16418        databases from the offline storage path.
16419
16420        Used by the Qt DRT.
16421
16422        * Api/qwebdatabase.cpp:
16423        (QWebDatabase::removeAllDatabases):
16424        * Api/qwebdatabase.h:
16425
164262009-07-13  Simon Hausmann  <hausmann@webkit.org>
16427
16428        Reviewed by Ariya Hidayat.
16429
16430        Added loadStarted() and loadFinished() signals to QWebFrame,
16431        to allow load tracking of individual frames, as opposed to
16432        QWebPage's loadStarted/loadFinished signals that are emitted
16433        whenever _any_ child frame loads/finishes.
16434
16435        * Api/qwebframe.cpp: Document new signals.
16436        * Api/qwebframe.h: Add new signals.
16437        * WebCoreSupport/FrameLoaderClientQt.cpp:
16438        (WebCore::FrameLoaderClientQt::setFrame): Connect new signals.
16439
164402009-07-13  Simon Hausmann  <hausmann@webkit.org>
16441
16442        Reviewed by Ariya Hidayat.
16443
16444        Add hooks for the GCController JavaScript interface needed by the
16445        Qt DRT.
16446
16447        Fixed sort order of includes in qwebframe.cpp.
16448
16449        * Api/qwebframe.cpp:
16450        (qt_drt_javaScriptObjectsCount):
16451        (qt_drt_garbageCollector_collect):
16452        (qt_drt_garbageCollector_collectOnAlternateThread):
16453
164542009-07-13  Simon Hausmann  <hausmann@webkit.org>
16455
16456        Reviewed by Ariya Hidayat.
16457
16458        Add hooks for the GCController JavaScript interface needed by the
16459        Qt DRT.
16460
16461        Fixed sort order of includes in qwebframe.cpp.
16462
16463        * Api/qwebframe.cpp:
16464        (qt_drt_javaScriptObjectsCount):
16465        (qt_drt_garbageCollector_collect):
16466        (qt_drt_garbageCollector_collectOnAlternateThread):
16467
164682009-07-12  Brent Fulgham  <bfulgham@gmail.com>
16469
16470        Speculative build fix after http://trac.webkit.org/changeset/45786.
16471
16472        * WebCoreSupport/ChromeClientQt.cpp:
16473        (WebCore::ChromeClientQt::addMessageToConsole):
16474        * WebCoreSupport/ChromeClientQt.h:
16475
164762009-07-10  Yael Aharon  <yael.aharon@nokia.com>
16477
16478        Reviewed by Holger Freyther.
16479
16480        https://bugs.webkit.org/show_bug.cgi?id=27136
16481
16482        Fix a bug where webkit hangs when executing infinite JavaScript loop.
16483
16484        * Api/qwebpage.cpp:
16485        (QWebPage::shouldInterruptJavaScript):
16486        * Api/qwebpage.h:
16487        * WebCoreSupport/ChromeClientQt.cpp:
16488        (WebCore::ChromeClientQt::shouldInterruptJavaScript):
16489        * tests/qwebpage/tst_qwebpage.cpp:
16490        (JSTestPage::JSTestPage):
16491        (JSTestPage::shouldInterruptJavaScript):
16492        (tst_QWebPage::infiniteLoopJS):
16493
164942009-07-10  Simon Hausmann  <simon.hausmann@nokia.com>
16495
16496        Reviewed by Holger Freyther.
16497
16498        https://bugs.webkit.org/show_bug.cgi?id=27108
16499
16500        Fix crash when in frame tree of a new frame before the new frame
16501        has been installed in the frame tree, similar to r35088.
16502
16503        After calling Frame::init() the frame it may have been removed from the
16504        frame tree again through JavaScript. Detect this by checking the page()
16505        afterwards.
16506
16507        To make this check safe the Frame::init() code was moved into
16508        QWebFrameData's constructor, where a RefPtr holds a reference to the frame.
16509        After the check back in FrameLoaderClientQt we would hold the single
16510        reference left and after release() the frame, its frame loader, its
16511        client as well as the QWebFrame should have disappeared then.
16512
16513        * Api/qwebframe.cpp:
16514        (QWebFramePrivate::init): Only call Frame::init here, the rest is
16515        done in QWebFrameData's constructor.
16516        (QWebFrame::QWebFrame):
16517        * Api/qwebframe_p.h: Adjust declaration.
16518        (QWebFrameData::QWebFrameData): Create the Frame here.
16519        * Api/qwebpage.cpp:
16520        (QWebPagePrivate::createMainFrame): Adjust and simplify
16521        to new QWebFrame constructor.
16522        * WebCoreSupport/FrameLoaderClientQt.cpp:
16523        (WebCore::FrameLoaderClientQt::createFrame): Adjust to
16524        new QWebFrame construction using QWebFrameData and add the
16525        check like in r35088.
16526
165272009-07-09  Beth Dakin  <bdakin@apple.com>
16528
16529        Reviewed by Dave Hyatt.
16530
16531        Make Widget RefCounted to fix:
16532
16533        <rdar://problem/7038831> REGRESSION (TOT): In Mail, a crash occurs
16534        at WebCore::Widget::afterMouseDown() after clicking To Do's close
16535        box
16536        <rdar://problem/6978804> WER #16: Repro Access Violation in
16537        WebCore::PluginView::bindingInstance (1310178023)
16538        -and-
16539        <rdar://problem/6991251> WER #13: Crash in WebKit!
16540        WebCore::PluginView::performRequest+203 (1311461169)
16541
16542        * WebCoreSupport/FrameLoaderClientQt.cpp:
16543        (WebCore::FrameLoaderClientQt::createPlugin):
16544        (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
16545        * WebCoreSupport/FrameLoaderClientQt.h:
16546
165472009-07-08  Pradeepto Bhattacharya  <pradeepto@kde.org>
16548
16549        Reviewed by Ariya Hidayat.
16550
16551        Build fix.
16552
16553        * WebCoreSupport/FrameLoaderClientQt.h: Removed the slot slotCallPolicyFunction().
16554
165552009-07-08  Simon Hausmann  <hausmann@webkit.org>
16556
16557        Reviewed by Tor Arne Vestbø.
16558
16559        https://bugs.webkit.org/show_bug.cgi?id=27080
16560
16561        Fix DRT instability issues with fast/loader/submit-form-while-parsing-2.html
16562
16563        When the form is submitted we call the policy function in the frame
16564        loader delayed with a queued connection. That queued connection
16565        sometimes interferes with the javascript timeout set in the testcase.
16566
16567        Eliminate the entire delayed policy function mechanism and instead always
16568        call back directly, like in the other ports. In most other places we called
16569        the slot directly anyway.
16570
16571        * WebCoreSupport/FrameLoaderClientQt.cpp:
16572        (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Remove m_policyFunction.
16573        (WebCore::FrameLoaderClientQt::callPolicyFunction): Call the policy function directly instead
16574        of emitting the queued signal.
16575        (WebCore::FrameLoaderClientQt::cancelPolicyCheck): Call callPolicyFunction directly.
16576        (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): Ditto.
16577        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): Ditto.
16578        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): Ditto.
16579        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): Ditto.
16580        * WebCoreSupport/FrameLoaderClientQt.h: Remove m_policyFunction as well as the associated
16581        signal.
16582
165832009-07-07  Simon Hausmann  <hausmann@webkit.org>
16584
16585        Reviewed by Holger Freyther.
16586
16587        Add Qt DRT hook for clearing the frame name.
16588
16589        * Api/qwebframe.cpp:
16590        (qt_drt_clearFrameName):
16591
165922009-07-05  Simon Hausmann  <hausmann@webkit.org>
16593
16594        Reviewed by Holger Freyther.
16595
16596        Fix two qdoc warnings.
16597
16598        Added missing \property for QWebFrame::hasFocus and added \a
16599        tag for pos of QWebPage::frameAt.
16600
16601        * Api/qwebframe.cpp:
16602        * Api/qwebpage.cpp:
16603
166042009-07-04  Holger Hans Peter Freyther  <zecke@selfish.org>
16605
16606        Reviewed by Simon Hausmann.
16607
16608        Use the recently introduced FocusController::setFocused
16609
16610        Use the recently introduced FocusController::setFocused
16611        in the Qt platform. The SelectionController will be updated
16612        from within the FocusController now.
16613
16614        * Api/qwebpage.cpp:
16615        (QWebPagePrivate::focusInEvent):
16616        (QWebPagePrivate::focusOutEvent):
16617
166182009-07-02  Simon Hausmann  <simon.hausmann@nokia.com>
16619
16620        Reviewed by Ariya Hidayat.
16621
16622        Improve documentation of QWebFrame::setFocus and hasFocus()
16623        Added missing Q_PROPERTY for QWebFrame::hasFocus.
16624
16625        * Api/qwebframe.cpp: Clarify the docs.
16626        * Api/qwebframe.h: add Q_PROPERTY(focus).
16627
166282009-07-02  Joe Ligman  <joseph.ligman@nokia.com>
16629
16630        Reviewed by Simon Hausmann.
16631
16632        Bug 26855: [Qt] New methods for QWebFrame to check and set focus.
16633
16634        Added new public methods QWebFrame::hasFocus() and QWebFrame::setFocus()
16635        Added auto test.
16636
16637        * Api/qwebframe.cpp:
16638        (QWebFrame::hasFocus):
16639        (QWebFrame::setFocus):
16640        * Api/qwebframe.h:
16641        * tests/qwebframe/tst_qwebframe.cpp:
16642
166432009-07-01  Robert Hogan <robert@roberthogan.net>
16644
16645        Reviewed by NOBODY.
16646
16647        Fix Qt segfault when javascript disabled.
16648        If clients call addToJavaScriptWindowObject even though JavascriptEnabled is false
16649        webkit will segfault on the assert:
16650          ASSERTION FAILED: _rootObject
16651          (../../../WebCore/bridge/runtime.cpp:52
16652          JSC::Bindings::Instance::Instance(WTF::PassRefPtr<JSC::Bindings::RootObject>))
16653        Fix is to ensure JavaScript is enabled when client calls addToJavaScriptWindowObject.
16654
16655        https://bugs.webkit.org/show_bug.cgi?id=26906
16656
16657        * Api/qwebframe.cpp:
16658        (QWebFrame::addToJavaScriptWindowObject):
16659
166602009-07-01  Jakub Wieczorek  <faw217@gmail.com>
16661
16662        Reviewed by Simon Hausmann.
16663
16664        [Qt] Move some API headers from WebCore.pro to headers.pri so that they
16665        get installed when running make install from the build directory.
16666
16667        * Api/headers.pri:
16668
166692009-07-01  Balazs Kelemen  <kelemen.balazs.3@stud.u-szeged.hu>
16670
16671        Reviewed by Simon Hausmann.
16672
16673        Fixed robotized QtLauncher to work when there is no index.html in the user's home.
16674
16675        * QtLauncher/main.cpp:
16676        (main):
16677
166782009-06-30  Brian Weinstein  <bweinstein@apple.com>
16679
16680        Reviewed by Adam Roben.
16681
16682        Renamed scrollbarUnderPoint to scrollbarAtPoint to follow conventions.
16683
16684        * Api/qwebpage.cpp:
16685        (QWebPage::swallowContextMenuEvent):
16686
166872009-06-30  Joe Ligman  <joseph.ligman@nokia.com>
16688
16689        Reviewed by Adam Treat.
16690
16691        Bug 26422: [Qt] QWebPagePrivate::frameAt calculates wrong frame
16692
16693        Added a public method QWebPage::frameAt
16694        Removed QWebPagePrivate::frameAt, which calcuated the wrong frame
16695        Modified QWebPage::swallowContextMenuEvent to use the new frameAt method
16696        New test case for frameAt added to tst_qwebpage.cpp
16697
16698        * Api/qwebpage.cpp:
16699        (QWebPage::frameAt):
16700        (QWebPage::swallowContextMenuEvent):
16701        * Api/qwebpage.h:
16702        * Api/qwebpage_p.h:
16703        * tests/qwebpage/frametest/iframe.html: Added.
16704        * tests/qwebpage/frametest/iframe2.html: Added.
16705        * tests/qwebpage/frametest/iframe3.html: Added.
16706        * tests/qwebpage/tst_qwebpage.cpp:
16707        (frameAtHelper):
16708        (tst_QWebPage::frameAt):
16709        * tests/qwebpage/tst_qwebpage.qrc:
16710
167112009-06-30  Jakub Wieczorek  <faw217@gmail.com>
16712
16713        Reviewed by Simon Hausmann.
16714
16715        Add QWebFrame::baseUrl() function that exposes the base URL of a frame.
16716        Autotests included.
16717
16718        * Api/qwebframe.cpp:
16719        (QWebFrame::baseUrl):
16720        * Api/qwebframe.h:
16721        * tests/qwebframe/tst_qwebframe.cpp:
16722
167232009-06-29  Simon Hausmann  <simon.hausmann@nokia.com>
16724
16725        Fix the Qt build, add missing isSpeaking() implementation to
16726        ContextMenuClient.
16727
16728        * WebCoreSupport/ContextMenuClientQt.cpp:
16729        (WebCore::ContextMenuClientQt::isSpeaking):
16730        * WebCoreSupport/ContextMenuClientQt.h:
16731
167322009-06-28  Sriram Yadavalli  <sriram.yadavalli@nokia.com>
16733
16734        Reviewed by Eric Seidel.
16735
16736        [Qt] Fix build break for Qt
16737        https://bugs.webkit.org/show_bug.cgi?id=26779
16738
16739        * Api/qwebpage.cpp:
16740        (QWebPage::swallowContextMenuEvent):
16741
167422009-06-27  Simon Hausmann  <simon.hausmann@nokia.com>
16743
16744        Build fix for Qt under Windows.
16745
16746        * Api/qwebhistory.h: Use consistent export linkage for the datastream operators.
16747
167482009-06-26  Brian Weinstein  <bweinstein@apple.com>
16749
16750        Reviewed by Simon Fraser.
16751
16752        Changed call of scrollbarUnderMouse to scrollbarUnderPoint to match new API.
16753
16754        * Api/qwebpage.cpp:
16755        (QWebPage::swallowContextMenuEvent):
16756
167572009-06-26  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
16758
16759        Reviewed by Simon Hausmann.
16760
16761        Add support for saving and loading of QWebHistory to and from a QByteArray.
16762
16763        This includes streaming operators for QWebHistory. for convenience.
16764
16765        New autotests that test QWebHistory and QWebHistoryItem serialization.
16766
16767        * Api/qwebhistory.cpp:
16768        (QWebHistory::restoreState):
16769        (QWebHistory::saveState):
16770        (operator<<):
16771        (operator>>):
16772        * Api/qwebhistory.h:
16773        * Api/qwebhistory_p.h:
16774        * tests/qwebhistory/tst_qwebhistory.cpp:
16775        (tst_QWebHistory::):
16776        (tst_QWebHistory::init):
16777        (tst_QWebHistory::title):
16778        (tst_QWebHistory::count):
16779        (tst_QWebHistory::back):
16780        (tst_QWebHistory::forward):
16781        (tst_QWebHistory::itemAt):
16782        (tst_QWebHistory::goToItem):
16783        (tst_QWebHistory::items):
16784        (tst_QWebHistory::serialize_1):
16785        (tst_QWebHistory::serialize_2):
16786        (tst_QWebHistory::serialize_3):
16787        (tst_QWebHistory::saveAndRestore_1):
16788        (tst_QWebHistory::saveAndRestore_2):
16789        (tst_QWebHistory::saveAndRestore_3):
16790
167912009-06-26  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
16792
16793        Reviewed by Simon Hausmann.
16794
16795        Fix the behaviour of QWebHistory::itemAt to interpret the specified index as absolute index.
16796
16797        Returns an invalid QWebHistoryItem if the index is out of range.
16798
16799        * Api/qwebhistory.cpp:
16800        (QWebHistory::itemAt):
16801        * tests/qwebhistory/tst_qwebhistory.cpp:
16802        (tst_QWebHistory::itemAt):
16803
168042009-06-26  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
16805
16806        Reviewed by Simon Hausmann.
16807
16808        Added a few autotest to QWebHistory.
16809
16810        * tests/qwebhistory/data/page1.html: Added.
16811        * tests/qwebhistory/data/page2.html: Added.
16812        * tests/qwebhistory/data/page3.html: Added.
16813        * tests/qwebhistory/data/page4.html: Added.
16814        * tests/qwebhistory/data/page5.html: Added.
16815        * tests/qwebhistory/data/page6.html: Added.
16816        * tests/qwebhistory/qwebhistory.pro: Added.
16817        * tests/qwebhistory/tst_qwebhistory.cpp: Added.
16818        (tst_QWebHistory::):
16819        (tst_QWebHistory::tst_QWebHistory):
16820        (tst_QWebHistory::~tst_QWebHistory):
16821        (tst_QWebHistory::init):
16822        (tst_QWebHistory::cleanup):
16823        (tst_QWebHistory::title):
16824        (tst_QWebHistory::count):
16825        (tst_QWebHistory::back):
16826        (tst_QWebHistory::forward):
16827        (tst_QWebHistory::goToItem):
16828        (tst_QWebHistory::items):
16829        * tests/qwebhistory/tst_qwebhistory.qrc: Added.
16830        * tests/tests.pro:
16831
168322009-06-26  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
16833
16834        Reviewed by Simon Hausmann.
16835
16836        Fix support for documenting functions prefixed with QWEBKIT_EXPORT
16837
16838        Add QWEBKIT_EXPORT to the list of macros to ignore by qdoc.
16839
16840        * docs/qtwebkit.qdocconf:
16841
168422009-06-26  Yongjun Zhang  <yongjun.zhang@nokia.com>
16843
16844        Reviewed by Eric Seidel.
16845
16846        Bug 20303: [Qt] Key events are not working in frames.
16847
16848        Send scrolling events to current focused frame, bubble the event
16849        up to parent frame if it is not handled.  Use EventHandler's new
16850        shared scrolling code.
16851
16852        * Api/qwebpage.cpp:
16853        (QWebPagePrivate::keyPressEvent):
16854        (QWebPagePrivate::handleScrolling):
16855        * Api/qwebpage_p.h:
16856
168572009-06-25  Jakub Wieczorek  <faw217@gmail.com>
16858
16859        Reviewed by Adam Treat.
16860
16861        Add highlight functionality to the QWebPage::findText() method. Introduced is
16862        new HighlightAllOccurrences flag which passed to the function will make it mark
16863        all existing occurrences of specified string in the page.
16864
16865        * Api/qwebpage.cpp:
16866        (QWebPage::findText):
16867        * Api/qwebpage.h:
16868        * Api/qwebview.cpp:
16869
168702009-06-19  Daniel Teske <qt-info@nokia.com>
16871
16872        Reviewed by Simon Hausmann.
16873
16874        Remove warnings for QString() constructions from const char *
16875
16876        By explicitly wrapping it with QLatin1String() / QLatin1Char()
16877
16878        * Api/qwebelement.cpp:
16879        (QWebElement::classes): Use QLatin1String.
16880        (QWebElement::addClass): Ditto.
16881        (QWebElement::removeClass): Ditto.
16882        (QWebElement::toggleClass): Ditto.
16883
168842009-06-18  Friedemann Kleint  <Friedemann.Kleint@nokia.com>
16885
16886        Reviewed by Simon Hausmann.
16887
16888        Fixed MinGW compilation.
16889
16890        * Api/qwebelement.cpp:
16891        (QWebElement::evaluateScript):
16892
168932009-06-18  Markus Goetz <Markus.Goetz@nokia.com>
16894
16895        Reviewed by Simon Hausman.
16896
16897        Clarify in docs how to compile with debug information.
16898
16899        * docs/qtwebkit.qdoc:
16900
169012009-06-17  Markus Goetz <Markus.Goetz@nokia.com>
16902
16903        Reviewed by Simon Hausmann.
16904
16905        QWebPage: Don't call supportsSsl()
16906
16907        This stops QWebPage from loading the OpenSSL libs,
16908        certificates etc. when they are not needed for the non-HTTPS case.
16909
16910        Loading the SSL libraries can be a very slow operation.
16911
16912        * Api/qwebpage.cpp:
16913        (QWebPage::userAgentForUrl):
16914
169152009-06-16  David Boddie  <dboddie@trolltech.com>
16916
16917        Reviewed by Simon Hausmann.
16918
16919        Doc: Fixed QWebPage::forwardUnsupportedContent documentation and added
16920        more information about Web plugins.
16921
16922        * Api/qwebpage.cpp:
16923        * Api/qwebsettings.cpp:
16924        * docs/qtwebkit.qdoc:
16925
169262009-06-16  Morten Engvoldsen  <morten.engvoldsen@nokia.com>
16927
16928        Reviewed by Ariya Hidayat.
16929
16930        Clearifying QWebFrame docs
16931
16932        Adding docs to toHtml() and toPlainText()
16933
16934        * Api/qwebframe.cpp:
16935
169362009-06-15  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
16937
16938        Reviewed by Adam Treat.
16939
16940        Support the back/forward/stop/refresh multimedia keys and accept the
16941        event when handling backspace and shift backspace as we should.
16942
16943        * Api/qwebpage.cpp:
16944        (QWebPagePrivate::keyPressEvent):
16945
169462009-06-15  Andre Pedralho  <andre.pedralho@openbossa.org>
16947
16948        Reviewed by Adam Treat.
16949
16950        https://bugs.webkit.org/show_bug.cgi?id=26351
16951        Remove bool QWebHitTestResult::isScrollBar() const and make sure a null QWebHitTestResult is returned instead.
16952
16953        * Api/qwebframe.cpp:
16954        (QWebFrame::hitTestContent):
16955        * Api/qwebframe.h:
16956        * Api/qwebpage.cpp:
16957        (QWebPage::updatePositionDependentActions):
16958
169592009-06-15  Simon Hausmann  <simon.hausmann@nokia.com>
16960
16961        Reviewed by Adam Treat.
16962
16963        Fix the logic for disabling the fixed layout feature, when an invalid
16964        QSize is set.
16965
16966        * Api/qwebpage.cpp:
16967        (QWebPage::setFixedContentsSize):
16968
169692009-06-13  Adam Barth  <abarth@webkit.org>
16970
16971        Reviewed by Darin Fisher.
16972
16973        https://bugs.webkit.org/show_bug.cgi?id=24492
16974
16975        Move registerURLSchemeAsLocal from FrameLoader to SecurityOrigin.
16976
16977        * Api/qwebpage.cpp:
16978        (QWebPage::acceptNavigationRequest):
16979
169802009-06-10  Antonio Gomes   <antonio.gomes@openbossa.org>
16981
16982        Reviewed by Ariya Hidayat.
16983
16984        Documented ResolveRule and StylePriority enum values as well as their use in
16985        QWebElement::styleProperty and QWebElement::setStyleProperty methods.
16986
16987        Based on the work of Simon Hausmann.
16988
16989        * Api/qwebelement.cpp:
16990        (QWebElement::styleProperty):
16991        (QWebElement::setStyleProperty):
16992        * Api/qwebelement.h:
16993
169942009-06-09  Ariya Hidayat  <ariya.hidayat@nokia.com>
16995
16996        Rubber-stamped by Simon Hausmann.
16997
16998        Fix qdoc warning, function parameter string must be referred.
16999
17000        * Api/qwebview.cpp:
17001
170022009-06-09  Simon Hausmann  <simon.hausmann@nokia.com>
17003
17004        Reviewed by Ariya Hidayat.
17005
17006        Renamed QWebSettings::AllowUniversalAccessFromFileUrls to
17007        LocalContentCanAccessRemoteUrls, as discussed in the API review.
17008
17009        * Api/qwebsettings.cpp:
17010        (QWebSettingsPrivate::apply):
17011        (QWebSettings::QWebSettings):
17012        * Api/qwebsettings.h:
17013
170142009-06-09  Simon Hausmann  <simon.hausmann@nokia.com>
17015
17016        Reviewed by Ariya Hidayat.
17017
17018        Merged useFixedLayout property with fixedLayoutSize and
17019        renamed the latter to fixedContentsSize.
17020
17021        * Api/qwebpage.cpp:
17022        (QWebPage::fixedContentsSize):
17023        (QWebPage::setFixedContentsSize):
17024        * Api/qwebpage.h:
17025        * WebCoreSupport/FrameLoaderClientQt.cpp:
17026        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
17027
170282009-06-09  Simon Hausmann  <simon.hausmann@nokia.com>
17029
17030        Reviewed by Ariya Hidayat.
17031
17032        Renamed QWebHitTestResult::linkTarget to linkElement() and made it return
17033        a QWebElement. The link target itself is always the target DOM attribute.
17034
17035        * Api/qwebframe.cpp:
17036        (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
17037        (QWebHitTestResult::linkElement):
17038        * Api/qwebframe.h:
17039        * Api/qwebframe_p.h:
17040        * tests/qwebframe/tst_qwebframe.cpp:
17041
170422009-06-08  Simon Hausmann  <simon.hausmann@nokia.com>
17043
17044        Reviewed by Holger Freyther.
17045
17046        Renamed QWebElement::enclosingBlock to enclosingBlockElement
17047        and changed the return type to QWebElement, as discussed in
17048        the API review. This API is more generic and through
17049        QWebElement's geometry() it is possible to retrieve the
17050        same information.
17051
17052        * Api/qwebelement.cpp:
17053        (QWebElement::QWebElement):
17054        * Api/qwebelement.h:
17055        * Api/qwebframe.cpp:
17056        (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
17057        (QWebHitTestResult::enclosingBlockElement):
17058        * Api/qwebframe.h:
17059        * Api/qwebframe_p.h:
17060
170612009-06-05  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
17062
17063        Reviewed by Simon Hausmann.
17064
17065        [Qt] Add missing includes of config.h
17066
17067        * Api/qcookiejar.cpp:
17068        * Api/qwebnetworkinterface.cpp:
17069        * Plugins/ICOHandler.cpp:
17070        * WebCoreSupport/DragClientQt.cpp:
17071        * WebCoreSupport/EditCommandQt.cpp:
17072
170732009-06-03  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
17074
17075        Reviewed by Simon Hausmann.
17076
17077        Add API to make it possible to clear all memory caches used by
17078        QtWebKit.
17079
17080        * Api/qwebsettings.cpp:
17081        (QWebSettings::clearMemoryCaches):
17082        * Api/qwebsettings.h:
17083
170842009-06-01  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
17085
17086        Rubber-stamped by Gustavo Noronha.
17087
17088        Before guessing the url trim the string to remove whitespace added to the start/end by the user.
17089
17090        * Api/qwebview.cpp:
17091        (QWebView::guessUrlFromString):
17092        * tests/qwebview/tst_qwebview.cpp:
17093        (tst_QWebView::guessUrlFromString_data):
17094
170952009-06-01  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
17096
17097        Rubber-stamped by Gustavo Noronha.
17098
17099        Use QLatin1Char() to compile when QT_NO_CAST_FROM_ASCII and QT_NO_CAST_TO_ASCII is defined
17100
17101        * Api/qwebview.cpp:
17102        (QWebView::guessUrlFromString):
17103
171042009-06-01  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
17105
17106        Rubber-stamped by Gustavo Noronha.
17107
17108        Cleanup autotest file
17109        - use proper includes
17110        - remove useless constructor and destructor
17111        - add missing newline at the end of the file
17112
17113        * tests/qwebview/tst_qwebview.cpp:
17114
171152009-06-01  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
17116
17117        Rubber-stamped by Gustavo Noronha.
17118
17119        Add a missing space between two words in the documentation.
17120
17121        * Api/qwebview.cpp:
17122
171232009-05-26  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
17124
17125        Reviewed by Holger Freyther.
17126
17127        https://bugs.webkit.org/show_bug.cgi?id=25823
17128
17129        Add an API to generate a QUrl out of a string correcting for errors and missing information.
17130        See the API documentation for more details about the function.
17131
17132        Autotests: included
17133
17134        * Api/qwebview.cpp:
17135        (QWebView::guessUrlFromString):
17136        * Api/qwebview.h:
17137        * QtLauncher/main.cpp:
17138        (MainWindow::MainWindow):
17139        (MainWindow::changeLocation):
17140        * tests/qwebview/.gitignore: Added.
17141        * tests/qwebview/qwebview.pro:
17142        (tst_QWebView::initTestCase):
17143        (tst_QWebView::cleanupTestCase):
17144        (tst_QWebView::init):
17145        (tst_QWebView::cleanup):
17146        (tst_QWebView::guessUrlFromString_data):
17147        (tst_QWebView::guessUrlFromString):
17148
171492009-05-23  David Kilzer  <ddkilzer@apple.com>
17150
17151        Part 2 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr
17152
17153        <https://bugs.webkit.org/show_bug.cgi?id=25495>
17154
17155        Reviewed by Oliver Hunt.
17156
17157        * WebCoreSupport/ChromeClientQt.h:
17158        (WebCore::ChromeClientQt::createHTMLParserQuirks): Return a
17159        PassOwnPtr<> instead of a raw HTMLParserQuirks pointer.
17160
171612009-05-23  Jakob Truelsen  <antialize@gmail.com>
17162
17163        Reviewed by Holger Freyther.
17164
17165        https://bugs.webkit.org/show_bug.cgi?id=25863
17166
17167        Expose the default text encoding property to Qt.
17168
17169        * Api/qwebsettings.cpp:
17170        (QWebSettingsPrivate::apply):
17171        (QWebSettings::setDefaultTextEncoding):
17172        (QWebSettings::defaultTextEncoding):
17173        * Api/qwebsettings.h:
17174
171752009-05-21  Antonio Gomes   <antonio.gomes@openbossa.org>
17176
17177        Reviewed by Simon Hausmann.
17178
17179        [Qt] Additional test for resource load (CSS file) for QWebFrame.
17180
17181        * tests/qwebframe/qwebframe.qrc:
17182        * tests/qwebframe/style.css: Added.
17183        * tests/qwebframe/tst_qwebframe.cpp:
17184
171852009-05-22  Simon Hausmann  <simon.hausmann@nokia.com>
17186
17187        Unreviewed Qt build fix.
17188
17189        Provide dummy implementation of pure virtual EditorClient method.
17190
17191        * WebCoreSupport/EditorClientQt.cpp:
17192        (WebCore::EditorClientQt::getAutoCorrectSuggestionForMisspelledWord):
17193        * WebCoreSupport/EditorClientQt.h:
17194
171952009-05-20  Ariya Hidayat  <ariya.hidayat@nokia.com>
17196
17197        Reviewed by Simon Hausmann and Holger Freyther.
17198
17199        [Qt] Add renderHints property to QWebView.
17200
17201        * Api/qwebview.cpp:
17202        (QWebViewPrivate::QWebViewPrivate):
17203        (QWebView::renderHints):
17204        (QWebView::setRenderHints):
17205        (QWebView::setRenderHint):
17206        (QWebView::paintEvent):
17207        * Api/qwebview.h:
17208        * tests/qwebview/qwebview.pro: Added.
17209        * tests/qwebview/tst_qwebview.cpp: Added.
17210        (tst_QWebView::tst_QWebView):
17211        (tst_QWebView::~tst_QWebView):
17212        (tst_QWebView::init):
17213        (tst_QWebView::cleanup):
17214        (tst_QWebView::renderHints):
17215        * tests/tests.pro:
17216
172172009-05-20  Holger Hans Peter Freyther  <zecke@selfish.org>
17218
17219        Reviewed by Darin Adler.
17220
17221        https://bugs.webkit.org/show_bug.cgi?id=25834
17222
17223        Make ChromeClient a interface again
17224
17225        With recent additions to ChromeClient.h empty defaults were
17226        added. This is bad for porters as these changes go unnoticed
17227        and at runtime no notImplemented warning is logged and grepping
17228        for notImplemented will not show anything. Change this Client
17229        to be like the other Clients again and always have pure virtuals
17230        (but for stuff inside #ifdef PLATFORM(MAC)).
17231
17232        Update the various WebKit/* implementations to compile again.
17233
17234        * WebCoreSupport/ChromeClientQt.cpp:
17235        (WebCore::ChromeClientQt::setCursor):
17236        (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
17237        * WebCoreSupport/ChromeClientQt.h:
17238        (WebCore::ChromeClientQt::scrollRectIntoView):
17239
172402009-05-19  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
17241
17242        Reviewed by Simon Hausmann.
17243
17244        Fix a plugin bug in the WebKit code, similar to the one in WebCore.
17245
17246        The problem is when a non visible QtPluginWidget would show it self
17247        in a sibling frame. The problem was due to our clipping. In Qt,
17248        if setMask is set with an empty QRegion, no clipping will
17249        be performed, so in that case we hide the PluginContainer
17250
17251        * WebCoreSupport/FrameLoaderClientQt.cpp:
17252        (WebCore::):
17253
172542009-05-18  Zoltan Horvath <horvath.zoltan.6@stud.u-szeged.hu>
17255
17256        Reviewed by Ariya Hidayat.
17257
17258        Makes QtLauncher to accept multiple urls in command line and opens these in separate windows.
17259
17260        * QtLauncher/main.cpp:
17261        (MainWindow::newWindow):
17262        (main):
17263
172642009-05-14  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
17265
17266        Reviewed by Ariya Hidayat.
17267
17268        Add a comment to QWebView::iconChanged(), mentioning that you will
17269        need to set the icon database path for icons to be loaded, and thus
17270        receive the signal.
17271
17272        * Api/qwebview.cpp:
17273
172742009-05-14  Yael Aharon  <yael.aharon@nokia.com>
17275
17276        Reviewed by Ariya Hidayat.
17277
17278        Fix setHtml test case by adding <head> tag to the expected result. This tag is automatically added by WebKit.
17279
17280        * tests/qwebframe/tst_qwebframe.cpp:
17281
172822009-05-14  Yael Aharon  <yael.aharon@nokia.com>
17283
17284        Reviewed by Ariya Hidayat.
17285
17286        Add a test case for the signal urlChanged().
17287        * tests/qwebframe/tst_qwebframe.cpp:
17288
172892009-05-13  Yael Aharon <yael.aharon@nokia.com>
17290
17291        Reviewed by Ariya Hidayat.
17292
17293        Move emitting the signal QWebFrame::urlChanged to FrameLoaderClientQt::dispatchDidCommitLoad().
17294        This is to ensure that urlChanged() is emitted even if the frame has no title.
17295
17296        * WebCoreSupport/FrameLoaderClientQt.cpp:
17297        (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
17298        (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
17299
173002009-05-13  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
17301
17302        Rubberstamped by Ariya Hidayat.
17303
17304        Fix coding style: Add {} to contents of if, containing a for loop.
17305
17306        * Api/qwebelement.cpp:
17307        (QWebElement::styleProperty):
17308
173092009-05-12  Antonio Gomes   <antonio.gomes@openbossa.org>
17310
17311        Reviewed by Ariya Hidayat.
17312
17313        Fixed a possible crash @styleProperty when there is no embedded/external CSS set.
17314
17315        * Api/qwebelement.cpp:
17316        (QWebElement::styleProperty):
17317        * tests/qwebelement/tst_qwebelement.cpp:
17318        (tst_QWebElement::style):
17319
173202009-05-12  Antonio Gomes   <antonio.gomes@openbossa.org>
17321
17322        Reviewed by Ariya Hidayat.
17323
17324        Added external CSS test cases to QWebElement::styleProperty() method.
17325
17326        Also some ::styleProperty() tests cleanup.
17327
17328        * tests/qwebelement/tst_qwebelement.cpp:
17329        (tst_QWebElement::style):
17330
173312009-05-12  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
17332
17333        Reviewed by Ariya Hidayat.
17334
17335        Many methods were not considering the case of the element not having
17336        siblings or children when inserting nodes, and thus broke in some
17337        situations. This patch fixes that.
17338
17339        * Api/qwebelement.cpp:
17340        (QWebElement::prependInside):
17341        (QWebElement::appendOutside):
17342        (QWebElement::encloseWith):
17343
173442009-05-08  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
17345
17346        Reviewed by Ariya Hidayat.
17347
17348        Make is possible to mark a style property as important while setting
17349        it. Also support the normal CSS property syntax "!important", while
17350        accepting spaces between the ! and the important keyword.
17351
17352        * Api/qwebelement.cpp:
17353        (QWebElement::setStyleProperty):
17354        * Api/qwebelement.h:
17355        * tests/qwebelement/tst_qwebelement.cpp:
17356        (tst_QWebElement::style):
17357
173582009-05-08  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
17359
17360        Reviewed by Ariya Hidayat.
17361
17362        Working with Antonio Gomes.
17363
17364        Add support for finding the style property actually applied to the element.
17365
17366        * Api/qwebelement.cpp:
17367        (QWebElement::styleProperty):
17368        * Api/qwebelement.h:
17369        * tests/qwebelement/tst_qwebelement.cpp:
17370        (tst_QWebElement::style):
17371
173722009-05-11  Norbert Leser  <norbert.leser@nokia.com>
17373
17374        Reviewed by Darin Adler.
17375
17376        Bug 24538: class/struct mixup in forward declarations
17377        https://bugs.webkit.org/show_bug.cgi?id=24538
17378
17379        * Api/qwebpage.h:
17380
173812009-05-11  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
17382
17383        Reviewed by Holger Freyther.
17384
17385        Fix Qt build when ENABLE_DATABASE is turned off
17386
17387        https://bugs.webkit.org/show_bug.cgi?id=25587
17388
17389        * Api/qwebdatabase.cpp:
17390        (QWebDatabase::displayName):
17391        (QWebDatabase::expectedSize):
17392        (QWebDatabase::size):
17393        (QWebDatabase::fileName):
17394        (QWebDatabase::removeDatabase):
17395        * Api/qwebdatabase_p.h:
17396        * Api/qwebsecurityorigin.cpp:
17397        (QWebSecurityOrigin::allOrigins):
17398        (QWebSecurityOrigin::databases):
17399
174002009-05-05  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
17401
17402        Reviewed by Simon Hausmann.
17403
17404        Improve behaviour of the QWebElement enclose* functions, to work
17405        similar to the jQuery wrap functions. We now enclose the contents
17406        of the element in the child of the deepest descendant element
17407        within the structure of the enclose element structure given.
17408
17409        * Api/qwebelement.cpp:
17410        (findInsertionPoint):
17411        (QWebElement::encloseContentsWith):
17412        (QWebElement::encloseWith):
17413        (QWebElement::replace):
17414        * tests/qwebelement/tst_qwebelement.cpp:
17415        (tst_QWebElement::encloseContentsWith):
17416        (tst_QWebElement::encloseWith):
17417
174182009-05-06  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
17419
17420        Reviewed by Simon Hausmann.
17421
17422        After commit rev @43215, setHtml() without a <head> tag,
17423        automatically adds it, so update our test case to respect this.
17424
17425        * tests/qwebelement/tst_qwebelement.cpp:
17426        (tst_QWebElement::textHtml):
17427
174282009-05-06  Simon Hausmann  <simon.hausmann@nokia.com>
17429
17430        Unreviewed Qt build fix.
17431
17432        Dont' use ENABLE() in Qt API headers, as they are not available when building
17433        against the API.
17434
17435        * Api/qwebdatabase.h:
17436        * Api/qwebsecurityorigin.h:
17437
174382009-05-05  Ben Murdoch  <benm@google.com>
17439
17440        Reviewed by Eric Seidel.
17441
17442        Add #if ENABLE(DATABASE) guards around database code so toggling ENABLE_DATABASE off does not break builds.
17443        https://bugs.webkit.org/show_bug.cgi?id=24776
17444
17445        * Api/qwebdatabase.cpp:
17446        * Api/qwebdatabase.h:
17447        * Api/qwebdatabase_p.h:
17448        * Api/qwebsecurityorigin.cpp:
17449        (QWebSecurityOrigin::databaseUsage):
17450        (QWebSecurityOrigin::databaseQuota):
17451        (QWebSecurityOrigin::setDatabaseQuota):
17452        * Api/qwebsecurityorigin.h:
17453        * WebCoreSupport/ChromeClientQt.cpp:
17454        (WebCore::ChromeClientQt::exceededDatabaseQuota):
17455        * WebCoreSupport/ChromeClientQt.h:
17456
174572009-05-05  Simon Hausmann  <simon.hausmann@nokia.com>
17458
17459        Reviewed by Tor Arne Vestbø.
17460
17461        Various improvements to the class documentation, including a simple snippet for QWebElement.
17462
17463        * Api/qwebelement.cpp:
17464        * Api/qwebframe.cpp:
17465        * docs/webkitsnippets/webelement/main.cpp: Added.
17466        * docs/webkitsnippets/webelement/webelement.pro: Added.
17467
174682009-05-05  Simon Hausmann  <simon.hausmann@nokia.com>
17469
17470        Reviewed by Ariya Hidayat.
17471
17472        Simplify variant conversion by moving the null check into
17473        convertValueToQVariant.
17474
17475        * Api/qwebframe.cpp:
17476        (QWebFrame::evaluateJavaScript): Moved null check into conversion function.
17477        * tests/qwebframe/tst_qwebframe.cpp:
17478        Added test to verify the correct conversion of null values to QVariant.
17479
174802009-05-01  Geoffrey Garen  <ggaren@apple.com>
17481
17482        Rubber Stamped by Sam Weinig.
17483
17484        Renamed JSValuePtr => JSValue.
17485
17486        * Api/qwebelement.cpp:
17487        (setupScriptContext):
17488        (setupScriptObject):
17489        (QWebElement::evaluateScript):
17490        (QWebElement::functions):
17491        (QWebElement::scriptableProperty):
17492        (QWebElement::setScriptableProperty):
17493        (QWebElement::scriptableProperties):
17494
174952009-05-01  Pavel Feldman  <pfeldman@chromium.org>
17496
17497        Reviewed by Timothy Hatcher.
17498
17499        Add a FrameLoaderClient callback for the ResourceRetrievedByXMLHttpRequest.
17500
17501        https://bugs.webkit.org/show_bug.cgi?id=25347
17502
17503        * WebCoreSupport/FrameLoaderClientQt.cpp:
17504        (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceByXMLHttpRequest):
17505        * WebCoreSupport/FrameLoaderClientQt.h:
17506
175072009-04-30  David Kilzer  <ddkilzer@apple.com>
17508
17509        Provide a mechanism to create a quirks delegate for HTMLParser
17510
17511        Reviewed by David Hyatt.
17512
17513        * WebCoreSupport/ChromeClientQt.h:
17514        (WebCore::ChromeClientQt::createHTMLParserQuirks): Added.  The
17515        default implementation of this factory method returns 0.
17516
175172009-04-30  Ariya Hidayat  <ariya.hidayat@nokia.com>
17518
17519        Unreviewed build fix after r43072.
17520
17521        * Api/qwebframe.cpp:
17522        (qt_drt_setJavaScriptProfilingEnabled): Enclose with JAVASCRIPT_DEBUGGER.
17523
175242009-04-30  Ariya Hidayat  <ariya.hidayat@nokia.com>
17525
17526        Unreviewed build fix after r43063.
17527
17528        * WebCoreSupport/ChromeClientQt.cpp:
17529        (WebCore::ChromeClientQt::addMessageToConsole):
17530        * WebCoreSupport/ChromeClientQt.h:
17531
175322009-04-30  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
17533
17534        Reviewed by Simon Hausmann.
17535
17536        Implement encloseContentsWith and rename wrap to encloseWith.
17537
17538        Also in encloseWith, make sure that you cannot enclose with
17539        non-enclosable elements.
17540
17541        * Api/qwebelement.cpp:
17542        (QWebElement::encloseContentsWith):
17543        (QWebElement::encloseWith):
17544        * Api/qwebelement.h:
17545        * tests/qwebelement/tst_qwebelement.cpp:
17546        (tst_QWebElement::encloseContentsWith):
17547        (tst_QWebElement::encloseWith):
17548
175492009-04-30  Holger Hans Peter Freyther  <zecke@selfish.org>
17550
17551        Reviewed by Darin Adler.
17552
17553        The Qt API exposes a global history patch CSSStyleSelector to make API consumers work again
17554
17555        https://bugs.webkit.org/show_bug.cgi?id=20952
17556
17557        The QtWebKit port made the mistake of exposing a global history. This broke
17558        with the addition of PageGroup and LinkHash. This needs to be repaired
17559        for Qt4.5.
17560
17561        Add a function to LinkHash.cpp that is resolving a URL. Use this
17562        function from within CSSStyleSelector to forward the url to the
17563        QWebHistoryInterface API.
17564
17565        It is sad that there is a path within visitedLinkHash which is now
17566        doing a memcpy, it is sad to add a PLATFORM(QT) define to CSSStyleSelector
17567        and using QtWebKit types within WebCore is a layering violation as well.
17568
17569        PageGroup::setShouldTrackVisitedLinks is currently not enabled. For
17570        Qt4.6 a second version of the QWebHistoryInterface is going to be
17571        added which will fix things up.
17572
17573        * Api/qwebhistoryinterface.cpp:
17574        (QWebHistoryInterface::setDefaultInterface): Add note for Qt4.6
17575        * Api/qwebpage.cpp: Remove PageGroup::setShouldTrackVisitedLinks(true)
17576        (QWebPagePrivate::QWebPagePrivate):
17577        * tests/qwebhistoryinterface/qwebhistoryinterface.pro: Added unit test.
17578        * tests/qwebhistoryinterface/tst_qwebhistoryinterface.cpp: Added unit test.
17579        (tst_QWebHistoryInterface::tst_QWebHistoryInterface):
17580        (tst_QWebHistoryInterface::~tst_QWebHistoryInterface):
17581        (tst_QWebHistoryInterface::init):
17582        (tst_QWebHistoryInterface::cleanup):
17583        (FakeHistoryImplementation::addHistoryEntry):
17584        (FakeHistoryImplementation::historyContains):
17585        (tst_QWebHistoryInterface::visitedLinks): Check the Qt4.4 behaviour.
17586        * tests/tests.pro:
17587
175882009-04-30  Ariya Hidayat  <ariya.hidayat@nokia.com>
17589
17590        Unreviewed build fix, after r43035.
17591
17592        Temporarily use Position::deprecatedEditingOffset().
17593
17594        * Api/qwebpage.cpp:
17595        (QWebPage::inputMethodQuery):
17596
175972009-03-27  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
17598
17599        Reviewed by Simon Hausmann.
17600
17601        Update the page actions when a finishing loading even if the frame is
17602        not the top frame such as when browsing inside of a website with frames.
17603        https://bugs.webkit.org/show_bug.cgi?id=24890
17604
17605        * WebCoreSupport/FrameLoaderClientQt.cpp:
17606        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
17607        * tests/qwebpage/frametest/frame_a.html: Added.
17608        * tests/qwebpage/frametest/index.html: Added.
17609        * tests/qwebpage/tst_qwebpage.cpp:
17610        (tst_QWebPage::backActionUpdate):
17611
176122009-04-29  Ariya Hidayat  <ariya.hidayat@nokia.com>
17613
17614        Reviewed by Simon Hausmann.
17615
17616        Implement QWebElement::evaluateScript.
17617
17618        * Api/qwebelement.cpp:
17619        (setupScriptContext):
17620        (QWebElement::evaluateScript):
17621        * Api/qwebelement.h:
17622        * tests/qwebelement/tst_qwebelement.cpp:
17623        (tst_QWebElement::evaluateScript):
17624
176252009-04-29  Simon Hausmann  <simon.hausmann@nokia.com>
17626
17627        Reviewed by Ariya Hidayat.
17628
17629        Replaced QWebElementCollection with QList<QWebElement>.
17630
17631        * Api/qwebelement.cpp:
17632        (QWebElement::findAll):
17633        * Api/qwebelement.h:
17634        * Api/qwebframe.cpp:
17635        (QWebFrame::findAllElements):
17636        * Api/qwebframe.h:
17637        * QtLauncher/main.cpp:
17638        (MainWindow::selectElements):
17639        * tests/qwebelement/tst_qwebelement.cpp:
17640        (tst_QWebElement::simpleCollection):
17641        (tst_QWebElement::namespaceURI):
17642        (tst_QWebElement::nullSelect):
17643
176442009-04-28  Simon Hausmann  <simon.hausmann@nokia.com>
17645
17646        Reviewed by Tor Arne Vestbø.
17647
17648        QWebElement API changes after another round of API review:
17649
17650        * Fix argument names of findAll/findFirst
17651        * Split up toXml into innerXml and outerXml
17652        * Removed confusing toggleClass overload
17653        * Fixed casing of namespaceUri to follow QXmlStreamReader
17654        * Removed tagName from firstChild/nextSibling/etc.
17655        * Renamed append/prepend/insertAfter/insertBefore to [append|prepend][Inside|Outside]
17656        * Renamed wrapWith() back to wrap()
17657        * Made clone() const
17658        * Renamed remove() to takeFromDocument(), added removeFromDocument()
17659        * Renamed clear() to removeChildren()
17660        * Renamed scriptsFunctions/callScriptFunction to functions()/callFunction()
17661        * Renamed scriptProperty to scriptableProperty
17662
17663        * Api/qwebelement.cpp:
17664        (QWebElement::findAll):
17665        (QWebElement::findFirst):
17666        (QWebElement::setOuterXml):
17667        (QWebElement::toOuterXml):
17668        (QWebElement::setInnerXml):
17669        (QWebElement::toInnerXml):
17670        (QWebElement::namespaceUri):
17671        (QWebElement::firstChild):
17672        (QWebElement::lastChild):
17673        (QWebElement::nextSibling):
17674        (QWebElement::previousSibling):
17675        (QWebElement::callFunction):
17676        (QWebElement::functions):
17677        (QWebElement::scriptableProperty):
17678        (QWebElement::setScriptableProperty):
17679        (QWebElement::scriptableProperties):
17680        (QWebElement::appendInside):
17681        (QWebElement::prependInside):
17682        (QWebElement::prependOutside):
17683        (QWebElement::appendOutside):
17684        (QWebElement::clone):
17685        (QWebElement::takeFromDocument):
17686        (QWebElement::removeFromDocument):
17687        (QWebElement::removeChildren):
17688        (QWebElement::wrap):
17689        (QWebElement::replace):
17690        * Api/qwebelement.h:
17691        * Api/qwebframe.cpp:
17692        (QWebFrame::findAllElements):
17693        (QWebFrame::findFirstElement):
17694        * Api/qwebframe.h:
17695        * tests/qwebelement/tst_qwebelement.cpp:
17696        (tst_QWebElement::textHtml):
17697        (tst_QWebElement::classes):
17698        (tst_QWebElement::namespaceURI):
17699        (tst_QWebElement::foreachManipulation):
17700        (tst_QWebElement::callFunction):
17701        (tst_QWebElement::callFunctionSubmitForm):
17702        (tst_QWebElement::functionNames):
17703        (tst_QWebElement::properties):
17704        (tst_QWebElement::appendAndPrepend):
17705        (tst_QWebElement::insertBeforeAndAfter):
17706        (tst_QWebElement::remove):
17707        (tst_QWebElement::clear):
17708        (tst_QWebElement::replaceWith):
17709
177102009-04-28  Simon Hausmann  <simon.hausmann@nokia.com>
17711
17712        Reviewed by Tor Arne Vestbø.
17713
17714        Fix some qdoc warnings.
17715
17716        * Api/qwebframe.cpp: Fix links.
17717        * Api/qwebnetworkinterface.cpp: Make docs internal.
17718        * Api/qwebnetworkinterface.h: Ditto.
17719        * Api/qwebpage.cpp: Fix property name in \property.
17720
177212009-04-24  Simon Hausmann  <simon.hausmann@nokia.com>
17722
17723        Rubber-stamped by Ariya Hidayat.
17724
17725        Fix qdoc warning about link to QAction::isEnabled.
17726
17727        * Api/qwebpage.cpp:
17728
177292009-04-24  Simon Hausmann  <simon.hausmann@nokia.com>
17730
17731        Reviewed by Ariya Hidayat.
17732
17733        Added support for generating API docs in the Qt build using "make docs"
17734
17735        Added code snippets and overview from the Qt sources references in the API docs.
17736
17737        * Api/qwebpage.cpp: Adjust paths to snippets.
17738        * Api/qwebview.cpp: Ditto.
17739        * docs/docs.pri: Added.
17740        * docs/qtwebkit.qdoc: Added.
17741        * docs/qtwebkit.qdocconf: Added.
17742        * docs/webkitsnippets/qtwebkit_build_snippet.qdoc: Added.
17743        * docs/webkitsnippets/qtwebkit_qwebview_snippet.cpp: Added.
17744        * docs/webkitsnippets/simple/main.cpp: Added.
17745        * docs/webkitsnippets/simple/simple.pro: Added.
17746        * docs/webkitsnippets/webpage/main.cpp: Added.
17747        * docs/webkitsnippets/webpage/webpage.pro: Added.
17748
177492009-04-23  Antonio Gomes   <antonio.gomes@openbossa.org>
17750
17751        Reviewed by Ariya Hidayat.
17752
17753        [Qt] Added QWebElement::computedStyleProperty method.
17754
17755        * Api/qwebelement.cpp:
17756        (QWebElement::computedStyleProperty):
17757        * Api/qwebelement.h:
17758        * tests/qwebelement/tst_qwebelement.cpp:
17759        (tst_QWebElement::computedStyle):
17760
177612009-04-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
17762
17763        Rubber-stamped by Ariya Hidayat.
17764
17765        [Qt] Rename QWebElement arguments from html to markup
17766
17767        * Api/qwebelement.cpp:
17768        (QWebElement::append):
17769        (QWebElement::prepend):
17770        (QWebElement::insertBefore):
17771        (QWebElement::insertAfter):
17772        * Api/qwebelement.h:
17773
177742009-04-21  Antonio Gomes   <antonio.gomes@openbossa.org>
17775
17776        Reviewed by Ariya Hidayat.
17777
17778        QWebElementSelection renamed to QWebElementCollection.
17779
17780        * Api/qwebelement.cpp:
17781        (QWebElement::findAll):
17782        (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
17783        (QWebElementCollectionPrivate::create):
17784        (QWebElementCollection::QWebElementCollection):
17785        (QWebElementCollection::operator=):
17786        (QWebElementCollection::~QWebElementCollection):
17787        (QWebElementCollection::operator+):
17788        (QWebElementCollection::append):
17789        (QWebElementCollection::count):
17790        (QWebElementCollection::at):
17791        (QWebElementCollection::toList):
17792        * Api/qwebelement.h:
17793        * Api/qwebframe.cpp:
17794        (QWebFrame::findAllElements):
17795        * Api/qwebframe.h:
17796        * QtLauncher/main.cpp:
17797        (MainWindow::selectElements):
17798        * tests/qwebelement/tst_qwebelement.cpp:
17799        (tst_QWebElement::simpleCollection):
17800        (tst_QWebElement::iteration):
17801        (tst_QWebElement::emptyCollection):
17802        (tst_QWebElement::appendCollection):
17803        (tst_QWebElement::nullSelect):
17804
178052009-04-17  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
17806
17807        Reviewed by Simon Hausmann.
17808
17809        https://bugs.webkit.org/show_bug.cgi?id=25242
17810
17811        Remove QtCore 4.5 dependency from QWebElement test
17812
17813        * tests/qwebelement/tst_qwebelement.cpp:
17814        (tst_QWebElement::iteration): Use QList::count() instead of QList::length()
17815
178162009-04-16  Holger Hans Peter Freyther  <zecke@selfish.org>
17817
17818        Rubber-stamped by Simon Hausmann.
17819
17820        Make the operator== and operator!= non inline to
17821        allow looking at the d-pointer in the future.
17822
17823        * Api/qwebelement.cpp:
17824        (QWebElement::operator==):
17825        (QWebElement::operator!=):
17826        * Api/qwebelement.h:
17827
178282009-04-15  Antonio Gomes   <antonio.gomes@openbossa.org>
17829
17830        Reviewed by Ariya Hidayat.
17831
17832        Rename extend() method in QWebElementSelection to append().
17833
17834        * Api/qwebelement.cpp:
17835        (QWebElementSelection::append):
17836        * Api/qwebelement.h:
17837        * tests/qwebelement/tst_qwebelement.cpp:
17838        (tst_QWebElement::appendSelection):
17839
178402009-04-15  Antonio Gomes   <antonio.gomes@openbossa.org>
17841
17842        Reviewed by Simon Hausmann.
17843
17844        Fixed nit/typo in QWebElement documentation.
17845
17846        * Api/qwebelement.cpp:
17847
178482009-04-14  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
17849
17850        Reviewed by Simon Hausmann.
17851
17852        https://bugs.webkit.org/show_bug.cgi?id=24841
17853
17854        Fix linking against QtWebKit for Symbian and other platforms
17855        where the OS ABI distinguishes between an import or an export situation.
17856
17857        * Api/qwebkitglobal.h: Instead of white-listing Win, remove the test.
17858
178592009-04-14  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
17860
17861        Reviewed by Tor Arne Vestbø.
17862
17863        Rename QWebElement::setHtml and html to setXml and toXml respectivily.
17864
17865        Also add a mean to define the scope (inner or other).
17866
17867        * Api/qwebelement.cpp:
17868        (QWebElement::setXml):
17869        (QWebElement::toXml):
17870        * Api/qwebelement.h:
17871        * tests/qwebelement/tst_qwebelement.cpp:
17872        (tst_QWebElement::textHtml):
17873        (tst_QWebElement::foreachManipulation):
17874
178752009-04-14  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
17876
17877        Reviewed by Tor Arne Vestbø.
17878
17879        Rename QWebElement::setText() and text() to ::setPlainText and
17880        ::toPlainText, respectively.
17881
17882        * Api/qwebelement.cpp:
17883        (QWebElement::setPlainText):
17884        (QWebElement::toPlainText):
17885        * Api/qwebelement.h:
17886        * tests/qwebelement/tst_qwebelement.cpp:
17887        (tst_QWebElement::textHtml):
17888        (tst_QWebElement::simpleSelection):
17889        (tst_QWebElement::appendAndPrepend):
17890        (tst_QWebElement::insertBeforeAndAfter):
17891        (tst_QWebElement::replaceWith):
17892        (tst_QWebElement::wrap):
17893        (tst_QWebElement::firstChildNextSiblingWithTag):
17894        (tst_QWebElement::lastChildPreviousSiblingWithTag):
17895
178962009-04-06  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
17897
17898        Reviewed by Simon Hausmann.
17899
17900        [Qt] Rename DOM API select function to findFirst, findAll, etc.
17901
17902        * Api/qwebelement.cpp:
17903        (QWebElement::findAll):
17904        (QWebElement::findFirst):
17905        * Api/qwebelement.h:
17906        * Api/qwebframe.cpp:
17907        (QWebFrame::findAllElements):
17908        (QWebFrame::findFirstElement):
17909        * Api/qwebframe.h:
17910        * QtLauncher/main.cpp:
17911        (MainWindow::selectElements):
17912        * tests/qwebelement/tst_qwebelement.cpp:
17913        (tst_QWebElement::simpleSelection):
17914        (tst_QWebElement::attributesNS):
17915        (tst_QWebElement::classes):
17916        (tst_QWebElement::namespaceURI):
17917        (tst_QWebElement::iteration):
17918        (tst_QWebElement::foreachManipulation):
17919        (tst_QWebElement::callFunctionSubmitForm):
17920        (tst_QWebElement::documentElement):
17921        (tst_QWebElement::frame):
17922        (tst_QWebElement::style):
17923        (tst_QWebElement::extendSelection):
17924        (tst_QWebElement::properties):
17925        (tst_QWebElement::appendAndPrepend):
17926        (tst_QWebElement::insertBeforeAndAfter):
17927        (tst_QWebElement::remove):
17928        (tst_QWebElement::clear):
17929        (tst_QWebElement::replaceWith):
17930        (tst_QWebElement::wrap):
17931        (tst_QWebElement::nullSelect):
17932        (tst_QWebElement::firstChildNextSibling):
17933        (tst_QWebElement::firstChildNextSiblingWithTag):
17934        (tst_QWebElement::lastChildPreviousSibling):
17935        (tst_QWebElement::lastChildPreviousSiblingWithTag):
17936
179372009-04-06  Simon Hausmann  <simon.hausmann@nokia.com>
17938            Ariya Hidayat <ariya.hidayat@nokia.com>
17939            Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
17940            Genevieve Mak <gen@staikos.net>
17941
17942        Reviewed by Tor Arne Vestbø, Simon Hausmann
17943
17944        First revision of new API in the Qt port to access the DOM.
17945
17946        * Api/headers.pri: Added qwebelement.h to the API headers.
17947        * Api/qwebelement.cpp: Added.
17948        * Api/qwebelement.h: Added.
17949        * Api/qwebframe.cpp:
17950        (QWebFrame::documentElement): Added accessor for the document element.
17951        (QWebFrame::selectElements): Added convenienc query method.
17952        (QWebFrame::selectElement): Ditto.
17953        (QWebHitTestResult::element): Added accessor for underlying DOM element.
17954        * Api/qwebframe.h:
17955        * QtLauncher/main.cpp: Simple test gui for element selections.
17956        * tests/qwebelement/qwebelement.pro: Added.
17957        * tests/qwebelement/tst_qwebelement.cpp: Added.
17958        * tests/tests.pro: Added QWebElement & QWebElementSelection unit tests.
17959
179602009-04-02  Simon Hausmann  <simon.hausmann@nokia.com>
17961
17962        Fix the Qt build.
17963
17964        * Api/qwebpage.cpp:
17965        (QWebPage::triggerAction): Adapted code to renamed loadFrameRequest function.
17966
179672009-04-02  Takumi Asaki <takumi.asaki@nokia.com>
17968
17969        Reviewed by Simon Hausmann.
17970
17971        Fix pre-edit handling of text fields with input methods.
17972
17973        The input method sends an empty preeditString() if all characters of
17974        the preedit should be deleted. So inputMethodEvent() has to use
17975        preeditString() if it's empty.
17976
17977        * Api/qwebpage.cpp:
17978        (QWebPagePrivate::inputMethodEvent):
17979
179802009-03-30  Simon Hausmann  <simon.hausmann@nokia.com>
17981
17982        Rubber-stamped by Tor Arne Vestbø.
17983
17984        Document that setHtml/setContent loads only the html/data immediately, not external objects.
17985
17986        * Api/qwebframe.cpp:
17987        * Api/qwebview.cpp:
17988
179892009-03-29  Darin Adler  <darin@apple.com>
17990
17991        Try to fix Qt build.
17992
17993        * WebCoreSupport/EditorClientQt.cpp: Added include of HTMLElement.h.
17994
17995        * WebCoreSupport/FrameLoaderClientQt.cpp: Added include of FormState.h.
17996        (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
17997        Removed unneeded call to detachChildren, which is called by FrameLoader
17998        right after this.
17999        (WebCore::FrameLoaderClientQt::createFrame): Use loadURLIntoChildFrame
18000        as other platforms do in the corresponding functions.
18001
180022009-03-27  Erik L. Bunce  <elbunce@xendom.com>
18003
18004        Reviewed by Simon Hausmann.
18005
18006        https://bugs.webkit.org/show_bug.cgi?id=24869
18007
18008        Fixes an incorrect case in tst_qwebpage.
18009
18010        * tests/qwebpage/tst_qwebpage.cpp:
18011        (tst_QWebPage::cursorMovements):
18012
180132009-03-27  Erik L. Bunce  <elbunce@xendom.com>
18014
18015        Reviewed by Simon Hausmann.
18016
18017        https://bugs.webkit.org/show_bug.cgi?id=24746
18018
18019        Add new editing related QWebPage::WebActions
18020        * Clipboard: PasteAndMatchStyle
18021        * Formatting: RemoveFormat, ToggleStrikethrough, ToggleSubscript, and
18022          ToggleSuperscript
18023        * List Editing: InsertUnorderedList, InsertOrderedList, Indent, Outdent
18024        * Paragraph Justification: AlignCenter, AlignJustified, AlignLeft, AlignRight
18025
18026        Improved selection and editing tests.
18027
18028        * Api/qwebpage.cpp:
18029        (QWebPagePrivate::updateEditorActions):
18030        (QWebPage::action):
18031        * Api/qwebpage.h:
18032        * tests/qwebpage/tst_qwebpage.cpp:
18033        (tst_QWebPage::textSelection):
18034        (tst_QWebPage::textEditing):
18035
180362009-03-26  Simon Hausmann  <simon.hausmann@nokia.com>
18037
18038        Rubber-stamped by Tor Arne Vestbø.
18039
18040        Fix the documentation of the QLocale usage in userAgentForUrl.
18041
18042        * Api/qwebpage.cpp:
18043
180442009-03-20  Erik L. Bunce  <elbunce@xendom.com>
18045
18046        Reviewed by Simon Hausmann.
18047
18048        Fix for InsertParagraphSeparator and InsertLineSeparator so that
18049        QWebPage::action() creates QActions for them. Also make sure they get
18050        updated appropriately.
18051
18052        * Api/qwebpage.cpp:
18053        (QWebPagePrivate::updateEditorActions):
18054        (QWebPage::action):
18055        * tests/qwebpage/tst_qwebpage.cpp:
18056        (tst_QWebPage::textEditing):
18057
180582009-03-20  Erik L. Bunce  <elbunce@xendom.com>
18059
18060        Reviewed by Tor Arne Vestbø.
18061
18062        Fix QWebPage::WebActions action states to more closely match when they are
18063        actually applicable and remove erroneous documentation.
18064
18065        * Most WebActions implemented using editor commands now use the
18066          Editor::Command::isEnabled() to control their availability.
18067        * SelectAll is always enabled (since it's editor command is).
18068        * SetTextDirection{} family of WebActions are available when canEdit() is true
18069          and not just canEditRichly().
18070
18071        Fix and clarify documentation about the availability of various web actions.
18072
18073        * Api/qwebpage.cpp:
18074        (QWebPagePrivate::updateAction):
18075        (QWebPagePrivate::updateEditorActions):
18076        * tests/qwebpage/tst_qwebpage.cpp:
18077        (tst_QWebPage::textSelection):
18078
180792009-03-19  Ariya Hidayat <ariya.hidayat@trolltech.com>
18080
18081        Reviewed by Simon Hausmann.
18082
18083        Fixes pedantic compilation in QtWebKit.
18084
18085        There are no semi-colons after namespace declarations.
18086
18087        * Api/qwebdatabase.h:
18088        * Api/qwebsecurityorigin.h:
18089
180902009-03-19  David Boddie  <dboddie@trolltech.com>
18091
18092        Reviewed by Simon Hausmann.
18093
18094        Doc: Removed obsolete warning about Flash and other plugins.
18095
18096        * Api/qwebsettings.cpp:
18097
180982009-03-19  Paul Olav Tvete  <paul.tvete@nokia.com>
18099
18100        Reviewed by Simon Hausmann.
18101
18102        Properly escape tooltip text
18103
18104        ManualTest: http://xkcd.com/554/
18105
18106        * WebCoreSupport/ChromeClientQt.cpp:
18107        (WebCore::ChromeClientQt::setToolTip):
18108
181092009-03-10  Adam Treat  <adam.treat@torchmobile.com>
18110
18111        Build fix for Qt after r41555.
18112
18113        * Api/qwebpage.cpp:
18114        (QWebPage::acceptNavigationRequest):
18115
181162009-03-10  Xan Lopez  <xlopez@igalia.com>
18117
18118        Build fix, no review.
18119
18120        * Api/qwebpage.cpp:
18121        (QWebPage::inputMethodQuery):
18122
181232009-03-07  Adam Treat  <adam.treat@torchmobile.com>
18124
18125        Reviewed by Cameron Zwarich.
18126
18127        These methods are clearly returning the wrong values as the two were
18128        returning swapped information.
18129
18130        * Api/qwebpage.cpp:
18131        (QWebPage::totalBytes):
18132        (QWebPage::bytesReceived):
18133
181342009-03-05  Ariya Hidayat  <ariya.hidayat@nokia.com>
18135
18136        Rubber-stamped by Simon Hausmann.
18137
18138        [Qt] NPAPI plugins are supported, adjust the API documentation.
18139
18140        * Api/qwebsettings.cpp:
18141
181422009-03-04  Adam Barth  <abath@webkit.org>
18143
18144        Reviewed by Alexey Proskuryakov.
18145
18146        https://bugs.webkit.org/show_bug.cgi?id=24356
18147
18148        Fix WebKit style for allowUniversalAccessFromFileURLs.
18149
18150        * Api/qwebsettings.cpp:
18151        (QWebSettingsPrivate::apply):
18152
181532009-03-03  Adam Barth  <abarth@webkit.org>
18154
18155        Reviewed by Alexey Proskuryakov.
18156
18157        https://bugs.webkit.org/show_bug.cgi?id=24340
18158
18159        Expose AllowUniversalAccessFromFileUrls to Qt clients.
18160
18161        * Api/qwebsettings.cpp:
18162        (QWebSettingsPrivate::apply):
18163        (QWebSettings::QWebSettings):
18164        * Api/qwebsettings.h:
18165
181662009-03-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18167
18168        Rubber-stamped by Simon Hausmann.
18169
18170        [Qt] Create and update the action for SelectAll.
18171
18172        * Api/qwebpage.cpp:
18173        (QWebPagePrivate::updateAction):
18174        (QWebPagePrivate::updateEditorActions):
18175        (QWebPage::action):
18176        * tests/qwebpage/tst_qwebpage.cpp:
18177        (tst_QWebPage::textSelection):
18178
181792009-03-02  Adam Treat  <adam.treat@torchmobile.com>
18180
18181        Reviewed by Eric Seidel.
18182
18183        Add three new drt helper functions that enable all of the tests in
18184        LayoutTests/animation/* and LayoutTests/transitions/* to now pass.
18185
18186        * Api/qwebframe.cpp:
18187        (qt_drt_pauseAnimation):
18188        (qt_drt_pauseTransitionOfProperty):
18189        (qt_drt_numberOfActiveAnimations):
18190
181912009-03-02  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
18192
18193        Reviewed by George Staikos.
18194
18195        https://bugs.webkit.org/show_bug.cgi?id=21230
18196        On X11 match the behavior of Firefox and also copy the url to the
18197        clipboard selection when the action Copy Link Location is executed.
18198
18199        * Api/qwebpage.cpp:
18200        (QWebPage::triggerAction):
18201
182022009-02-25  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
18203
18204        Reviewed by Simon Hausmann.
18205
18206        Fix the documentation for the linkHovered signal.
18207
18208        * Api/qwebpage.cpp:
18209
182102009-02-23  Adam Treat  <adam.treat@torchmobile.com>
18211
18212        Reviewed by Darin Adler.
18213
18214        https://bugs.webkit.org/show_bug.cgi?id=24094
18215        Make sure to empty the cache on exit to get rid of superfluous leak messages
18216        for CachedResource's in order to keep the leak messages accurate.  This
18217        is analagous to what the Mac port is doing on application exit when all
18218        WebView's have been closed.
18219
18220        * Api/qwebpage.cpp:
18221        (QWebPagePrivate::_q_cleanupLeakMessages):
18222        (QWebPage::QWebPage):
18223        * Api/qwebpage.h:
18224        * Api/qwebpage_p.h:
18225
182262009-02-23  Thiago Macieira  <thiago.macieira@nokia.com>
18227
18228        Reviewed by Simon Hausmann.
18229
18230        Fix the Copyright notices in a few files
18231
18232        * WebKit_pch.h:
18233
182342009-02-16  Simon Hausmann  <simon.hausmann@nokia.com>
18235
18236        Reviewed by Tor Arne Vestbø.
18237
18238        Avoid loading plugins when they're disabled in the settings.
18239
18240        * WebCoreSupport/FrameLoaderClientQt.cpp:
18241        (WebCore::FrameLoaderClientQt::canShowMIMEType): Don't call into the
18242        PluginDatabase if plugins are disabled in the settings.
18243
182442009-02-13  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
18245
18246        Reviewed by Nikolas Zimmermann.
18247
18248        https://bugs.webkit.org/show_bug.cgi?id=23738
18249        Expose the url elements target frame string.  This is the sister function
18250        to the existing linkTargetFrame which returns the QWebFrame*.  When the
18251        linkTargetFrame is 0 it is useful to know what the target was to be.
18252
18253        * Api/qwebframe.cpp:
18254        (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
18255        (QWebHitTestResult::linkTarget):
18256        * Api/qwebframe.h:
18257        * Api/qwebframe_p.h:
18258        * tests/qwebframe/tst_qwebframe.cpp:
18259
182602009-02-13  David Boddie  <dboddie@trolltech.com>
18261
18262        Reviewed by Simon Hausmann.
18263
18264        Removed documentation for internal functions.
18265
18266        * Api/qwebsettings.cpp:
18267
182682009-02-13  Martin Smith  <msmith@trolltech.com>
18269
18270        Reviewed by Simon Hausmann.
18271
18272        Corrected some minor qdoc errors.
18273
18274        * Api/qwebsettings.cpp:
18275
182762009-02-11  Dimitri Dupuis-latour  <dupuislatour@apple.com>
18277
18278        Stub out InspectorClientQt::hiddenPanels.
18279
18280        Reviewed by Timothy Hatcher.
18281
18282        * WebCoreSupport/InspectorClientQt.cpp:
18283        (WebCore::InspectorClientQt::hiddenPanels):
18284        * WebCoreSupport/InspectorClientQt.h:
18285
182862009-02-10  Karsten Heimrich  <kheimric@trolltech.com>
18287
18288        Reviewed by Simon Hausmann.
18289
18290        Fixes missing navigation/url update while clicking on anchor inside
18291        webpage.
18292
18293        * WebCoreSupport/FrameLoaderClientQt.cpp:
18294        (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
18295        update and emit in case we navigate inside a webpage
18296
182972009-02-10  Adam Treat  <adam.treat@torchmobile.com>
18298
18299        Fix the Qt build as class Selection is now VisibleSelection.
18300
18301        * Api/qwebpage.cpp:
18302        (QWebPage::inputMethodQuery):
18303
183042009-02-06  Geoffrey Garen  <ggaren@apple.com>
18305
18306        Build fix.
18307
18308        * WebCoreSupport/FrameLoaderClientQt.cpp:
18309        (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
18310        * WebCoreSupport/FrameLoaderClientQt.h:
18311
183122009-02-06  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
18313
18314        Reviewed by Simon Hausmann.
18315
18316        Doc - made 2 functions internal as they are not part of the API anymore (and this fixes 2 qdoc warnings)
18317
18318        * Api/qwebsettings.cpp:
18319
183202009-02-06  Simon Hausmann  <simon.hausmann@nokia.com>
18321
18322        Reviewed by Tor Arne Vestbø.
18323
18324        Added an overload of QWebFrame::addToJavaScriptWindowObject that takes a QScriptEngine::ValueOwnership parameter.
18325
18326        * Api/qwebframe.cpp:
18327        (QWebFrame::addToJavaScriptWindowObject): New overload.
18328        * Api/qwebframe.h:
18329        * tests/qwebframe/tst_qwebframe.cpp: Added unit tests for ownership
18330        models.
18331
183322009-02-06  Aaron Boodman  <aa@chromium.org>
18333
18334        Reviewed by Holger Freyther.
18335
18336        * WebCoreSupport/FrameLoaderClientQt.cpp:
18337        (WebCore::FrameLoaderClientQt::documentElementAvailable):)
18338        Fix compile error in Qt build introduced by the below change (r40694).
18339
183402009-02-05  Aaron Boodman  <aa@chromium.org>
18341
18342        Reviewed by Dave Hyatt.
18343
18344        https://bugs.webkit.org/show_bug.cgi?id=23708
18345        Adds documentElementAvailable() callback to FrameLoaderClient.
18346
18347        * WebCoreSupport/FrameLoaderClientQt.cpp:
18348        (WebCore::FrameLoaderClient::documentElementAvailable):
18349        Stub out documentElementAvailable().
18350        * WebCoreSupport/FrameLoaderClientQt.h:
18351        Ditto.
18352
183532009-02-04  David Boddie  <dboddie@trolltech.com>
18354
18355        Reviewed by Simon Hausmann.
18356
18357        Doc: Documented the return value of the evaluateJavaScript() function.
18358
18359        * Api/qwebframe.cpp:
18360
183612009-02-03  Simon Hausmann  <simon.hausmann@nokia.com>
18362
18363        Reviewed by Tor Arne Vestbø.
18364
18365        Added a unit test to verify the succesful conversion from QByteArray to
18366        JSByteArray and back to QByteArray.
18367
18368        * tests/qwebframe/tst_qwebframe.cpp:
18369
183702009-02-02  Geoffrey Garen  <ggaren@apple.com>
18371
18372        Build fix.
18373
18374        * Api/qwebframe.cpp:
18375        (QWebFrame::QWebFrame):
18376        (QWebFrame::load):
18377        (QWebFrame::setHtml):
18378        (QWebFrame::setContent):
18379
183802009-02-02  Geoffrey Garen  <ggaren@apple.com>
18381
18382        Build fix.
18383
18384        * WebCoreSupport/FrameLoaderClientQt.cpp:
18385        (WebCore::FrameLoaderClientQt::createFrame):
18386
183872009-02-02  Geoffrey Garen  <ggaren@apple.com>
18388
18389        Reviewed by Sam Weinig.
18390
18391        Track redirects in global history.
18392
18393        Keep Qt building.
18394
18395        * WebCoreSupport/FrameLoaderClientQt.cpp:
18396        (WebCore::FrameLoaderClientQt::updateGlobalHistoryForRedirectWithoutHistoryItem):
18397        (WebCore::FrameLoaderClientQt::createFrame):
18398        * WebCoreSupport/FrameLoaderClientQt.h:
18399
184002009-02-02  Anders Carlsson  <andersca@apple.com>
18401
18402        Reviewed by Dan Bernstein.
18403
18404        Update for changes to WebCore.
18405
18406        * WebCoreSupport/FrameLoaderClientQt.cpp:
18407        (WebCore::FrameLoaderClientQt::createPlugin):
18408        (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
18409        * WebCoreSupport/FrameLoaderClientQt.h:
18410
184112009-02-02  Adam Treat  <adam.treat@torchmobile.com>
18412
18413        Reviewed by Nikolas Zimmermann.
18414
18415        https://bugs.webkit.org/show_bug.cgi?id=23587
18416        Refactor HitTestRequest to eliminate all the ugly boolean arguments and
18417        use an enum bitflag instead.  Cleanup all the code that constructs the
18418        various HitTestRequests to make the code more readable.
18419
18420        * Api/qwebframe.cpp:
18421        (QWebFrame::hitTestContent):
18422
184232009-02-02  Adam Treat  <adam.treat@torchmobile.com>
18424
18425        Fix the Qt build to call forceLayout on the view instead.
18426
18427        * Api/qwebpage.cpp:
18428        (QWebPage::setFixedLayoutSize):
18429        (QWebPage::setUseFixedLayout):
18430
184312009-02-02  Holger Hans Peter Freyther  <zecke@selfish.org>
18432
18433        Reviewed by Darin Adler.
18434
18435        Move Frame::forceLayout, Frame::adjustPageHeight and Frame::forceLayoutWithPageWidthRange to FrameView
18436
18437        https://bugs.webkit.org/show_bug.cgi?id=23428
18438
18439        FrameView::forceLayout could be killed but the comment might
18440        contain a value over the the plain FrameView::layout...
18441
18442        Adjust the WebCore/WebKit consumers of these methods.
18443
18444        * Api/qwebpage.cpp:
18445        (QWebPage::setViewportSize):
18446        * WebCoreSupport/FrameLoaderClientQt.cpp:
18447        (WebCore::FrameLoaderClientQt::forceLayout):
18448
184492009-01-30  Geoffrey Garen  <ggaren@apple.com>
18450
18451        Build fix.
18452
18453        * WebCoreSupport/FrameLoaderClientQt.cpp:
18454        (WebCore::FrameLoaderClientQt::createFrame):
18455
184562009-01-30  Holger Hans Peter Freyther  <zecke@selfish.org>
18457
18458        Reviewed by Simon Hausmann.
18459
18460        https://bugs.webkit.org/show_bug.cgi?id=22056
18461
18462        Kill FrameLoaderClient.cpp, move the code over to Frame::createView
18463
18464        FrameLoaderClient is supposed to be an interface, move the
18465        to be shared code to Frame which is a controller and is
18466        allowed to create a FrameView.
18467
18468        * WebCoreSupport/FrameLoaderClientQt.cpp:
18469        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
18470
184712009-01-30  Geoffrey Garen  <ggaren@apple.com>
18472
18473        Reviewed by Sam Weinig.
18474
18475        Split "lockHistory" into "lockHistory" and "lockBackForwardList" in
18476        preparation for setting them differently during a redirect.
18477
18478        * Api/qwebpage.cpp:
18479        (QWebPage::triggerAction):
18480
184812009-01-30  Brady Eidson  <beidson@apple.com>
18482
18483        Reviewed by Sam Weinig
18484
18485        Remove FrameLoaderClient code that is now handled by FrameLoader itself
18486
18487        * WebCoreSupport/FrameLoaderClientQt.cpp:
18488        (WebCore::FrameLoaderClientQt::frameLoadCompleted):
18489
184902009-01-30  Simon Hausmann  <simon.hausmann@nokia.com>
18491
18492        Reviewed by Tor Arne Vestbø.
18493
18494        Hide the Offline Web Application Cache path API from the public API
18495        for now.
18496
18497        * Api/qwebsettings.cpp:
18498        (qt_websettings_setOfflineWebApplicationCachePath):
18499        (qt_websettings_offlineWebApplicationCachePath):
18500        * Api/qwebsettings.h:
18501
185022009-01-28  Adam Treat  <adam.treat@torchmobile.com>
18503
18504        Reviewed by Nikolas Zimmermann and George Staikos.
18505
18506        https://bugs.webkit.org/show_bug.cgi?id=23557
18507        Do not clip the QWebFrame::hitTestContent method to the visible viewport
18508        and add a regression test to make sure it works.
18509
18510        * Api/qwebframe.cpp:
18511        (QWebFrame::hitTestContent):
18512        * tests/qwebframe/tst_qwebframe.cpp:
18513
185142009-01-28  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18515
18516        Rubber-stamped by Simon Hausmann.
18517
18518        Provide default implementations of JavaScript dialog boxes like in
18519        most web browsers, i.e. indicate that is from JavaScript and show the
18520        frame URL.
18521
18522        * Api/qwebpage.cpp:
18523        (QWebPage::javaScriptAlert):
18524        (QWebPage::javaScriptConfirm):
18525        (QWebPage::javaScriptPrompt):
18526
185272009-01-27  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18528
18529        Reviewed by Simon Hausmann.
18530
18531        http://qt.nokia.com/developer/task-tracker/index_html?id=238391&method=entry
18532
18533        [Qt] If QPainter fails to start on a QPrinter instance, do not
18534        continue printing.
18535
18536        * Api/qwebframe.cpp:
18537        (QWebFrame::print):
18538
185392009-01-27  Brady Eidson  <beidson@apple.com>
18540
18541        Reviewed by Dan Bernstein
18542
18543        Rework FrameLoaderClient to work on a CachedFrame basis instead of CachedPage
18544
18545        * WebCoreSupport/FrameLoaderClientQt.cpp:
18546        (WebCore::FrameLoaderClientQt::savePlatformDataToCachedFrame):
18547        (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedFrame):
18548        * WebCoreSupport/FrameLoaderClientQt.h:
18549
185502009-01-26  Simon Fraser  <simon.fraser@apple.com>
18551
18552        Reviewed by David Hyatt
18553
18554        Back out r40285, because it was checked in with no bug number, no
18555        testcase, is rendering change that did not get thorough review,
18556        and broke the Mac build.
18557
18558        * Api/qwebframe.cpp:
18559        (QWebFrame::hitTestContent):
18560
185612009-01-26  Adam Treat  <adam.treat@torchmobile.com>
18562
18563        Reviewed by Nikolas Zimmermann.
18564
18565        Do not clip the QWebFrame::hitTestContent method to the visible viewport.
18566
18567        * Api/qwebframe.cpp:
18568        (QWebFrame::hitTestContent):
18569
185702009-01-26  David Boddie  <dboddie@trolltech.com>
18571
18572        Reviewed by Simon Hausmann.
18573
18574        Doc: qdoc fix for a link to a property and added a basic description of the offline caching and storage features from HTML 5.
18575
18576        * Api/qwebpage.cpp:
18577        * Api/qwebsettings.cpp:
18578
185792009-01-25  Urs Wolfer  <uwolfer@kde.org>
18580
18581        Reviewed by Simon Hausmann.
18582
18583        Add QWebPage::SelectAll to WebAction enum to select all content.
18584
18585        https://bugs.webkit.org/show_bug.cgi?id=22946
18586
18587        * Api/qwebpage.cpp:
18588        (QWebPagePrivate::editorActionForKeyEvent):
18589        * Api/qwebpage.h:
18590
185912009-01-25  David Boddie  <dboddie@trolltech.com>
18592
18593        Reviewed by Simon Hausmann.
18594
18595        Doc: Fixed the terminology used.
18596
18597        * Api/qwebpage.cpp:
18598
185992009-01-25  Thiago Macieira  <thiago.macieira@nokia.com>
18600
18601        Reviewed by Simon Hausmann.
18602
18603        Rename links from trolltech.com to qtsoftware.com
18604
18605        * Api/qwebpluginfactory.cpp:
18606
186072009-01-25  Tor Arne Vestbø  <tavestbo@trolltech.com>
18608
18609        Reviewed by Simon Hausmann.
18610
18611        Make QWebPage auto-test more robust by cleaning up generated files
18612
18613        Sometimes the auto-test may segfault, leaving behind files because the
18614        call to cleanupTestCase() never happens, so we also clean up the files
18615        at initTestCase() just to make sure we're running in a clean environment.
18616
18617        * tests/qwebpage/tst_qwebpage.cpp:
18618        (tst_QWebPage::cleanupFiles):
18619        (tst_QWebPage::initTestCase):
18620        (tst_QWebPage::cleanupTestCase):
18621
186222008-12-20  Urs Wolfer  <uwolfer@kde.org>
18623
18624        Reviewed by Simon Hausmann.
18625
18626        Fix: compile qwebhistory.h with pendantic comiler flag.
18627
18628        https://bugs.webkit.org/show_bug.cgi?id=22947
18629
18630        * Api/qwebhistory.h:
18631
186322009-01-24  Adam Treat  <adam.treat@torchmobile.com>
18633
18634        Oops, fix the Qt build.
18635
18636        * Api/qwebframe.cpp:
18637        (QWebFrame::render):
18638
186392009-01-24  Adam Treat  <adam.treat@torchmobile.com>
18640
18641        Reviewed by Nikolas Zimmermann.
18642
18643        Add QWebFrame::renderContents() method which allows arbitary rendering
18644        of any content region within the QWebFrame.  It also does not draw any
18645        scrollbars.
18646
18647        * Api/qwebframe.cpp:
18648        (QWebFrame::renderContents):
18649        * Api/qwebframe.h:
18650
186512009-01-23  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18652
18653        Reviewed by Simon Hausmann.
18654
18655        Make the test more robust by taking into account the platform-specific
18656        cursor flashing time.
18657
18658        * tests/qwebframe/tst_qwebframe.cpp:
18659
186602009-01-20  Friedemann Kleint  <Friedemann.Kleint@nokia.com>
18661
18662        Reviewed by Simon Hausmann.
18663
18664        Fix spelling error in QWebPage
18665
18666        * Api/qwebpage.cpp:
18667        (QWebPage::action):
18668
186692009-01-19  Simon Hausmann  <simon.hausmann@nokia.com>
18670
18671        Reviewed by Tor Arne Vestbø.
18672
18673        Fix calling of onkeypress event handlers on input elements when pressing enter
18674        and other text insertion commands in the Qt port.
18675
18676        Similar to the win and mac ports don't execute text inserting editor
18677        commands on RawKeyDown but continue processing the event first in
18678        WebCore, i.e. also get a keypress event sent. If unhandled it will
18679        come back to EditorClientQt::handleKeyboardEvent later and we execute
18680        it then.
18681
18682        This also fixes search by pressing enter on www.trafikanten.no.
18683
18684        * Api/qwebpage.cpp:
18685        (QWebPagePrivate::editorCommandForWebActions): Make function
18686        accessible from other files.
18687        (QWebPage::triggerAction): Adjust to new function visibility.
18688        * Api/qwebpage_p.h: Ditto.
18689        * WebCoreSupport/EditorClientQt.cpp:
18690        (WebCore::EditorClientQt::handleKeyboardEvent): Don't execute
18691        text inserting commands on RawKeyPressDown.
18692
186932009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18694
18695        Rubber-stamped by Simon Hausmann.
18696
18697        [Qt] Increase popup focus delay time to a sensible 500 ms.
18698
18699        * tests/qwebframe/tst_qwebframe.cpp:
18700
187012009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18702
18703         Reviewed by Adam Roben.
18704
18705         [Qt] Prevent crash if plugin data is NULL.
18706
18707         * WebCoreSupport/FrameLoaderClientQt.cpp: NULL check.
18708         (WebCore::FrameLoaderClientQt::objectContentType):
18709
187102009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18711
18712        Rubber-stamped by Simon Hausmann.
18713
18714        [Qt] Per-line cursor movement tests depend on platform-specific font
18715        metrics. Remove them to avoid test failures on different platforms.
18716
18717        * tests/qwebpage/tst_qwebpage.cpp:
18718        (tst_QWebPage::cursorMovements):
18719
187202009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18721
18722        Rubber-stamped by Simon Hausmann.
18723
18724        http://qt.nokia.com/developer/task-tracker/index_html?id=219344&method=entry
18725
18726        [Qt] API documentation for QWebPage::WebAction enum.
18727
18728        * Api/qwebpage.cpp:
18729
187302009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18731
18732        Another attempt at fixing the Qt build.
18733
18734        * Api/qwebframe.cpp:
18735        (QWebFrame::addToJavaScriptWindowObject):
18736
187372009-01-14  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18738
18739        Reviewed by Tor Arne Vestbø.
18740
18741        [Qt] Unit tests for text selection and editing actions of QWebPage.
18742        The following are tested:
18743            - the actions are not NULL
18744            - the actions are disabled when contentEditable is false
18745            - the actions are enabled when contentEditable is true
18746
18747        * tests/qwebpage/tst_qwebpage.cpp:
18748        (tst_QWebPage::textSelection):
18749        (tst_QWebPage::textEditing):
18750
187512009-01-14  Simon Hausmann  <simon.hausmann@nokia.com>
18752
18753        Reviewed by Tor Arne Vestbø.
18754
18755        Fix failing assertion when pressing an extra mouse button on a
18756        QWebView.
18757
18758        Mice with more than three buttons - for example with a dedicated
18759        "back" button - can generate Qt::XButton1 or Button2.
18760        WebCore::MouseButton contains only Left, Middle and Right, so in
18761        Qt's PlatformMouseEvent we map to NoButton, resulting in a mouse
18762        press or release even with no button set. That triggers an assertion
18763        in EventTargetNode::dispatchMouseEvent requiring that either a button
18764        is set or it is just a mouse move event, which is correct.
18765
18766        In QWebPage decide not to dispatch such mouse events where we cannot
18767        map the mouse button to a WebCore::MouseButton.
18768
18769        * Api/qwebpage.cpp:
18770        (QWebPagePrivate::mousePressEvent):
18771        (QWebPagePrivate::mouseDoubleClickEvent):
18772        (QWebPagePrivate::mouseTripleClickEvent):
18773        (QWebPagePrivate::mouseReleaseEvent):
18774
187752009-01-14  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18776
18777        Reviewed by Simon Hausmann.
18778
18779        http://qt.nokia.com/developer/task-tracker/index_html?id=241144&method=entry
18780
18781        [Qt] Create actions for text selection and editing for QWebPage.
18782        Also properly disable and enable them when contentEditable is toggled.
18783
18784        * Api/qwebpage.cpp:
18785        (QWebPagePrivate::updateAction):
18786        (QWebPagePrivate::updateEditorActions):
18787        (QWebPage::action):
18788
187892009-01-14  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18790
18791        Reviewed by Simon Hausmann.
18792
18793        [Qt] Unit tests for cursor movements. The following are tested:
18794            - the actions are not NULL
18795            - the actions are disabled when contentEditable is false
18796            - the actions are enabled when contentEditable is true
18797            - the cursor moves properly when the actions are triggered
18798
18799        * tests/qwebpage/tst_qwebpage.cpp:
18800        (CursorTrackedPage::CursorTrackedPage):
18801        (CursorTrackedPage::selectedText):
18802        (CursorTrackedPage::selectionStartOffset):
18803        (CursorTrackedPage::selectionEndOffset):
18804        (CursorTrackedPage::isSelectionCollapsed):
18805        (tst_QWebPage::cursorMovements):
18806
188072009-01-08  Yongjun Zhang  <yongjun.zhang@nokia.com>
18808
18809        Reviewed by Simon Hausmann.
18810
18811        https://bugs.webkit.org/show_bug.cgi?id=23187
18812
18813        Update webview with the intersected rect.
18814
18815        In ChromeClientQt::repaint, view should be updated with the
18816        intersected rect, not the whole windowRect;
18817
18818        This generally is not a problem for normal viewport setup where
18819        viewport size is the same as the qwebview widget size.  However, if we
18820        set the viewport size smaller than qwebkit widget, we will see
18821        unwanted painting outside the viewport.
18822
18823        * WebCoreSupport/ChromeClientQt.cpp:
18824        (WebCore::ChromeClientQt::repaint):
18825
188262009-01-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18827
18828        Rubber-stamped by Tor Arne Vestbø.
18829
18830        [Qt] Missing piece from my previous commit:
18831        Disable and enable the cursor navigation actions when contentEditable
18832        is changed.
18833
18834        * Api/qwebpage.cpp:
18835        (QWebPagePrivate::updateEditorActions):
18836
188372009-01-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18838
18839        Reviewed by Tor Arne Vestbø.
18840
18841        [Qt] Create actions for cursor navigation for QWebPage.
18842        Also properly disable and enable them when contentEditable is toggled.
18843
18844        * Api/qwebpage.cpp:
18845        (QWebPagePrivate::updateAction):
18846        (QWebPage::action):
18847
188482009-01-13  Simon Hausmann  <simon.hausmann@nokia.com>
18849
18850        Reviewed by Tor Arne Vestbø.
18851
18852        https://bugs.webkit.org/show_bug.cgi?id=23171
18853
18854        Based on patch by Yael Aharon  <yael.aharon@nokia.com>
18855
18856        Make the QWebSettings functions for setting the path for the local
18857        storage database private QtWebkit API, including the ability to
18858        associated a QWebPage with a named page group.
18859
18860        * Api/qwebpage.cpp:
18861        (qt_webpage_setGroupName): Added.
18862        (qt_webpage_groupName): Added.
18863        * Api/qwebpage.h:
18864        (ExtensionOption::handle): Added internal helper function.
18865        * Api/qwebsettings.cpp:
18866        (qt_websettings_setLocalStorageDatabasePath): Made private API.
18867        (qt_websettings_localStorageDatabasePath): Made private API.
18868        * Api/qwebsettings.h:
18869        * tests/qwebpage/tst_qwebpage.cpp:
18870        (tst_QWebPage::database): Small cleanup.
18871        (tst_QWebPage::multiplePageGroupsAndLocalStorage): New test for the
18872        page group handling, written by Yael.
18873
188742009-01-12  Tor Arne Vestbø  <tavestbo@trolltech.com>
18875
18876        Reviewed by Simon Hausmann.
18877
18878        [Qt] Ensure that we're always notified of navigation actions for local anchors
18879
18880        FrameLoader::checkNavigationPolicy() does not notify us if the request has
18881        been checked before (which happens for local anchors), but in the case of
18882        our clients not accepting the navigation request we do want to be notified
18883        again later on, so we clear the lastCheckedRequest flag.
18884
18885        * WebCoreSupport/FrameLoaderClientQt.cpp:
18886        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
18887        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
18888
188892009-01-12  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18890
18891        Rubber-stamped by Tor Arne Vestbø.
18892
18893        Build fix: use qobject_cast which does not rely on RTTI. This fixes the
18894        unit test when building it with a version of Qt (e.g. Qt/Embedded)
18895        configured without RTTI.
18896
18897        * tests/qwebframe/tst_qwebframe.cpp:
18898
188992009-01-12  Simon Hausmann  <simon.hausmann@nokia.com>
18900
18901        Rubber-stamped by Tor Arne Vestbø.
18902
18903        When the QWebView is disabled context menus implemented in JavaScript should not pop up.
18904
18905        Just like in QWidget::event() we have to check for the disabled state and
18906        ignore context menu events.
18907
18908        * Api/qwebview.cpp:
18909
189102009-01-12  Simon Hausmann  <simon.hausmann@nokia.com
18911
18912        Reviewed by Tor Arne Vestbø.
18913
18914        Fix QWebView appearance when showed uninitialized without page.
18915
18916        Only set WA_OpaquePaintEvent if we have a page set that will actually
18917        paint the entire contents, otherwise the optimization does not apply
18918        as we do not have a paintEvent() implementation and Qt has to fill the
18919        view with its default background instead.
18920
18921        * Api/qwebview.cpp:
18922        (QWebView::QWebView):
18923        (QWebView::setPage):
18924
189252009-01-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
18926
18927        Rubber-stamped by Tor Arne Vestbø.
18928
18929        Do not create a QVariant from QObject* directly, use the
18930        template-specialized function.
18931
18932        * tests/qwebframe/tst_qwebframe.cpp:
18933        (MyQObject::myOverloadedSlot):
18934
189352009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
18936
18937        Rubber-stamped by Tor Arne Vestbø.
18938
18939        Documentation fixes, remove duplicated docs, document missing
18940        parameters and return values.
18941
18942        * Api/qwebdatabase.cpp:
18943        * Api/qwebpage.cpp:
18944
189452009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
18946
18947        Reviewed by Tor Arne Vestbø.
18948
18949        Fix linking against QtWebKit on Windows, by defining the EXPORT macros
18950        _exactly_ the same way as in qglobal.h, depending on QT_NODLL,
18951        QT_MAKEDLL and QT_SHARED.
18952
18953        * Api/qwebkitglobal.h:
18954
189552009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
18956
18957        Reviewed by Tor Arne Vestbø.
18958
18959        Remove qwebnetworkinterface.h from WEBKIT_API_HEADERS as it's not
18960        public Qt 4.4/4.5 API.
18961
18962        * Api/headers.pri:
18963
189642009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
18965
18966        Unreviewed Qt build fix, remove qcookiejar.h from the API headers and
18967        therefore HEADERS. It's not part of the API and it moc shouldn't be
18968        called on it.
18969
18970        * Api/headers.pri:
18971
189722009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
18973
18974        Rubber-stamped by Tor Arne Vestbø.
18975
18976        Remove files not present anymore from the WEBKIT_API_HEADERS variable.
18977
18978        * Api/headers.pri:
18979
189802009-01-08  Adam Treat  <adam.treat@torchmobile.com>
18981
18982        Reviewed by Simon Hausmann.
18983
18984        Don't set the minimumFontSize and minimumLogicalFontSize as these are
18985        just for accessibility and should be left up to the client application.
18986
18987        * Api/qwebsettings.cpp:
18988        (QWebSettings::QWebSettings):
18989
189902009-01-08  Kavindra Palaraja  <kdpalara@trolltech.com>
18991
18992        Reviewed by Simon Hausmann.
18993
18994        Small fixes to the API documentation, missing 4.5 tags and
18995        undocumented parameters.
18996
18997        * Api/qwebhistory.cpp:
18998        * Api/qwebpage.cpp:
18999        * Api/qwebsettings.cpp:
19000
190012009-01-07  Adam Treat  <adam.treat@torchmobile.com>
19002
19003        Reviewed by George Staikos.
19004
19005        Add Qt API to QWebHitTestResult::isScrollBar method
19006
19007        * Api/qwebframe.cpp:
19008        (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
19009        (QWebHitTestResult::isScrollBar):
19010        * Api/qwebframe.h:
19011        * Api/qwebframe_p.h:
19012        (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
19013
190142009-01-07  Adam Treat  <adam.treat@torchmobile.com>
19015
19016        Reviewed by George Staikos.
19017
19018        Add Qt API for QWebFrame::scrollBarGeometry method
19019
19020        * Api/qwebframe.cpp:
19021        (QWebFrame::scrollBarGeometry):
19022        * Api/qwebframe.h:
19023
190242009-01-07  Adam Treat  <adam.treat@torchmobile.com>
19025
19026        Reviewed by George Staikos.
19027
19028        Fix unused variable warnings
19029
19030        * tests/qwebpage/tst_qwebpage.cpp:
19031        (TestPage::createWindow):
19032
190332009-01-07  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19034
19035        Rubber-stamped by Simon Hausmann.
19036
19037        Qt build fix after r39670.
19038
19039        * Api/qwebframe.cpp:
19040        (QWebFrame::evaluateJavaScript):
19041
190422009-01-06  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19043
19044        Reviewed by Holger Freyther.
19045
19046        Allow building QtWebKit statically (within Qt).
19047
19048        http://trolltech.com/developer/task-tracker/index_html?id=211273&method=entry
19049
19050        * Api/qwebkitglobal.h:
19051
190522009-01-06  Adam Treat  <adam.treat@torchmobile.com>
19053
19054        Reviewed by Simon Hausmann.
19055
19056        Update the documentation to reflect when these API changes will land in
19057        upstream Qt
19058
19059        * Api/qwebframe.cpp:
19060        * Api/qwebpage.cpp:
19061
190622009-01-05  Adam Treat  <adam.treat@torchmobile.com>
19063
19064        Reviewed by George Staikos.
19065
19066        Add Qt API for QWebFrame::contentsSizeChanged signal
19067
19068        * Api/qwebframe.cpp:
19069        * Api/qwebframe.h:
19070        * WebCoreSupport/ChromeClientQt.cpp:
19071        (WebCore::ChromeClientQt::contentsSizeChanged):
19072        * WebCoreSupport/ChromeClientQt.h:
19073
190742009-01-05  Adam Treat  <adam.treat@torchmobile.com>
19075
19076        Reviewed by George Staikos.
19077
19078        Fixes QWebFrame::setScrollBarPolicy(..) to actually work.  Also happens
19079        to fix 192 layout tests that were previously failing for Qt.
19080
19081        * Api/qwebframe.cpp:
19082        (QWebFrame::setScrollBarPolicy):
19083        * WebCoreSupport/FrameLoaderClientQt.cpp:
19084        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
19085
190862009-01-04  Adam Treat  <adam.treat@torchmobile.com>
19087
19088        Reviewed by George Staikos.
19089
19090        Add new API to QWebHitTestResult to return a rect for the smallest enclosing
19091        block element of the hit test
19092
19093        * Api/qwebframe.cpp:
19094        (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
19095        (QWebHitTestResult::enclosingBlock):
19096        * Api/qwebframe.h:
19097        * Api/qwebframe_p.h:
19098
190992008-12-30  Adam Treat  <adam.treat@torchmobile.com>
19100
19101        Reviewed by George Staikos.
19102
19103        Make the qt port build and work with the new fixedLayoutSize feature
19104
19105        * Api/qwebpage.cpp:
19106        (QWebPagePrivate::QWebPagePrivate):
19107        (QWebPage::fixedLayoutSize):
19108        (QWebPage::setFixedLayoutSize):
19109        (QWebPage::useFixedLayout):
19110        (QWebPage::setUseFixedLayout):
19111        * Api/qwebpage.h:
19112        * Api/qwebpage_p.h:
19113        * WebCoreSupport/FrameLoaderClientQt.cpp:
19114        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
19115
191162008-12-19  Jade Han <jade.han@nokia.com>
19117
19118        Reviewed by Tor Arne Vestbø.
19119
19120        [Qt] Allow conversion of JavaScript Number and Boolean types to Qt types
19121
19122        https://bugs.webkit.org/show_bug.cgi?id=22880
19123
19124        * tests/qwebframe/tst_qwebframe.cpp:
19125        (MyQObject::myInvokableWithBoolArg):
19126
191272008-12-18  Yael Aharon  <yael.aharon@nokia.com>
19128
19129        Reviewed by Tor Arne Vestbø.
19130
19131        When Web Inspector is launched without an associated node,
19132        call show() instead of inspect().
19133
19134        * Api/qwebpage.cpp:
19135        (QWebPage::triggerAction):
19136
191372008-12-18  Dan Bernstein  <mitz@apple.com>
19138
19139        Reviewed by Sam Weinig.
19140
19141        - stub out FrameLoaderClient::shouldUseCredentialStorage().
19142
19143        * WebCoreSupport/FrameLoaderClientQt.cpp:
19144        (WebCore::FrameLoaderClientQt::shouldUseCredentialStorage):
19145        * WebCoreSupport/FrameLoaderClientQt.h:
19146
191472008-12-18  Sam Weinig  <sam@webkit.org>
19148
19149        Reviewed by John Sullivan.
19150
19151        Stub out FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout()
19152
19153        * WebCoreSupport/FrameLoaderClientQt.cpp:
19154        (WebCore::FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout):
19155        * WebCoreSupport/FrameLoaderClientQt.h:
19156
191572008-12-16  Simon Hausmann  <hausmann@webkit.org>
19158
19159        Reviewed by Holger Freyther.
19160
19161        Added support for unload event counting to the Qt DRT.
19162
19163        * Api/qwebpage.cpp:
19164        (qt_drt_run): Moved function here.
19165        * Api/qwebpage_p.h: Moved drt run boolean here.
19166        * WebCoreSupport/EditorClientQt.cpp: Moved drt run boolean.
19167        (WebCore::EditorClientQt::shouldShowDeleteInterface): Use the new drt
19168        run variable.
19169        * WebCoreSupport/FrameLoaderClientQt.cpp:
19170        (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): Add DRT
19171        output for unload event handler counting.
19172
191732008-12-15  Holger Hans Peter Freyther  <zecke@selfish.org>
19174
19175        Reviewed by Simon Hausmann.
19176
19177        Change the order of sub frame initialisation to avoid crashes
19178
19179        Add the newly created frame to the FrameTree before calling
19180        WebCore::Frame::init to not segfault on
19181        LayoutTests/fast/loader/frame-creation-removal.html.
19182
19183        * Api/qwebframe.cpp:
19184        (QWebFramePrivate::init):
19185        * WebCoreSupport/FrameLoaderClientQt.cpp:
19186        (WebCore::FrameLoaderClientQt::createFrame):
19187
191882008-12-15  Simon Hausmann  <hausmann@webkit.org>
19189
19190        Reviewed by Holger Freyther.
19191
19192        Implement setJavaScriptProfilingEnabled in the Qt DRT to pass fast/profiler.
19193
19194        * Api/qwebframe.cpp:
19195        (qt_drt_setJavaScriptProfilingEnabled):
19196
191972008-12-12  Simon Hausmann  <hausmann@webkit.org>
19198
19199        Reviewed by Tor Arne Vestbø.
19200
19201        Fix pressing return/enter not triggering any action on web sites
19202        that define event handlers, such as the JS console in the web
19203        inspector.
19204
19205        Process the key events in the DOM first and if not handled map them
19206        to editor actions.
19207
19208        * Api/qwebpage.cpp:
19209        (QWebPagePrivate::editorActionForKeyEvent): Made a class method.
19210        (QWebPagePrivate::keyPressEvent): Pass the key event first to the DOM.
19211        * WebCoreSupport/EditorClientQt.cpp:
19212        (WebCore::EditorClientQt::handleKeyboardEvent): Map the key event to
19213        actions and trigger them.
19214
192152008-12-12  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19216
19217        Reviewed by Simon Hausmann.
19218
19219        Create the plugin widget even though the web page has no associated
19220        view. This prevents the plugin to be uselessly constructed more than once.
19221
19222        * WebCoreSupport/FrameLoaderClientQt.cpp:
19223        (WebCore::FrameLoaderClientQt::createPlugin):
19224        * tests/qwebpage/tst_qwebpage.cpp:
19225        (tst_QWebPage::createViewlessPlugin):
19226
192272008-12-11  Enrico Ros  <enrico.ros@m31.com>
19228
19229        Reviewed by Simon Hausmann.
19230
19231        Fix the broken focus behavior that happened when QWebPage lost
19232        focus to a popup menu.
19233
19234        The previous code didn't notify the QWebPage at all when the
19235        focus was back in (breaking focus rects, caret blinking, ...).
19236        By the way when a popup is show, 2 FocusOut events are delivered
19237        to the QWebPage, but this doesn't seem to hurt.
19238
19239        Added a test to check popup opening, closing a lineedit blinks.
19240
19241        * Api/qwebpage.cpp:
19242        (QWebPagePrivate::focusInEvent):
19243        (QWebPagePrivate::focusOutEvent):
19244        * tests/qwebframe/tst_qwebframe.cpp:
19245        (tst_QWebFrame::):
19246
192472008-12-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19248
19249        Reviewed by Tor Arne Vestbø.
19250
19251        When the web page is navigated away, delete the instance
19252        of the native plugin.
19253
19254        http://trolltech.com/developer/task-tracker/index_html?id=214946&method=entry
19255
19256        * WebCoreSupport/FrameLoaderClientQt.cpp:
19257        (WebCore::):
19258        * tests/qwebpage/tst_qwebpage.cpp:
19259        (PluginTrackedPage::PluginTrackedPage):
19260        (PluginTrackedPage::createPlugin):
19261        (tst_QWebPage::destroyPlugin):
19262
192632008-12-11  Yael Aharon  <yael.aharon@nokia.com>
19264
19265        Reviewed by Simon Hausmann.
19266
19267        Allow applications to save and restore their state between loads.
19268
19269        * Api/qwebframe.cpp:
19270        * Api/qwebframe.h:
19271        * WebCoreSupport/FrameLoaderClientQt.cpp:
19272        (WebCore::FrameLoaderClientQt::restoreViewState):
19273        (WebCore::FrameLoaderClientQt::saveViewStateToItem):
19274        * tests/qwebpage/tst_qwebpage.cpp:
19275        (tst_QWebPage::modified):
19276
192772008-12-08  Tor Arne Vestbø  <tavestbo@trolltech.com>
19278
19279        Reviewed by Darin Adler and Holger Freyther.
19280
19281        Make Widget::frameRectsChanged() and overrides non-const
19282
19283        This will hopefully allow us to get rid of some of the mutables in
19284        the classes that react to the callback by changing their own state.
19285
19286        * WebCoreSupport/FrameLoaderClientQt.cpp:
19287        (WebCore::):
19288
192892008-12-10  Holger Hans Peter Freyther  <zecke@selfish.org>
19290
19291        Reviewed by Simon Hausmann.
19292
19293        API changes discussed with Simon Hausmann, Tor Arne
19294        Vestbø, Ariya Hidayat...
19295
19296        * Api/qwebdatabase.cpp:
19297        (QWebDatabase::fileName):
19298        (QWebDatabase::removeDatabase):
19299        * Api/qwebdatabase.h:
19300        * Api/qwebframe.cpp:
19301        (QWebFrame::scroll):
19302        (QWebFrame::scrollPosition):
19303        (QWebFrame::setScrollPosition):
19304        * Api/qwebframe.h:
19305        * Api/qwebpage.cpp:
19306        (QWebPage::setContentEditable):
19307        (QWebPage::isContentEditable):
19308        (QWebPage::extension):
19309        * Api/qwebpage.h:
19310        * Api/qwebsecurityorigin.cpp:
19311        * Api/qwebsettings.cpp:
19312        (QWebSettingsPrivate::apply):
19313        (QWebSettings::QWebSettings):
19314        * Api/qwebsettings.h:
19315        * QtLauncher/main.cpp:
19316        (MainWindow::setEditable):
19317        * WebCoreSupport/ChromeClientQt.cpp:
19318        (WebCore::ChromeClientQt::exceededDatabaseQuota):
19319        (WebCore::ChromeClientQt::runOpenPanel):
19320        * WebCoreSupport/EditorClientQt.cpp:
19321        (WebCore::EditorClientQt::isEditable):
19322        * tests/qwebpage/tst_qwebpage.cpp:
19323        (tst_QWebPage::database):
19324
193252008-12-09  Balazs Kelemen  <Kelemen.Balazs.3@stud.u-szeged.hu>
19326
19327        Reviewed by Simon Hausmann.
19328
19329        Extended QtLauncher so now it can load pages from an url list
19330        one by one. This can be useful for testing purposes (eq. leak hunting).
19331        The -r option activates this feature.
19332
19333        https://bugs.webkit.org/show_bug.cgi?id=20932
19334
19335        * QtLauncher/main.cpp:
19336        (MainWindow::webPage):
19337        Just a coding style repairing (* written with no space between the return type name)
19338        (MainWindow::webView):
19339        I need the webView to connect it with the URLLoader object.
19340        (URLLoader::URLLoader):
19341        (URLLoader::loadNext):
19342        (URLLoader::init):
19343        (URLLoader::getUrl):
19344        (main):
19345
193462008-12-10  Simon Hausmann  <hausmann@webkit.org>
19347
19348        Fix the Qt build, added const to Node* parameter after change
19349        in signature.
19350
19351        * WebCoreSupport/ChromeClientQt.h:
19352        (WebCore::ChromeClientQt::formStateDidChange):
19353
193542008-12-09  Brett Wilson  <brettw@chromium.org>
19355
19356        Reviewed by Dave Hyatt.
19357
19358        https://bugs.webkit.org/show_bug.cgi?id=22177
19359
19360        Add a callback on ChromeClient that the state of form elements on
19361        the page has changed. This is to allow clients implementing session
19362        saving to know when the current state is dirty.
19363
19364        * WebCoreSupport/ChromeClientQt.h:
19365        (WebCore::ChromeClientQt::formStateDidChange):
19366
193672008-12-09  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19368
19369        Reviewed by Simon Hausmann.
19370
19371        Fix the documentation of the localStorageDatabasePath setters/getters.
19372
19373        * Api/qwebsettings.cpp:
19374
193752008-12-08  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19376
19377        Reviewed by Simon Hausmann.
19378
19379        Multiple files support for the file chooser.
19380
19381        * Api/qwebpage.cpp:
19382        (QWebPage::chooseFiles):
19383        * Api/qwebpage.h:
19384        * WebCoreSupport/ChromeClientQt.cpp:
19385        (WebCore::ChromeClientQt::runOpenPanel):
19386
193872008-12-06  Simon Fraser  <simon.fraser@apple.com>
19388
19389        Reviewed by Dave Hyatt
19390
19391        https://bugs.webkit.org/show_bug.cgi?id=15671
19392
19393        Renderer::caretRect() is now localCaretRect(), which needs
19394        converting to absolute coordinates (taking transforms into account).
19395
19396        * Api/qwebpage.cpp:
19397        (QWebPage::inputMethodQuery):
19398
193992008-12-03  Tor Arne Vestbø  <tavestbo@trolltech.com>
19400
19401        Reviewed by Simon Hausmann.
19402
19403        Allow passing jsNull and jsUndefined to Qt plugins
19404
19405        Currently limited to functions with QString and QVariant arguments,
19406        and properties of these types. Both jsNull and jsUndefined ends up
19407        as default-constructed QStrings and QVariants, which means you can
19408        check for isEmpty() and isValid() in the native plugin code.
19409
19410        Based on patches by Jade Han <jade.han@nokia.com>
19411
19412        * tests/qwebframe/tst_qwebframe.cpp:
19413
194142008-12-02  Simon Hausmann  <hausmann@webkit.org>
19415
19416        Rubber-stamped by Tor Arne Vestbø.
19417
19418        Initial API documentation for QWebDatabase, QWebSecurityOrigin and
19419        QWebFrame::securityOrigin().
19420
19421        * Api/qwebdatabase.cpp:
19422        * Api/qwebframe.cpp:
19423        * Api/qwebsecurityorigin.cpp:
19424
194252008-11-27  Kent Hansen  <khansen@trolltech.com>
19426
19427        Reviewed by Simon Hausmann.
19428
19429        Added auto tests for making JavaScript bindings for Qt plugin widgets
19430        work again.
19431
19432        * tests/qwebpage/tst_qwebpage.cpp:
19433        (PluginPage::PluginPage):
19434        (PluginPage::CallInfo::CallInfo):
19435        (PluginPage::createPlugin):
19436        (tst_QWebPage::createPlugin):
19437
194382008-11-25  Holger Hans Peter Freyther  <zecke@selfish.org>
19439
19440        Build fix. Use WebCore::Frame::loader instead of QWebFrame
19441
19442        * WebCoreSupport/FrameLoaderClientQt.cpp:
19443        (WebCore::FrameLoaderClientQt::updateGlobalHistory):
19444
194452008-11-24  Darin Fisher  <darin@chromium.org>
19446
19447        Fix bustage.
19448
19449        http://bugs.webkit.org/show_bug.cgi?id=15643
19450
19451        * WebCoreSupport/EditorClientQt.cpp:
19452        (WebCore::EditorClientQt::isSelectTrailingWhitespaceEnabled):
19453        * WebCoreSupport/EditorClientQt.h:
19454
194552008-11-24  Darin Adler  <darin@apple.com>
19456
19457        Reviewed by Dan Bernstein.
19458
19459        - https://bugs.webkit.org/show_bug.cgi?id=22470
19460          remove unneeded URL argument from FrameLoaderClient::updateGlobalHistory
19461
19462        * WebCoreSupport/FrameLoaderClientQt.cpp:
19463        (WebCore::FrameLoaderClientQt::updateGlobalHistory): Get the URL from the
19464        DocumentLoader.
19465        * WebCoreSupport/FrameLoaderClientQt.h: Remove argument.
19466
194672008-11-24  Darin Fisher  <darin@chromium.org>
19468
19469        Fix bustage.
19470
19471        https://bugs.webkit.org/show_bug.cgi?id=22448
19472
19473        * Api/qwebframe.cpp:
19474        (QWebFrame::evaluateJavaScript):
19475
194762008-11-20  Sam Weinig  <sam@webkit.org>
19477
19478        Fix Qt build.
19479
19480        * Api/qwebframe.cpp:
19481        (QWebFrame::evaluateJavaScript):
19482
194832008-11-19  Darin Fisher  <darin@chromium.org>
19484
19485        Fix bustage.
19486
19487        https://bugs.webkit.org/show_bug.cgi?id=22373
19488        Ports busted by addition of ScriptValue.{h,cpp}
19489
19490        * Api/qwebframe.cpp:
19491        (QWebFrame::evaluateJavaScript):
19492
194932008-11-19  Darin Fisher  <darin@chromium.org>
19494
19495        Fix bustage.
19496
19497        https://bugs.webkit.org/show_bug.cgi?id=22373
19498        Ports busted by addition of ScriptValue.{h,cpp}
19499
19500        * Api/qwebframe.cpp:
19501
195022008-11-19  Simon Hausmann  <hausmann@webkit.org>
19503
19504        Fix the Qt build, remove file referenced in the qrc file that does not
19505        exist and is not needed.
19506
19507        * tests/qwebframe/qwebframe.qrc:
19508
195092008-11-18  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19510
19511        Rubber-stamped by Tor Arne Vestbø.
19512
19513        Missing file in new unit test for QWebFrame (r38493).
19514
19515        * tests/qwebframe/qwebframe.pro:
19516        * tests/qwebframe/qwebframe.qrc: Added.
19517
195182008-11-18  Tor Arne Vestbø  <tavestbo@trolltech.com>
19519
19520        Rubber-stamped by Simon Hausmann.
19521
19522        Make sure QWidget based plugins are invisible until placed into the layout
19523
19524        * WebCoreSupport/FrameLoaderClientQt.cpp:
19525        (WebCore::FrameLoaderClientQt::createPlugin):
19526
195272008-11-18  Tor Arne Vestbø  <tavestbo@trolltech.com>
19528
19529        Reviewed by Simon Hausmann.
19530
19531        React properly to frame rect changes for QWidget based plugins
19532
19533        We now set the geometry of the QWidget in frameRectsChanged,
19534        intead of setFrameRect, which means we pick up the changes to
19535        the frame rect when scrolling. We also set a mask on the
19536        widget to keep it from painting over scrollbars and the like
19537
19538        * WebCoreSupport/FrameLoaderClientQt.cpp:
19539        (WebCore::):
19540
195412008-11-18  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19542
19543        Reviewed by Tor Arne Vestbø.
19544
19545        Fix crash when trying to pick a file using the file chooser.
19546
19547        * WebCoreSupport/ChromeClientQt.cpp:
19548        (WebCore::ChromeClientQt::runOpenPanel):
19549
195502008-11-18  Holger Hans Peter Freyther  <zecke@selfish.org>
19551
19552        Reviewed by Simon Hausmann.
19553
19554        Attempt to share transitionToCommittedForNewPage of FrameLoaderClient with the different ports
19555
19556        After Hyatt's work on Widget and ScrollView there is little difference
19557        between the implementation of Qt, Gtk+ and Win. In fact any kind of
19558        difference is mostly a bug. Alp has fixed two of such errors for the Gtk+
19559        port and the Qt port has at least one of them left.
19560
19561        The only difference between the implementations is in getting the the
19562        IntSize for the new FrameView, the background color to be applied and
19563        eventually some post processing.
19564
19565        Unify the implementations by providing a static helper function that
19566        takes a Frame, IntSize, color and transparency bit and calling it from
19567        the Gtk+, the Qt and the Windows port.
19568
19569        * Api/qwebframe.cpp:
19570        * Api/qwebframe_p.h:
19571        * Api/qwebpage.cpp:
19572        (QWebPage::setPalette):
19573        * WebCoreSupport/FrameLoaderClientQt.cpp:
19574        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
19575
195762008-11-17  Geoffrey Garen  <ggaren@apple.com>
19577
19578        Not reviewed.
19579
19580        Try to fix qt build.
19581
19582        * Api/qwebframe.cpp:
19583
195842008-11-17  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19585
19586        Reviewed by Tor Arne Vestbø and Simon Hausmann.
19587
19588        Fix regression when loading resources from Qt resource system using qrc:/.
19589
19590        Added a unit test to catch future regression.
19591
19592        * Api/qwebpage.cpp:
19593        (QWebPagePrivate::QWebPagePrivate):
19594        * tests/qwebframe/image.png: Added.
19595        * tests/qwebframe/tst_qwebframe.cpp:
19596
195972008-11-16  Darin Adler  <darin@apple.com>
19598
19599        - try to fix build
19600
19601        * Api/qwebhistory.cpp: Added include of "KURL.h".
19602
196032008-10-24  Yael Aharon <yael.aharon@nokia.com>
19604
19605        Reviewed by Simon Hausmann.
19606
19607        Added some basic unit tests for the public database API.
19608
19609        * tests/qwebpage/tst_qwebpage.cpp:
19610        (tst_QWebPage::initTestCase):
19611        (tst_QWebPage::cleanupTestCase):
19612        (tst_QWebPage::database):
19613
196142008-11-14  Simon Hausmann  <hausmann@webkit.org>
19615
19616        Fix the Qt build, add missing export macros for the new classes.
19617
19618        * Api/qwebdatabase.h:
19619        * Api/qwebsecurityorigin.h:
19620
196212008-10-24  Yael Aharon <yael.aharon@nokia.com>
19622
19623        Reviewed by Simon Hausmann.
19624
19625        Adding public API to provide access to the security origin
19626        (QWebSecurityOrigin) and the databases used for the offline
19627        storage (QWebDatabase).
19628
19629        In addition QWebSettings gains configuration functions for
19630        enabling/disabling offline storage, web application cache
19631        and DOM local storage.
19632
19633        This commits lands the core feature(s), the unit tests and the
19634        documentation are going to follow in the comming days/weeks.
19635
19636        Note: The API is not frozen yet.
19637
19638        * Api/headers.pri:
19639        * Api/qwebdatabase.cpp: Added.
19640        (QWebDatabase::QWebDatabase):
19641        (QWebDatabase::operator=):
19642        (QWebDatabase::name):
19643        (QWebDatabase::displayName):
19644        (QWebDatabase::expectedSize):
19645        (QWebDatabase::size):
19646        (QWebDatabase::absoluteFilePath):
19647        (QWebDatabase::origin):
19648        (QWebDatabase::remove):
19649        (QWebDatabase::~QWebDatabase):
19650        * Api/qwebdatabase.h: Added.
19651        * Api/qwebdatabase_p.h: Added.
19652        * Api/qwebframe.cpp:
19653        (QWebFrame::securityOrigin):
19654        * Api/qwebframe.h:
19655        * Api/qwebpage.cpp:
19656        * Api/qwebpage.h:
19657        * Api/qwebsecurityorigin.cpp: Added.
19658        (QWebSecurityOrigin::QWebSecurityOrigin):
19659        (QWebSecurityOrigin::operator=):
19660        (QWebSecurityOrigin::scheme):
19661        (QWebSecurityOrigin::host):
19662        (QWebSecurityOrigin::port):
19663        (QWebSecurityOrigin::databaseUsage):
19664        (QWebSecurityOrigin::databaseQuota):
19665        (QWebSecurityOrigin::setDatabaseQuota):
19666        (QWebSecurityOrigin::~QWebSecurityOrigin):
19667        (QWebSecurityOrigin::allOrigins):
19668        (QWebSecurityOrigin::databases):
19669        * Api/qwebsecurityorigin.h: Added.
19670        * Api/qwebsecurityorigin_p.h: Added.
19671        (QWebSecurityOriginPrivate::QWebSecurityOriginPrivate):
19672        (QWebSecurityOriginPrivate::~QWebSecurityOriginPrivate):
19673        * Api/qwebsettings.cpp:
19674        (QWebSettingsPrivate::apply):
19675        (QWebSettings::QWebSettings):
19676        (QWebSettings::setOfflineStoragePath):
19677        (QWebSettings::offlineStoragePath):
19678        (QWebSettings::setOfflineStorageDefaultQuota):
19679        (QWebSettings::offlineStorageDefaultQuota):
19680        (QWebSettings::setOfflineWebApplicationCachePath):
19681        (QWebSettings::offlineWebApplicationCachePath):
19682        (QWebSettings::setLocalStorageDatabasePath):
19683        (QWebSettings::localStorageDatabasePath):
19684        * Api/qwebsettings.h:
19685        * WebCoreSupport/ChromeClientQt.cpp:
19686        (WebCore::ChromeClientQt::exceededDatabaseQuota):
19687
196882008-11-12  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19689
19690        Rubber-stamped by Tor Arne Vestbø.
19691
19692        Mention the color role change (r38331) in the API doc.
19693
19694        * Api/qwebpage.cpp:
19695
196962008-11-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19697
19698        Reviewed by Tor Arne Vestbø and Simon Hausmann.
19699
19700        Use QPalette::Base (instead of QPalette::Background) for the page
19701        background.
19702
19703        * Api/qwebframe.cpp:
19704        (QWebFramePrivate::updateBackground):
19705        * Api/qwebview.cpp:
19706        (QWebView::QWebView):
19707
197082008-11-11  Cameron Zwarich  <zwarich@apple.com>
19709
19710        Reviewed by Geoff Garen.
19711
19712        Remove pointless dependencies on the now-deleted kjs directory.
19713
19714        * WebKit_pch.h:
19715
197162008-11-10  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19717
19718        Rubber-stamped by Simon Hausmann.
19719
19720        To fit Qt API, scroll offset is a QPoint instead of a QSize.
19721
19722        * Api/qwebframe.cpp:
19723        (QWebFrame::scrollOffset):
19724        (QWebFrame::setScrollOffset):
19725        * Api/qwebframe.h:
19726
197272008-11-10  David Boddie  <dboddie@trolltech.com>
19728
19729        Reviewed by Simon Hausmann.
19730
19731        Doc: Fixed qdoc warnings by supplying function documentation.
19732
19733        * Api/qwebframe.cpp:
19734        * Api/qwebview.cpp:
19735
197362008-11-10  Tobias Koenig <tobias.koenig@trolltech.com>
19737
19738        Reviewed by Simon Hausmann.
19739
19740        Removed old and stale prf file that breaks the MingW build.
19741
19742        * Api/qtwebkit.prf: Removed.
19743
197442008-11-10  Kavindra Palaraja  <kdpalara@trolltech.com>
19745
19746        Reviewed by Simon Hausmann.
19747
19748        Clarify QWebFrame/View::setHTML docs with regards to relative URLs
19749
19750        * Api/qwebframe.cpp:
19751        * Api/qwebview.cpp:
19752
197532008-11-10  Joerg Bornemann  <joerg.bornemann@nokia.com>
19754
19755        Reviewed by Simon Hausmann
19756
19757        Don't define _CRT_RAND_S on Windows CE in the precompiled
19758        header, to fix the CE build.
19759
19760        * WebKit_pch.h:
19761
197622008-11-07  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19763
19764        Reviewed by Tor Arne Vestbø and Simon Hausmann.
19765
19766        Added an option to allow printing the background color and images.
19767        Mostly reworked from a patch by Holger.
19768        This setting is enabled by default.
19769
19770        * Api/qwebsettings.cpp:
19771        (QWebSettingsPrivate::apply):
19772        (QWebSettings::QWebSettings):
19773        * Api/qwebsettings.h:
19774
197752008-11-06  Simon Hausmann  <hausmann@webkit.org>
19776
19777        Reviewed by Tor Arne Vestbø.
19778
19779        Added a unit tests for QWebFrame::metaData().
19780
19781        * tests/qwebframe/tst_qwebframe.cpp:
19782
197832008-11-06  Simon Hausmann  <hausmann@webkit.org>
19784
19785        Reviewed by Tor Arne Vestbø.
19786
19787        Improved documentation for QWebFrame::metaData().
19788
19789        * Api/qwebframe.cpp:
19790
197912008-11-05  Sriram Yadavalli <sriram.yadavalli@nokia.com>
19792
19793        Reviewed by Simon Hausmann.
19794
19795        Added QWebFrame::metaData() to provide a way in the public API
19796        to retrieve the values of the <meta> tags.
19797
19798        See https://bugs.webkit.org/show_bug.cgi?id=22071
19799
19800        * Api/qwebframe.cpp:
19801        (QWebFrame::metaData):
19802        * Api/qwebframe.h:
19803
198042008-10-24  Yael Aharon <yael.aharon@nokia.com>
19805
19806        Reviewed by Simon Hausmann.
19807
19808        Add userData() and setUserData() to QWebHistoryItem.
19809        Add setMaximumItemCount() and maximumItemCount() to QWebHistory.
19810        Add currentItemIndex() to QWebHistory.
19811
19812        See also https://bugs.webkit.org/show_bug.cgi?id=21864
19813
19814        Small cleanup by Simon (docs and forward declaration of QWebHistoryItem in qwebframe.h)
19815
19816        * Api/qwebframe.h:
19817        * Api/qwebhistory.cpp:
19818        (QWebHistoryItem::userData):
19819        (QWebHistoryItem::setUserData):
19820        (QWebHistory::currentItemIndex):
19821        (QWebHistory::maximumItemCount):
19822        (QWebHistory::setMaximumItemCount):
19823        * Api/qwebhistory.h:
19824        * WebCoreSupport/FrameLoaderClientQt.cpp:
19825        (WebCore::FrameLoaderClientQt::saveViewStateToItem):
19826        * tests/qwebpage/tst_qwebpage.cpp:
19827        (tst_QWebPage::modified):
19828
198292008-11-03  Cameron Zwarich  <zwarich@apple.com>
19830
19831        Rubber-stamped by Maciej Stachowiak.
19832
19833        Move more files into the runtime subdirectory of JavaScriptCore.
19834
19835        * Api/qwebpage.cpp:
19836
198372008-10-25  Jade Han  <jade.han@nokia.com>
19838
19839        Reviewed by Anders.
19840
19841        Enable custom properties for Qt runtime objects in QtWebKit
19842
19843        https://bugs.webkit.org/show_bug.cgi?id=21813
19844
19845        * tests/qwebframe/tst_qwebframe.cpp:
19846
198472008-10-24  Sam Weinig  <sam@webkit.org>
19848
19849        Another Qt build fix.
19850
19851        * WebCoreSupport/ChromeClientQt.cpp:
19852
198532008-10-24  Sam Weinig  <sam@webkit.org>
19854
19855        Reviewed by Dan Bernstein.
19856
19857        Fix https://bugs.webkit.org/show_bug.cgi?id=21759
19858        Layering violation: FileChooser should not depend on Document/Frame/Page
19859
19860        * WebCoreSupport/ChromeClientQt.cpp:
19861        (WebCore::ChromeClientQt::runOpenPanel):
19862        * WebCoreSupport/ChromeClientQt.h:
19863
198642008-10-24  Timothy Hatcher  <timothy@apple.com>
19865
19866        Stub out new InspectorClient methods.
19867
19868        https://bugs.webkit.org/show_bug.cgi?id=21856
19869
19870        Reviewed by Darin Adler.
19871
19872        * WebCoreSupport/InspectorClientQt.cpp:
19873        (WebCore::InspectorClientQt::populateSetting): Not implemented.
19874        (WebCore::InspectorClientQt::storeSetting): Ditto.
19875        (WebCore::InspectorClientQt::removeSetting): Ditto.
19876        * WebCoreSupport/InspectorClientQt.h:
19877
198782008-10-24  Darin Adler  <darin@apple.com>
19879
19880        - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732
19881
19882        * Api/qwebframe.cpp:
19883        (QWebFrame::evaluateJavaScript): Use JSValue* instead of JSValuePtr.
19884
198852008-10-23  Yael Aharon <yael.aharon@nokia.com>
19886
19887        Reviewed by Simon Hausmann.
19888
19889        Invalid history entries could cause a crash in QT Webkit
19890
19891        * Api/qwebhistory.cpp:
19892        (QWebHistoryItem::originalUrl):
19893        (QWebHistoryItem::url):
19894        (QWebHistoryItem::title):
19895        (QWebHistoryItem::lastVisited):
19896        (QWebHistoryItem::icon):
19897        (QWebHistoryItem::isValid):
19898        * Api/qwebhistory.h:
19899        * Api/qwebhistory_p.h:
19900        (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
19901        (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
19902        * tests/qwebpage/tst_qwebpage.cpp:
19903        (tst_QWebPage::modified):
19904
199052008-10-22  Yael Aharon <yael.aharon@nokia.com>
19906
19907        Reviewed by Simon Hausmann.
19908
19909        emit scrollRequested unconditionally when scrolling.
19910
19911        See https://bugs.webkit.org/show_bug.cgi?id=21790
19912
19913        * WebCoreSupport/ChromeClientQt.cpp:
19914        (WebCore::ChromeClientQt::scroll):
19915
199162008-10-23  Simon Hausmann  <hausmann@webkit.org>
19917
19918        Reviewed by Tor Arne.
19919
19920        Fix handling of mouse events when embedding QWebView into the
19921        QGraphicsView.
19922
19923        QWebPage accepts or ignores events to indicate whether the web page
19924        handled the event. However for QWebView to behave like a good widget
19925        it should always accept the mouse events to indicate that it handled
19926        them and that they should not be subject to event propagation.
19927
19928        The graphics view relies on acceptance of the initial mouse click to
19929        make the embedded widget the focus item.
19930
19931        * Api/qwebview.cpp:
19932        (QWebView::mouseMoveEvent):
19933        (QWebView::mousePressEvent):
19934        (QWebView::mouseDoubleClickEvent):
19935        (QWebView::mouseReleaseEvent):
19936        (QWebView::contextMenuEvent):
19937        (QWebView::wheelEvent):
19938
199392008-10-22  Ariya Hidayat  <ariya.hidayat@trolltech.com>
19940
19941        Reviewed by Simon Hausmann.
19942
19943        For public API, use the term boundingRect instead of boundingBox.
19944
19945        * Api/qwebframe.cpp:
19946        (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
19947        (QWebHitTestResult::boundingRect):
19948        * Api/qwebframe.h:
19949        * Api/qwebframe_p.h:
19950
199512008-06-03  Siraj Razick  <siraj.razick@collabora.co.uk>
19952
19953        Reviewed by Simon Hausmann.
19954
19955        https://bugs.webkit.org/show_bug.cgi?id=19374
19956
19957        Expose boundingBox value in QWebHitTestResult
19958
19959        Add API function QRect QWebHitResult::boundingBox() const
19960
19961        API docs by Ariya.
19962
19963        * Api/qwebframe.cpp:
19964        (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
19965        (QWebHitTestResult::boundingBox):
19966        * Api/qwebframe.h:
19967        * Api/qwebframe_p.h:
19968
199692008-10-21  Yael Aharon <yael.aharon@nokia.com>
19970
19971        Reviewed by Simon Hausmann.
19972
19973        emit repaintRequested unconditionally when repaint is requested.
19974
19975        * WebCoreSupport/ChromeClientQt.cpp:
19976        (WebCore::ChromeClientQt::repaint):
19977
199782008-10-20  Sam Weinig  <sam@webkit.org>
19979
19980        Reviewed by Anders Carlsson.
19981
19982        Remove FrameLoaderClient::detachedFromParent4.  It is no longer used by any port.
19983
19984        * WebCoreSupport/FrameLoaderClientQt.cpp:
19985        * WebCoreSupport/FrameLoaderClientQt.h:
19986
199872008-10-19  Darin Adler  <darin@apple.com>
19988
19989        Reviewed by Oliver Hunt.
19990
19991        - next step of https://bugs.webkit.org/show_bug.cgi?id=21732
19992          improve performance by eliminating JSValue as a base class for JSCell
19993
19994        Remove most uses of JSValue, which will be removed in a future patch.
19995
19996        * Api/qwebframe.cpp:
19997        (QWebFrame::evaluateJavaScript): Use JSValuePtr.
19998
199992008-10-14  Tor Arne Vestbø  <tavestbo@trolltech.com>
20000
20001        Reviewed by Simon.
20002
20003        Clip painter to dirty rect before passing on to WebKit
20004
20005        This was previously done in ScrollViewQt, but after the
20006        refactoring of ScrollView we need to do it in QWebFrame
20007        instead, similar to Safari/Win.
20008
20009        * Api/qwebframe.cpp:
20010        (QWebFrame::render):
20011
200122008-10-08  Matthias Ettrich <ettrich@nokia.com>
20013
20014        Reviewed by Simon.
20015
20016        Make QWebView ignore focus changes with PopupFocusReason to avoid
20017        massive updates when menus open and close.
20018
20019        * Api/qwebview.cpp:
20020        (QWebView::focusInEvent):
20021        (QWebView::focusOutEvent):
20022
200232008-10-08  Kavindra Palaraja  <kdpalara@trolltech.com>
20024
20025        Reviewed by Simon.
20026
20027        Fixed a qdoc warning and adjusted some spacing
20028
20029        * Api/qwebframe.cpp:
20030
200312008-10-08  Rhys Weatherley  <rhys.weatherley@nokia.com>
20032
20033        Reviewed by Simon.
20034
20035        Compile for platforms without context menus.
20036
20037        * Api/qwebpage.cpp:
20038        (QWebPage::createStandardContextMenu):
20039
200402008-10-08  André Pönitz  <apoenitz@trolltech.com>
20041
20042        Reviewed by Simon.
20043
20044        Fix compilation with Qt namespaces.
20045
20046        * WebCoreSupport/EditCommandQt.h:
20047
200482008-10-07  Tor Arne Vestbø  <tavestbo@trolltech.com>
20049
20050        QtWebKit build fix after changes to FrameLoaderClient.h in r37371
20051
20052        * WebCoreSupport/FrameLoaderClientQt.h:
20053
200542008-10-07  Holger Hans Peter Freyther  <zecke@selfish.org>
20055
20056        [qt] Build fix after Scrollbar.h and Widget.h changes.
20057
20058        * Api/qwebpage.cpp:
20059        (QWebPage::swallowContextMenuEvent):
20060
200612008-10-06  David Hyatt  <hyatt@apple.com>
20062
20063        Enable viewless Mac WebKit to paint some basic pages.
20064
20065        Reviewed by Sam Weinig
20066
20067        * WebCoreSupport/FrameLoaderClientQt.cpp:
20068        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
20069
200702008-10-03  David Hyatt  <hyatt@apple.com>
20071
20072        Fix scroll method on Qt.  The delta was supposed to use .width()/.height() and not .x()/.y().
20073
20074        Fix the QtPluginWidget to do an invalidate properly.
20075
20076        Reviewed by ggaren
20077
20078        * WebCoreSupport/ChromeClientQt.cpp:
20079        (WebCore::ChromeClientQt::scroll):
20080        * WebCoreSupport/FrameLoaderClientQt.cpp:
20081        (WebCore::):
20082
200832008-10-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
20084
20085        Build fix. Remove addToDirtyRegion from the header file.
20086
20087        * WebCoreSupport/ChromeClientQt.h:
20088
200892008-10-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
20090
20091        Build fix.
20092
20093        * WebCoreSupport/ChromeClientQt.cpp:
20094        (WebCore::ChromeClientQt::scroll):
20095        * WebCoreSupport/FrameLoaderClientQt.cpp:
20096        (WebCore::):
20097        (WebCore::FrameLoaderClientQt::createPlugin):
20098
200992008-10-03  David Hyatt  <hyatt@apple.com>
20100
20101        Remove addToDirtyRegion.
20102
20103        Reviewed by Oliver Hunt
20104
20105        * WebCoreSupport/ChromeClientQt.cpp:
20106
201072008-10-02  David Hyatt  <hyatt@apple.com>
20108
20109        https://bugs.webkit.org/show_bug.cgi?id=21314
20110
20111        Make scrollBackingStore cross-platform.
20112
20113        Reviewed by Sam Weinig
20114
20115        * WebCoreSupport/ChromeClientQt.cpp:
20116        (WebCore::ChromeClientQt::repaint):
20117        (WebCore::ChromeClientQt::scroll):
20118        * WebCoreSupport/ChromeClientQt.h:
20119
201202008-10-01  David Hyatt  <hyatt@apple.com>
20121
20122        https://bugs.webkit.org/show_bug.cgi?id=21282
20123
20124        Make contentsToScreen/screenToContents cross-platform.  Only implemented by Mac/Win right now.
20125
20126        Reviewed by Adam Roben
20127
20128        * WebCoreSupport/ChromeClientQt.cpp:
20129        (WebCore::ChromeClientQt::windowToScreen):
20130        (WebCore::ChromeClientQt::screenToWindow):
20131        * WebCoreSupport/ChromeClientQt.h:
20132
201332008-09-30  Dave Hyatt  <hyatt@apple.com>
20134
20135        http://bugs.webkit.org/show_bug.cgi?id=21250
20136
20137        Rename updateContents to repaintContentRectangle and make it cross-platform by always sending
20138        repaints up through the ChromeClient.
20139
20140        Reviewed by Darin Adler
20141
20142        * WebCoreSupport/ChromeClientQt.cpp:
20143        (WebCore::ChromeClientQt::repaint):
20144        * WebCoreSupport/ChromeClientQt.h:
20145
201462008-09-29  Gunnar Sletta  <gunnar@trolltech.com>
20147
20148        Reviewed by Simon
20149
20150        Compile on windows using MSVC 2005
20151
20152        For the PCH We need to define _WIN32_WINNT and include windows.h early on,
20153        otherwise we'll miss several functions.
20154
20155        * WebKit_pch.h:
20156
201572008-09-29  Thiago Macieira  <thiago.macieira@nokia.com>
20158
20159        Reviewed by Simon.
20160
20161        Changed copyright from Trolltech ASA to Nokia.
20162
20163        Nokia acquired Trolltech ASA, assets were transferred on September 26th 2008.
20164
20165
20166        * Api/qwebframe.cpp:
20167        * Api/qwebframe.h:
20168        * Api/qwebframe_p.h:
20169        * Api/qwebhistory.cpp:
20170        * Api/qwebhistory.h:
20171        * Api/qwebhistory_p.h:
20172        * Api/qwebkitglobal.h:
20173        * Api/qwebnetworkinterface.cpp:
20174        * Api/qwebnetworkinterface.h:
20175        * Api/qwebnetworkinterface_p.h:
20176        * Api/qwebpage.cpp:
20177        * Api/qwebpage.h:
20178        * Api/qwebpage_p.h:
20179        * Api/qwebpluginfactory.cpp:
20180        * Api/qwebpluginfactory.h:
20181        * Api/qwebsettings.cpp:
20182        * Api/qwebsettings.h:
20183        * Api/qwebview.cpp:
20184        * Api/qwebview.h:
20185        * Plugins/ICOHandler.cpp:
20186        * QtLauncher/main.cpp:
20187        * WebCoreSupport/FrameLoaderClientQt.cpp:
20188        * WebCoreSupport/FrameLoaderClientQt.h:
20189        * WebCoreSupport/InspectorClientQt.cpp:
20190        * WebCoreSupport/InspectorClientQt.h:
20191        * tests/qwebframe/tst_qwebframe.cpp:
20192        * tests/qwebpage/tst_qwebpage.cpp:
20193
201942008-09-28  Simon Hausmann  <hausmann@webkit.org>
20195
20196        Reviewed by David Hyatt.
20197
20198        Ensure the mainThreadIdentifier is set as well as other bits and pieces of
20199        the threading machinery, by calling JSC::initializeThreading().
20200
20201        * Api/qwebpage.cpp:
20202        (QWebPagePrivate::QWebPagePrivate):
20203
202042008-09-27  David Hyatt  <hyatt@apple.com>
20205
20206        Forgot to land renaming changes in WebKit.
20207
20208        * Api/qwebframe.cpp:
20209        (QWebFrame::render):
20210        (QWebFrame::pos):
20211        (QWebFrame::geometry):
20212        * Api/qwebpage.cpp:
20213        (QWebPage::viewportSize):
20214        (QWebPage::setViewportSize):
20215
202162008-09-27  Simon Hausmann  <hausmann@webkit.org>
20217
20218        Qt build fix - use frameRect instead of frameGeometry, adapt
20219        to renamed scrollbar frameview methods.
20220
20221        * Api/qwebpage.cpp:
20222        (QWebPage::viewportSize):
20223        (QWebPage::setViewportSize):
20224        * WebCoreSupport/FrameLoaderClientQt.cpp:
20225        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
20226
202272008-09-27  Jan Michael Alonzo  <jmalonzo@webkit.org>
20228
20229        Qt build fix - rename frameGeometry to frameRect per r36995.
20230
20231        * Api/qwebframe.cpp:
20232        (QWebFrame::render):
20233        (QWebFrame::pos):
20234        (QWebFrame::geometry):
20235
202362008-09-26  Ariya Hidayat  <ahidayat@trolltech.com>
20237
20238        Reviewed by Simon.
20239
20240        Fixed potential crash when deleting QWebView instance.
20241
20242        When deleting the view, sets the page's view to NULL.
20243        The reason is that the page is smart and its destructor might lead to a call
20244        that operates on a view (which is in the process of being deleted).
20245
20246        * Api/qwebpage.h:
20247        * Api/qwebview.cpp:
20248        (QWebView::~QWebView):
20249
202502008-09-26  Ariya Hidayat  <ahidayat@trolltech.com>
20251
20252        Reviewed by Simon.
20253
20254        Fixed using modifiers to type special symbols (e.g '@','$') does not work on Mac OS X.
20255
20256        * WebCoreSupport/EditorClientQt.cpp:
20257        (WebCore::EditorClientQt::handleKeyboardEvent):
20258
202592008-09-26  Håvard Wall  <hwall@trolltech.com>
20260
20261        Reviewed by Simon.
20262
20263        Fix compilation with QT_NO_MESSAGEBOX
20264
20265        * Api/qwebpage.cpp:
20266        (QWebPage::javaScriptAlert):
20267        (QWebPage::javaScriptConfirm):
20268
202692008-09-23  Tor Arne Vestbø  <tavestbo@trolltech.com>
20270
20271        Reviewed by Simon.
20272
20273        Remove deprecated JS Qt bindings object call/construct code and fix autotests
20274
20275        * tests/qwebframe/tst_qwebframe.cpp:
20276
202772008-09-16  Alp Toker  <alp@nuanti.com>
20278
20279        Prospective Qt build fix. ScrollBar.h -> Scrollbar.h
20280
20281        * Api/qwebframe.cpp:
20282        * Api/qwebpage.cpp:
20283
202842008-09-15  Eli Fidler  <eli@staikos.net>
20285
20286        Reviewed by Simon.
20287
20288        Yahoo assumes non-RFC compliant HTTP redirect behaviour. QtWebKit is (more)
20289        compliant, so broken. I think the Yahoo-assumed behaviour is real-world standard.
20290
20291        Basically, Yahoo's login procedure for flickr looks like this:
20292        1. load flickr.com, click "sign in"
20293        2. this is a Yahoo page with a form
20294        (https://login.yahoo.com/config/login?.src=flickr...)
20295        when you click the "Sign In" button, the form submits to a yahoo.com POST URL
20296        3. The POST returns with a 302 (redirect) to another yahoo.com URL
20297        4. If you POST the redirected Location:, it all breaks. Yahoo assumes you will
20298        convert the method to GET, which works fine but is definitely not
20299        RFC-compliant. It would be compliant for 303, and the RFC says that many
20300        implementations treat 302 and 303 the same way (for HTTP/1.0 compliance), but
20301        converting to GET is explicitly wrong for 302.
20302
20303        * Api/qwebnetworkinterface.cpp:
20304        (QWebNetworkManager::started):
20305
203062008-09-15  Tor Arne Vestbø  <tavestbo@trolltech.com>
20307
20308        Reviewed by Simon.
20309
20310        Make QtInstance::create() private and fix caching
20311
20312        * Api/qwebframe.cpp:
20313        (QWebFrame::addToJavaScriptWindowObject):
20314
203152008-09-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
20316
20317        Rubber-stamped by Simon.
20318
20319        Prevent leaking pages and frames in QWebKit autotest
20320
20321        * tests/qwebpage/tst_qwebpage.cpp:
20322
203232008-09-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
20324
20325        Reviewed by Simon
20326
20327        Fix QtWebKit autotest
20328
20329        * tests/qwebpage/tst_qwebpage.cpp:
20330        (tst_QWebPage::userStyleSheet):
20331
203322008-09-09  Joerg Bornemann  <joerg.bornemann@trolltech.com>
20333
20334        Reviewed by Simon.
20335
20336        Added missing WebCore prefix to ResourceRequest
20337
20338        This is needed for Windows/CE compilation where there is a conflict
20339        with a global ResourceRequest type. Elsewhere in this file ResourceRequest
20340        is also prefixed with WebCore::
20341
20342        * Api/qwebframe.cpp:
20343        (QWebFrame::QWebFrame):
20344
203452008-09-07  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
20346
20347        Reviewed by Maciej Stachowiak.
20348
20349        Bug 20704: Replace the KJS namespace
20350        <https://bugs.webkit.org/show_bug.cgi?id=20704>
20351
20352        Rename the KJS namespace to JSC.
20353
20354        * Api/qwebframe.cpp:
20355        (QWebFrame::addToJavaScriptWindowObject):
20356        (QWebFrame::evaluateJavaScript):
20357
203582008-09-04  Tor Arne Vestbø  <tavestbo@trolltech.com>
20359
20360        Reviewed by Simon
20361
20362        Fix the QtWebKit build to match changes in r36016
20363
20364        * Api/qwebframe.cpp:
20365        (QWebFrame::addToJavaScriptWindowObject):
20366
203672008-09-04  Tor Arne Vestbø  <tavestbo@trolltech.com>
20368
20369        Reviewed by Simon.
20370
20371        Re-enable support for user stylesheets in QtWebKit
20372
20373        QtWebKit now follows the FRAME_LOADS_USER_STYLESHEET
20374        code path, which allows us to keep API support for
20375        loading user style sheets from remote URLs.
20376
20377        As part of the change UserStyleSheetLoader.cpp/h was
20378        moved from WebCore/loader/mac to WebCore/loader.
20379
20380        * tests/qwebpage/tst_qwebpage.cpp:
20381        (tst_QWebPage::userStyleSheet):
20382
203832008-08-29  Holger Hans Peter Freyther  <zecke@selfish.org>
20384
20385        Reviewed by Eric Seidel.
20386
20387        [janitor/qt] Start replacing port specific getters with the generic native getter
20388        To get the native presentation of an image we currently have platform
20389        specific #ifdef's and a generic getter using NativeImagePtr. This patch
20390        extends this to the ImageBuffer and updates the Qt platform to get rid
20391        of the special #ifdefs.
20392
20393        https://bugs.webkit.org/attachment.cgi?id=22861
20394
20395        * Api/qwebframe.cpp:
20396        (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
20397        * Api/qwebhistory.cpp:
20398        * Api/qwebsettings.cpp:
20399        (QWebSettings::iconForUrl):
20400
204012008-08-29  Holger Hans Peter Freyther  <zecke@selfish.org>
20402
20403        Reviewed by Simon.
20404
20405        Catch up with the introduction of PageGroup in r30840. Enable tracking of
20406        visited links, enable this in QWebPage next to the other WebCore init call.
20407        Calling this more than once is no issue and a cheap operation, we also do not
20408        reset the state. When clearing the history of a page, clear the link state.
20409
20410        * Api/qwebhistory.cpp:
20411        (QWebHistory::clear):
20412        * Api/qwebhistoryinterface.cpp:
20413        (QWebHistoryInterface::setDefaultInterface):
20414        * Api/qwebpage.cpp:
20415        (QWebPagePrivate::QWebPagePrivate):
20416
204172008-08-29  Holger Hans Peter Freyther  <zecke@selfish.org>
20418
20419        Reviewed by Simon.
20420
20421        Revert revision 34348 which removed the global historyContains() function.
20422
20423        This function was needed to implement the public API of QWebHistoryInterface
20424        and will be used again in the near future.
20425
20426        * Api/qwebhistoryinterface.cpp:
20427        (WebCore::historyContains):
20428
204292008-08-27  Erik Bunce  <elbunce@thehive.com>
20430
20431        Reviewed by Eric Seidel.
20432
20433        https://bugs.webkit.org/show_bug.cgi?id=20223
20434
20435        Add QWebPage::contentsChanged() signal to notify of content changes.
20436
20437        * Api/qwebpage.cpp:
20438        * Api/qwebpage.h:
20439        * WebCoreSupport/EditorClientQt.cpp:
20440        (WebCore::EditorClientQt::respondToChangedContents):
20441
204422008-08-27  Brady Eidson  <beidson@apple.com>
20443
20444        Reviewed by Anders
20445
20446        <rdar://problem/6134133> - Crash when loading large movie as a standalone document
20447
20448        * WebCoreSupport/FrameLoaderClientQt.cpp:
20449        (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError): Stubbed for now
20450        * WebCoreSupport/FrameLoaderClientQt.h:
20451
204522008-08-25  Holger Hans Peter Freyther  <zecke@selfish.org>
20453
20454        Reviewed by Simon.
20455
20456        [inspector] Emit signals from attachWindow and detachWindow in the Qt platform
20457        Allow the user of the API to honor the attachWindow and detachWindow
20458        requests and attach the QWebPage/QWebView wherever it is wanted. This needs
20459        some more API in QWebPage to be properly exposed.
20460
20461        * WebCoreSupport/InspectorClientQt.cpp:
20462        (WebCore::InspectorClientQt::createPage):
20463        (WebCore::InspectorClientQt::attachWindow):
20464        (WebCore::InspectorClientQt::detachWindow):
20465        * WebCoreSupport/InspectorClientQt.h:
20466
204672008-08-19  Alexey Proskuryakov  <ap@webkit.org>
20468
20469        Reviewed by Geoff Garen.
20470
20471        Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.
20472
20473        * Api/qwebframe.cpp:
20474        (QWebFrame::addToJavaScriptWindowObject):
20475
204762008-08-15  Håvard Wall  <hwall@trolltech.com>
20477
20478        Reviewed by Simon.
20479
20480        Fixes: compile with QT_NO_UNDOCOMMAND/STACK
20481
20482
20483        * Api/qwebpage.cpp:
20484        (SetCursorEvent::SetCursorEvent):
20485        (QWebPagePrivate::createContextMenu):
20486        (QWebPage::action):
20487        * Api/qwebpage.h:
20488        * Api/qwebpage_p.h:
20489        * WebCoreSupport/EditCommandQt.cpp:
20490        (EditCommandQt::EditCommandQt):
20491        * WebCoreSupport/EditCommandQt.h:
20492        * WebCoreSupport/EditorClientQt.cpp:
20493        (dumpPath):
20494        (WebCore::EditorClientQt::shouldInsertText):
20495        (WebCore::EditorClientQt::shouldChangeSelectedRange):
20496        (WebCore::EditorClientQt::isEditable):
20497        (WebCore::EditorClientQt::registerCommandForUndo):
20498        (WebCore::EditorClientQt::clearUndoRedoOperations):
20499        (WebCore::EditorClientQt::canUndo):
20500        (WebCore::EditorClientQt::canRedo):
20501        (WebCore::EditorClientQt::undo):
20502        (WebCore::EditorClientQt::redo):
20503        (WebCore::EditorClientQt::shouldInsertNode):
20504
205052008-08-15  Håvard Wall  <hwall@trolltech.com>
20506
20507        Reviewed by Simon.
20508
20509        Fixes: compile with QT_NO_STYLE_STYLESHEET
20510
20511
20512        * WebCoreSupport/FrameLoaderClientQt.cpp:
20513        (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
20514        (WebCore::FrameLoaderClientQt::createPlugin):
20515
205162008-08-15  Håvard Wall  <hwall@trolltech.com>
20517
20518        Reviewed by Simon.
20519
20520        Fixes: compile with QT_NO_SHORTCUT
20521
20522
20523        * Api/qwebpage.cpp:
20524        (QWebPagePrivate::mouseMoveEvent):
20525        (QWebPagePrivate::mouseReleaseEvent):
20526        (QWebPagePrivate::dragMoveEvent):
20527
205282008-08-15  Håvard Wall  <hwall@trolltech.com>
20529
20530        Reviewed by Simon.
20531
20532        Fixes:    compile with QT_NO_CONTEXTMENU
20533
20534
20535        * Api/qwebpage.cpp:
20536        (editorCommandForWebActions):
20537        (QWebPagePrivate::QWebPagePrivate):
20538        (QWebPagePrivate::createMainFrame):
20539        (QWebPagePrivate::updateEditorActions):
20540        (QWebPage::setEditable):
20541        * Api/qwebpage.h:
20542        * Api/qwebpage_p.h:
20543        * Api/qwebview.cpp:
20544        * Api/qwebview.h:
20545
205462008-08-15  Håvard Wall  <hwall@trolltech.com>
20547
20548        Reviewed by Simon.
20549
20550        Fixes: compile with QT_NO_WHEELEVENT
20551
20552
20553        * Api/qwebpage.cpp:
20554        (QWebPagePrivate::updateEditorActions):
20555        (QWebPage::event):
20556        * Api/qwebpage_p.h:
20557        * Api/qwebview.cpp:
20558        * Api/qwebview.h:
20559
205602008-08-15  Håvard Wall  <hwall@trolltech.com>
20561
20562        Reviewed by Simon.
20563
20564        Fixes: compile with QT_NO_PRINTER
20565
20566
20567        * Api/qwebframe.cpp:
20568        (QWebFrame::print):
20569        * Api/qwebframe.h:
20570
205712008-08-15  David Boddie  <dboddie@trolltech.com>
20572
20573        Reviewed by Simon.
20574
20575        Doc: Added documentation for default property values.
20576
20577
20578        * Api/qwebpage.cpp:
20579        (QWebPagePrivate::keyPressEvent):
20580        (QWebPage::triggerAction):
20581        (QWebPage::acceptNavigationRequest):
20582        (QWebPage::action):
20583        * Api/qwebview.cpp:
20584
205852008-08-15  David Boddie  <dboddie@trolltech.com>
20586
20587        Reviewed by Simon.
20588
20589        Doc: Renamed snippets that appear in the code directory.
20590
20591
20592        * Api/qwebview.cpp:
20593        (QWebView::event):
20594        (QWebView::print):
20595
205962008-08-12  Timothy Hatcher  <timothy@apple.com>
20597
20598        Add a stub for InspectorClient::setAttachedWindowHeight.
20599
20600        * WebCoreSupport/InspectorClientQt.cpp:
20601        (WebCore::InspectorClientQt::setAttachedWindowHeight):
20602        Call notImplemented().
20603        * WebCoreSupport/InspectorClientQt.h:
20604
206052008-08-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
20606
20607        Reviewed by Simon.
20608
20609        Use full-page zoom in QtLauncher.
20610
20611        * QtLauncher/main.cpp:
20612        (MainWindow::zoomIn):
20613        (MainWindow::zoomOut):
20614        (MainWindow::resetZoom):
20615        (MainWindow::setupUI):
20616
206172008-08-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
20618
20619        Reviewed by Simon.
20620
20621        Fix linking with QtWebKit.
20622
20623        * Api/qwebframe.h: remove non-existing function/property.
20624
206252008-08-13  Simon Hausmann  <hausmann@webkit.org>
20626
20627        Reviewed by Holger.
20628
20629        Based on patch by Siraj razick <siraj.razick@collabora.co.uk>
20630
20631        https://bugs.webkit.org/show_bug.cgi?id=19125
20632
20633        Added functions to get/set the zoom factor.
20634
20635        Added a QWebFrame/QWebView::zoomFactor as well as a boolean
20636        ZoomTextOnly attribute in QWebSettings.
20637
20638        * Api/qwebframe.cpp:
20639        (QWebFrame::setZoomFactor):
20640        (QWebFrame::zoomFactor):
20641        * Api/qwebframe.h:
20642        * Api/qwebsettings.cpp:
20643        (QWebSettingsPrivate::apply):
20644        (QWebSettings::QWebSettings):
20645        * Api/qwebsettings.h:
20646        * Api/qwebview.cpp:
20647        (QWebView::setZoomFactor):
20648        (QWebView::zoomFactor):
20649        * Api/qwebview.h:
20650
206512008-08-13  Simon Hausmann  <hausmann@webkit.org>
20652
20653        Reviewed by Lars.
20654
20655        Fix QWebFrame::setHtml() not setting the new contents immediately.
20656
20657        Added a setter to the DocumentLoader to toggle the deferred loading of the main
20658        resource when it comes from substitute data.
20659
20660        Disable deferred loading of the main resource when we have valid substitute data,
20661        as used by QWebFrame::setHtml.
20662
20663        * WebCoreSupport/FrameLoaderClientQt.cpp:
20664        (WebCore::FrameLoaderClientQt::download):
20665
206662008-08-13  Simon Hausmann  <hausmann@webkit.org>
20667
20668        Rubber-stamped by Holger.
20669
20670        Fix QWebPage::isModified().
20671
20672        isModified() would return true after loading a new page or it would continue to
20673        return true after undoing modifications. Fix this by eliminating the
20674        QWebPagePrivate::modified variable and use the undoStack's canUndo() property
20675        instead.
20676
20677        https://bugs.webkit.org/show_bug.cgi?id=19252
20678
20679        * Api/qwebpage.cpp:
20680        (QWebPage::action):
20681        * Api/qwebpage_p.h:
20682        * WebCoreSupport/EditorClientQt.cpp:
20683        (WebCore::EditorClientQt::respondToChangedContents):
20684
206852008-08-13  David Boddie  <dboddie@trolltech.com>
20686
20687        Reviewed by Simon.
20688
20689        Updated docs with the signal emission behavior of urlChanged()
20690
20691        * Api/qwebframe.cpp:
20692
206932008-08-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
20694
20695        Reviewed by Simon.
20696
20697        Fix Ctrl+Y to work again when editing text in contextEditable mode.
20698
20699        This fixes regression in LayoutTests/editing/pasteboard/emacs-cntl-y-001.html
20700
20701        * WebCoreSupport/EditorClientQt.cpp:
20702        (WebCore::EditorClientQt::handleKeyboardEvent):
20703
207042008-08-13  Thiago Macieira  <tjmaciei@trolltech.com>
20705
20706        Reviewed by Simon.
20707
20708        Fix encoding of [ and ] in the host part of the URL
20709
20710        Until QUrl is fixed (making QUrl's tolerant parser more tolerant), we have to
20711        add this workaround to the QUrl <> WebCore::KURL conversion operator so that it
20712        doesn't encode [ and ] when they are found in the host part. That is, the
20713        following URL:
20714        http://[::1]/
20715        is valid and should not be reencoded to:
20716        http://%5b::1%5d/
20717
20718        This change adds the automatic test for it.
20719
20720        * tests/qwebframe/tst_qwebframe.cpp:
20721
207222008-08-12  Urs Wolfer  <uwolfer@kde.org>
20723
20724        Reviewed by Simon.
20725
20726        https://bugs.webkit.org/show_bug.cgi?id=20357
20727
20728        Fix crash in QWebPage in case contextMenuEvent has been overwritten
20729        because context menu has the view as parent and thus is deleted too early.
20730
20731        Add testcase for this crash.
20732
20733        * Api/qwebpage_p.h:
20734        * tests/qwebpage/tst_qwebpage.cpp:
20735        (tst_QWebPage::contextMenuCrash):
20736
207372008-08-07  Simon Hausmann  <hausmann@webkit.org>
20738
20739        Rubber-stamped by Lars.
20740
20741        Added API tests for QWebPage/QWebFrame based on QTestLib.
20742
20743        * tests/qwebframe/qwebframe.pro: Added.
20744        * tests/qwebframe/tst_qwebframe.cpp: Added.
20745        * tests/qwebpage/qwebpage.pro: Added.
20746        * tests/qwebpage/tst_qwebpage.cpp: Added.
20747        * tests/tests.pro: Added.
20748
207492008-08-06  Benjamin C Meyer  <ben@meyerhome.net>
20750
20751        Reviewed by Simon.
20752
20753        During the drag operation only accept the event if the action is not ignore action.
20754
20755        * Api/qwebpage.cpp:
20756        (QWebPagePrivate::dragEnterEvent):
20757        (QWebPagePrivate::dragMoveEvent):
20758        (QWebPagePrivate::dropEvent):
20759
207602008-08-06  Ariya Hidayat  <ariya.hidayat@trolltech.com>
20761
20762        Fix the Qt build due to recent ScriptController refactoring.
20763
20764        * Api/qwebframe.cpp:
20765        (QWebFrame::addToJavaScriptWindowObject):
20766
207672008-08-05  Tor Arne Vestbø  <tavestbo@trolltech.com>
20768
20769        Reviewed by Simon.
20770
20771        Move event handling of the return-key from EditorClientQt to QWebPage.
20772
20773        https://bugs.webkit.org/show_bug.cgi?id=20191
20774
20775        This is a first step in refactoring the big switch block
20776        in EditorClientQt::handleKeyboardEvent to using WebActions
20777        instead.
20778
20779        The new logic uses two new StandardKeys from QKeySequence:
20780
20781        - InsertParagraphSeparator
20782        - InsertLineSeparator
20783
20784        Which translate to the commands InsertNewline and InsertLineBreak
20785        respectivly. On Windows/X11 pressing the shift modifier will invoke
20786        the latter action. For Mac this is triggered by pressing the meta
20787        modifier (Ctrl).
20788
20789        Initial patch by: Erik Bunce
20790
20791        * Api/qwebpage.cpp:
20792        (editorActionForKeyEvent):
20793        * Api/qwebpage.h:
20794        * WebCoreSupport/EditorClientQt.cpp:
20795        (WebCore::EditorClientQt::handleKeyboardEvent):
20796
207972008-08-04  Erik Bunce  <elbunce@thehive.com>
20798
20799        Reviewed by Simon.
20800
20801        https://bugs.webkit.org/show_bug.cgi?id=20221
20802
20803        Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline.
20804        Add lookup table for mapping web actions to editor commands.
20805
20806        * Api/qwebpage.cpp:
20807        (editorCommandForWebActions):
20808        (QWebPagePrivate::updateAction):
20809        (QWebPagePrivate::updateEditorActions):
20810        (QWebPage::triggerAction):
20811        (QWebPage::setEditable):
20812
208132008-08-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
20814
20815        Reviewed by Simon.
20816
20817        A bunch of improvements to the QtLauncher.
20818
20819        Among others:
20820        - Unify and unclutter the toolbar, use menu for addition actions
20821        - Simplify URL edit, just use QLineEdit (no fancy close button etc)
20822        - Guess the URL from the command line so now we can run ./QtLauncher www.google.com
20823        - Shortcut keys for most actions
20824        - Simple autocomplete for the URL edit
20825        - Actions for zooming, New Window and Close Window
20826        - Show Format menu only when the content is set to editable
20827
20828        * QtLauncher/main.cpp:
20829        (MainWindow::MainWindow):
20830        (MainWindow::webPage):
20831        (MainWindow::changeLocation):
20832        (MainWindow::loadFinished):
20833        (MainWindow::showLinkHover):
20834        (MainWindow::newWindow):
20835        (MainWindow::zoomIn):
20836        (MainWindow::zoomOut):
20837        (MainWindow::resetZoom):
20838        (MainWindow::print):
20839        (MainWindow::setEditable):
20840        (MainWindow::dumpHtml):
20841        (MainWindow::setupUI):
20842        (main):
20843
208442008-08-04  Erik Bunce  <elbunce@thehive.com>
20845
20846        Reviewed by Simon.
20847
20848        https://bugs.webkit.org/show_bug.cgi?id=20198
20849
20850        Allow Copy key sequence to work in non-editable areas.
20851
20852        * Api/qwebpage.cpp:
20853        (QWebPagePrivate::keyPressEvent):
20854
208552008-07-31  Erik Bunce  <elbunce@thehive.com>
20856
20857        Reviewed by Simon.
20858
20859        Make sure edit actions get updated when the contents change.
20860
20861        * WebCoreSupport/EditorClientQt.cpp:
20862        (WebCore::EditorClientQt::respondToChangedContents):
20863
208642008-07-31  Erik Bunce  <elbunce@thehive.com>
20865
20866        Reviewed by Simon.
20867
20868        Add simple edit test abilities to QtLauncher.
20869
20870        * QtLauncher/main.cpp:
20871        (MainWindow::MainWindow):
20872        (MainWindow::setEditable):
20873        (MainWindow::dumpHtml):
20874
208752008-07-31  Alexey Proskuryakov  <ap@webkit.org>
20876
20877        Rubber-stamped by Maciej.
20878
20879        Eliminate JSLock (it was already disabled, removing the stub implementaion and all
20880        call sites now).
20881
20882        * Api/qwebframe.cpp:
20883        (QWebFrame::addToJavaScriptWindowObject):
20884
208852008-07-27  David Kilzer  <ddkilzer@apple.com>
20886
20887        Fix Qt build failure.
20888
20889        * Api/qwebframe.h:
20890        (QWebFrame::setScrollOffset): Make argument const.
20891
208922008-07-26  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
20893
20894        Reviewed by Simon Hausmann.
20895
20896        https://bugs.webkit.org/show_bug.cgi?id=20010
20897        [Qt] Add API access to scrolling
20898
20899        * Api/qwebframe.cpp: Added access to a frame scroll offset.
20900        (QWebFrame::scroll):
20901        (QWebFrame::scrollOffset):
20902        (QWebFrame::setScrollOffset):
20903        * Api/qwebframe.h:
20904
209052008-07-26  Daniel Jalkut  <jalkut@red-sweater.com>
20906
20907        Build fix.  Adjust to updated WebCore FrameLoader method names & signatures.
20908
20909        * Api/qwebpage.cpp:
20910        (QWebPage::triggerAction):
20911        * WebCoreSupport/FrameLoaderClientQt.cpp:
20912        (WebCore::FrameLoaderClientQt::createFrame):
20913
209142008-07-25  Joerg Bornemann  <joerg.bornemann@trolltech.com>
20915
20916        Reviewed by Simon.
20917
20918        Compile with QT_NO_PRINTER.
20919
20920        * QtLauncher/main.cpp:
20921        (MainWindow::MainWindow):
20922
209232008-07-24  Tor Arne Vestbø  <tavestbo@trolltech.com>
20924
20925        Reviewed by Simon
20926
20927        Don't insert text on keyDown event in EditorClientQt.
20928
20929        * WebCoreSupport/EditorClientQt.cpp:
20930        (WebCore::EditorClientQt::handleKeyboardEvent):
20931
209322008-07-04  Benjamin C Meyer  <ben@meyerhome.net>
20933
20934        Reviewed by Simon.
20935
20936        Update the webkit version in the QtWebKit useragent string to match trunk
20937
20938        * Api/qwebpage.cpp:
20939
209402008-07-02  Simon Hausmann  <hausmann@webkit.org>
20941
20942        Build fix.
20943
20944        * Api/qwebpage.cpp:
20945        (QWebPage::triggerAction): The signature of setBaseWritingDirection
20946        changed to take an enum instead of a string.
20947
209482008-07-01  Alexey Proskuryakov  <ap@webkit.org>
20949
20950        Reviewed by Darin Adler.
20951
20952        Disable JSLock for per-thread contexts.
20953
20954        * Api/qwebframe.cpp:
20955        (QWebFrame::addToJavaScriptWindowObject):
20956        Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
20957        Include JSLock.h, as it is no longer brought in implicitly.
20958
209592008-07-01  Tor Arne Vestbø  <tavestbo@trolltech.com>
20960
20961        Reviewed by Simon.
20962
20963        Don't show the tooltip instantly in the QtLauncher.
20964
20965        Let the QWebView handle tooltips by itself, so we get
20966        the expected delay as everywhere else.
20967
20968        * QtLauncher/main.cpp:
20969
209702008-06-30  Simon Hausmann  <hausmann@webkit.org>
20971
20972        Rubber-stamped by Niko.
20973
20974        Removed the obsolete and unmaintained WebKitPart. The integration of
20975        QtWebKit into KDE is now done in the webkitkde component inside KDE.
20976
20977        * WebKitPart/WebKitFactory.cpp: Removed.
20978        * WebKitPart/WebKitFactory.h: Removed.
20979        * WebKitPart/WebKitPart.cpp: Removed.
20980        * WebKitPart/WebKitPart.desktop: Removed.
20981        * WebKitPart/WebKitPart.h: Removed.
20982        * WebKitPart/WebKitPart.rc: Removed.
20983        * WebKitPart/WebKitPartBrowser.rc: Removed.
20984        * WebKitPart/WebKitPartBrowserExtension.cpp: Removed.
20985        * WebKitPart/WebKitPartBrowserExtension.h: Removed.
20986        * WebKitPart/WebKitPartClient.cpp: Removed.
20987        * WebKitPart/WebKitPartClient.h: Removed.
20988        * WebKitPart/WebKitPartInterface.cpp: Removed.
20989        * WebKitPart/WebKitPartInterface.h: Removed.
20990        * WebKitPart/org.kde.WebKitPart.xml: Removed.
20991
209922008-06-24  Simon Hausmann  <hausmann@webkit.org>
20993
20994        Fix the Qt build, added missing include for RuntimeObjectImp.
20995
20996        * Api/qwebframe.cpp:
20997
209982008-06-23  Benjamin C Meyer  <ben@meyerhome.net>
20999
21000        Reviewed by Simon.
21001
21002        Add function to retrieve the standard context menu
21003
210042008-06-20  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
21005
21006        Reviewed by Simon.
21007
21008        https://bugs.webkit.org/show_bug.cgi?id=19082
21009        [Qt] Full-page plugins not activated
21010
21011        * WebCoreSupport/FrameLoaderClientQt.cpp:
21012        (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a
21013        plugin present, as it can be created during the function.
21014
210152008-06-20  Marco Barisione  <marco.barisione@collabora.co.uk>
21016
21017        Reviewed by Simon.
21018
21019        https://bugs.webkit.org/show_bug.cgi?id=19082
21020        [Qt] Full-page plugins not activated
21021
21022        * WebCoreSupport/FrameLoaderClientQt.cpp:
21023        (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the
21024        MIME type is supported by a plugin.
21025
210262008-06-18  Alexey Proskuryakov  <ap@webkit.org>
21027
21028        Reviewed by Darin Adler.
21029
21030        Prepare JavaScript heap for being per-thread.
21031
21032        * Api/qwebframe.cpp:
21033        (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build.
21034
210352008-06-18  Julien Chaffraix  <jchaffraix@webkit.org>
21036
21037        Qt Build fix after r34627.
21038
21039        * WebCoreSupport/FrameLoaderClientQt.cpp:
21040        (WebCore::FrameLoaderClientQt::createPlugin):
21041
210422008-06-15  Darin Adler  <darin@apple.com>
21043
21044        - give Frame object functions shorter names: scriptProxy() -> script(),
21045          selectionController() -> selection(), animationController() -> animation()
21046
21047        * Api/qwebframe.cpp:
21048        (QWebFrame::evaluateJavaScript):
21049        * Api/qwebpage.cpp:
21050        (QWebPagePrivate::focusInEvent):
21051        (QWebPagePrivate::focusOutEvent):
21052        (QWebPage::inputMethodQuery):
21053        * WebCoreSupport/EditorClientQt.cpp:
21054        (WebCore::EditorClientQt::handleKeyboardEvent):
21055
210562008-06-15  Darin Adler  <darin@apple.com>
21057
21058        - new names for more JavaScriptCore files
21059
21060        * WebKit_pch.h:
21061
210622008-06-15  Darin Adler  <darin@apple.com>
21063
21064        - new names for a few key JavaScriptCore files
21065
21066        * Api/qwebframe.cpp:
21067
210682008-06-14  Darin Adler  <darin@apple.com>
21069
21070        Rubber stamped by Sam.
21071
21072        - new names for kjs_binding.h and kjs_proxy.h
21073
21074        * Api/qwebframe.cpp:
21075        (QWebFrame::evaluateJavaScript):
21076        * WebKit_pch.h:
21077
210782008-06-14  Darin Adler  <darin@apple.com>
21079
21080        - fix build
21081
21082        * Api/qwebframe.cpp:
21083        (QWebFramePrivate::init): Added a missing semicolon.
21084
210852008-06-14  Darin Adler  <darin@apple.com>
21086
21087        Reviewed by Sam.
21088
21089        - more https://bugs.webkit.org/show_bug.cgi?id=17257
21090          start ref counts at 1 instead of 0 for speed
21091
21092        * Api/qwebframe.cpp:
21093        (QWebFramePrivate::init): Use create instead of new.
21094        * WebCoreSupport/FrameLoaderClientQt.cpp:
21095        (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
21096
210972008-06-13  Darin Adler  <darin@apple.com>
21098
21099        - try to fix build
21100
21101        * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument.
21102
211032008-06-13  Darin Adler  <darin@apple.com>
21104
21105        Reviewed by John Sullivan.
21106
21107        - updated for addition of FormState argument to action policy functions
21108
21109        * WebCoreSupport/FrameLoaderClientQt.cpp:
21110        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
21111        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
21112
211132008-06-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
21114
21115        Reviewed by Simon.
21116
21117        Fix left-click and middle-click mouse event are not properly accepted.
21118
21119        When copying or pasting text using left or middle-click, the event must be
21120        accepted so that it will not be potentially processed further by the parent
21121        and/or sub-classed widget.
21122
21123
21124        * Api/qwebpage.cpp:
21125        (QWebPagePrivate::mouseReleaseEvent):
21126
211272008-06-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
21128
21129        Reviewed by Simon.
21130
21131        Fix input element does not accept character typed in using AltGr.
21132
21133        EditorClient is modified to catch AltGr and Ctrl+Alt key combination.
21134        This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry
21135
21136        * WebCoreSupport/EditorClientQt.cpp:
21137        (WebCore::EditorClientQt::handleKeyboardEvent):
21138
211392008-05-26  Jonathon Jongsma  <jonathon.jongsma@collabora.co.uk>
21140
21141        Reviewed by Simon.
21142
21143        https://bugs.webkit.org/show_bug.cgi?id=19323
21144
21145        Implemented the QWebPage::editable property.
21146
21147        Small documentation fixes by Simon.
21148
21149        * Api/qwebpage.cpp:
21150        (QWebPagePrivate::QWebPagePrivate):
21151        (QWebPage::setEditable):
21152        (QWebPage::isEditable):
21153        * Api/qwebpage.h:
21154        * Api/qwebpage_p.h: implement the editable property and add API so that
21155        applications can switch edit mode on and off for a particular QWebPage
21156        * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the
21157        QWebPage instead of always returning false
21158
211592008-06-09  Tor Arne Vestbø  <tavestbo@trolltech.com>
21160
21161        Reviewed by Simon
21162
21163        Make sure web action in context menus have the right enablement,
21164        while not messing up other web actions not included in the menu.
21165
21166        * Api/qwebpage.cpp:
21167        (QWebPagePrivate::createContextMenu):
21168        (QWebPage::updatePositionDependentActions):
21169        * Api/qwebpage_p.h:
21170
211712008-06-09  Benjamin C Meyer  <ben@meyerhome.net>
21172
21173        Reviewed by Simon
21174
21175        Add Shift-Space shortcut to go up one screen, the opposite of Space
21176        which goes down one screen.
21177
21178        * Api/qwebpage.cpp:
21179        (QWebPagePrivate::handleScrolling):
21180
211812008-06-04  Tor Arne Vestbø  <tavestbo@trolltech.com>
21182
21183        Reviewed by Simon.
21184
21185        Fix a failing assertion when calling QWebFrame::evaluateJavaScript.
21186
21187        The starting line number has to be 1 instead of 0.
21188
21189        * Api/qwebframe.cpp:
21190        (QWebFrame::evaluateJavaScript):
21191
211922008-06-03  Jonathon Jongsma  <jonathon.jongsma@collabora.co.uk>
21193
21194        Reviewed by Darin Adler.
21195
21196        * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains().  This
21197        function is not used anywhere internally and is only a convenience
21198        function that can still be accomplished using
21199        QWebHistoryInterface::historyContains();
21200
212012008-05-29  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
21202
21203        Reviewed by Simon.
21204
21205        Doc: Mention the requirement of a QApplication with QtWebKit
21206
21207
21208        * Api/qwebview.cpp:
21209
212102008-05-29  David Boddie  <dboddie@trolltech.com>
21211
21212        Reviewed by Simon.
21213
21214        Some clarifications for the documentation.
21215
21216
21217        * Api/qwebpage.cpp:
21218        * Api/qwebpluginfactory.cpp:
21219
212202008-05-27  Ariya Hidayat  <ariya.hidayat@trolltech.com>
21221
21222        Reviewed by Simon.
21223
21224        Fix web inspector does not returns its state properly after its window is minimized.
21225
21226        As hinted by Holger, InspectorClientView::hideEvent is not needed.
21227        This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967
21228
21229        * WebCoreSupport/InspectorClientQt.cpp:
21230
212312008-05-21  Siraj Razick  <siraj.razick@collabora.co.uk>
21232
21233        Reviewed by Simon.
21234
21235        Add <param name="classid"/> support for application/x-qt-object plugins
21236
21237        * WebCoreSupport/FrameLoaderClientQt.cpp:
21238        (WebCore::FrameLoaderClientQt::createPlugin):
21239
212402008-05-13  Andy Shaw  <andy@trolltech.com>
21241
21242        Reviewed by Simon.
21243
21244        Fixes: QWebHistory::forward() should go forwards and not back
21245
21246        * Api/qwebhistory.cpp:
21247
212482008-05-12  Alexey Proskuryakov  <ap@webkit.org>
21249
21250        Roll out recent  threading changes (r32807, r32810, r32819, r32822) to simplify
21251        SquirrelFish merging.
21252
21253        * Api/qwebframe.cpp:
21254        (QWebFrame::addToJavaScriptWindowObject):
21255
212562008-05-09  Thiago Macieira  <tjmaciei@trolltech.com>
21257
21258        Reviewed by Simon.
21259
21260        Fix bad includes in QtWebKit public headers.
21261
21262        Make sure to include qglobal.h using the QtCore prefix so that an explicit
21263        include/QtCore is not needed in the application's build system. Also make sure
21264        that qwebsettings.h includes the local qwebkitglobal.h.
21265
21266
21267        * Api/qwebkitglobal.h:
21268        * Api/qwebsettings.h:
21269
212702008-05-08  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
21271
21272        Reviewed by Simon.
21273
21274        https://bugs.webkit.org/show_bug.cgi?id=18935
21275
21276        Based on work by Sriram Neelakandan for the Gtk port.
21277
21278        * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize
21279        m_hasSentResponseToPlugin.
21280        (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
21281        (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
21282
212832008-05-08  Warwick Allison  <warwick@trolltech.com>
21284
21285        Reviewed by Simon.
21286
21287        Fixes: WebKit expects initial input method state to be *disabled*.
21288
21289        At least QWS does not need the initial input method state to be forced to
21290        enabled, but other platforms (esp. X11) do. Until fixed/tested on those
21291        platforms, this is specific to QWS.
21292
21293
21294        * Api/qwebview.cpp:
21295        (QWebView::QWebView):
21296
212972008-05-06  Simon Hausmann  <hausmann@webkit.org>
21298
21299        Reviewed by Holger.
21300
21301        Fix logic error in QWebHitTestResult::isNull().
21302
21303        * Api/qwebframe.cpp:
21304
213052008-05-02  Benjamin Meyer  <bmeyer@trolltech.com>
21306
21307        Reviewed by Simon.
21308
21309        Doc: Mention that you have to enable plugins in QWebSettings for them to work.
21310
21311        * Api/qwebpage.cpp:
21312
213132008-05-02  Simon Hausmann  <hausmann@webkit.org>
21314
21315        Fix the Qt build, ExecState is required here.
21316
21317        * Api/qwebframe.cpp:
21318        (QWebFrame::addToJavaScriptWindowObject):
21319
213202008-05-01  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
21321
21322        Reviewed by Alp Toker.
21323        Qt parts OK'ed by Simon Hausmann.
21324
21325        https://bugs.webkit.org/show_bug.cgi?id=14750
21326        Added support for NPAPI plugins on Gtk and Qt-x11 ports.
21327
21328        * WebCoreSupport/FrameLoaderClientQt.cpp:
21329        (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
21330        (WebCore::FrameLoaderClientQt::finishedLoading):
21331        (WebCore::FrameLoaderClientQt::setMainDocumentError):
21332        (WebCore::FrameLoaderClientQt::committedLoad):
21333        (WebCore::FrameLoaderClientQt::objectContentType):
21334        (WebCore::FrameLoaderClientQt::createPlugin):
21335        (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
21336        * WebCoreSupport/FrameLoaderClientQt.h:
21337
213382008-04-30  Julien Chaffraix  <jchaffraix@webkit.org>
21339
21340        Qt 4.3 build fix.
21341
21342        Fixes a brace error that made Qt 4.4 build but not Qt 4.3.
21343
21344        * Api/qwebview.cpp:
21345        (QWebView::event):
21346
213472008-04-30  Tor Arne Vestbø  <tavestbo@trolltech.com>
21348
21349        Reviewed by Simon.
21350
21351        In focusIn and focusOut event always update the active state of the
21352        focus controller. Fixes ~400 failing layout tests due to missing
21353        editing callbacks that relied on the correct focus.
21354
21355        * Api/qwebpage.cpp:
21356        (QWebPagePrivate::focusInEvent):
21357        (QWebPagePrivate::focusOutEvent):
21358
213592008-04-29  Lincoln Ramsay  <lincoln.ramsay@trolltech.com>
21360
21361        Reviewed by Simon.
21362
21363        Fix compilation with QT_NO_PRINTER
21364
21365
21366        * Api/qwebview.cpp:
21367        (QWebView::print):
21368
213692008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
21370
21371        Reviewed by Simon.
21372
21373        Ensure that relative URL is converted to absolute URL.
21374
21375        This is necessary because loading a relative URL is not really supported
21376        (the web page may load, but the subsequent URLs for images and links will
21377        not be resolved properly).
21378        This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484
21379
21380
21381        * Api/qwebframe.cpp:
21382        (ensureAbsoluteUrl):
21383        (QWebFrame::setUrl):
21384        (QWebFrame::load):
21385
213862008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
21387
21388        Reviewed by Simon.
21389
21390        Simplification of Qt Launcher (no animation and use standard progress bar widget)
21391
21392        Status bar shows the hovered link without any animation. Progress bar just uses the standard QProgressBar (no custom widget). The launcher is leaner and faster to use under the debugger and/or valgrind.
21393
21394
21395        * QtLauncher/main.cpp:
21396        (MainWindow::MainWindow):
21397
213982008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
21399
21400        Reviewed by Simon.
21401
21402        Update the cursor when the frame/page loading is finished.
21403
21404        This fixes https://bugs.webkit.org/show_bug.cgi?id=18712
21405
21406
21407        * WebCoreSupport/FrameLoaderClientQt.cpp:
21408        (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
21409        (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
21410
214112008-04-29  Simon Hausmann  <shausman@trolltech.com>
21412
21413        Reviewed by Holger.
21414
21415        Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links.
21416
21417        Call QWebPage::acceptNavigationRequest when the creation of a new window with
21418        URL is requested. The frame pointer is set to null in this case.
21419
21420
21421        * Api/qwebpage.cpp:
21422        (QWebPage::setViewportSize):
21423        * WebCoreSupport/FrameLoaderClientQt.cpp:
21424        (WebCore::FrameLoaderClientQt::startDownload):
21425        (WebCore::FrameLoaderClientQt::createFrame):
21426
214272008-04-29  Holger Hans Peter Freyther  <zecke@selfish.org>
21428
21429        Reviewed by Simon.
21430
21431        Use the WebCore facility to do the scrolling. Move some code around.
21432
21433        * Api/qwebpage.cpp:
21434        (QWebPagePrivate::keyPressEvent):
21435        (QWebPagePrivate::shortcutOverrideEvent):
21436        (QWebPagePrivate::handleScrolling):
21437        * Api/qwebpage_p.h:
21438
214392008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
21440
21441        Reviewed by Simon.
21442
21443        fix potential crash when loading image(s)
21444
21445        Crash may occur. If compiled with 4.3, the variable is not initialized.
21446
21447        * Api/qwebpage.cpp:
21448        (QWebPagePrivate::QWebPagePrivate):
21449
214502008-04-29  Holger Hans Peter Freyther  <zecke@selfish.org>
21451
21452        Reviewed by Simon.
21453
21454        Calling QWebView::setCursor will override the WebCore Cursor.
21455        Calling QWebView::setCursor will override the WebCore Cursor using
21456        QWidget::unsetCursor will revert to the WebCore Cursor.
21457
21458        For detecting the unset we have to compare the shape of the
21459        cursor to the default arrow. Qt::WA_SetCursor can not be used
21460        as it is set unconditionally but conditionally removed.
21461
21462        Calling QWidget::setCursor will immediately send the CursorChange
21463        event. We listen to this event to decide if we currently use a
21464        WebCore cursor, got a cursor from outside, or revert to the default.
21465
21466        This should be race free and work reliable, the manual test for this
21467        is WebCore/manual-tests/cursor.html
21468
21469        * Api/qwebpage.cpp:
21470        (SetCursorEvent::SetCursorEvent):
21471        * Api/qwebpage_p.h:
21472        * Api/qwebview.cpp:
21473        (QWebViewPrivate::QWebViewPrivate):
21474        (QWebViewPrivate::setCursor):
21475        (QWebView::QWebView):
21476        (QWebView::event):
21477
214782008-04-29  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
21479
21480        Reviewed by Simon.
21481
21482        Documentation fixes:
21483
21484        - Fixed a qdoc warning
21485        - Mention that fav icons can be of arbitrary size
21486        - Fix signature of QWebPage::acceptNavigationRequest show in the documentation
21487
21488        * Api/qwebframe.cpp:
21489        * Api/qwebpage.cpp:
21490        * Api/qwebpage.h:
21491        * Api/qwebsettings.cpp:
21492        * Api/qwebview.cpp:
21493
214942008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
21495
21496        Reviewed by Simon.
21497
21498        Fix QWebView::loadFinished isn't always emitted
21499
21500        Replaced loadDone() with loadFinished(bool) and moved the signals for progress
21501        tracking (start, progres, and finish) to the page instead of the frame. This
21502        ensures that we emit loadFinished even when a subframe started the actual load.
21503
21504        This causes a few regressions in the layout tests that we for now accept for
21505        the sake of the correct API. Layout tests we can fix any time though, including
21506        patch release, the API however we can't change anymore in patch releases.
21507
21508        * Api/qwebframe.cpp:
21509        * Api/qwebframe.h:
21510        * Api/qwebpage.cpp:
21511        (QWebPage::totalBytes):
21512        * Api/qwebpage.h:
21513        * Api/qwebview.cpp:
21514        (QWebView::setPage):
21515        * Api/qwebview.h:
21516        * QtLauncher/main.cpp:
21517        (MainWindow::MainWindow):
21518        * WebCoreSupport/FrameLoaderClientQt.cpp:
21519        (drtDescriptionSuitableForTestResult):
21520        (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
21521        (WebCore::FrameLoaderClientQt::setFrame):
21522        (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
21523        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
21524        (WebCore::FrameLoaderClientQt::willChangeTitle):
21525        (WebCore::FrameLoaderClientQt::createDocumentLoader):
21526        (WebCore::FrameLoaderClientQt::download):
21527        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
21528        * WebCoreSupport/FrameLoaderClientQt.h:
21529
215302008-04-28  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
21531
21532        Reviewed by Simon.
21533
21534        Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame
21535
21536        * Api/qwebframe.cpp:
21537        * Api/qwebpluginfactory.cpp:
21538        * Api/qwebsettings.cpp:
21539        (QWebSettings::QWebSettings):
21540        (QWebSettings::setUserStyleSheetUrl):
21541        (QWebSettings::iconForUrl):
21542        (QWebSettings::webGraphic):
21543        (QWebSettings::maximumPagesInCache):
21544        (QWebSettings::setFontFamily):
21545        (QWebSettings::resetFontFamily):
21546        (QWebSettings::testAttribute):
21547        (QWebSettings::resetAttribute):
21548
215492008-04-28  Ariya Hidayat  <ahidayat@trolltech.com>
21550
21551        Reviewed by Simon.
21552
21553        Fix document/frame title not reset when loading a new URI
21554
21555        We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle()
21556        will be called very soon with the correct title.
21557        This properly resets the title when we navigate to a URI without a title.
21558
21559
21560        * WebCoreSupport/FrameLoaderClientQt.cpp:
21561
215622008-04-28  David Boddie  <dboddie@trolltech.com>
21563
21564        Reviewed by Simon.
21565
21566        Minor documentation changes.
21567
21568        * Api/qwebview.cpp:
21569
215702008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
21571
21572        Reviewed by Simon.
21573
21574        Prevent middle-click from triggering open URL from clipboard when the event has already been accepted.
21575
21576
21577        * Api/qwebpage.cpp:
21578        (QWebPagePrivate::mouseMoveEvent):
21579        (QWebPagePrivate::mousePressEvent):
21580        (QWebPagePrivate::mouseDoubleClickEvent):
21581        (QWebPagePrivate::mouseTripleClickEvent):
21582        (QWebPagePrivate::mouseReleaseEvent):
21583
215842008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
21585
21586        Reviewed by Simon.
21587
21588        Fix scrollbar behavior in QtWebKit to match QScrollBar.
21589
21590        Right click context menu is now supported, along with
21591        middle click to center slider thumb over mouse cursor.
21592
21593
21594        * Api/qwebpage.cpp:
21595        (QWebPage::linkDelegationPolicy):
21596
215972008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
21598
21599        Reviewed by Simon.
21600
21601        Implemented channel-based logging for QtWebKit.
21602
21603        Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable.
21604        Warnings for notImplemented() is still output by default, but can be disabled
21605        by setting DISABLE_NI_WARNINGS=1.
21606
21607        * Api/qwebpage.cpp:
21608        (QWebPagePrivate::QWebPagePrivate):
21609
216102008-04-28  Simon Hausmann  <shausman@trolltech.com>
21611
21612        Rubber-stamped by Lars
21613
21614        Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API.
21615
21616        * Api/qwebframe.cpp:
21617        * Api/qwebframe.h:
21618        * Api/qwebview.cpp:
21619        * Api/qwebview.h:
21620
216212008-04-28  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
21622
21623        Reviewed by Simon.
21624
21625        Doc - adding more documentation to QWebFrame, QWebPage and QWebView
21626
21627
21628        * Api/qwebframe.cpp:
21629        * Api/qwebpage.cpp:
21630        * Api/qwebview.cpp:
21631        (QWebView::stop):
21632        (QWebView::back):
21633        (QWebView::changeEvent):
21634
216352008-04-28  Simon Hausmann  <shausman@trolltech.com>
21636
21637        Reviewed by Holger.
21638
21639        Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens
21640
21641        Give the popups the right parent widget and the right coordinates relative within the parent.
21642
21643
21644        * Api/qwebpage.cpp:
21645
216462008-04-28  Benjamin Meyer  <bmeyer@trolltech.com>
21647
21648        Reviewed by Simon.
21649
21650        Doc: Add see also's (and a few minor whitespace/typo corrections)
21651
21652
21653        * Api/qwebframe.cpp:
21654        (QWebFrame::~QWebFrame):
21655        (QWebFrame::setHtml):
21656        (QWebFrame::setContent):
21657        (QWebFrame::parentFrame):
21658        (QWebFrame::childFrames):
21659        (QWebFrame::setScrollBarValue):
21660        (QWebFrame::scrollBarValue):
21661        (QWebFrame::scrollBarMaximum):
21662        (QWebFrame::scrollBarMinimum):
21663        (QWebFrame::render):
21664        (QWebFrame::pos):
21665        (QWebFrame::geometry):
21666        (QWebFrame::print):
21667        (QWebFrame::evaluateJavaScript):
21668        * Api/qwebpage.cpp:
21669        (QWebPagePrivate::mousePressEvent):
21670        (QWebPagePrivate::mouseDoubleClickEvent):
21671        (QWebPage::~QWebPage):
21672        (QWebPage::javaScriptPrompt):
21673        (openNewWindow):
21674        (QWebPage::setViewportSize):
21675        (QWebPage::acceptNavigationRequest):
21676        (QWebPage::action):
21677        (QWebPage::userAgentForUrl):
21678        (QWebPagePrivate::_q_onLoadProgressChanged):
21679        * Api/qwebview.cpp:
21680        (QWebView::event):
21681
216822008-04-28  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
21683
21684        Reviewed by Simon.
21685
21686        Submitting more documentation for QWebPage
21687
21688
21689        * Api/qwebpage.cpp:
21690
216912008-04-28  Lincoln Ramsay  <lincoln.ramsay@trolltech.com>
21692
21693        Reviewed by Simon.
21694
21695        Compile when QT_NO_CLIPBOARD is defined.
21696
21697
21698        * Api/qwebpage.cpp:
21699        (QWebPage::triggerAction):
21700
217012008-04-28  David Boddie  <dboddie@trolltech.com>
21702
21703        Reviewed by Simon.
21704
21705        Minor documentation fix.
21706
21707
21708        * Api/qwebhistory.cpp:
21709
217102008-04-28  Holger Hans Peter Freyther  <zecke@selfish.org>
21711
21712        Reviewed by Simon.
21713
21714        Implement QWebPage::createPlugin
21715
21716        The code is coming from the demo browser and needed here
21717        for some manual tests.
21718
21719
21720        * QtLauncher/QtLauncher.pro:
21721        * QtLauncher/main.cpp:
21722        (WebPage::createPlugin):
21723
217242008-04-28  Simon Hausmann  <hausmann@webkit.org>
21725
21726        Qt/Win build fix. Include config.h to get the implicit MathExtras.h
21727        inclusion correct with regards to rand_s.
21728
21729        * Api/qwebhistory.cpp:
21730
217312008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
21732
21733        Reviewed by Simon.
21734
21735        https://bugs.webkit.org/show_bug.cgi?id=18713
21736
21737        Fix scrollbar painting issues in QtWebKit.
21738
21739        Hovering and click-draging outside of the scrollbar would
21740        produce unexpected and inconcistent results. We also didn't
21741        pass on leave-events to the underlying WebKit code, which
21742        was nessecary to implement the paint fix.
21743
21744        Note: The event handling of the Leave event should be moved
21745        out of QWebView::event() and into a proper override for 4.5.
21746
21747        * Api/qwebpage.cpp:
21748        (QWebPagePrivate::leaveEvent):
21749        * Api/qwebpage_p.h:
21750        * Api/qwebview.cpp:
21751        (QWebView::event):
21752
217532008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
21754
21755        Reviewed by Simon, Holger.
21756
21757        Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus.
21758
21759        * Correctly de- and reactivate the focused frame in focusOut/focusInEvent
21760        without telling the focus controller. We don't want to change the focused frame
21761        - the controller has to remember it in fact - but instead just deactivate the
21762        frame for correct painting as RenderTheme::isFocused() uses the activation
21763        state of the frame.
21764
21765        * Api/qwebpage.cpp:
21766        (QWebPagePrivate::focusInEvent):
21767        (QWebPagePrivate::focusOutEvent):
21768
217692008-04-25  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
21770
21771        Reviewed by Simon.
21772
21773        completed documentation for the Detailed Description section for QWebView
21774
21775
21776        * Api/qwebview.cpp:
21777
217782008-04-25  Denis Dzyubenko  <denis.dzyubenko@trolltech.com>
21779
21780        Reviewed by Simon.
21781
21782        Fixed the way QWebHistory works - when you call back(), forward() or goToItem() functions it changes the current item in history *and* loads the corresponding page.
21783
21784
21785        * Api/qwebhistory.cpp:
21786        (QWebHistory::back):
21787        (QWebHistory::forward):
21788        (QWebHistory::goToItem):
21789
217902008-04-25  Tor Arne Vestbø  <tavestbo@trolltech.com>
21791
21792        Reviewed by Simon.
21793
21794        Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest().
21795
21796
21797        * WebCoreSupport/FrameLoaderClientQt.cpp:
21798        (WebCore::FrameLoaderClientQt::createFrame):
21799
218002008-04-25  Simon Hausmann  <hausmann@webkit.org>
21801
21802        Reviewed by Holger.
21803
21804        When pressing backspace in a line edit in a webpage we should not go back to the previous page.
21805
21806        The shortcut for back on Windows is backspace. Implemented shortcut override
21807        handling in QWebView/QWebPage to prevent this.
21808
21809
21810        * Api/qwebpage.cpp:
21811        (QWebPagePrivate::wheelEvent):
21812        (editorActionForKeyEvent):
21813        (QWebPagePrivate::keyPressEvent):
21814        (QWebPagePrivate::inputMethodEvent):
21815        (QWebPagePrivate::shortcutOverrideEvent):
21816        (QWebPage::event):
21817        * Api/qwebpage_p.h:
21818        * Api/qwebview.cpp:
21819        (QWebView::event):
21820
218212008-04-25  Ariya Hidayat  <ariya.hidayat@trolltech.com>
21822
21823        Reviewed by Simon.
21824
21825        Fix triple-clicking does not work in a web page
21826
21827
21828        * Api/qwebpage.cpp:
21829        (QWebPagePrivate::updateEditorActions):
21830        (QWebPagePrivate::timerEvent):
21831        (QWebPagePrivate::mousePressEvent):
21832        (QWebPagePrivate::mouseDoubleClickEvent):
21833        (QWebPage::undoStack):
21834        * Api/qwebpage_p.h:
21835
218362008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
21837
21838        Reviewed by Simon.
21839
21840        When pressing Ctrl-Up the keyboard modifiers could include other modifiers
21841
21842
21843        * Api/qwebpage.cpp:
21844        (QWebPagePrivate::keyPressEvent):
21845
218462008-04-25  Tor Arne Vestbø  <tavestbo@trolltech.com>
21847
21848        Reviewed by Simon.
21849
21850        Fix handling of Javascript's confirm() function in QtWebKit.
21851
21852
21853        * Api/qwebpage.cpp:
21854
218552008-04-25  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
21856
21857        Reviewed by Simon.
21858
21859        Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity
21860
21861
21862        * Api/qwebview.cpp:
21863
218642008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
21865
21866        Reviewed by Simon.
21867
21868        QWebPage: missing signal when window.print() is requested from javascript
21869
21870
21871        * Api/qwebpage.cpp:
21872        * Api/qwebpage.h:
21873        * WebCoreSupport/ChromeClientQt.cpp:
21874
218752008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
21876
21877        Reviewed by Simon.
21878
21879        Fixes: "Save Image" action wasn't doing anything.
21880
21881
21882        * Api/qwebpage.cpp:
21883        (QWebPage::triggerAction):
21884
218852008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
21886
21887        Reviewed by Simon.
21888
21889        Apply key event changes to the current frame, not the main frame.
21890
21891        Example: hitting space bar should scroll current frame, not the main frame
21892        which doesn't even have a scrollbar.
21893
21894
21895        * Api/qwebpage.cpp:
21896        (QWebPagePrivate::keyPressEvent):
21897
218982008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
21899
21900        Reviewed by Simon.
21901
21902        Fixes: QWebFrame crash when fetching the icon
21903
21904        Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock.
21905
21906        * Api/qwebframe.cpp:
21907
219082008-04-25  Warwick Allison  <warwick@trolltech.com>
21909
21910        Reviewed by Simon.
21911
21912        Fixes: Scrollbars did not report correct maximum.
21913
21914        * Api/qwebframe.cpp:
21915
219162008-04-25  David Boddie <dboddie@trolltech.com>
21917
21918        Reviewed by Simon.
21919
21920        Documentation updates for some of the QWeb classes
21921
21922        * Api/qwebframe.cpp:
21923        * Api/qwebhistory.cpp:
21924        * Api/qwebsettings.cpp:
21925        * Api/qwebview.cpp:
21926
219272008-04-25  Holger Hans Peter Freyther  <zecke@selfish.org>
21928
21929        Reviewed by Simon.
21930
21931        Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html
21932
21933        Similar to Editing and Frameloading we do the dumping within WebCore
21934
21935
21936        * WebCoreSupport/FrameLoaderClientQt.cpp:
21937        (qt_dump_frame_loader):
21938        (qt_dump_resource_load_callbacks):
21939        (drtDescriptionSuitableForTestResult):
21940        (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
21941        (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
21942        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
21943
219442008-04-24  Anders Carlsson  <andersca@apple.com>
21945
21946        Reviewed by Sam.
21947
21948        Change some String arguments to be const references instead.
21949
21950        * WebCoreSupport/EditorClientQt.cpp:
21951        (WebCore::EditorClientQt::shouldInsertText):
21952        * WebCoreSupport/EditorClientQt.h:
21953
219542008-04-24  Holger Hans Peter Freyther  <zecke@selfish.org>
21955
21956        Reviewed by Simon.
21957
21958        Cosmetic changes to make the code more readable.
21959        -Early exit if we don't have a webview
21960        -handle the empty tooltip and non-empty tooltip case separately
21961
21962
21963        * WebCoreSupport/ChromeClientQt.cpp:
21964        (WebCore::ChromeClientQt::setToolTip):
21965        (WebCore::ChromeClientQt::print):
21966
219672008-04-24  Paul Olav Tvete  <paul@trolltech.com>
21968
21969        Reviewed by Simon.
21970
21971        Automatically wrap tooltip text and hide a shown tooltip when it is empty.
21972
21973        QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds.
21974        Workaround as discussed with Matthias.
21975
21976        * WebCoreSupport/ChromeClientQt.cpp:
21977        (WebCore::ChromeClientQt::setToolTip):
21978
219792008-04-24  Holger Hans Peter Freyther  <zecke@selfish.org>
21980
21981        Reviewed by Simon.
21982
21983        Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0)
21984
21985        * Api/qwebsettings.cpp:
21986        (QWebSettings::setObjectCacheCapacities):
21987
219882008-04-24  Benjamin Meyer  <bmeyer@trolltech.com>
21989
21990        Reviewed by Simon.
21991
21992        Improve keyboard scrolling
21993
21994        Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom.
21995
21996
21997        * Api/qwebpage.cpp:
21998        (QWebPagePrivate::keyPressEvent):
21999
220002008-04-24  Olivier Goffart  <ogoffart@trolltech.com>
22001
22002        Reviewed by Simon.
22003
22004        Fix various compiler warnings in the Qt port.
22005
22006        * Api/qwebframe.cpp:
22007        (QWebFrame::print):
22008        * Api/qwebsettings.cpp:
22009        (graphics):
22010        * WebCoreSupport/FrameLoaderClientQt.cpp:
22011        (WebCore::FrameLoaderClientQt::createPlugin):
22012
220132008-04-24  Tor Arne Vestbø  <tavestbo@trolltech.com>
22014
22015        Reviewed by Simon.
22016
22017        Cleaned up copyright headers (removed misplaced class descriptions and
22018        fixed inconsistent whitespace and indentation).
22019
22020        * Api/qwebframe.cpp:
22021        * Api/qwebframe.h:
22022        * Api/qwebframe_p.h:
22023        * Api/qwebhistory.cpp:
22024        * Api/qwebhistory.h:
22025        * Api/qwebhistory_p.h:
22026        * Api/qwebhistoryinterface.cpp:
22027        * Api/qwebhistoryinterface.h:
22028        * Api/qwebkitglobal.h:
22029        * Api/qwebnetworkinterface.cpp:
22030        * Api/qwebnetworkinterface.h:
22031        * Api/qwebnetworkinterface_p.h:
22032        * Api/qwebpage.cpp:
22033        * Api/qwebpage.h:
22034        * Api/qwebpage_p.h:
22035        * Api/qwebpluginfactory.cpp:
22036        * Api/qwebpluginfactory.h:
22037        * Api/qwebsettings.cpp:
22038        * Api/qwebsettings.h:
22039        * Api/qwebview.h:
22040        * QtLauncher/main.cpp:
22041
220422008-04-24  Tor Arne Vestbø  <tavestbo@trolltech.com>
22043
22044        Reviewed by Simon.
22045
22046        Added basic URL guessing to QtLauncher (same as in the demo browser).
22047
22048
22049        * QtLauncher/main.cpp:
22050        (MainWindow::changeLocation):
22051        (MainWindow::guessUrlFromString):
22052
220532008-04-24  Benjamin Meyer  <bmeyer@trolltech.com>
22054
22055        Reviewed by Simon Hausmann <hausmann@webkit.org>.
22056
22057        Prevent double deletions of the default web interface.
22058
22059
22060        * Api/qwebhistoryinterface.cpp:
22061        (gCleanupInterface):
22062        (QWebHistoryInterface::QWebHistoryInterface):
22063
220642008-04-23  Simon Hausmann  <hausmann@webkit.org>
22065
22066        Fix compilation against Qt 4.3
22067
22068        * Api/qwebpage.cpp:
22069        (QWebPage::userAgentForUrl):
22070        * QtLauncher/main.cpp:
22071        (main):
22072
220732008-04-23  Holger Hans Peter Freyther  <zecke@selfish.org>
22074
22075        Reviewed by Simon.
22076
22077        * Make sure the "Inspect Element" item gets added to the ContextMenu, a call
22078        to ContextMenu::populate() is not adding it, the ContextMenuController does
22079        add it after the call to populate(). Do that as well.
22080
22081
22082        * Api/qwebpage.cpp:
22083        (QWebPage::updatePositionDependentActions):
22084
220852008-04-23  Simon Hausmann  <hausmann@webkit.org>
22086
22087        Reviewed by Holger.
22088
22089        Fix crashes on window.close().
22090
22091        We should not delete the QWebPage object in the ChromeClient but leave it up to
22092        the application when and whether to delete a browser window. For this we now
22093        emit the windowCloseRequested() signal.
22094
22095        Done with Tor Arne.
22096
22097        * Api/qwebpage.cpp:
22098        * Api/qwebpage.h:
22099        * QtLauncher/main.cpp:
22100        (MainWindow::MainWindow):
22101        * WebCoreSupport/ChromeClientQt.cpp:
22102
221032008-04-23  Simon Hausmann  <hausmann@webkit.org>
22104
22105        Reviewed by Holger.
22106
22107        Fix parsing of external scripts/stylesheets when using setHtml(const QString &html).
22108
22109        We used to pass the html string to the frameloader in utf-16, which also meant that the default
22110        encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8
22111        by default. This is now also documented.
22112
22113        * Api/qwebframe.cpp:
22114        (QWebFrame::setHtml):
22115        * Api/qwebview.cpp:
22116
221172008-04-23  Benjamin Meyer  <bmeyer@trolltech.com>
22118
22119        Reviewed by Simon.
22120
22121        Fixes background color propagation when using a custom QWebPage
22122
22123        Set the palette in setPage(), not during the creation on-demand.
22124
22125
22126        * Api/qwebview.cpp:
22127        (QWebView::page):
22128        (QWebView::setPage):
22129
221302008-04-23  Benjamin Meyer  <bmeyer@trolltech.com>
22131
22132        Reviewed by Simon.
22133
22134        Fix the user agent on the mac to be BSD4
22135
22136        Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac
22137
22138
22139        * Api/qwebpage.cpp:
22140        (QWebPage::userAgentForUrl):
22141
221422008-04-23  Simon Hausmann  <shausman@trolltech.com>
22143
22144        Reviewed by Holger.
22145
22146        Added missing copyright notice.
22147        Small fixes to the documentation.
22148
22149        * Api/qwebpluginfactory.cpp:
22150
221512008-04-23  Zack Rusin  <zack@tungstengraphics.com>
22152
22153        Reviewed by Simon.
22154
22155        Added a contentsSize() property.
22156
22157        * Api/qwebframe.cpp:
22158        (QWebFrame::contentsSize):
22159        (QWebFrame::hitTestContent):
22160        * Api/qwebframe.h:
22161
221622008-04-22  Benjamin Meyer  <bmeyer@trolltech.com>
22163
22164        Reviewed by Simon.
22165
22166        Fixes: QWebPage's QNetworkManager's can be shared among webpages.
22167
22168        Don't force the deletion of the object, but let QObject take care of it.
22169
22170        * Api/qwebpage.cpp:
22171
221722008-04-22  Simon Hausmann  <hausmann@webkit.org>
22173
22174        Reviewed by Holger.
22175
22176        Documentation for QWebPluginFactory and documentation updates for QWebPage.
22177
22178        * Api/qwebpage.cpp:
22179        (QWebPage::setLinkDelegationPolicy):
22180        (QWebPage::linkDelegationPolicy):
22181        (QWebPage::swallowContextMenuEvent):
22182        (QWebPage::updatePositionDependentActions):
22183        (QWebPage::extension):
22184        (QWebPage::networkAccessManager):
22185        * Api/qwebpluginfactory.cpp:
22186        (QWebPluginFactory::QWebPluginFactory):
22187        (QWebPluginFactory::~QWebPluginFactory):
22188        (QWebPluginFactory::refreshPlugins):
22189
221902008-04-22  Simon Hausmann  <hausmann@webkit.org>
22191
22192        Reviewed by Holger.
22193
22194        Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions.
22195
22196
22197        * Api/qwebpage.cpp:
22198        (QWebPagePrivate::QWebPagePrivate):
22199        (QWebPagePrivate::mouseReleaseEvent):
22200        (QWebPage::setLinkDelegationPolicy):
22201        (QWebPage::linkDelegationPolicy):
22202        (QWebPage::swallowContextMenuEvent):
22203        (QWebPage::updatePositionDependentActions):
22204        * Api/qwebpage.h:
22205        * Api/qwebpage_p.h:
22206        * Api/qwebview.cpp:
22207        (QWebView::event):
22208
222092008-04-22  Simon Hausmann  <hausmann@webkit.org>
22210
22211        Reviewed by Holger.
22212
22213        Added Extension APIs for QWebPage.
22214
22215        * Api/qwebpage.cpp:
22216        (QWebPage::setLinkDelegationPolicy):
22217        (QWebPage::linkDelegationPolicy):
22218        (QWebPage::extension):
22219        * Api/qwebpage.h:
22220        * Api/qwebpluginfactory.cpp:
22221        (QWebPluginFactory::extension):
22222
222232008-04-22  Tor Arne Vestbø  <tavestbo@trolltech.com>
22224
22225        Reviewed by Simon.
22226
22227        Emit loadProgress() signal on loadStarted().
22228
22229
22230        * WebCoreSupport/FrameLoaderClientQt.cpp:
22231        (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
22232
222332008-04-22  Zack Rusin  <zack@kde.org>
22234
22235        Reviewed by Simon.
22236
22237        Fix background propagation from the QWebView's palette.
22238
22239        The background brush of the palette needs to be propagated to the WebCore::FrameView.
22240
22241        * Api/qwebframe.cpp:
22242        (QWebFramePrivate::updateBackground):
22243        * Api/qwebframe_p.h:
22244        * Api/qwebpage.cpp:
22245        (QWebPagePrivate::dropEvent):
22246        (QWebPage::setPalette):
22247        * Api/qwebpage.h:
22248        * Api/qwebpage_p.h:
22249        * Api/qwebview.cpp:
22250        (QWebView::page):
22251        (QWebView::changeEvent):
22252        * Api/qwebview.h:
22253        * WebCoreSupport/FrameLoaderClientQt.cpp:
22254
222552008-04-22  Benjamin Meyer  <bmeyer@trolltech.com>
22256
22257        Reviewed by Simon.
22258
22259        Fix maps.google.com
22260
22261        We have to include a version in the Safari tag in the user-agent.
22262
22263        * Api/qwebpage.cpp:
22264        (QWebPage::userAgentForUrl):
22265
222662008-04-22  Tor Arne Vestbø  <tavestbo@trolltech.com>
22267
22268        Reviewed by Simon.
22269
22270        Add visual focusing hint for clear button and
22271        change focus to web page after user enters new URL.
22272
22273        * QtLauncher/main.cpp:
22274        (ClearButton::paintEvent):
22275        (MainWindow::changeLocation):
22276
222772008-04-22  Simon Hausmann  <hausmann@webkit.org>
22278
22279        Reviewed by Holger.
22280
22281        Added QWebFrame::hitTestContent() and QWebHitTestResult.
22282
22283        * Api/qwebframe.cpp:
22284        (QWebFrame::hitTestContent):
22285        (QWebFrame::event):
22286        (QWebHitTestResult::QWebHitTestResult):
22287        (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
22288        (QWebHitTestResult::operator=):
22289        (QWebHitTestResult::~QWebHitTestResult):
22290        (QWebHitTestResult::isNull):
22291        (QWebHitTestResult::pos):
22292        (QWebHitTestResult::title):
22293        (QWebHitTestResult::linkText):
22294        (QWebHitTestResult::linkUrl):
22295        (QWebHitTestResult::linkTitle):
22296        (QWebHitTestResult::linkTargetFrame):
22297        (QWebHitTestResult::alternateText):
22298        (QWebHitTestResult::imageUrl):
22299        (QWebHitTestResult::pixmap):
22300        (QWebHitTestResult::isContentEditable):
22301        (QWebHitTestResult::isContentSelected):
22302        (QWebHitTestResult::frame):
22303        * Api/qwebframe.h:
22304        * Api/qwebframe_p.h:
22305        (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
22306        * Api/qwebpage.cpp:
22307        (QWebPagePrivate::contextMenuEvent):
22308        (QWebPage::triggerAction):
22309        * Api/qwebpage.h:
22310        * Api/qwebpage_p.h:
22311
223122008-04-22  Simon Hausmann  <hausmann@webkit.org>
22313
22314        Reviewed by Holger.
22315
22316        Don't crash if an input method query is done without a page.
22317
22318
22319        * Api/qwebview.cpp:
22320        (QWebView::inputMethodQuery):
22321
223222008-04-22  Simon Hausmann  <hausmann@webkit.org>
22323
22324        Reviewed by Holger.
22325
22326        Added re-implementations of QObject::event for future safety.
22327
22328        This makes it easier to fix bugs with the event handling even in patch releases
22329        and is a general style we follow in Qt.
22330
22331
22332        * Api/qwebframe.cpp:
22333        * Api/qwebframe.h:
22334        * Api/qwebview.cpp:
22335        (QWebView::event):
22336        * Api/qwebview.h:
22337
223382008-04-22  Benjamin Meyer  <bmeyer@trolltech.com>
22339
22340        Reviewed by Simon.
22341
22342        Fix construction of the user agent.
22343
22344        The user-agent is now composed of
22345        * the platform and subplatform
22346        * the Qt version or application name and version (if set)
22347        * the locale
22348        * the SSL settings
22349
22350
22351        * Api/qwebpage.cpp:
22352        (QWebPage::networkAccessManager):
22353        (QWebPage::setPluginFactory):
22354        (QWebPage::pluginFactory):
22355        (QWebPage::userAgentForUrl):
22356        * QtLauncher/main.cpp:
22357
223582008-04-22  Thiago Macieira  <tjmaciei@trolltech.com>
22359
22360        Reviewed by Simon.
22361
22362        Fixes: Pedantic compilation fix
22363
22364        Don't put semi-colons after braces closing namespaces.
22365
22366        * Api/qwebsettings.h:
22367
223682008-04-21  Simon Hausmann  <hausmann@webkit.org>
22369
22370        Reviewed by Lars.
22371
22372        Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant.
22373
22374        * Api/qwebframe.cpp:
22375        (QWebFrame::evaluateJavaScript):
22376        * Api/qwebframe.h:
22377
223782008-04-21  Simon Hausmann  <hausmann@webkit.org>
22379
22380        Reviewed by Holger.
22381
22382        Fixes redundant "Fonts" submenu in default lineedits that has only disabled items.
22383
22384        Don't show sub-menus that have only actions that are disabled.
22385
22386        * Api/qwebpage.cpp:
22387        (QWebPagePrivate::createContextMenu):
22388
223892008-04-21  Kavindra Devi Palaraja <kdpalara@trolltech.com>.
22390
22391        Reviewed by Simon.
22392
22393        Lots of documentation fixes, fixed all qdoc warnings.
22394
22395        * Api/qwebframe.cpp:
22396        (QWebFrame::setTextSizeMultiplier):
22397        * Api/qwebhistoryinterface.cpp:
22398        (gCleanupInterface):
22399        (QWebHistoryInterface::QWebHistoryInterface):
22400        (QWebHistoryInterface::~QWebHistoryInterface):
22401        * Api/qwebpage.cpp:
22402        (QWebPage::inputMethodQuery):
22403        (QWebPage::view):
22404        (QWebPage::javaScriptConsoleMessage):
22405        (QWebPage::javaScriptAlert):
22406        (QWebPage::javaScriptConfirm):
22407        (QWebPage::javaScriptPrompt):
22408        (QWebPage::viewportSize):
22409        (QWebPage::acceptNavigationRequest):
22410        (QWebPage::action):
22411        (QWebPage::event):
22412        (QWebPage::focusNextPrevChild):
22413        (QWebPage::setForwardUnsupportedContent):
22414        (QWebPage::setLinkDelegationPolicy):
22415        (QWebPage::findText):
22416        (QWebPage::settings):
22417        (QWebPage::networkProxy):
22418        (QWebPage::setNetworkAccessManager):
22419        * Api/qwebpage.h:
22420        * Api/qwebsettings.cpp:
22421        (QWebSettings::QWebSettings):
22422        (QWebSettings::setIconDatabasePath):
22423        (QWebSettings::iconForUrl):
22424        (QWebSettings::fontFamily):
22425        * Api/qwebview.cpp:
22426        (QWebView::load):
22427        * Api/qwebview.h:
22428
224292008-04-21  Marius Bugge Monsen  <mmonsen@trolltech.com>
22430
22431        Reviewed by Simon.
22432
22433        Fix compile failure on solaris-cc
22434
22435        * Api/qwebpage.h: Removed trailing semicolons and moved the private
22436        d-pointer to not confuse the compiler
22437
224382008-04-21  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
22439
22440        Reviewed by Simon.
22441
22442        Build fix for Qt 4.3
22443
22444        * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is
22445        always defined. Do this by adding defines to the compiler line
22446        * For users of our API this is not feasible. Every public header file should
22447        include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE
22448        when we are building everything < 4.4.0 and don't have them defined.
22449
22450        * Api/qwebkitglobal.h:
22451
224522008-04-21  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
22453
22454        Reviewed by Simon.
22455
22456        * Initialize the WebGraphics with the one found in WebCore
22457
22458
22459        * Api/qwebsettings.cpp:
22460        (QWebSettingsPrivate::apply):
22461
224622008-04-21  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
22463
22464        Reviewed by Simon.
22465
22466        * Allow TextAreas to be resized.
22467        * No QWebSettings for this is introduced.
22468
22469
22470        * Api/qwebsettings.cpp:
22471        (QWebSettingsPrivate::apply):
22472
224732008-04-21  Simon Hausmann  <shausman@trolltech.com>
22474
22475        Reviewed by Holger.
22476
22477        Fixes: QWebView::url property behaviour strange in designer
22478
22479        Added QWebView/QWebFrame::setUrl, which unlike load() clears the view immediately, schedules a load of the url but also makes sure url() returns the set url. This setter is now also used for the url property.
22480
22481        * Api/qwebframe.cpp:
22482        (QWebFrame::setUrl):
22483        * Api/qwebframe.h:
22484        * Api/qwebview.cpp:
22485        (QWebView::setUrl):
22486        * Api/qwebview.h:
22487
224882008-04-21  Andre Poenitz  <andre.poenitz@trolltech.com>
22489
22490        Reviewed by Simon Hausmann <hausmann@webkit.org>.
22491
22492        Fix compilation with Qt namespaces
22493
22494        * Api/qwebframe.cpp:
22495        (QWebFrame::print):
22496        * Api/qwebview.h:
22497
224982008-04-21  Simon Hausmann  <hausmann@webkit.org>
22499
22500        Reviewed by Holger.
22501
22502        When printing on high resolution printers we need to scale the painter accordingly (for now).
22503
22504        * Api/qwebframe.cpp:
22505        (QWebFrame::print):
22506
225072008-04-21  Simon Hausmann  <hausmann@webkit.org>
22508
22509        Reviewed by Holger.
22510
22511        Provide a print preview in the QtLauncher
22512
22513        * QtLauncher/main.cpp:
22514        (MainWindow::MainWindow):
22515        (MainWindow::showLinkHover):
22516        (MainWindow::print):
22517
225182008-04-20  Simon Hausmann  <hausmann@webkit.org>
22519
22520        Reviewed by Alp Toker.
22521
22522        Share the printing code between the Gtk and the Qt port
22523        and added printing to the Qt WebKit API.
22524
22525        * Api/qwebframe.cpp:
22526        (QWebFrame::print):
22527        * Api/qwebframe.h:
22528        * Api/qwebview.cpp:
22529        (QWebView::print):
22530        * Api/qwebview.h:
22531
225322008-04-19  Julien Chaffraix  <jchaffraix@webkit.org>
22533
22534        Qt build fix (renderer() -> contentRenderer()).
22535
22536        * Api/qwebframe.cpp:
22537        (QWebFrame::renderTreeDump):
22538        (QWebFrame::render):
22539
225402008-04-18  Simon Hausmann  <hausmann@webkit.org>
22541
22542        Reviewed by Holger.
22543
22544        Many API changes and additions after a full review with Jasmin Blanchette <jasmin@trolltech.com>
22545
22546        The diff is too big to mention the changes individually, but most of the changes were of cosmetic
22547        nature where methods or enums have been renamed or prefixed/suffixed according to the consistency
22548        rules of the Qt API.
22549
22550        * Api/qwebframe.cpp:
22551        (QWebFrame::addToJavaScriptWindowObject):
22552        (QWebFrame::toHtml):
22553        (QWebFrame::toPlainText):
22554        (QWebFrame::icon):
22555        (QWebFrame::setContent):
22556        (QWebFrame::setScrollBarPolicy):
22557        (QWebFrame::render):
22558        (QWebFrame::setTextSizeMultiplier):
22559        (QWebFrame::textSizeMultiplier):
22560        (QWebFrame::pos):
22561        * Api/qwebframe.h:
22562        * Api/qwebhistory.cpp:
22563        * Api/qwebhistory.h:
22564        * Api/qwebpage.cpp:
22565        (QWebPagePrivate::QWebPagePrivate):
22566        (QWebPagePrivate::~QWebPagePrivate):
22567        (QWebPagePrivate::acceptNavigationRequest):
22568        (webActionForContextMenuAction):
22569        (QWebPagePrivate::updateAction):
22570        (QWebPagePrivate::keyPressEvent):
22571        (QWebPage::view):
22572        (QWebPage::javaScriptPrompt):
22573        (QWebPage::createWindow):
22574        (QWebPage::triggerAction):
22575        (QWebPage::setViewportSize):
22576        (QWebPage::acceptNavigationRequest):
22577        (QWebPage::action):
22578        (QWebPage::focusNextPrevChild):
22579        (QWebPage::setForwardUnsupportedContent):
22580        (QWebPage::forwardUnsupportedContent):
22581        (QWebPage::setLinkDelegationPolicy):
22582        (QWebPage::findText):
22583        (QWebPage::networkAccessManager):
22584        (QWebPageContext::imageUrl):
22585        (QWebPageContext::image):
22586        * Api/qwebpage.h:
22587        * Api/qwebpage_p.h:
22588        * Api/qwebsettings.cpp:
22589        (QWebSettingsPrivate::apply):
22590        (QWebSettings::QWebSettings):
22591        (QWebSettings::setIconDatabasePath):
22592        (QWebSettings::iconDatabasePath):
22593        (QWebSettings::clearIconDatabase):
22594        (QWebSettings::iconForUrl):
22595        (QWebSettings::setWebGraphic):
22596        (QWebSettings::fontFamily):
22597        (QWebSettings::setAttribute):
22598        (QWebSettings::testAttribute):
22599        (QWebSettings::resetAttribute):
22600        * Api/qwebsettings.h:
22601        * Api/qwebview.cpp:
22602        (QWebView::setPage):
22603        (QWebView::icon):
22604        (QWebView::setTextSizeMultiplier):
22605        (QWebView::textSizeMultiplier):
22606        (QWebView::findText):
22607        (QWebView::reload):
22608        (QWebView::mouseMoveEvent):
22609        * Api/qwebview.h:
22610        * QtLauncher/main.cpp:
22611        (MainWindow::MainWindow):
22612        (main):
22613        * WebCoreSupport/ChromeClientQt.cpp:
22614        (WebCore::ChromeClientQt::ChromeClientQt):
22615        (WebCore::ChromeClientQt::setWindowRect):
22616        (WebCore::ChromeClientQt::toolbarsVisible):
22617        (WebCore::ChromeClientQt::setStatusbarVisible):
22618        (WebCore::ChromeClientQt::statusbarVisible):
22619        (WebCore::ChromeClientQt::setScrollbarsVisible):
22620        (WebCore::ChromeClientQt::setResizable):
22621        (WebCore::ChromeClientQt::scrollBackingStore):
22622        (WebCore::ChromeClientQt::mouseDidMoveOverElement):
22623        (WebCore::ChromeClientQt::setToolTip):
22624        * WebCoreSupport/ChromeClientQt.h:
22625        * WebCoreSupport/FrameLoaderClientQt.cpp:
22626        (WebCore::FrameLoaderClientQt::setFrame):
22627        (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
22628        (WebCore::FrameLoaderClientQt::setMainDocumentError):
22629        (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
22630        (WebCore::FrameLoaderClientQt::createFrame):
22631        (WebCore::FrameLoaderClientQt::objectContentType):
22632        * WebCoreSupport/FrameLoaderClientQt.h:
22633        * WebCoreSupport/InspectorClientQt.cpp:
22634
226352008-04-18  Simon Hausmann  <hausmann@webkit.org>
22636
22637        Reviewed by Holger.
22638
22639        Added QWebView::find/QWebFrame::find.
22640
22641        * Api/qwebpage.cpp:
22642        (QWebPage::focusNextPrevChild):
22643        (QWebPage::find):
22644        * Api/qwebpage.h:
22645        * Api/qwebview.cpp:
22646        (QWebView::find):
22647        * Api/qwebview.h:
22648
226492008-04-15  Ariya Hidayat  <ariya.hidayat@trolltech.com>
22650
22651        Reviewed by Simon.
22652
22653        fix potential crash when loading image(s)
22654
22655        Crash may occur. If compiled with 4.3, the variable is not initialized.
22656        This fix solves https://bugs.webkit.org/show_bug.cgi?id=17174
22657
22658        * Api/qwebpage.cpp:
22659        (QWebPagePrivate::QWebPagePrivate):
22660
226612008-04-15  Simon Hausmann  <hausmann@webkit.org>
22662
22663        Reviewed by Holger.
22664
22665        Update the micro focus for input methods as soon as the composition mode changes
22666        or the caret/selection changes.
22667
22668
22669        * Api/qwebpage.cpp:
22670        * Api/qwebpage.h:
22671        * Api/qwebview.cpp:
22672        (QWebView::setPage):
22673        * WebCoreSupport/EditorClientQt.cpp:
22674        (WebCore::EditorClientQt::respondToChangedSelection):
22675        (WebCore::EditorClientQt::setInputMethodState):
22676
226772008-04-15  Simon Hausmann  <hausmann@webkit.org>
22678
22679        Reviewed by Holger.
22680
22681        Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application,
22682        it yields undefined behaviour or wrong default codec initialization.
22683
22684
22685        * QtLauncher/main.cpp:
22686        (WebPage::createWindow):
22687
226882008-04-15  Olivier Goffart  <ogoffart@trolltech.com>
22689
22690        Reviewed by Simon.
22691
22692        Fixes: copy to clipboard when selecting, and paste when clicking with the middle button
22693
22694        * Api/qwebpage.cpp:
22695        (QWebPagePrivate::mouseReleaseEvent): If the clipboard supports
22696        selections then we support copy & paste into the selection.
22697
226982008-04-15  Michael Brasser  <michael.brasser@trolltech.com>
22699
22700        Reviewed by Simon.
22701
22702        Add basic input method support.
22703
22704
22705        * Api/qwebpage.cpp:
22706        (QWebPagePrivate::dropEvent):
22707        (QWebPagePrivate::inputMethodEvent):
22708        (QWebPage::inputMethodQuery):
22709        (QWebPage::event):
22710        * Api/qwebpage.h:
22711        * Api/qwebpage_p.h:
22712        * Api/qwebview.cpp:
22713        (QWebView::QWebView):
22714        (QWebView::inputMethodQuery):
22715        (QWebView::inputMethodEvent):
22716        * Api/qwebview.h:
22717        * WebCoreSupport/EditorClientQt.cpp:
22718        (WebCore::EditorClientQt::setInputMethodState):
22719
227202008-04-15  Simon Hausmann  <hausmann@webkit.org>
22721
22722        Reviewed by Holger.
22723
22724        Added (QWebFrame|QWebView)::textZoomFactor.
22725
22726
22727        * Api/qwebframe.cpp:
22728        (QWebFrame::setTextZoomFactor):
22729        (QWebFrame::textZoomFactor):
22730        * Api/qwebframe.h:
22731        * Api/qwebview.cpp:
22732        (QWebView::setTextZoomFactor):
22733        (QWebView::textZoomFactor):
22734        * Api/qwebview.h:
22735
227362008-04-15  Michael Brasser  <michael.brasser@trolltech.com>
22737
22738        Reviewed by Simon.
22739
22740        Added simple scrolling API to QWebFrame.
22741
22742        The intent is that it works similar to QAbstractScrollArea.
22743
22744
22745        * Api/qwebframe.cpp:
22746        (QWebFrame::setScrollBarValue):
22747        (QWebFrame::scrollBarValue):
22748        (QWebFrame::scrollBarMaximum):
22749        (QWebFrame::scrollBarMinimum):
22750        * Api/qwebframe.h:
22751
227522008-04-15  Olivier Goffart  <ogoffart@trolltech.com>
22753
22754        Reviewed by Holger.
22755
22756        Fixes: implement the OpenFrameInNewWindow action.
22757
22758
22759        * Api/qwebpage.cpp:
22760        (QWebPage::triggerAction):
22761
227622008-04-15  Andre Poenitz  <andre.poenitz@trolltech.com>
22763
22764        Reviewed by Simon.
22765
22766        Fix compilation with Qt namespaces
22767
22768        Qt can be configured to have all of its classes inside a specified namespaces.
22769        This is for example used in plugin/component environments like Eclipse.
22770
22771        This change makes it possible to let the Qt port compile against a namespaced
22772        Qt by the use of macros Qt provides to properly forward declare Qt classes in
22773        the namespace.
22774
22775        * Api/qwebframe.h:
22776        * Api/qwebpage.h:
22777        * Api/qwebpage_p.h:
22778        * Api/qwebpluginfactory.h:
22779        * Api/qwebsettings.h:
22780        * Api/qwebview.h:
22781
227822008-04-05  Olivier Goffart  <ogoffart@trolltech.com>
22783
22784        Reviewed by Holger.
22785
22786        Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard.
22787
22788
22789        * Api/qwebpage.cpp:
22790        (QWebPage::triggerAction):
22791
227922008-04-05  Olivier Goffart  <ogoffart@trolltech.com>
22793
22794        Reviewed by Simon.
22795
22796        Fixes: Right click, and "Open image" open the link instead of the image.
22797
22798
22799        * Api/qwebpage.cpp:
22800
228012008-04-05  Benjamin Meyer  <bmeyer@trolltech.com>
22802
22803        Reviewed by Simon.
22804
22805        Added doc stub for QWebSettings so class docs are generated
22806
22807
22808        * Api/qwebsettings.cpp:
22809        (QWebSettings::QWebSettings):
22810
228112008-04-05  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
22812
22813        Reviewed by Simon.
22814
22815        * Propose the addition of updateRequest and scrollRequest to the QWebPage.
22816
22817        * The question is if these signals belong to QWebPage or  QWebFrame.
22818        -It is more easy to have them in QWebPage because ScrollView is invoking
22819        the ChromeClient with the right coordinates
22820        -On the other hand someone wants to render frames separately. But this is partly
22821        doomed as you can have overlapping frames and what you paint would not relate to
22822        what you normally see on webpages.
22823
22824
22825        * Api/qwebpage.cpp:
22826        * Api/qwebpage.h:
22827        * WebCoreSupport/ChromeClientQt.cpp:
22828        (WebCore::ChromeClientQt::scrollBackingStore):
22829        (WebCore::ChromeClientQt::mouseDidMoveOverElement):
22830
228312008-04-03  Simon Hausmann  <hausmann@webkit.org>
22832
22833        Reviewed by Mark Rowe.
22834
22835        Roll out r31599 and r31605 again after discussion with Mark Rowe.
22836
22837        * Api/qwebframe.cpp:
22838        (QWebFrame::icon):
22839        * Api/qwebsettings.cpp:
22840        (QWebSettings::iconForUrl):
22841
228422008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
22843
22844        Reviewed by Simon.
22845
22846        * Change IconDatabase::iconForPageURL to return more information. E.g. if
22847        an image has been found, or if the loading of an image has been scheduled.
22848        * Update FrameLoader to use another method to trigger reading from disk
22849        * Update the QWebFrame and QWebSettings
22850
22851        * Api/qwebframe.cpp:
22852        (QWebFrame::icon):
22853        * Api/qwebsettings.cpp:
22854        (QWebSettings::iconForUrl):
22855
228562008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
22857
22858        Reviewed by Simon.
22859
22860        * Safari is using the IconDatabase the following way (assumption). Before they
22861        call iconDatabase()->open they "retain" all URLs they are interested in, these
22862        could come from the history.
22863        * When opening the iconDatabase() a thread will be started that is going to import
22864        the URLs, all none manually retained URLs are scheduled for removal. The removal
22865        is going to happen when the next icon gets stored in the database.
22866        * We do not have any IconDatabase code, we can not retain the URLs before opening the
22867        database. To disable the automatic pruning of the icons we will ask the IconDatabase
22868        to delay this operation. This means our IconDatabase, when used, will grow, so we should
22869        try to have a IconDatabase class in 4.4.
22870        * The only way to counter the growth is a call to QWebSettings::clearIconDatabase
22871
22872
22873        * Api/qwebsettings.cpp:
22874        (QWebSettings::clearIconDatabase):
22875        * Api/qwebsettings.h:
22876
228772008-04-03  Benjamin Meyer  <bmeyer@trolltech.com>
22878
22879        Reviewed by Simon.
22880
22881        Add a way to get the site icon for a url
22882        static QPixmap iconForUrl(const QUrl &url);
22883
22884
22885        * Api/qwebsettings.cpp:
22886        (QWebSettings::iconForUrl):
22887        * Api/qwebsettings.h:
22888
228892008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
22890
22891        Reviewed by Simon.
22892
22893        * Update the Copyright info in QWebSettings
22894
22895
22896        * Api/qwebsettings.cpp:
22897        * Api/qwebsettings.h:
22898
228992008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
22900
22901        Reviewed by Simon.
22902
22903        * The isEmpty check is not needed anymore with the earlier backport
22904
22905
22906        * Api/qwebframe.cpp:
22907        (QWebFrame::icon):
22908
229092008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
22910
22911        Reviewed by Simon.
22912
22913        * For the http tests we need the output of the FrameLoaderClient. The QtWebKit API
22914        is not exporting enough to create the output in DRT itself. Settle with the approach
22915        Lars has taken for the Editing support and add branches to our FrameLoaderClient code.
22916        * run-webkit-tests http/tests(/loading) can now be executed.
22917        * For tests in loading/ directories we are going to throw away the dirty
22918        QWebPage to start with something clean.
22919
22920
22921        * WebCoreSupport/FrameLoaderClientQt.cpp:
22922        (qt_dump_frame_loader):
22923        (drtDescriptionSuitableForTestResult):
22924        (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
22925        (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
22926        (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
22927        (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
22928        (WebCore::FrameLoaderClientQt::dispatchWillClose):
22929        (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
22930        (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
22931        (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
22932        (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
22933        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
22934        (WebCore::FrameLoaderClientQt::registerForIconNotification):
22935        (WebCore::FrameLoaderClientQt::setMainDocumentError):
22936        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
22937
229382008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
22939
22940        Reviewed by Simon.
22941
22942        * Export the PageCache and Cache capacity call one to one. This is only there
22943        to allow the QtLauncher to play with caching.
22944        * TODO: make API decisions and consider following the windows Api to set a WebCacheModel
22945        and determine certain values automatically.
22946
22947
22948        * Api/qwebsettings.cpp:
22949        (QWebSettings::setPageCacheCapacity):
22950        (QWebSettings::setObjectCacheCapacities):
22951        * Api/qwebsettings.h:
22952        * QtLauncher/main.cpp:
22953
229542008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
22955
22956        Reviewed by Simon.
22957
22958        Prepapre everything for enabling the PageCache for the Qt Platform:
22959        * Claim that we can cache pages
22960        * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using
22961        the initial size of the viewport and stop creating it in the QWebFramePrivate::init
22962
22963        Differences to the Windows port:
22964        * attachToWindow/detachFromWindow is not called and is not (yet) part
22965        of Widget/ScrollView of the Qt platform. We might need that for plugin
22966        support in the future.
22967        * We store the margin's and scrolling flag inside QWebFrame and use it when
22968        creating the FrameView.
22969
22970        What is missing:
22971        * API to call pageCache()->setCapacity(XYZ);
22972
22973
22974        * Api/qwebframe.cpp:
22975        (QWebFramePrivate::init):
22976        * Api/qwebframe_p.h:
22977        (QWebFramePrivate::QWebFramePrivate):
22978        * Api/qwebpage.cpp:
22979        (QWebPagePrivate::createMainFrame):
22980        * WebCoreSupport/FrameLoaderClientQt.cpp:
22981        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
22982        (WebCore::FrameLoaderClientQt::blockedError):
22983
229842008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
22985
22986        Reviewed by Simon.
22987
22988        * For the PageCache support we do not want to create a FrameView in the constructor
22989        of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will
22990        create a QWebFrame if no mainFrame is present and this gets called when we try to
22991        create a FrameView...
22992        * Keep a copy of the initial viewportSize around and use it if we do not have a Frame
22993        or FrameView.
22994
22995
22996        * Api/qwebpage.cpp:
22997        (QWebPagePrivate::QWebPagePrivate):
22998        (QWebPage::triggerAction):
22999        * Api/qwebpage_p.h:
23000
230012008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
23002
23003        Reviewed by Simon.
23004
23005        * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port
23006
23007        * WebCoreSupport/FrameLoaderClientQt.cpp:
23008        (WebCore::):
23009
230102008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
23011
23012        Reviewed by Simon.
23013
23014        * Attempt to make the m_webFrame null pointer checking consistent. Always check for
23015        m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame
23016        call and should stay valid until the destruction of the QWebFrame.
23017        * Currently the same checking is not needed for m_frame as it will only set to 0 in
23018        FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame
23019        initialisation.
23020
23021
23022        * WebCoreSupport/FrameLoaderClientQt.cpp:
23023        (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
23024        (WebCore::FrameLoaderClientQt::setMainDocumentError):
23025        (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
23026        (WebCore::FrameLoaderClientQt::objectContentType):
23027        (WebCore::FrameLoaderClientQt::createPlugin):
23028
230292008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
23030
23031        Reviewed by Simon.
23032
23033        * Get the RefCounting of WebCore::Frame right and make sure that both QWebFrame
23034        and WebCore::Frame get destroyed if we leave site with subframes and on the
23035        end of the application.
23036        * Use adoptRef in FrameLoaderClientQt::createFrame to get the refs right for subframes. We
23037        do not want to add an extra reference. Without this we are leaking subframes.
23038        * Assume that the lifetime of a Frame and FrameLoader are the same, when the Frame is gone
23039        we want to destroy the QWebFrame (e.g. on a page with subframes). Add delete m_webFrame
23040        in the frameLoaderDestroyed method to do that.
23041        * If we happen to delete the QWebFrame before the FrameLoaderClientQt we set m_webFrame to
23042        zero in the FrameLoaderClientQt to avoid bad things.
23043
23044
23045        * Api/qwebframe.cpp:
23046        (QWebFrame::~QWebFrame):
23047        * WebCoreSupport/FrameLoaderClientQt.cpp:
23048        (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
23049        (WebCore::FrameLoaderClientQt::objectContentType):
23050        * WebCoreSupport/FrameLoaderClientQt.h:
23051
230522008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
23053
23054        Reviewed by Simon.
23055
23056        * Do not save a RefPtr to the frame. The FrameLoaderClient, Frame and
23057        QWebFrame should have the same lifetime everything else is a leak
23058        or issue.
23059
23060        * Api/qwebframe.cpp:
23061        (QWebFramePrivate::init):
23062        * Api/qwebframe_p.h:
23063        * WebCoreSupport/FrameLoaderClientQt.cpp:
23064
230652008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
23066
23067        Reviewed by Simon.
23068
23069        * Do not store the QWebFrame associated with a ScrollView/FrameView
23070        in the WebCore::Widget.
23071        * Instead of asking the Widget for the QWebFrame use the QWebFramePrivate::core
23072        and QWebFramePrivate::kit function to convert from and to QWebFrame.
23073
23074
23075        * Api/qwebframe.cpp:
23076        (QWebFramePrivate::init):
23077        * Api/qwebpage.cpp:
23078        (QWebPagePrivate::createMainFrame):
23079
230802008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
23081
23082        Reviewed by Simon.
23083
23084        * Do not store the FrameView in the QWebFrame and cope with the situation when
23085        a WebCore::Frame has no WebCore::FrameView.
23086
23087
23088        * Api/qwebframe.cpp:
23089        (QWebFramePrivate::init):
23090        (QWebFramePrivate::horizontalScrollBar):
23091        (QWebFramePrivate::verticalScrollBar):
23092        (QWebFrame::innerText):
23093        (QWebFrame::renderTreeDump):
23094        (QWebFrame::setVerticalScrollBarPolicy):
23095        (QWebFrame::setHorizontalScrollBarPolicy):
23096        (QWebFrame::render):
23097        (QWebFrame::layout):
23098        (QWebFrame::pos):
23099        * Api/qwebframe_p.h:
23100        (QWebFramePrivate::QWebFramePrivate):
23101        * Api/qwebpage.cpp:
23102        (QWebPagePrivate::updateEditorActions):
23103        (QWebPagePrivate::mouseMoveEvent):
23104        (QWebPagePrivate::mousePressEvent):
23105        (QWebPagePrivate::mouseDoubleClickEvent):
23106        (QWebPagePrivate::contextMenuEvent):
23107        (QWebPagePrivate::wheelEvent):
23108        (QWebPage::triggerAction):
23109        * WebCoreSupport/FrameLoaderClientQt.cpp:
23110
231112008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
23112
23113        Reviewed by Simon.
23114
23115        * Change the order of the methods to match with the FrameLoaderClient.h to ease
23116        removing methods in the future.
23117
23118        * WebCoreSupport/FrameLoaderClientQt.h:
23119
231202008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
23121
23122        Reviewed by Simon.
23123
23124        * Remove virtuals in the FrameLoaderClientQt that don't exist in the base class.
23125
23126        * WebCoreSupport/FrameLoaderClientQt.cpp:
23127        (WebCore::FrameLoaderClientQt::detachedFromParent4):
23128        * WebCoreSupport/FrameLoaderClientQt.h:
23129
231302008-03-25  Brady Eidson  <beidson@apple.com>
23131
23132        Reviewed by Darin
23133
23134        Remove newly obsolete FrameLoaderClient methods
23135
23136        * WebCoreSupport/FrameLoaderClientQt.cpp:
23137        * WebCoreSupport/FrameLoaderClientQt.h:
23138
231392008-03-22  Mark Rowe  <mrowe@apple.com>
23140
23141        Qt build fix.
23142
23143        * WebCoreSupport/FrameLoaderClientQt.cpp:
23144        (WebCore::):
23145
231462008-03-18  Simon Hausmann  <hausmann@webkit.org>
23147
23148        Reviewed by Holger.
23149
23150        Fix the Qt build. Don't return void in non-void functions.
23151
23152        * Api/qwebpluginfactory.cpp:
23153        (QWebPluginFactory::extension):
23154
231552008-03-16  Thiago Macieira  <thiago.macieira@trolltech.com>
23156
23157        Reviewed by Simon.
23158
23159        Don't use RefPtr in classes you haven't seen the implementation of.
23160
23161        Forward-declaration and declaration of RefPtr<Foo> is ok. But you
23162        cannot *use* said objects until Foo is defined. This is true even for
23163        initialisation with a 0.
23164
23165        Seems the HP aCC compiler is more strict here than gcc.
23166
23167        * Api/qwebframe_p.h:
23168
231692008-03-14  Simon Hausmann  <hausmann@webkit.org>
23170
23171        Fix the Qt build.
23172
23173        * Api/qwebframe.cpp:
23174        (QWebFrame::setHtml):
23175        (QWebFrame::setContent):
23176
231772008-03-13  Simon Hausmann  <hausmann@webkit.org>
23178
23179        Fix the Qt build.
23180
23181        * Api/qwebframe.cpp:
23182        (QWebFrame::addToJSWindowObject):
23183
231842008-03-12  Simon Hausmann  <hausmann@webkit.org>
23185
23186        Fix compilation against Qt 4.3
23187
23188        * Api/qwebpage.cpp:
23189        * Api/qwebpage.h:
23190        * Api/qwebpage_p.h:
23191
231922008-03-11  Rodney Dawes  <dobey@wayofthemonkey.com>
23193
23194        Fix the Qt build.
23195
23196        * WebCoreSupport/FrameLoaderClientQt.cpp:
23197        (FrameLoaderClientQt::CreatePlugin):
23198
231992008-03-11  Simon Hausmann  <hausmann@webkit.org>
23200
23201        Fix the Qt build (silly typo).
23202
23203        * QtLauncher/main.cpp:
23204        (MainWindow::MainWindow):
23205
232062008-03-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
23207
23208        Reviewed by Simon.
23209
23210        Moved obscuring progress bar to the lower right corner.
23211
23212        * QtLauncher/main.cpp:
23213        (MainWindow::MainWindow):
23214        (MainWindow::resizeEvent):
23215
232162008-03-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
23217
23218        Reviewed by Simon.
23219
23220        Added reload action and grouped stop and reload actions together.
23221
23222        * QtLauncher/main.cpp:
23223        (MainWindow::MainWindow):
23224
232252008-03-11  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
23226
23227        Reviewed by Simon.
23228
23229        * Set a Icon on the QAction if we have one.
23230
23231        * Api/qwebpage.cpp:
23232        (QWebPage::action):
23233
232342008-03-11  Simon Hausmann  <hausmann@webkit.org>
23235
23236        Fix the Qt build.
23237
23238        * Api/qwebframe.cpp:
23239        (QWebFrame::addToJSWindowObject):
23240
232412008-03-07  Simon Hausmann  <hausmann@webkit.org>
23242
23243        Reviewed by Darin Adler.
23244
23245        Done with Lars.
23246
23247        Replaced the QWebObjectPlugin interfaces with QWebPluginFactory.
23248
23249        * Api/qwebnetworkinterface.cpp:
23250        (QWebNetworkManager::add):
23251        (QWebNetworkManager::cancel):
23252        (QWebNetworkManager::started):
23253        (QWebNetworkManager::data):
23254        (QWebNetworkManager::finished):
23255        * Api/qwebnetworkinterface_p.h:
23256        (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
23257        * Api/qwebobjectplugin.cpp: Removed.
23258        * Api/qwebobjectplugin.h: Removed.
23259        * Api/qwebobjectplugin_p.h: Removed.
23260        * Api/qwebobjectpluginconnector.cpp: Removed.
23261        * Api/qwebobjectpluginconnector.h: Removed.
23262        * Api/qwebpage.cpp:
23263        (QWebPagePrivate::QWebPagePrivate):
23264        (QWebPage::setPluginFactory):
23265        (QWebPage::pluginFactory):
23266        * Api/qwebpage.h:
23267        * Api/qwebpage_p.h:
23268        * Api/qwebpluginfactory.cpp: Added.
23269        (QWebPluginFactory::QWebPluginFactory):
23270        (QWebPluginFactory::~QWebPluginFactory):
23271        (QWebPluginFactory::refreshPlugins):
23272        (QWebPluginFactory::extension):
23273        * Api/qwebpluginfactory.h: Added.
23274        (MimeType::):
23275        * WebCoreSupport/FrameLoaderClientQt.cpp:
23276        (WebCore::FrameLoaderClientQt::objectContentType):
23277        (WebCore::FrameLoaderClientQt::createPlugin):
23278
232792008-03-07  Simon Hausmann  <hausmann@webkit.org>
23280
23281        Fix the Qt build.
23282
23283        * Api/qwebframe.cpp:
23284
232852008-03-04  Sam Weinig  <sam@webkit.org>
23286
23287        Reviewed by Mark Rowe.
23288
23289        - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
23290          JSDOMWindow.h
23291
23292        * Api/qwebframe.cpp:
23293        (QWebFrame::addToJSWindowObject):
23294
232952008-03-04  Mark Rowe  <mrowe@apple.com>
23296
23297        Another go at fixing the Qt build.
23298
23299        * Api/qwebframe.cpp:
23300        (QWebFrame::addToJSWindowObject):
23301
233022008-02-24  Darin Adler  <darin@apple.com>
23303
23304        Reviewed by Sam.
23305
23306        - remove separate client calls for "standard" and "reload' history
23307
23308        * WebCoreSupport/FrameLoaderClientQt.cpp:
23309        (WebCore::FrameLoaderClientQt::updateGlobalHistory):
23310        * WebCoreSupport/FrameLoaderClientQt.h:
23311
233122008-02-24  Darin Adler  <darin@apple.com>
23313
23314        - another try at fixing the build
23315
23316        * Api/qwebframe.cpp:
23317        (QWebFrame::load): Replace new FormData with FormData::create.
23318
233192008-02-22  Sam Weinig  <sam@webkit.org>
23320
23321        Fix Qt build.
23322
23323        * Api/qwebhistoryinterface.cpp:
23324
233252008-02-22  Sam Weinig  <sam@webkit.org>
23326
23327        Rubber-stamped by Adam Roben.
23328
23329        Rid the project of the Devil known as DeprecatedString!
23330
23331        * Api/qwebhistory.cpp:
23332        * Api/qwebhistoryinterface.cpp:
23333
233342008-02-18  Darin Adler  <darin@apple.com>
23335
23336        Reviewed by Sam.
23337
23338        * Api/qwebnetworkinterface.cpp:
23339        (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString.
23340
233412008-01-24  David Boddie  <dboddie@trolltech.com>
23342
23343        Reviewed by Simon.
23344
23345        Documentation tidying.
23346
23347
23348        * Api/qwebframe.cpp:
23349        * Api/qwebhistoryinterface.cpp:
23350        * Api/qwebview.cpp:
23351
233522008-01-24  Jarek Kobus  <jkobus@trolltech.com>
23353
23354        Reviewed by Simon.
23355
23356        Text for translations were used wrongly as comments
23357
23358
23359        * WebCoreSupport/FrameLoaderClientQt.cpp:
23360        (WebCore::):
23361        (WebCore::FrameLoaderClientQt::cannotShowURLError):
23362        (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
23363        (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
23364        (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
23365        (WebCore::FrameLoaderClientQt::shouldFallBack):
23366
233672008-01-24  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
23368
23369        Reviewed by Simon.
23370
23371        * We have a KURL->QUrl conversion on KURL itself, make use of it.
23372        * This conversion is supposed to be loss-free
23373
23374
23375        * Api/qwebframe.cpp:
23376
233772008-01-23  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
23378
23379        * Rubber stamped by Simon
23380
23381        * Fix leaking of sub frames (WebCore::Frame). We keep one reference too many.
23382        This was found while working on the page-cache, other ports are not affected.
23383
23384        * WebCoreSupport/FrameLoaderClientQt.cpp:
23385        (WebCore::FrameLoaderClientQt::createFrame):
23386
233872008-01-23  Rohan McGovern  <rohan.mcgovern@trolltech.com>
23388
23389        Reviewed by Simon Hausmann <hausmann@webkit.org>.
23390
23391        Fix Qtopia compilation with QT_NO_TOOLTIP
23392
23393
23394        * WebCoreSupport/ChromeClientQt.cpp:
23395        (WebCore::ChromeClientQt::print):
23396
233972008-01-23  Geir Vattekar  <gvatteka@trolltech.com>
23398
23399        Reviewed by Simon.
23400
23401        Doc: Replaced \code with snippets in the docs
23402
23403
23404        * Api/qwebview.cpp:
23405
234062008-01-23  Benjamin Meyer  <bmeyer@trolltech.com>
23407
23408        Reviewed by Simon.
23409
23410        Tweak key presses even to match commonly expected behavior
23411        - space key == page down
23412        - page down moved down not a page, but slightly less then a page so you don't loose your spot when reading.
23413        - Use font height rather then a hard coded "10" for left, right, up, down
23414        - Ctrl-Up moves to the top of the page
23415        - Ctrl-Down move to the bottom of the page
23416        - Backspace == GoBack
23417        - Shift-Backspace == GoForward
23418
23419
23420        * Api/qwebpage.cpp:
23421        (dropActionToDragOp):
23422        (dragOpToDropAction):
23423        (QWebPagePrivate::keyPressEvent):
23424
234252008-01-23  Simon Hausmann  <hausmann@webkit.org>
23426
23427        Reviewed by Lars.
23428
23429        Implemented FrameLoaderClient::startDownload() and FrameLoaderClient::download().
23430
23431        Added two signals to QWebPage to handle downloading of links and handling of
23432        unsupported content.
23433
23434
23435        * Api/qwebpage.cpp:
23436        (QWebPage::triggerAction):
23437        * Api/qwebpage.h:
23438        * WebCoreSupport/FrameLoaderClientQt.cpp:
23439        (WebCore::FrameLoaderClientQt::download):
23440        (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
23441        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
23442        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
23443        (WebCore::FrameLoaderClientQt::willUseArchive):
23444
234452008-01-22  Lars Knoll  <lars@trolltech.com>
23446
23447        Reviewed by Simon.
23448
23449        setup a family for cursive and fantasy fonts as well.
23450
23451
23452        * Api/qwebsettings.cpp:
23453        (QWebSettings::QWebSettings):
23454
234552008-01-22  Benjamin Meyer  <bmeyer@trolltech.com>
23456
23457        Reviewed by Simon.
23458
23459        Implement ChromeClientQt::setToolTip
23460        Implement ChromeClientQt::mouseDidMoveOverElement
23461
23462
23463        * Api/qwebpage.cpp:
23464        * Api/qwebpage_p.h:
23465        * WebCoreSupport/ChromeClientQt.cpp:
23466        (WebCore::ChromeClientQt::ChromeClientQt):
23467        (WebCore::ChromeClientQt::focus):
23468        (WebCore::ChromeClientQt::mouseDidMoveOverElement):
23469        (WebCore::ChromeClientQt::setToolTip):
23470        (WebCore::ChromeClientQt::print):
23471        * WebCoreSupport/ChromeClientQt.h:
23472
234732008-01-21  Darin Adler  <darin@apple.com>
23474
23475        Reviewed by John Sullivan.
23476
23477        - updated for changes to ChromeClient database functions
23478
23479        * WebCoreSupport/ChromeClientQt.cpp:
23480        (WebCore::ChromeClientQt::exceededDatabaseQuota):
23481        * WebCoreSupport/ChromeClientQt.h:
23482
234832008-01-21  Benjamin Meyer  <bmeyer@trolltech.com>
23484
23485        Reviewed by Simon.
23486
23487        Change QWebHistoryInterface::addHistoryEntry() from const to non-const
23488
23489
23490        * Api/qwebhistoryinterface.h:
23491
234922008-01-21  Adam Treat  <adam.treat@torchmobile.com>
23493
23494        Reviewed by Simon.
23495
23496        * Don't leak the d-pointer in QWebSettings.
23497
23498
23499        * Api/qwebsettings.cpp:
23500        (QWebSettings::~QWebSettings):
23501
235022008-01-21  Simon Hausmann  <hausmann@webkit.org>
23503
23504        Reviewed by Holger.
23505
23506        Update the WebKit version number from WebKit/win/WebKit.vcproj/VERSION.
23507
23508        This has the fortunate side-effect that gmail sends us sensible HTML/JS again :)
23509
23510
23511        * Api/qwebpage.cpp:
23512
235132008-01-21  Simon Hausmann  <hausmann@webkit.org>
23514
23515        Reviewed by Holger.
23516
23517        Fix focus chain handling and cycling through focusable objects (links) using tab/backtab.
23518
23519        * Fix GraphicsContext::drawFocusRing to also draw single focus rects.
23520        * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events
23521        and make the return value depend on whether we successfully determined a focusable
23522        node or not.
23523        * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly
23524        if we could not handle the focus chain ourselves.
23525        * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus.
23526        * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only
23527        used to control the situation of stepping out of the focus chain inside the page.
23528        * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain.
23529        The layout tests expect this to be disabled but for the user it seems sensible to have it
23530        on by default, hence the default in qwebsettings.cpp
23531
23532
23533        * Api/qwebpage.cpp:
23534        (QWebPage::focusNextPrevChild):
23535        * Api/qwebsettings.cpp:
23536        (QWebSettings::QWebSettings):
23537        * Api/qwebsettings.h:
23538        * Api/qwebview.cpp:
23539        (QWebView::QWebView):
23540        (QWebView::focusNextPrevChild):
23541        * WebCoreSupport/ChromeClientQt.cpp:
23542        (WebCore::ChromeClientQt::canTakeFocus):
23543        (WebCore::ChromeClientQt::takeFocus):
23544
235452008-01-18  Simon Hausmann  <hausmann@webkit.org>
23546
23547        Reviewed by Holger.
23548
23549        Coding style fixes and added a comment about the include order.
23550
23551        * WebKit_pch.h:
23552
235532008-01-18  Marius Storm-Olsen  <marius@trolltech.com>
23554
23555        Reviewed by Simon Hausmann <hausmann@webkit.org>.
23556
23557        Add use of precompiled header, when building inside Qt.
23558
23559        Compiling WebKit was taking forever; 17 minutes on my machine for _one_ build! Adding the PCH at least brings it down to 12 minutes for one build, for me.
23560
23561
23562        * WebKit_pch.h: Added.
23563
235642008-01-18  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
23565
23566        Reviewed by Simon.
23567
23568        * Ask the WebCore::IconDatabase only if our URL is not empty. Otherwise
23569        we will see a crash in a HashSet.
23570        * It is crashing there because the StringImpl of an empty String is 0.
23571        * We avoid this crash by checking for isEmpty() in WebKit as there is no
23572        use to ask the iconDatabase for an empty string. We will fallback to the
23573        defaultIcon.
23574
23575
23576        * Api/qwebframe.cpp:
23577        (QWebFrame::icon):
23578
235792008-01-17  Simon Hausmann  <hausmann@webkit.org>
23580
23581        Reviewed by Holger.
23582
23583        Minor documentation fixes
23584
23585
23586        * Api/qwebframe.cpp:
23587        * Api/qwebview.cpp:
23588
235892008-01-17  Simon Hausmann  <shausman@trolltech.com>
23590
23591        Reviewed by Lars.
23592
23593        Fix form elements not focusing correctly after the qt widget lost its focus.
23594
23595        When receiving a focus out event notify the focus controller. Otherwise its
23596        m_focusedFrame variable remains unchanged and setFocusedFrame on a focusIn
23597        event shortcuts and doesn't call setActive(true).
23598
23599
23600        * Api/qwebpage.cpp:
23601
236022008-01-17  Simon Hausmann  <shausman@trolltech.com>
23603
23604        Reviewed by Holger.
23605
23606        Lots of updates to the documentation.
23607
23608
23609        * Api/qwebframe.cpp:
23610        * Api/qwebhistory.cpp:
23611        * Api/qwebpage.cpp:
23612        (QWebPagePrivate::dropEvent):
23613        (QWebPage::history):
23614        (openNewWindow):
23615        (QWebPage::triggerAction):
23616        (QWebPage::viewportSize):
23617        (QWebPage::navigationRequested):
23618        (QWebPage::action):
23619        (QWebPage::event):
23620        (QWebPageContext::targetFrame):
23621        * Api/qwebpage.h:
23622        * Api/qwebview.cpp:
23623
236242008-01-17  Simon Hausmann  <shausman@trolltech.com>
23625
23626        Reviewed by Lars.
23627
23628        Added a urlChanged signals to QWebFrame and QWebView.
23629
23630
23631        * Api/qwebframe.cpp:
23632        * Api/qwebframe.h:
23633        * Api/qwebview.cpp:
23634        (QWebView::setPage):
23635        * Api/qwebview.h:
23636        * WebCoreSupport/FrameLoaderClientQt.cpp:
23637
236382008-01-17  Simon Hausmann  <shausman@trolltech.com>
23639
23640        Reviewed by Lars.
23641
23642        Fixed docs and sanity checks in QWebSettings::setIconDatabaseEnabled
23643
23644
23645        * Api/qwebsettings.cpp:
23646        (QWebSettings::setIconDatabaseEnabled):
23647
236482008-01-17  Simon Hausmann  <shausman@trolltech.com>
23649
23650        Reviewed by Lars.
23651
23652        Added QWebView::createWindow() which is forwarded from QWebPage::createWindow() for convenience.
23653
23654
23655        * Api/qwebpage.cpp:
23656        (QWebPage::createWindow):
23657        * Api/qwebview.cpp:
23658        (QWebView::createWindow):
23659        * Api/qwebview.h:
23660
236612008-01-17  Lars Knoll  <lars@trolltech.com>
23662
23663        Reviewed by Lars.
23664
23665        add a 0 pointer check.
23666
23667        Fixes a crash in the demo web browser.
23668
23669        * WebCoreSupport/FrameLoaderClientQt.cpp:
23670        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
23671
236722008-01-17  Simon Hausmann  <hausmann@webkit.org>
23673
23674        Reviewed by Holger.
23675
23676        Fix QWebFrame::title().
23677
23678        For the titleChanged() signal we use the documentloader's title. For the property we have to use the same
23679        instead of Document::title() as the latter is not trimmed and not suited for a window caption.
23680
23681
23682        * Api/qwebframe.cpp:
23683        (QWebFrame::title):
23684
236852008-01-17  Simon Hausmann  <hausmann@webkit.org>
23686
23687        Reviewed by Maciej, Lars, Holger.
23688
23689        http://bugs.webkit.org/show_bug.cgi?id=16589
23690
23691        Add a document parameter to WebCore::cookies, setCookies and cookiesEnabled.
23692
23693        * Api/qwebnetworkinterface.cpp:
23694        (QWebNetworkRequestPrivate::init):
23695        (QWebNetworkManager::started):
23696
236972008-01-17  Warwick Allison  <warwick@trolltech.com>
23698
23699        Reviewed by Simon Hausmann <hausmann@webkit.org>.
23700
23701        Follow QWidget::keyPressEvent advice and call parents.
23702
23703        Without this, Back does not work in Qtopia, for example.
23704
23705
23706        * Api/qwebview.cpp:
23707        (QWebView::keyPressEvent):
23708        (QWebView::keyReleaseEvent):
23709
237102008-01-17  Simon Hausmann  <hausmann@webkit.org>
23711
23712        Reviewed by Lars.
23713
23714        Fix compilation against Qt 4.3 after the recent KURL <> QUrl conversion fixes.
23715
23716        * Api/qwebnetworkinterface.cpp:
23717        (QWebNetworkManager::started):
23718
237192008-01-17  Simon Hausmann  <shausman@trolltech.com>
23720
23721        Reviewed by Holger.
23722
23723        Fix compilation against Qt 4.4 without files that are specific for the Qt 4.3 build.
23724
23725
23726        * Api/qwebframe.cpp:
23727        * Api/qwebpage.cpp:
23728        * WebCoreSupport/FrameLoaderClientQt.cpp:
23729
237302008-01-17  Lincoln Ramsay  <lincoln.ramsay@trolltech.com>
23731
23732        Reviewed by Simon Hausmann <hausmann@webkit.org>.
23733
23734        Fixes compilation with QT_NO_DRAGANDDROP
23735
23736
23737        * Api/qwebpage.cpp:
23738        (QWebPage::event):
23739        * Api/qwebview.cpp:
23740        (QWebView::dragEnterEvent):
23741        (QWebView::dragLeaveEvent):
23742        (QWebView::dragMoveEvent):
23743        (QWebView::dropEvent):
23744
237452008-01-17  Simon Hausmann  <hausmann@webkit.org>
23746
23747        Reviewed by Lars.
23748
23749        Fix compilation, removed obsolete privateBrowsingEnabled() method.
23750
23751        * WebCoreSupport/FrameLoaderClientQt.cpp:
23752
237532008-01-16  Lars Knoll  <lars@trolltech.com>
23754
23755        Reviewed by Simon Hausmann <simon.hausmann@trolltech.com>.
23756
23757        Removed a whole bunch of notImplemented() warnings.
23758
23759        I don't want to hide the real warnings in lots of things that
23760        I am by now pretty certain we won't need.
23761
23762
23763        * WebCoreSupport/FrameLoaderClientQt.cpp:
23764        (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
23765        (WebCore::FrameLoaderClientQt::canShowMIMEType):
23766
237672008-01-16  Simon Hausmann  <hausmann@webkit.org>
23768
23769        Reviewed by Holger.
23770
23771        Fix crash when bringing up the context menu on maps.google.com.
23772
23773        If the website provides its own context menu then we don't have a ContextMenu pointer.
23774
23775
23776        * Api/qwebpage.cpp:
23777        (QWebPagePrivate::contextMenuEvent):
23778
237792008-01-16  Simon Hausmann  <hausmann@webkit.org>
23780
23781        Reviewed by Holger.
23782
23783        Don't crash when receiving all sorts of events on a default constructed QWebView without a page.
23784
23785        * Api/qwebview.cpp:
23786        (QWebView::mouseMoveEvent):
23787        (QWebView::mousePressEvent):
23788        (QWebView::mouseDoubleClickEvent):
23789        (QWebView::mouseReleaseEvent):
23790        (QWebView::contextMenuEvent):
23791        (QWebView::wheelEvent):
23792        (QWebView::keyPressEvent):
23793        (QWebView::keyReleaseEvent):
23794        (QWebView::focusInEvent):
23795        (QWebView::focusOutEvent):
23796        (QWebView::dragEnterEvent):
23797        (QWebView::dragLeaveEvent):
23798        (QWebView::dragMoveEvent):
23799        (QWebView::dropEvent):
23800        (QWebView::focusNextPrevChild):
23801
238022008-01-16  Simon Hausmann  <hausmann@webkit.org>
23803
23804        Reviewed by Lars.
23805
23806        Made the url property read-write.
23807
23808        * Api/qwebview.h:
23809
238102008-01-16  Simon Hausmann  <hausmann@webkit.org>
23811
23812        Reviewed by Lars.
23813
23814        Don't crash when showing a default initialized QWebView that has no page/frame yet.
23815
23816        * Api/qwebview.cpp:
23817        (QWebView::paintEvent):
23818
238192008-01-16  Holger Freyther  <holger.freyther@trolltech.com>
23820
23821        Reviewed by Simon.
23822
23823        Change hoveringOverLink implementation to have less issues.
23824
23825        * Currently we only compare a pointer. In the worst case we
23826        could delete the Element we have pointed to and a new one
23827        gets the same address. But even if that doesn't happen the
23828        WebCore::Element is mutable and JavaScript could change the
23829        URL, Title or Content. So we have to compare all these three
23830        attributes.
23831        * This does not seem to be a performance impact.
23832
23833
23834        * Api/qwebpage.cpp:
23835        (QWebPagePrivate::mouseMoveEvent):
23836        * Api/qwebpage_p.h:
23837
238382008-01-16  Holger Freyther  <holger.freyther@trolltech.com>
23839
23840        Reviewed by Simon.
23841
23842        * Move the hoverElement from QWebFrame to QWebPage. As it is
23843        only used there.
23844
23845
23846        * Api/qwebframe_p.h:
23847        (QWebFramePrivate::QWebFramePrivate):
23848        * Api/qwebpage.cpp:
23849        (QWebPagePrivate::mouseMoveEvent):
23850        * Api/qwebpage_p.h:
23851
238522008-01-16  Holger Freyther  <holger.freyther@trolltech.com>
23853
23854        Reviewed by Simon.
23855
23856        EventHandler changes/fixes in QWebPage:
23857        -mouse{Press,Move,Release}Event:
23858        Send the event always to the mainFrame of the QWebPage.
23859
23860        -contextMenuEvent, key{Press,Release}Event:
23861        Send the event to the focused frame.
23862
23863        This is following the Windows port and fixes a issue with the
23864        Web Inspector where we were sending the events to a wrong frame.
23865
23866        It is guaranteed that the mainFrame will always have an eventHandler
23867        and frameView set. There is no need to check for this in QWebPage.
23868
23869
23870        * Api/qwebframe.cpp:
23871        (QWebFramePrivate::init):
23872        * Api/qwebframe_p.h:
23873        (QWebFramePrivate::QWebFramePrivate):
23874        * Api/qwebpage.cpp:
23875        (QWebPagePrivate::updateEditorActions):
23876        (QWebPagePrivate::mouseMoveEvent):
23877        (QWebPagePrivate::mousePressEvent):
23878        (QWebPagePrivate::mouseDoubleClickEvent):
23879        (QWebPagePrivate::mouseReleaseEvent):
23880        (QWebPagePrivate::contextMenuEvent):
23881        (QWebPagePrivate::wheelEvent):
23882        (QWebPagePrivate::keyPressEvent):
23883        (QWebPagePrivate::keyReleaseEvent):
23884        (QWebPagePrivate::focusInEvent):
23885        * Api/qwebpage_p.h:
23886
238872008-01-16  Holger Freyther  <holger.freyther@trolltech.com>
23888
23889        Reviewed by Simon.
23890
23891        * Add core and kit functions to QWebFramePrivate to convert from
23892        QWebFrame to WebCore::Frame and vice versa.
23893
23894
23895        * Api/qwebframe.cpp:
23896        (QWebFramePrivate::core):
23897        (QWebFramePrivate::kit):
23898        * Api/qwebframe.h:
23899        * Api/qwebframe_p.h:
23900
239012008-01-16  Lars Knoll  <lars@trolltech.com>
23902
23903        Reviewed by Simon.
23904
23905        add conversion methods from and to QUrl to KURL.
23906
23907        Use them in the places I found at the moment. Fixes a bug
23908        where form data was encoded twice.
23909        Also fix QWebSettings to take a QUrl for the user style sheet
23910        location.
23911
23912
23913        * Api/qwebframe.cpp:
23914        (QWebFrame::load):
23915        * Api/qwebpage.cpp:
23916        (QWebPage::createPlugin):
23917        (frameLoadRequest):
23918        (QWebPage::triggerAction):
23919        * Api/qwebsettings.cpp:
23920        (QWebSettingsPrivate::apply):
23921        * Api/qwebsettings.h:
23922        * WebCoreSupport/ChromeClientQt.cpp:
23923        (WebCore::ChromeClientQt::createWindow):
23924        (WebCore::ChromeClientQt::show):
23925
239262008-01-16  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
23927
23928        Reviewed by Lars.
23929
23930        * Make the InspectorClientView inherit from QWebView instead of QWidget. This
23931        way paintEvent, mouse{Press,Release}Event and other events get forwarded to
23932        the QWebPage/WebInspector automatically.
23933
23934
23935        * WebCoreSupport/InspectorClientQt.cpp:
23936        (WebCore::InspectorClientWebPage::createWindow):
23937        (WebCore::InspectorClientView::InspectorClientView):
23938
239392008-01-10  Maciej Stachowiak  <mjs@apple.com>
23940
23941        Reviewed by Sam.
23942
23943        - remove SecurityOriginData and fold its functionality into SecurityOrigin
23944
23945        * WebCoreSupport/ChromeClientQt.cpp:
23946        (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
23947        (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
23948        * WebCoreSupport/ChromeClientQt.h:
23949
239502008-01-10  Lars Knoll  <lars@trolltech.com>
23951
23952        Reviewed by Simon.
23953
23954        document QWebHistory
23955
23956
23957        * Api/qwebhistory.cpp:
23958        (QWebHistoryItem::QWebHistoryItem):
23959        (QWebHistoryItem::operator=):
23960        (QWebHistoryItem::~QWebHistoryItem):
23961        (QWebHistoryItem::originalUrl):
23962        (QWebHistoryItem::currentUrl):
23963        (QWebHistoryItem::title):
23964        (QWebHistoryItem::icon):
23965        (QWebHistory::canGoBack):
23966        (QWebHistory::canGoForward):
23967        (QWebHistory::goBack):
23968        (QWebHistory::goForward):
23969        (QWebHistory::goToItem):
23970        * Api/qwebhistory.h:
23971
239722008-01-10  Simon Hausmann  <hausmann@webkit.org>
23973
23974        Reviewed by Lars.
23975
23976        Make the reset() functions not do anything on the default QWebSettings object.
23977
23978
23979        * Api/qwebsettings.cpp:
23980        (QWebSettings::resetFontSize):
23981        (QWebSettings::resetFontFamily):
23982        (QWebSettings::clearAttribute):
23983
239842008-01-10  Lars Knoll  <lars@trolltech.com>
23985
23986        Reviewed by Simon.
23987
23988        rename QWebPageHistory to QWebHistory.
23989
23990
23991        * Api/qwebhistory.cpp: Added.
23992        (QWebHistoryItem::QWebHistoryItem):
23993        (QWebHistoryItem::operator=):
23994        (QWebHistoryItem::~QWebHistoryItem):
23995        (QWebHistoryItem::originalUrl):
23996        (QWebHistoryItem::currentUrl):
23997        (QWebHistoryItem::title):
23998        (QWebHistoryItem::lastVisited):
23999        (QWebHistoryItem::icon):
24000        (QWebHistory::QWebHistory):
24001        (QWebHistory::~QWebHistory):
24002        (QWebHistory::clear):
24003        (QWebHistory::items):
24004        (QWebHistory::backItems):
24005        (QWebHistory::forwardItems):
24006        (QWebHistory::canGoBack):
24007        (QWebHistory::canGoForward):
24008        (QWebHistory::goBack):
24009        (QWebHistory::goForward):
24010        (QWebHistory::goToItem):
24011        (QWebHistory::backItem):
24012        (QWebHistory::currentItem):
24013        (QWebHistory::forwardItem):
24014        (QWebHistory::itemAtIndex):
24015        * Api/qwebhistory.h: Added.
24016        * Api/qwebhistory_p.h: Added.
24017        (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
24018        (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
24019        (QWebHistoryPrivate::QWebHistoryPrivate):
24020        (QWebHistoryPrivate::~QWebHistoryPrivate):
24021        * Api/qwebpage.cpp:
24022        (QWebPagePrivate::QWebPagePrivate):
24023        * Api/qwebpage.h:
24024        * Api/qwebpage_p.h:
24025        * Api/qwebpagehistory.cpp: Removed.
24026        * Api/qwebpagehistory.h: Removed.
24027        * Api/qwebpagehistory_p.h: Removed.
24028        * Api/qwebview.cpp:
24029        * Api/qwebview.h:
24030
240312008-01-10  Simon Hausmann  <hausmann@webkit.org>
24032
24033        Reviewed by Lars.
24034
24035        Documentation for QWebSettings
24036
24037
24038        * Api/qwebsettings.cpp:
24039        (QWebSettings::~QWebSettings):
24040        (QWebSettings::setFontSize):
24041        (QWebSettings::resetFontSize):
24042        (QWebSettings::setUserStyleSheetLocation):
24043        (QWebSettings::userStyleSheetLocation):
24044        (QWebSettings::iconDatabaseEnabled):
24045        (QWebSettings::webGraphic):
24046        (QWebSettings::setFontFamily):
24047        (QWebSettings::resetFontFamily):
24048        (QWebSettings::setAttribute):
24049
240502008-01-10  Lars Knoll  <lars@trolltech.com>
24051
24052        Reviewed by Simon.
24053
24054        Document QWebHistoryInterface.
24055
24056
24057        * Api/qwebhistoryinterface.cpp:
24058        (QWebHistoryInterface::defaultInterface):
24059        (QWebHistoryInterface::~QWebHistoryInterface):
24060
240612008-01-10  Lars Knoll  <lars@trolltech.com>
24062
24063        Reviewed by Simon.
24064
24065        Documentation for QWebFrame.
24066
24067
24068        * Api/qwebframe.cpp:
24069        (QWebFrame::url):
24070        (QWebFrame::name):
24071        (QWebFrame::page):
24072        (QWebFrame::setHtml):
24073        (QWebFrame::parentFrame):
24074        (QWebFrame::render):
24075        (QWebFrame::pos):
24076        (QWebFrame::geometry):
24077        * Api/qwebframe.h:
24078        * Api/qwebframe_p.h:
24079
240802008-01-10  Lars Knoll  <lars@trolltech.com>
24081
24082        Reviewed by Simon.
24083
24084        fix the drawing errors that where introduced due to refactoring.
24085
24086        Correctly clip to the rectangle we want to draw in ScrollView::paint().
24087
24088
24089        * Api/qwebframe.cpp:
24090        (QWebFrame::render):
24091        * Api/qwebframe.h:
24092        * Api/qwebview.cpp:
24093        (QWebView::paintEvent):
24094        * WebCoreSupport/ChromeClientQt.cpp:
24095        (WebCore::ChromeClientQt::scrollBackingStore):
24096
240972008-01-10  Simon Hausmann  <hausmann@webkit.org>
24098
24099        Reviewed by Lars.
24100
24101        Added a whole bunch of docs for QWebPage and fixed some minor doc glitches in QWebView.
24102
24103
24104        * Api/qwebpage.cpp:
24105        (QWebPagePrivate::dropEvent):
24106        (QWebPage::QWebPage):
24107        (QWebPage::~QWebPage):
24108        (QWebPage::mainFrame):
24109        (QWebPage::currentFrame):
24110        (QWebPage::history):
24111        (QWebPage::setView):
24112        (QWebPage::view):
24113        (QWebPage::javaScriptConsoleMessage):
24114        (QWebPage::javaScriptAlert):
24115        (QWebPage::javaScriptConfirm):
24116        (QWebPage::javaScriptPrompt):
24117        (QWebPage::createWindow):
24118        (QWebPage::createModalDialog):
24119        (openNewWindow):
24120        (QWebPage::triggerAction):
24121        (QWebPage::viewportSize):
24122        (QWebPage::navigationRequested):
24123        (QWebPage::selectedText):
24124        (QWebPage::isModified):
24125        (QWebPage::focusNextPrevChild):
24126        (QWebPage::settings):
24127        (QWebPage::networkProxy):
24128        (QWebPage::setNetworkAccessManager):
24129        (QWebPage::networkAccessManager):
24130        (QWebPagePrivate::_q_onLoadProgressChanged):
24131        * Api/qwebview.cpp:
24132
241332008-01-07  Holger Freyther  <zecke@selfish.org>
24134
24135        Reviewed by Alp Toker.
24136
24137        * Qt and Gtk must know if a ContextMenuItem is checkable. Add a new ContextMenuItemType for checkable
24138        actions.
24139        * Use this information in the Gtk platform to create a GtkCheckMenuItem when needed.
24140        * Update the ContextMenuController to accept CheckableActionTypes as well.
24141        * Change ContextMenu.cpp to use the CheckableActionType. The information if a item is checkable
24142        was extracted from ContextMenu::checkOrEnableIfNeeded.
24143        * Update the Qt and Windows port.
24144
24145        * Api/qwebpage.cpp:
24146        (QWebPagePrivate::createContextMenu):
24147
241482008-01-07  Simon Hausmann  <hausmann@webkit.org>
24149
24150        Build fix for the Windows build. MSVC wants to see the full
24151        declaration of arguments even when just passing them through.
24152
24153        * Api/qwebpage.cpp:
24154
241552008-01-07  Simon Hausmann  <hausmann@webkit.org>
24156
24157        Reviewed by Lars.
24158
24159        Added the missing parameters to make it possible to do POST operations from the public API.
24160
24161        This is ugly though as it also requires including qnetworkaccessmanager.h. It would be nicer if the
24162        two extra arguments were in QNetworkRequest :-/
24163
24164
24165        * Api/qwebframe.cpp:
24166        (QWebFrame::load):
24167        * Api/qwebframe.h:
24168        * Api/qwebview.cpp:
24169        (QWebView::load):
24170        * Api/qwebview.h:
24171
241722008-01-07  Simon Hausmann  <hausmann@webkit.org>
24173
24174        Reviewed by Lars.
24175
24176        Ported of the network backend of the Qt platform to Qt 4.4's new networking API.
24177
24178
24179        * Api/qwebframe.cpp:
24180        (QWebFrame::load):
24181        * Api/qwebframe.h:
24182        * Api/qwebnetworkinterface.cpp:
24183        * Api/qwebnetworkinterface.h:
24184        * Api/qwebnetworkinterface_p.h:
24185        * Api/qwebobjectplugin.cpp:
24186        * Api/qwebobjectplugin.h:
24187        * Api/qwebobjectplugin_p.h:
24188        * Api/qwebobjectpluginconnector.cpp:
24189        * Api/qwebobjectpluginconnector.h:
24190        * Api/qwebpage.cpp:
24191        (QWebPagePrivate::QWebPagePrivate):
24192        (QWebPagePrivate::~QWebPagePrivate):
24193        (QWebPagePrivate::navigationRequested):
24194        (QWebPage::setNetworkInterface):
24195        (QWebPage::networkInterface):
24196        (QWebPage::setNetworkAccessManager):
24197        (QWebPage::networkAccessManager):
24198        * Api/qwebpage.h:
24199        * Api/qwebpage_p.h:
24200        * Api/qwebview.cpp:
24201        * Api/qwebview.h:
24202        * WebCoreSupport/FrameLoaderClientQt.cpp:
24203        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
24204        (WebCore::FrameLoaderClientQt::objectContentType):
24205        (WebCore::FrameLoaderClientQt::createPlugin):
24206
242072008-01-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
24208
24209        Reviewed by Simon.
24210
24211        * Move the QWebPagePrivate methods up to the other private ones
24212
24213        * Api/qwebpage.cpp:
24214        (dropActionToDragOp):
24215        (dragOpToDropAction):
24216        (QWebPagePrivate::mouseMoveEvent):
24217        (QWebPagePrivate::mousePressEvent):
24218        (QWebPagePrivate::mouseDoubleClickEvent):
24219        (QWebPagePrivate::mouseReleaseEvent):
24220        (QWebPagePrivate::contextMenuEvent):
24221        (QWebPagePrivate::wheelEvent):
24222        (QWebPagePrivate::keyPressEvent):
24223        (QWebPagePrivate::keyReleaseEvent):
24224        (QWebPagePrivate::focusInEvent):
24225        (QWebPagePrivate::focusOutEvent):
24226        (QWebPagePrivate::dragEnterEvent):
24227        (QWebPagePrivate::dragLeaveEvent):
24228        (QWebPagePrivate::dragMoveEvent):
24229        (QWebPagePrivate::dropEvent):
24230        (QWebPage::focusNextPrevChild):
24231
242322008-01-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
24233
24234        Reviewed by Simon.
24235
24236        * Add reimplemented comments for the methods reimplemented in QWebView and QWebPage.
24237
24238
24239        * Api/qwebpage.cpp:
24240        (dragOpToDropAction):
24241        * Api/qwebview.cpp:
24242        (QWebView::mouseMoveEvent):
24243        (QWebView::mousePressEvent):
24244        (QWebView::mouseDoubleClickEvent):
24245        (QWebView::mouseReleaseEvent):
24246        (QWebView::contextMenuEvent):
24247        (QWebView::keyPressEvent):
24248        (QWebView::keyReleaseEvent):
24249        (QWebView::focusInEvent):
24250        (QWebView::focusOutEvent):
24251        (QWebView::dragEnterEvent):
24252        (QWebView::dragLeaveEvent):
24253        (QWebView::dragMoveEvent):
24254        (QWebView::dropEvent):
24255
242562008-01-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
24257
24258        Reviewed by Lars.
24259
24260        * This layout is not needed anymore as Widget::invalidateRect will not
24261        draw anymore.
24262
24263
24264        * Api/qwebview.cpp:
24265        (QWebView::paintEvent):
24266
242672008-01-04  Lars Knoll  <lars@trolltech.com>
24268
24269        Reviewed by Simon.
24270
24271        Remove most dependencies of Widget/ScrollView onto native QWidgets.
24272
24273        This also brings the code closer in line with the Windows code. Seems
24274        to work nicely on first try :)
24275
24276
24277        * WebCoreSupport/ChromeClientQt.cpp:
24278        (WebCore::ChromeClientQt::updateBackingStore):
24279        (WebCore::ChromeClientQt::mouseDidMoveOverElement):
24280        (WebCore::ChromeClientQt::setToolTip):
24281        * WebCoreSupport/FrameLoaderClientQt.cpp:
24282        (WebCore::FrameLoaderClientQt::createPlugin):
24283
242842008-01-04  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
24285
24286        Reviewed by Simon.
24287
24288        * Remove the todo from QWebPage and move the code to QWebView.
24289
24290
24291        * Api/qwebpage.cpp:
24292        (QWebPagePrivate::wheelEvent):
24293        (QWebPagePrivate::focusInEvent):
24294        * Api/qwebview.cpp:
24295        (QWebView::wheelEvent):
24296        (QWebView::focusInEvent):
24297
242982008-01-04  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
24299
24300        Reviewed by Simon.
24301
24302        * Move the various event methods to QWebPagePrivate. This is similar to
24303        QTextControl as well.
24304
24305
24306        * Api/qwebpage.cpp:
24307        (QWebPage::event):
24308        (QWebPagePrivate::mouseMoveEvent):
24309        (QWebPagePrivate::mousePressEvent):
24310        (QWebPagePrivate::mouseDoubleClickEvent):
24311        (QWebPagePrivate::mouseReleaseEvent):
24312        (QWebPagePrivate::contextMenuEvent):
24313        (QWebPagePrivate::wheelEvent):
24314        (QWebPagePrivate::keyPressEvent):
24315        (QWebPagePrivate::keyReleaseEvent):
24316        (QWebPagePrivate::focusInEvent):
24317        (QWebPagePrivate::focusOutEvent):
24318        (QWebPage::focusNextPrevChild):
24319        (QWebPagePrivate::dragEnterEvent):
24320        (QWebPagePrivate::dragLeaveEvent):
24321        (QWebPagePrivate::dragMoveEvent):
24322        (QWebPagePrivate::dropEvent):
24323        * Api/qwebpage.h:
24324        * Api/qwebpage_p.h:
24325
243262008-01-04  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
24327
24328        Reviewed by Simon.
24329
24330        * Forward the event from QWebView to QWebPage through QObject::event. This
24331        is similar to the way QTextControl is working.
24332
24333
24334        * Api/qwebpage.cpp:
24335        (dragOpToDropAction):
24336        (QWebPage::event):
24337        * Api/qwebpage.h:
24338        * Api/qwebview.cpp:
24339        (QWebView::mouseMoveEvent):
24340        (QWebView::mousePressEvent):
24341        (QWebView::mouseDoubleClickEvent):
24342        (QWebView::mouseReleaseEvent):
24343        (QWebView::contextMenuEvent):
24344        (QWebView::wheelEvent):
24345        (QWebView::keyPressEvent):
24346        (QWebView::keyReleaseEvent):
24347        (QWebView::focusInEvent):
24348        (QWebView::focusOutEvent):
24349        (QWebView::dragEnterEvent):
24350        (QWebView::dragLeaveEvent):
24351        (QWebView::dragMoveEvent):
24352        (QWebView::dropEvent):
24353        * Api/qwebview.h:
24354
243552008-01-04  Lars Knoll  <lars@trolltech.com>
24356
24357        Reviewed by Simon.
24358
24359        make QWebPage a QObject and get things to compile.
24360
24361        Nothing works currently though.
24362
24363
24364        * Api/qwebobjectpluginconnector.cpp:
24365        * Api/qwebpage.cpp:
24366        (QWebPagePrivate::QWebPagePrivate):
24367        (QWebPagePrivate::createMainFrame):
24368        (QWebPage::QWebPage):
24369        (QWebPage::setView):
24370        (QWebPage::view):
24371        (QWebPage::javaScriptAlert):
24372        (QWebPage::javaScriptPrompt):
24373        (dragOpToDropAction):
24374        (QWebPage::mousePressEvent):
24375        (QWebPage::mouseDoubleClickEvent):
24376        (QWebPage::mouseReleaseEvent):
24377        (QWebPage::wheelEvent):
24378        (QWebPage::keyPressEvent):
24379        (QWebPage::focusInEvent):
24380        * Api/qwebpage.h:
24381        * Api/qwebpage_p.h:
24382        * Api/qwebview.cpp:
24383        (QWebView::QWebView):
24384        (QWebView::setPage):
24385        (QWebView::resizeEvent):
24386        (QWebView::paintEvent):
24387        * Api/qwebview.h:
24388        * WebCoreSupport/ChromeClientQt.cpp:
24389        (WebCore::ChromeClientQt::windowRect):
24390        (WebCore::ChromeClientQt::pageRect):
24391        (WebCore::ChromeClientQt::focus):
24392        (WebCore::ChromeClientQt::unfocus):
24393        (WebCore::ChromeClientQt::canTakeFocus):
24394        (WebCore::ChromeClientQt::takeFocus):
24395        (WebCore::ChromeClientQt::canRunModal):
24396        (WebCore::ChromeClientQt::mouseDidMoveOverElement):
24397        * WebCoreSupport/DragClientQt.cpp:
24398        (WebCore::DragClientQt::startDrag):
24399        * WebCoreSupport/FrameLoaderClientQt.cpp:
24400        (WebCore::FrameLoaderClientQt::createPlugin):
24401        * WebCoreSupport/InspectorClientQt.cpp:
24402        (WebCore::InspectorClientWebPage::createWindow):
24403        (WebCore::InspectorClientView::InspectorClientView):
24404        (WebCore::InspectorClientView::page):
24405        (WebCore::InspectorClientView::hideEvent):
24406        (WebCore::InspectorClientView::closeEvent):
24407        (WebCore::InspectorClientQt::createPage):
24408        (WebCore::InspectorClientQt::closeWindow):
24409
244102008-01-04  Simon Hausmann  <hausmann@webkit.org>
24411
24412        Reviewed by Lars.
24413
24414        Added some preliminary class documentation for QWebView, fixed a missing const() and some missing Q_PROPERTYs
24415
24416
24417        * Api/qwebview.cpp:
24418        (QWebView::setHtml):
24419        (QWebView::setContent):
24420        (QWebView::history):
24421        (QWebView::settings):
24422        (QWebView::action):
24423        (QWebView::triggerAction):
24424        (QWebView::stop):
24425        (QWebView::backward):
24426        (QWebView::forward):
24427        (QWebView::reload):
24428        * Api/qwebview.h:
24429
244302008-01-04  Lars Knoll  <lars@trolltech.com>
24431
24432        Reviewed by Simon.
24433
24434        add a viewportSize to QWebPage.
24435
24436        This is required to eventually make it a QObject only.
24437
24438
24439        * Api/qwebpage.cpp:
24440        (QWebPage::triggerAction):
24441        (QWebPage::viewportSize):
24442        (QWebPage::setViewportSize):
24443        * Api/qwebpage.h:
24444
244452008-01-04  Lars Knoll  <lars@trolltech.com>
24446
24447        Reviewed by Simon.
24448
24449        take a QString as identifier in QWebFrame::addToJSWindowObject.
24450
24451        * Api/qwebframe.cpp:
24452        (QWebFrame::addToJSWindowObject):
24453        * Api/qwebframe.h:
24454
244552008-01-04  Simon Hausmann  <hausmann@webkit.org>
24456
24457        Reviewed by Lars.
24458
24459        Call the frame arguments for the javascript callbacks "originatingFrame"
24460
24461
24462        * Api/qwebpage.h:
24463
244642008-01-04  Simon Hausmann  <hausmann@webkit.org>
24465
24466        Reviewed by Lars.
24467
24468        Moved the QWebPage::addToHistory signal into QWebHistoryInterface
24469
24470
24471        * Api/qwebhistoryinterface.h:
24472        * Api/qwebpage.h:
24473        * WebCoreSupport/FrameLoaderClientQt.cpp:
24474        (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
24475
244762008-01-04  Lars Knoll  <lars@trolltech.com>
24477
24478        Reviewed by Simon.
24479
24480        moved title(), url(), icon() and initialLayoutComplete() from QWebPage to QWebFrame
24481
24482        * Api/qwebframe.cpp:
24483        (QWebFrame::url):
24484        (QWebFrame::icon):
24485        (QWebFrame::setVerticalScrollBarPolicy):
24486        * Api/qwebframe.h:
24487        * Api/qwebpage.cpp:
24488        (QWebPage::javaScriptAlert):
24489        (QWebPage::javaScriptPrompt):
24490        (QWebPage::networkInterface):
24491        * Api/qwebpage.h:
24492        * Api/qwebview.cpp:
24493        (QWebView::title):
24494        (QWebView::url):
24495        (QWebView::icon):
24496        * WebCoreSupport/FrameLoaderClientQt.cpp:
24497
244982008-01-03  Simon Hausmann  <hausmann@webkit.org>
24499
24500        Reviewed by Lars.
24501
24502        Moved QWebPage::open to QWebFrame::load and added setHtml.
24503
24504
24505        * Api/qwebframe.cpp:
24506        (QWebFrame::load):
24507        (QWebFrame::setHtml):
24508        (QWebFrame::setContent):
24509        * Api/qwebframe.h:
24510        * Api/qwebpage.cpp:
24511        * Api/qwebpage.h:
24512        * Api/qwebview.cpp:
24513        (QWebView::load):
24514        (QWebView::setHtml):
24515        * Api/qwebview.h:
24516        * WebCoreSupport/ChromeClientQt.cpp:
24517        (WebCore::ChromeClientQt::createWindow):
24518        * WebCoreSupport/InspectorClientQt.cpp:
24519        (WebCore::InspectorClientQt::createPage):
24520
245212008-01-03  Simon Hausmann  <hausmann@webkit.org>
24522
24523        Reviewed by Lars.
24524
24525        Added the first revision of QWebView and started moving functionality from QWebPave over to QWebView and QWebFrame.
24526
24527
24528        * Api/headers.pri:
24529        * Api/qwebframe.h:
24530        * Api/qwebpage.cpp:
24531        (QWebPagePrivate::createMainFrame):
24532        * Api/qwebpage.h:
24533        * Api/qwebpagehistory.h:
24534        * Api/qwebview.cpp: Added.
24535        (QWebView::QWebView):
24536        (QWebView::~QWebView):
24537        (QWebView::page):
24538        (QWebView::setPage):
24539        (QWebView::load):
24540        (QWebView::setHtml):
24541        (QWebView::history):
24542        (QWebView::settings):
24543        (QWebView::title):
24544        (QWebView::url):
24545        (QWebView::icon):
24546        (QWebView::selectedText):
24547        (QWebView::action):
24548        (QWebView::triggerAction):
24549        (QWebView::isModified):
24550        (QWebView::textInteractionFlags):
24551        (QWebView::setTextInteractionFlags):
24552        (QWebView::sizeHint):
24553        (QWebView::stop):
24554        (QWebView::backward):
24555        (QWebView::forward):
24556        (QWebView::reload):
24557        * Api/qwebview.h: Added.
24558        * QtLauncher/main.cpp:
24559        (MainWindow::MainWindow):
24560        (MainWindow::webPage):
24561        (MainWindow::changeLocation):
24562        * WebCoreSupport/FrameLoaderClientQt.cpp:
24563        (WebCore::FrameLoaderClientQt::setFrame):
24564        * WebCoreSupport/FrameLoaderClientQt.h:
24565
245662007-12-14  Darin Adler  <darin@apple.com>
24567
24568        Reviewed by Alexey.
24569
24570        * Api/qwebpage.cpp:
24571        (QWebPage::triggerAction): Removed some use of Editor member functions we plan
24572        to eventually eliminate. Switch from Editor::execCommand to Editor::command.
24573        * WebCoreSupport/EditorClientQt.cpp:
24574        (WebCore::EditorClientQt::handleKeyboardEvent): Ditto. Also updated name from
24575        MoveUpByPageAndModifyCaret to MovePageUp and from MoveDownByPageAndModifyCaret
24576        to MovePageDown.
24577
245782007-12-12  Brady Eidson  <beidson@apple.com>
24579
24580        Reviewed by Sam Weinig
24581
24582        As part of doing some CachedPage and client cleanup, keep Qt building
24583
24584        * WebCoreSupport/FrameLoaderClientQt.cpp:
24585        (WebCore::FrameLoaderClientQt::savePlatformDataToCachedPage):
24586        (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
24587        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
24588        * WebCoreSupport/FrameLoaderClientQt.h:
24589
245902007-12-12  Sam Weinig  <sam@webkit.org>
24591
24592        Build fix.
24593
24594        * WebCoreSupport/FrameLoaderClientQt.cpp:
24595        (WebCore::FrameLoaderClientQt::userAgent):
24596
245972007-12-12  Sam Weinig  <sam@webkit.org>
24598
24599        Build fix.
24600
24601        * Api/qwebnetworkinterface.cpp:
24602        (QWebNetworkRequestPrivate::init):
24603        * Api/qwebpage.cpp:
24604        (QWebPage::url):
24605        (QWebPageContext::QWebPageContext):
24606        * Api/qwebpagehistory.cpp:
24607        (QWebHistoryItem::originalUrl):
24608        (QWebHistoryItem::currentUrl):
24609        * WebCoreSupport/FrameLoaderClientQt.cpp:
24610        (WebCore::FrameLoaderClientQt::cannotShowURLError):
24611        (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
24612        (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
24613        (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
24614        (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
24615        (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
24616        (WebCore::FrameLoaderClientQt::createPlugin):
24617
246182007-12-07  Alexey Proskuryakov  <ap@webkit.org>
24619
24620        Reviewed by Darin Adler.
24621
24622        <rdar://problem/5535636>
24623        Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
24624
24625        http://bugs.webkit.org/show_bug.cgi?id=13916
24626        JavaScript detects Tab as a character input on a textfield validation
24627
24628        * WebCoreSupport/EditorClientQt.cpp:
24629        (WebCore::EditorClientQt::handleKeyboardEvent):
24630        (WebCore::EditorClientQt::handleInputMethodKeydown):
24631        * WebCoreSupport/EditorClientQt.h:
24632        Updated for cross-platform changes as much as it was possible without a Qt build environment.
24633
246342007-12-07  Darin Adler  <darin@apple.com>
24635
24636        - try to fix build
24637
24638        * Api/qwebhistoryinterface.cpp:
24639        (WebCore::historyContains): There's a WebCore function here in WebKit! Needs to
24640        be updated, since WebCore changed, but this should not be here.
24641
246422007-12-04  Darin Adler  <darin@apple.com>
24643
24644        Reviewed by Kevin Decker.
24645
24646        * WebCoreSupport/FrameLoaderClientQt.cpp: Removed obsolete privateBrowsingEnabled.
24647        * WebCoreSupport/FrameLoaderClientQt.h: Ditto.
24648
246492007-12-04  Holger Hans Peter Freyther <holger.freyther@trolltech.com>
24650
24651        Reviewed by Simon.
24652
24653        * Implement the InspectorClient for the Qt port
24654        * It does not support highlighting of nodes yet
24655        * Use QRC to open the internal page. The important thing is the
24656        '/' in the URL to make WebCore::Document::completeURL behave the
24657        way we want.
24658        * To make the InspectorClient work we will have to mark qrc as secure.
24659
24660        * Api/qwebpage.cpp:
24661        (QWebPagePrivate::QWebPagePrivate):
24662        * Api/qwebpage.h:
24663        * WebCoreSupport/InspectorClientQt.cpp:
24664        (WebCore::InspectorClientWebPage::hideEvent):
24665        (WebCore::InspectorClientQt::InspectorClientQt):
24666        (WebCore::InspectorClientQt::inspectorDestroyed):
24667        (WebCore::InspectorClientQt::createPage):
24668        (WebCore::InspectorClientQt::localizedStringsURL):
24669        (WebCore::InspectorClientQt::showWindow):
24670        (WebCore::InspectorClientQt::closeWindow):
24671        (WebCore::InspectorClientQt::attachWindow):
24672        (WebCore::InspectorClientQt::detachWindow):
24673        * WebCoreSupport/InspectorClientQt.h:
24674
246752007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
24676
24677        Rubber stamped by Mark.
24678
24679        Always include config.h at the beginning of the file.
24680
24681        * Api/qwebsettings.cpp:
24682
246832007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
24684
24685        Reviewed by Simon.
24686
24687        * Avoid crashes by making sure everything is layouted before
24688        we start painting. This avoids a crash in Widget::invalidateRect
24689        because QPainter::begin would fail
24690        * The QWebFrame::layout() methods and calls are left untouched because
24691        this would be an API decision.
24692
24693
24694        * Api/qwebframe.cpp:
24695        (QWebFrame::layout):
24696        * Api/qwebpage.cpp:
24697        (QWebPage::paintEvent):
24698
246992007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
24700
24701        Reviewed by Simon.
24702
24703        * SubClass QWebPage to handle hide and close events.
24704        * Forward these events to the InspectorController
24705        * The other options would have been using an eventFilter
24706        on the webpage and making InspectorClient a QObject or
24707        creating a QObject Observer.
24708        * Provide a simple QWebPage* createWindow implementation. This is needed
24709        to make FrameLoaderClientQt::dispatchCreatePage stop crashing in the case
24710        of the inspector client.
24711
24712
24713        * WebCoreSupport/InspectorClientQt.cpp:
24714        (WebCore::InspectorClientWebPage::InspectorClientWebPage):
24715        (WebCore::InspectorClientWebPage::createWindow):
24716        (WebCore::InspectorClientWebPage::hideEvent):
24717        (WebCore::InspectorClientWebPage::closeEvent):
24718        (WebCore::InspectorClientQt::createPage):
24719
247202007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
24721
24722        Reviewed by Simon.
24723
24724        * Allow adding the Inspect ContextMenuItem to our Menu
24725        * Open the Inspector when Inspect was activated. This requires
24726        that we keep the innerNonSharedNode from the HitTest around. This
24727        forces us to include <wtf/RefPtr.h> in the private header. It is
24728        the first non Qt header but should be okay.
24729
24730
24731        * Api/qwebpage.cpp:
24732        (webActionForContextMenuAction):
24733        (QWebPage::triggerAction):
24734        (QWebPage::action):
24735        (QWebPageContext::QWebPageContext):
24736        * Api/qwebpage.h:
24737        * Api/qwebpage_p.h:
24738
247392007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
24740
24741        Reviewed by Simon.
24742
24743        * Add the Developer Extras to the WebAttribute and propagate it
24744        to WebCore::Settings. This will enable the Inspect Element menu item
24745        * CodingStyle fixes in QWebSettings
24746        * Enable the Developer Extras in the QtLauncher
24747
24748
24749        * Api/qwebsettings.cpp:
24750        (QWebSettingsPrivate::apply):
24751        * Api/qwebsettings.h:
24752        * QtLauncher/main.cpp:
24753        (main):
24754
247552007-12-03  Geoffrey Garen  <ggaren@apple.com>
24756
24757        Removed unnecessary and possibly incorrect #include from my last
24758        check-in.
24759
24760        * Api/qwebframe.cpp:
24761
247622007-12-03  Geoffrey Garen  <ggaren@apple.com>
24763
24764        Qt build fix: Get globalExec() from the right place.
24765
247662007-11-30  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
24767
24768        Reviewed by Simon.
24769
24770        * Self destruct the clients like the ohter ports do
24771
24772
24773        * WebCoreSupport/ChromeClientQt.cpp:
24774        (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
24775        * WebCoreSupport/ContextMenuClientQt.cpp:
24776        * WebCoreSupport/DragClientQt.cpp:
24777        * WebCoreSupport/EditorClientQt.cpp:
24778        * WebCoreSupport/InspectorClientQt.cpp:
24779
247802007-11-29  Brady Eidson  <beidson@apple.com>
24781
24782        Keep it building with new client method
24783
24784        * WebCoreSupport/ChromeClientQt.cpp:
24785        (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
24786        (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
24787        * WebCoreSupport/ChromeClientQt.h:
24788
247892007-11-22  Simon Hausmann  <hausmann@webkit.org>
24790
24791        Reviewed by Adam Treat.
24792
24793        Fix compilation (don't define notImplemented twice)
24794
24795        * Api/qwebnetworkinterface.cpp:
24796
247972007-11-22  Simon Hausmann  <hausmann@kde.org>
24798
24799        Reviewed by George.
24800
24801        Use Q_SIGNALS/Q_SLOTS in the public API
24802
24803        * Api/qwebframe.h:
24804        * Api/qwebpage.h:
24805
248062007-11-22  Simon Hausmann  <hausmann@kde.org>
24807
24808        Reviewed by George.
24809
24810        Fixed the signature of the QWebPage constructor to follow Qt guidelines.
24811
24812        * Api/qwebpage.h:
24813
248142007-11-22  Simon Hausmann  <hausmann@kde.org>
24815
24816        Reviewed by George.
24817
24818        Use <QtModule/headerfile.h> instead of <Classname> in public HEADER files, to not require the include paths for the other modules to be present
24819
24820        * Api/qcookiejar.h:
24821        * Api/qwebframe.h:
24822        * Api/qwebhistoryinterface.h:
24823        * Api/qwebnetworkinterface.h:
24824        * Api/qwebobjectplugin.h:
24825        * Api/qwebobjectplugin_p.h:
24826        * Api/qwebobjectpluginconnector.h:
24827        * Api/qwebpage.h:
24828        * Api/qwebpagehistory.h:
24829        * Api/qwebsettings.h:
24830
248312007-11-22  Simon Hausmann  <hausmann@kde.org>
24832
24833        Reviewed by George.
24834
24835        Removed inline copy of QExplicitlySharedDataPointer. This is not needed anymore since we require Qt >= 4.3.0.
24836
24837        * Api/qwebpagehistory.h:
24838
248392007-11-22  George Staikos  <staikos@kde.org>
24840
24841        Reviewed by Simon Hausmann <hausmann@kde.org>.
24842
24843        Fix license headers
24844
24845
24846        * Api/qwebobjectplugin.cpp:
24847        * Api/qwebobjectplugin.h:
24848        * Api/qwebobjectpluginconnector.cpp:
24849        * Api/qwebobjectpluginconnector.h:
24850
248512007-11-22  Simon Hausmann  <hausmann@kde.org>
24852
24853        Reviewed by George Staikos <staikos@kde.org>.
24854
24855        Fix shadowing of "page" variable that is passed as argument as well as a member variable.
24856
24857        This also fixes compilation with gcc 4.3.
24858
24859
24860        * Api/qwebframe.cpp:
24861        (QWebFramePrivate::init):
24862
248632007-11-21  Adam Treat  <adam.treat@torchmobile.com>
24864
24865        Reviewed by Simon.
24866
24867        * Connect up the signal for all subframes too.
24868
24869        * Api/qwebframe.cpp:
24870        (QWebFramePrivate::init):
24871        * Api/qwebpage.cpp:
24872        (QWebPagePrivate::createMainFrame):
24873
248742007-11-20  Simon Hausmann  <hausmann@kde.org>
24875
24876        Reviewed by Adam Treat <adam.treat@torchmobile.com>.
24877
24878        Remove static linkage of QtWebKit against the ICO image format plugin.
24879
24880        Instead build the support for the ICO image format as a proper standalone qt image format plugin and install it.
24881
24882
24883        * Plugins/Plugins.pro:
24884
248852007-11-20  Simon Hausmann  <hausmann@kde.org>
24886
24887        Reviewed by George Staikos <staikos@kde.org>.
24888
24889        Added a default argument to textContent for the hoveringOverLink signal to keep existing two-argument connections working
24890
24891
24892        * Api/qwebpage.h:
24893
248942007-11-20  George Staikos  <staikos@kde.org>
24895
24896        Reviewed by Simon Hausmann <hausmann@kde.org>.
24897
24898        Add an argument to pass the link text in the hovering signal
24899
24900
24901        * Api/qwebframe.h:
24902        * Api/qwebpage.cpp:
24903        (QWebPagePrivate::createMainFrame):
24904        (QWebPage::mouseMoveEvent):
24905        * Api/qwebpage.h:
24906
249072007-11-20  Adam Treat  <adam.treat@torchmobile.com>
24908
24909        Reviewed by Simon and George.
24910
24911        * Be quiet and allow suppression of NotImplemented calls at runtime.
24912
24913        * WebCoreSupport/FrameLoaderClientQt.cpp:
24914        (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
24915
249162007-11-19  Adam Treat  <adam.treat@torchmobile.com>
24917
24918        Reviewed by Simon.
24919
24920        * Don't segfault when event pos is outside of the widget.
24921
24922        * Api/qwebpage.cpp:
24923        (QWebPage::mouseMoveEvent):
24924        (QWebPage::mousePressEvent):
24925        (QWebPage::mouseDoubleClickEvent):
24926        (QWebPage::mouseReleaseEvent):
24927        (QWebPage::contextMenuEvent):
24928
249292007-11-17  Timothy Hatcher  <timothy@apple.com>
24930
24931        Reviewed by Mark Rowe.
24932
24933        Bug 13470: i18n: The Web Inspector is not localizable
24934        http://bugs.webkit.org/show_bug.cgi?id=13470
24935
24936        * WebCoreSupport/InspectorClientQt.cpp:
24937        (WebCore::InspectorClientQt::localizedStringsURL): Empty stub.
24938        * WebCoreSupport/InspectorClientQt.h: Added localizedStringsURL.
24939
249402007-11-13  Geoffrey Garen  <ggaren@apple.com>
24941
24942        Build fix: changed Shared to RefCounted.
24943
24944        * WebCoreSupport/ChromeClientQt.h:
24945        * WebCoreSupport/ContextMenuClientQt.cpp:
24946        * WebCoreSupport/ContextMenuClientQt.h:
24947        * WebCoreSupport/EditorClientQt.h:
24948        * WebCoreSupport/FrameLoaderClientQt.h:
24949
249502007-11-10  Simon Hausmann  <hausmann@kde.org>
24951
24952        Reviewed by Nikolas.
24953
24954        When populating the context menu with sub-menus don't add sub-menus if they're empty.
24955
24956
24957        * Api/qwebpage.cpp:
24958        (QWebPagePrivate::createContextMenu):
24959
249602007-11-10  Simon Hausmann  <hausmann@kde.org>
24961
24962        Reviewed by Nikolas.
24963
24964        Added support for the Bold/Italic/Underline toggle actions.
24965
24966
24967        * Api/qwebpage.cpp:
24968        (webActionForContextMenuAction):
24969        (QWebPage::triggerAction):
24970        (QWebPage::action):
24971        * Api/qwebpage.h:
24972
249732007-11-10  Simon Hausmann  <hausmann@kde.org>
24974
24975        Reviewed by Nikolas.
24976
24977        Before adding an action to the context menu call checkOrEnableIfNeeded for each action
24978        to update the enable/checked state correctly.
24979
24980
24981        * Api/qwebpage.cpp:
24982        (QWebPagePrivate::createContextMenu):
24983        (QWebPage::contextMenuEvent):
24984        * Api/qwebpage_p.h:
24985
249862007-11-10  Simon Hausmann  <hausmann@kde.org>
24987
24988        Reviewed by Nikolas.
24989
24990        Mark the text direction actions as checkable actions.
24991
24992
24993        * Api/qwebpage.cpp:
24994        (QWebPage::action):
24995
249962007-11-09  Simon Hausmann  <hausmann@kde.org>
24997
24998        Reviewed by Holger.
24999
25000        Implemented the webcore actions for changing the text direction.
25001
25002
25003        * Api/qwebpage.cpp:
25004        (webActionForContextMenuAction):
25005        (QWebPage::triggerAction):
25006        (QWebPage::action):
25007        * Api/qwebpage.h:
25008
250092007-11-09  Simon Hausmann  <hausmann@kde.org>
25010
25011        Reviewed by Holger.
25012
25013        Fix ContextMenu allocation in the Qt port.
25014
25015        Store all items and submenus value based in ContextMenu and ContextMenuItem.
25016        That fixes the crashes when the context menu was populated with sub-menus because
25017        of the use of temporary ContextMenu objects like this:
25018
25019        ContextMenu subMenu(...);
25020        subMenu.appendItem(...);
25021        subMenu.appendItem(...);
25022
25023        subMenuItem.setSubMenu(&subMenu); // temporary pointer, need to _copy_ contents
25024
25025
25026        * Api/qwebpage.cpp:
25027        (QWebPage::contextMenuEvent):
25028        * Api/qwebpage_p.h:
25029
250302007-11-09  Simon Hausmann  <hausmann@kde.org>
25031
25032        Reviewed by Holger.
25033
25034        Renamed QWebPage::NumWebActions to QWebPage::WebActionCount (for consistency) and fixed its value.
25035
25036
25037        * Api/qwebpage.h:
25038        * Api/qwebpage_p.h:
25039
250402007-11-08  Kevin McCullough  <kmccullough@apple.com>
25041
25042        Reviewed by Sam.
25043
25044        - windowObjectCleared() is no longer const.  It needs to setup the
25045        script debugger and cannot be const to do so.
25046
25047        * WebCoreSupport/FrameLoaderClientQt.cpp:
25048        (WebCore::FrameLoaderClientQt::windowObjectCleared):
25049        * WebCoreSupport/FrameLoaderClientQt.h:
25050
250512007-11-08  Simon Hausmann  <hausmann@kde.org>
25052
25053        Reviewed by nobody (well, Holger knows about it), build fix for Qt 4.3.
25054
25055        The buildbots use Qt 4.4 which has the function in question, but Qt
25056        4.3 doesn't have it. Use removeAll() as replacement instead, it
25057        shouldn't make a difference in performance.
25058
25059        * Api/qwebsettings.cpp:
25060        (QWebSettings::~QWebSettings):
25061
250622007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
25063
25064        Reviewed by Lars Knoll <lars@trolltech.com>.
25065
25066        Cleanup checking for the request method.
25067
25068        * Check the request method only in QWebNetworkManager::add.
25069        * Currently HEAD, GET, POST are allowed and for everything else
25070        QWebNetworkManager::add returns false.
25071        * Returning false is compatible with ResourceHandle::start and it
25072        can be used in ResourceHandle::loadResourceSynchronously to generate
25073        a ResourceError
25074
25075
25076        * Api/qwebnetworkinterface.cpp:
25077        (QWebNetworkManager::add):
25078
250792007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
25080
25081        Reviewed by Lars Knoll <lars@trolltech.com>.
25082
25083        Fix bug in the implementation of synchronous network jobs.
25084
25085        * George (pmax) reviewed the networking patches and found the following bug (thanks for reviewing)
25086        -    if (jobMode == AsynchronousJob) {
25087        +    if (jobMode == SynchronousJob) {
25088        add job to synchronous list/hash
25089
25090        * Just applying the above change will lead to crashes because we can finish
25091        jobs before we started them.
25092
25093        * Avoid these issues by saving all work (starting a job, sending data and
25094        finishing it) inside one list. JobWork will contain any
25095        of the above three work types and doWork will just work on this list
25096        (m_pendingWork). As foreach takes a copy of the list calling started, data
25097        and finished will not add new work and we gurantee that if we have JobStarted
25098        it will be in the list before JobData and JobFinished.
25099
25100        * Observation: We might just kill the code to handle sync jobs.
25101
25102
25103        * Api/qwebnetworkinterface.cpp:
25104        (QWebNetworkManager::add):
25105        (QWebNetworkManager::queueStart):
25106        (QWebNetworkManager::queueData):
25107        (QWebNetworkManager::queueFinished):
25108        (QWebNetworkManager::doWork):
25109        * Api/qwebnetworkinterface_p.h:
25110        (QWebNetworkManager::JobWork::):
25111        (QWebNetworkManager::JobWork::JobWork):
25112
251132007-11-07  Simon Hausmann  <hausmann@kde.org>
25114
25115        Fix the Qt build by setting up WindowFeatures before calling
25116        createWindow on the Chrome. This is similar to openNewWindow in
25117        page/ContextMenuController.cpp
25118
25119        * Api/qwebpage.cpp:
25120        (openNewWindow):
25121
251222007-11-07  Simon Hausmann  <hausmann@kde.org>
25123
25124        Reviewed by Lars.
25125
25126        Make the setting of letting Javascript access the clipboard configurable through QWebSettings, turn it off by default and turn it on in DumpRenderTree.
25127
25128        * Api/qwebpage.cpp:
25129        (QWebPagePrivate::QWebPagePrivate):
25130        * Api/qwebsettings.cpp:
25131        (QWebSettingsPrivate::apply):
25132        * Api/qwebsettings.h:
25133
251342007-11-07  Simon Hausmann  <hausmann@kde.org>
25135
25136        Reviewed by Lars.
25137
25138        Changed QWebPageHistory::goToItem to take a value instead of a pointer.
25139
25140        * Api/qwebpagehistory.cpp:
25141        * Api/qwebpagehistory.h:
25142
251432007-11-07  Simon Hausmann  <hausmann@kde.org>
25144
25145        Reviewed by Lars.
25146
25147        Removed unimplemented QWebHistoryItem::children() function
25148
25149        * Api/qwebpagehistory.h:
25150
251512007-11-07  Simon Hausmann  <hausmann@kde.org>
25152
25153        Reviewed by Lars.
25154
25155        Changed the getter functions in QWebSettings to transparently resolve against the default settings.
25156
25157        * Api/qwebsettings.cpp:
25158        (QWebSettings::fontSize):
25159        (QWebSettings::fontFamily):
25160        (QWebSettings::testAttribute):
25161
251622007-11-07  Simon Hausmann  <hausmann@kde.org>
25163
25164        Reviewed by Lars.
25165
25166        Added explicit functions for resetting the font sizes and font families.
25167
25168        * Api/qwebsettings.cpp:
25169        (QWebSettings::resetFontSize):
25170        (QWebSettings::resetFontFamily):
25171        * Api/qwebsettings.h:
25172
251732007-11-07  Simon Hausmann  <hausmann@kde.org>
25174
25175        Reviewed by Lars.
25176
25177        Combined the font sizes accessors/setters under one setter/getter with an enum.
25178
25179        * Api/qwebsettings.cpp:
25180        (QWebSettingsPrivate::QWebSettingsPrivate):
25181        (QWebSettingsPrivate::apply):
25182        (QWebSettings::QWebSettings):
25183        (QWebSettings::setFontSize):
25184        * Api/qwebsettings.h:
25185
251862007-11-07  Simon Hausmann  <hausmann@kde.org>
25187
25188        Reviewed by Lars.
25189
25190        Renamed QWebPage::userAgentStringForUrl(url) to QWebPage::userAgentFor(url);
25191
25192        * Api/qwebpage.cpp:
25193        * Api/qwebpage.h:
25194        * WebCoreSupport/FrameLoaderClientQt.cpp:
25195        (WebCore::FrameLoaderClientQt::userAgent):
25196
251972007-11-07  Simon Hausmann  <hausmann@kde.org>
25198
25199        Reviewed by Lars.
25200
25201        Renamed QWebPage::webActionTriggered to QWebPage::triggerAction
25202
25203        * Api/qwebpage.cpp:
25204        (QWebPagePrivate::_q_webActionTriggered):
25205        (QWebPage::keyPressEvent):
25206        * Api/qwebpage.h:
25207
252082007-11-07  Simon Hausmann  <hausmann@kde.org>
25209
25210        Reviewed by Lars.
25211
25212        Changed the virtual QWebPage::setWindowGeometry to be a geometryChangeRequest signal instead.
25213
25214        * Api/qwebpage.cpp:
25215        * Api/qwebpage.h:
25216        * WebCoreSupport/ChromeClientQt.cpp:
25217        (WebCore::ChromeClientQt::setWindowRect):
25218
252192007-11-07  Simon Hausmann  <hausmann@kde.org>
25220
25221        Reviewed by Lars.
25222
25223        Renamed QWebPage::webAction() to QWebPage::action()
25224
25225        * Api/qwebpage.cpp:
25226        (QWebPagePrivate::createContextMenu):
25227        * Api/qwebpage.h:
25228        * QtLauncher/main.cpp:
25229        (MainWindow::MainWindow):
25230
252312007-11-07  Simon Hausmann  <hausmann@kde.org>
25232
25233        Reviewed by Lars.
25234
25235        Removed a bunch of slots/functions that are now available through the new actions API.
25236
25237        * Api/qwebpage.cpp:
25238        * Api/qwebpage.h:
25239
252402007-11-07  Simon Hausmann  <hausmann@kde.org>
25241
25242        Reviewed by Lars.
25243
25244        Added some more comments to the API after another round of API review with Lars.
25245
25246        * Api/qwebpage.h:
25247
252482007-11-07  Simon Hausmann  <hausmann@kde.org>
25249
25250        Reviewed by Lars.
25251
25252        Moved QWebFrame::selectedText() to QWebPage::selectedText().
25253
25254        The currently selected text is a property of the page as a whole.
25255
25256        * Api/qwebframe.cpp:
25257        * Api/qwebframe.h:
25258        * Api/qwebpage.cpp:
25259        (QWebPage::selectedText):
25260        * Api/qwebpage.h:
25261
252622007-11-07  Simon Hausmann  <hausmann@kde.org>
25263
25264        Reviewed by Lars.
25265
25266        Implemented support for settings propagation.
25267
25268        If an individual setting is not set in a page's QWebSettings then it is inherited from the default settings.
25269
25270        * Api/qwebsettings.cpp:
25271        (QWebSettingsPrivate::QWebSettingsPrivate):
25272        (QWebSettingsPrivate::apply):
25273        (QWebSettings::QWebSettings):
25274        (QWebSettings::~QWebSettings):
25275        (QWebSettings::setFontFamily):
25276        * Api/qwebsettings.h:
25277
252782007-11-07  Simon Hausmann  <hausmann@kde.org>
25279
25280        Reviewed by Lars.
25281
25282        Reworked the QWebSettings API.
25283        QWebPage now returns a pointer to its mutable QWebSettings object and the settings of newly created QWebPageObjects are initialized from QWebSettings::defaultSettings().
25284
25285        * Api/qwebpage.cpp:
25286        (QWebPagePrivate::QWebPagePrivate):
25287        (QWebPagePrivate::~QWebPagePrivate):
25288        (QWebPage::QWebPage):
25289        * Api/qwebpage.h:
25290        * Api/qwebpage_p.h:
25291        * Api/qwebsettings.cpp:
25292        (QWebSettingsPrivate::QWebSettingsPrivate):
25293        (QWebSettingsPrivate::apply):
25294        (QWebSettings::defaultSettings):
25295        (QWebSettings::QWebSettings):
25296        (QWebSettings::setMinimumFontSize):
25297        (QWebSettings::setMinimumLogicalFontSize):
25298        (QWebSettings::setDefaultFontSize):
25299        (QWebSettings::setDefaultFixedFontSize):
25300        (QWebSettings::setUserStyleSheetLocation):
25301        (QWebSettings::setFontFamily):
25302        (QWebSettings::fontFamily):
25303        (QWebSettings::setAttribute):
25304        * Api/qwebsettings.h:
25305        * QtLauncher/main.cpp:
25306        (main):
25307
253082007-11-07  Simon Hausmann  <hausmann@kde.org>
25309
25310        Reviewed by Lars.
25311
25312        Made the QWebSettings::webGraphic functions static. The implementation was using QWebSettings::global() anyway.
25313
25314        * Api/qwebsettings.cpp:
25315        (QWebSettings::setWebGraphic):
25316        * Api/qwebsettings.h:
25317
253182007-11-07  Simon Hausmann  <hausmann@kde.org>
25319
25320        Reviewed by Lars.
25321
25322        Moved the WebCore::Image specific function loadResourcePixmap from qwebsettings.cpp to ImageQt.cpp and made it static.
25323
25324        * Api/qwebsettings.cpp:
25325
253262007-11-07  Simon Hausmann  <hausmann@kde.org>
25327
25328        Reviewed by Lars.
25329
25330        Changed the icondatabase accessor to be a static function because it doesn't change the QWebSettings object.
25331
25332        * Api/qwebsettings.cpp:
25333        * Api/qwebsettings.h:
25334
253352007-11-07  Simon Hausmann  <hausmann@kde.org>
25336
25337        Reviewed by Lars.
25338
25339        Changed the webAction() accessor to not be a slot but just a public function.
25340
25341        * Api/qwebpage.h:
25342
253432007-11-07  Simon Hausmann  <hausmann@kde.org>
25344
25345        Reviewed by Lars.
25346
25347        Implemented createWindow() in QtLauncher.
25348
25349        * QtLauncher/main.cpp:
25350        (WebPage::WebPage):
25351        (MainWindow::MainWindow):
25352        (WebPage::createWindow):
25353
253542007-11-07  Simon Hausmann  <hausmann@kde.org>
25355
25356        Reviewed by Lars.
25357
25358        Implemented opening links in new windows
25359
25360        * Api/qwebpage.cpp:
25361        (frameLoadRequest):
25362        (openNewWindow):
25363        (QWebPage::webActionTriggered):
25364
253652007-11-07  Simon Hausmann  <hausmann@kde.org>
25366
25367        Reviewed by Lars.
25368
25369        Added and implemented the "OpenLink" action.
25370
25371        * Api/qwebpage.cpp:
25372        (webActionForContextMenuAction):
25373        (QWebPage::webActionTriggered):
25374        (QWebPage::webAction):
25375        * Api/qwebpage.h:
25376
253772007-11-07  Simon Hausmann  <hausmann@kde.org>
25378
25379        Reviewed by Lars.
25380
25381        Adjust the state of the reload action correctly.
25382
25383        * Api/qwebpage.cpp:
25384        (QWebPagePrivate::updateAction):
25385        (QWebPagePrivate::updateNavigationActions):
25386
253872007-11-07  Simon Hausmann  <hausmann@kde.org>
25388
25389        Reviewed by Lars.
25390
25391        Initialize the undo/redo actions from QUndoStack. That automatically takes care of enabling/disabling them as well as the activation/trigger.
25392
25393        * Api/qwebpage.cpp:
25394        (QWebPagePrivate::updateAction):
25395        (QWebPage::webAction):
25396        (QWebPage::undoStack):
25397        * Api/qwebpage.h:
25398
253992007-11-07  Simon Hausmann  <hausmann@kde.org>
25400
25401        Reviewed by Lars.
25402
25403        Added undo/redo toolbar buttons, moved the location line edit into a separate toolbar.
25404
25405        * QtLauncher/main.cpp:
25406        (MainWindow::MainWindow):
25407
254082007-11-07  Simon Hausmann  <hausmann@kde.org>
25409
25410        Reviewed by Lars.
25411
25412        Update the editor actions when the selection changes.
25413
25414        * Api/qwebpage.cpp:
25415        (QWebPagePrivate::updateAction):
25416        (QWebPagePrivate::updateEditorActions):
25417        * Api/qwebpage_p.h:
25418        * WebCoreSupport/EditorClientQt.cpp:
25419        (WebCore::EditorClientQt::respondToChangedSelection):
25420
254212007-11-07  Simon Hausmann  <hausmann@kde.org>
25422
25423        Reviewed by Lars.
25424
25425        Added cut/copy/paste actions to the toolbar of QtLauncher
25426
25427        * QtLauncher/main.cpp:
25428        (MainWindow::MainWindow):
25429
254302007-11-07  Simon Hausmann  <hausmann@kde.org>
25431
25432        Reviewed by Lars.
25433
25434        Started working on keeping the state of the navigation actions up-to-date.
25435
25436        * Api/qwebpage.cpp:
25437        (QWebPagePrivate::updateAction):
25438        (QWebPagePrivate::updateNavigationActions):
25439        (QWebPage::webAction):
25440        * Api/qwebpage_p.h:
25441        * WebCoreSupport/FrameLoaderClientQt.cpp:
25442        (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
25443        (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
25444        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
25445        (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
25446        (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
25447
254482007-11-07  Simon Hausmann  <hausmann@kde.org>
25449
25450        Reviewed by Lars.
25451
25452        Use the navigational web actions in the toolbar
25453
25454        * QtLauncher/main.cpp:
25455        (MainWindow::MainWindow):
25456
254572007-11-07  Simon Hausmann  <hausmann@kde.org>
25458
25459        Reviewed by Lars.
25460
25461        Store a bunch of QActions in QWebPagePrivate, corresponding to QWebPage::WebAction.
25462        Added QWebPageContext to hold context sensitive information (for example used by the context menu).
25463
25464        * Api/qwebpage.cpp:
25465        (QWebPagePrivate::QWebPagePrivate):
25466        (webActionForContextMenuAction):
25467        (QWebPagePrivate::createContextMenu):
25468        (QWebPagePrivate::_q_webActionTriggered):
25469        (QWebPage::webActionTriggered):
25470        (QWebPage::webAction):
25471        (QWebPage::contextMenuEvent):
25472        (QWebPageContext::QWebPageContext):
25473        (QWebPageContext::operator=):
25474        (QWebPageContext::~QWebPageContext):
25475        (QWebPageContext::pos):
25476        (QWebPageContext::text):
25477        (QWebPageContext::linkUrl):
25478        (QWebPageContext::imageUrl):
25479        (QWebPageContext::image):
25480        (QWebPageContext::targetFrame):
25481        * Api/qwebpage.h:
25482        * Api/qwebpage_p.h:
25483
254842007-11-07  Simon Hausmann  <hausmann@kde.org>
25485
25486        Reviewed by Lars.
25487
25488        Moved the editing actions implemented in keyPressEvent into webActionTriggered.
25489
25490        * Api/qwebpage.cpp:
25491        (QWebPage::webActionTriggered):
25492        (QWebPage::keyPressEvent):
25493        * Api/qwebpage.h:
25494
254952007-11-07  Simon Hausmann  <hausmann@kde.org>
25496
25497        Reviewed by Lars.
25498
25499        Introduced a central virtual void webActionTriggered(WebAction action) method that is called from various
25500        convenience methods such as cut()/copy()/paste().
25501
25502        * Api/qwebpage.cpp:
25503        (QWebPage::goBack):
25504        (QWebPage::webActionTriggered):
25505        (QWebPage::cut):
25506        (QWebPage::copy):
25507        * Api/qwebpage.h:
25508
255092007-11-07  Simon Hausmann  <hausmann@kde.org>
25510
25511        Reviewed by Lars.
25512
25513        Restructure the context menu classes for the Qt port. ContextMenu and ContextMenuItem don't store
25514        QActions/QMenus anymore but just store the action type, tag, title and optionally submenu as created
25515        in ContextMenu::populate().
25516        For the actual Qt context menu we traverse this structure after sendContextMenuEvent and create a QMenu
25517        out of it. That menu is currently not functional anymore though.
25518
25519        * Api/qwebpage.cpp:
25520        (QWebPagePrivate::createContextMenu):
25521        (QWebPage::contextMenuEvent):
25522        * Api/qwebpage_p.h:
25523
255242007-11-07  Simon Hausmann  <hausmann@kde.org>
25525
25526        Reviewed by Lars.
25527
25528        Changed ContextMenu::setPlatformDescription for the Qt port to not show the qmenu right away
25529        but instead just behave as a normal setter that takes ownership of the platform menu description (the qmenu).
25530        Instead now QWebPage::contextMenuEvent() retrieves the QMenu after calling sendContextMenuEvent and calls exec()
25531        on it.
25532
25533        * Api/qwebpage.cpp:
25534        (QWebPage::contextMenuEvent):
25535        * WebCoreSupport/ContextMenuClientQt.cpp:
25536        (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
25537
255382007-11-07  Simon Hausmann  <hausmann@kde.org>
25539
25540        Reviewed by Lars.
25541
25542        Changed to PlatformMouseEvent constructor to allow construction from a QContextMenuEvent.
25543        Call sendContextMenuEvent on the event handler from a QWidget::contextMenuEvent re-implementation instead of in mousePressEvent.
25544
25545        * Api/qwebpage.cpp:
25546        (QWebPage::mousePressEvent):
25547        (QWebPage::contextMenuEvent):
25548        * Api/qwebpage.h:
25549
255502007-11-07  Simon Hausmann  <hausmann@kde.org>
25551
25552        Reviewed by Lars.
25553
25554        Turned onLoadProgressChanged into a real private slot.
25555
25556        * Api/qwebpage.cpp:
25557        (QWebPage::QWebPage):
25558        * Api/qwebpage.h:
25559        * Api/qwebpage_p.h:
25560
255612007-11-07  Simon Hausmann  <hausmann@kde.org>
25562
25563        Reviewed by Lars.
25564
25565        Make QWebHistory an explicitly shared object, returned as a pointer by QWebPage::history().
25566
25567        * Api/qwebpage.cpp:
25568        (QWebPagePrivate::QWebPagePrivate):
25569        * Api/qwebpage.h:
25570        * Api/qwebpage_p.h:
25571        * Api/qwebpagehistory.cpp:
25572        (QWebPageHistory::QWebPageHistory):
25573        * Api/qwebpagehistory.h:
25574
255752007-11-07  Lars Knoll  <lars@trolltech.com>
25576
25577        Reviewed by Simon.
25578
25579        comments on API changes that we'd like to do.
25580
25581        * Api/qwebpage.h:
25582
255832007-11-07  Simon Hausmann  <hausmann@kde.org>
25584
25585        Reviewed by Lars Knoll <lars@trolltech.com>.
25586
25587        Add a QWebPage::frameCreated() signal and fix DRT
25588
25589        The removal of createFrame in QWebPage broke the re-implementation
25590        in DumpRenderTree. Instead emit a frameCreated() signal and
25591        connect to it in DumpRenderTree.
25592
25593
25594        * Api/qwebpage.cpp:
25595        (QWebPagePrivate::createMainFrame):
25596        * Api/qwebpage.h:
25597        * WebCoreSupport/FrameLoaderClientQt.cpp:
25598        (WebCore::FrameLoaderClientQt::createFrame):
25599
256002007-11-07  Lars Knoll  <lars@trolltech.com>
25601
25602        Reviewed by Simon.
25603
25604        Remove QWebPage::createFrame()
25605
25606        now that QWebFrame doesn't have virtual methods anymore, there
25607        is no need for a createFrame() factory method in QWebpage.
25608
25609        * Api/qwebpage.cpp:
25610        (QWebPagePrivate::createMainFrame):
25611        * Api/qwebpage.h:
25612        * WebCoreSupport/FrameLoaderClientQt.cpp:
25613        (WebCore::FrameLoaderClientQt::createFrame):
25614
256152007-11-07  Simon Hausmann  <hausmann@kde.org>
25616
25617        Reviewed by Lars Knoll <lars@trolltech.com>.
25618
25619        Moved all the event handlers from QWebFrame into QWebPage.
25620
25621        This cleans up the public API and allows us to remove the
25622        HackWebFrame hack in DumpRenderTree.
25623
25624
25625        * Api/qwebframe.cpp:
25626        (QWebFrame::pos):
25627        * Api/qwebframe.h:
25628        * Api/qwebframe_p.h:
25629        * Api/qwebpage.cpp:
25630        (QWebPagePrivate::frameAt):
25631        (QWebPage::mouseMoveEvent):
25632        (QWebPage::mousePressEvent):
25633        (QWebPage::mouseDoubleClickEvent):
25634        (QWebPage::mouseReleaseEvent):
25635        (QWebPage::wheelEvent):
25636        * Api/qwebpage_p.h:
25637
256382007-11-07  Holger Freyther  <holger.freyther@trolltech.com>
25639
25640        Reviewed by Lars Knoll <lars@trolltech.com>.
25641
25642        Use correct UserAgent string.
25643
25644        * Only have one User Agent String and this place is QWebPage
25645        * QWebPage::open -> QWebNetworkRequest -> QWebPage::open ->
25646        ResourceRequest -> FrameLoader::load -> QWebNetworkRequest
25647        * ResourceRequest is != 0 when getting called from WebCore, we
25648        will only do requests when coming from WebCore and then we can
25649        use the User-Agent set with the help of the FrameLoaderClient
25650        * We might want to change QWebNetworkRequest a bit
25651
25652
25653        * Api/qwebnetworkinterface.cpp:
25654        (QWebNetworkRequestPrivate::init):
25655
256562007-11-07  Lars Knoll  <lars@trolltech.com>
25657
25658        Reviewed by Simon.
25659
25660        remove two notImplemented() warnings, as I believe we don't
25661        have to implement these methods. Add some (commented out)
25662        debug code in one place.
25663
25664        * WebCoreSupport/EditorClientQt.cpp:
25665        (WebCore::EditorClientQt::respondToChangedSelection):
25666        (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
25667
256682007-11-05  Tristan O'Tierney  <tristan@apple.com>
25669
25670        Reviewed by Darin Adler.
25671
25672        * WebCoreSupport/ChromeClientQt.cpp:
25673        (WebCore::ChromeClientQt::createWindow):
25674        * WebCoreSupport/ChromeClientQt.h:
25675        Revised to use new WebCore ChromeClient createWindow API.
25676
256772007-10-31  Lars Knoll  <lars@trolltech.com>
25678
25679        Reviewed by Simon.
25680
25681        fix most of the issues I found with Clipboard and DnD.
25682
25683        * Api/qwebpage.cpp:
25684        (QWebPage::dragLeaveEvent):
25685
256862007-10-31  Lars Knoll  <lars@trolltech.com>
25687
25688        Reviewed by Simon.
25689
25690        QDrag objects need to be created on the heap.
25691
25692        * WebCoreSupport/DragClientQt.cpp:
25693        (WebCore::DragClientQt::startDrag):
25694
256952007-10-31  Lars Knoll  <lars@trolltech.com>
25696
25697        Reviewed by Simon.
25698
25699        a dragLeave event is not the same as cancelling a drag.
25700
25701        * Api/qwebpage.cpp:
25702
257032007-10-26  Mark Rowe  <mrowe@apple.com>
25704
25705        Build fix.  Add missing #include of Platform.h.
25706
25707        * Api/qwebhistoryinterface.cpp:
25708
257092007-10-25  Holger Freyther  <zecke@selfish.org>
25710
25711        Reviewed by Simon Hausmann <hausmann@kde.org>.
25712
25713        * We need to set a != 0 status code for the fast/loader/xmlhttprequest-missing-file-exception.html
25714        * libxml2 has the semantic that when writing an empty string and finishing it will report an error. For QXmlStreamReader this is valid.
25715        * This is causing some regressions...
25716
25717
25718        * Api/qwebnetworkinterface.cpp:
25719        (QWebNetworkManager::started):
25720        (QWebNetworkInterface::addJob):
25721
257222007-10-25  Holger Freyther  <zecke@selfish.org>
25723
25724        Reviewed by Simon Hausmann <hausmann@kde.org>.
25725
25726        * Make fast/loader/xmlhttprequest-bad-mimetype.html pass. We use QHttp to download local files but we may not set the HTTP result code on the ResourceResponse.
25727        * We can use the cross-platform result now. QWebNetworkInterface/Manager behaves the same as mac for local files.
25728
25729
25730        * Api/qwebnetworkinterface.cpp:
25731        (QWebNetworkManager::started):
25732
257332007-10-25  Holger Freyther  <zecke@selfish.org>
25734
25735        Reviewed by Simon Hausmann <hausmann@kde.org>.
25736
25737        * fast/dom/onerror-img.html regressed due checking the JobStates because in case of error (e.g. not being able to connect) the job will no be started.
25738        * Use the error message from Qt. It might or might not be translated.
25739
25740
25741        * Api/qwebnetworkinterface.cpp:
25742        (QWebNetworkJob::errorString):
25743        (QWebNetworkJob::setErrorString):
25744        (QWebNetworkManager::finished):
25745        (QWebNetworkManager::doWork):
25746        (WebCoreHttp::onRequestFinished):
25747        * Api/qwebnetworkinterface.h:
25748        * Api/qwebnetworkinterface_p.h:
25749
257502007-10-25  Holger Freyther  <zecke@selfish.org>
25751
25752        Reviewed by Simon Hausmann <hausmann@kde.org>.
25753
25754        * Use the JobStatus to make sure to not deliver finished/data before the job has started. This is the case with the fast/dom/onerror-img.html test case.
25755        * We have no idea if any data will come so we can still finish and then get pending data. This luckily can't happen for the local file case.
25756
25757
25758        * Api/qwebnetworkinterface.cpp:
25759        (QWebNetworkManager::doWork):
25760
257612007-10-25  Holger Freyther  <zecke@selfish.org>
25762
25763        Reviewed by Simon Hausmann <hausmann@kde.org>.
25764
25765        * No need to initialize values in the QWebNetworkJob c'tor
25766        * Add a JobStatus to QWebNetworkJob and verify that the jobs are handled in the way we expect them to be handled. This means no data after the job has finished, not finishing a job before it has been started.
25767
25768
25769        * Api/qwebnetworkinterface.cpp:
25770        (QWebNetworkJob::status):
25771        (QWebNetworkJob::setStatus):
25772        (QWebNetworkManager::started):
25773        (QWebNetworkManager::data):
25774        (QWebNetworkManager::finished):
25775        * Api/qwebnetworkinterface.h:
25776        * Api/qwebnetworkinterface_p.h:
25777        (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
25778
257792007-10-25  Holger Freyther  <zecke@selfish.org>
25780
25781        Reviewed by Simon Hausmann <hausmann@kde.org>.
25782
25783        * Consistency: Always name the jobs job.
25784
25785
25786        * Api/qwebnetworkinterface.cpp:
25787        (WebCoreHttp::onReadyRead):
25788        (WebCoreHttp::onRequestFinished):
25789        (WebCoreHttp::onSslErrors):
25790        (WebCoreHttp::onAuthenticationRequired):
25791        (WebCoreHttp::onProxyAuthenticationRequired):
25792
257932007-10-25  Holger Freyther  <zecke@selfish.org>
25794
25795        Reviewed by Simon Hausmann <hausmann@kde.org>.
25796
25797        * Implement our own queuing of network jobs to allow special handling of synchronous jobs. This makes us pass the fast/dom/xmlhttprequest-html-response-encoding.html test without a crash. Sync jobs will get a special treatment over the normals ones and in theory more than one sync job is supported.
25798        * This should be thread-safe besides QWebNetworkJob::{ref,deref}
25799
25800
25801        * Api/qwebnetworkinterface.cpp:
25802        (QWebNetworkJob::~QWebNetworkJob):
25803        (QWebNetworkManager::QWebNetworkManager):
25804        (QWebNetworkManager::self):
25805        (QWebNetworkManager::add):
25806        (QWebNetworkManager::started):
25807        (QWebNetworkManager::finished):
25808        (QWebNetworkInterfacePrivate::sendFileData):
25809        (QWebNetworkInterfacePrivate::parseDataUrl):
25810        (QWebNetworkManager::queueStart):
25811        (QWebNetworkManager::queueData):
25812        (QWebNetworkManager::queueFinished):
25813        (QWebNetworkManager::doScheduleWork):
25814        (QWebNetworkManager::doWork):
25815        (gCleanupInterface):
25816        (QWebNetworkInterface::setDefaultInterface):
25817        (QWebNetworkInterface::defaultInterface):
25818        (QWebNetworkInterface::QWebNetworkInterface):
25819        (QWebNetworkInterface::started):
25820        (QWebNetworkInterface::data):
25821        (QWebNetworkInterface::finished):
25822        (WebCoreHttp::scheduleNextRequest):
25823        (WebCoreHttp::onResponseHeaderReceived):
25824        (WebCoreHttp::onReadyRead):
25825        (WebCoreHttp::onRequestFinished):
25826        (WebCoreHttp::cancel):
25827        * Api/qwebnetworkinterface.h:
25828        * Api/qwebnetworkinterface_p.h:
25829        (QWebNetworkManager::):
25830        (QWebNetworkManager::JobData::JobData):
25831        (QWebNetworkManager::JobFinished::JobFinished):
25832
258332007-10-25  Holger Freyther  <zecke@selfish.org>
25834
25835        Reviewed by Simon Hausmann <hausmann@kde.org>.
25836
25837        * Do the percent replacement only when we are not base64. With base64 we should not have any % in it anyway.
25838        * Have a custom decodePercentEncoding method that works without doing any charset conversion. With converting back to latin1() we lost some information.
25839        * We pass the char-decoding.html test now
25840
25841
25842        * Api/qwebnetworkinterface.cpp:
25843        (decodePercentEncoding):
25844        (QWebNetworkInterfacePrivate::parseDataUrl):
25845
258462007-10-24  Holger Hans Peter Freyther  <zecke@selfish.org>
25847
25848        Reviewed by Lars Knoll <lars@trolltech.com>.
25849
25850        * Stop crashing on fast/events/frame-tab-focus.html the keyEvent can be 0.
25851
25852
25853        * WebCoreSupport/EditorClientQt.cpp:
25854        (WebCore::EditorClientQt::handleKeypress):
25855
258562007-10-24  Lars Knoll  <lars@trolltech.com>
25857
25858        Reviewed by Simon.
25859
25860        remove some notImplemented() warnings.
25861
25862        * WebCoreSupport/EditorClientQt.cpp:
25863        (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
25864        (WebCore::EditorClientQt::isGrammarCheckingEnabled):
25865        (WebCore::EditorClientQt::respondToChangedSelection):
25866
258672007-10-24  Lars Knoll  <lars@trolltech.com>
25868
25869        Reviewed by Simon.
25870
25871        allow paste from DOM so we pass more test cases.
25872
25873        * Api/qwebpage.cpp:
25874        (QWebPage::setSettings):
25875
258762007-10-24  Lars Knoll  <lars@trolltech.com>
25877
25878        Reviewed by Simon.
25879
25880        Simplify the PlatformKeyEvent constructor. No need to have an extra boolean for isKeyUp in there, as the QKeyEvent has the information.
25881
25882        * Api/qwebpage.cpp:
25883        (QWebPage::keyPressEvent):
25884        (QWebPage::keyReleaseEvent):
25885
258862007-10-24  Lars Knoll  <lars@trolltech.com>
25887
25888        Reviewed by Simon.
25889
25890        some smaller fixes to the editing support in DRT. Makes another few tests pass.
25891
25892        * WebCoreSupport/EditorClientQt.cpp:
25893        (qt_dump_editing_callbacks):
25894        (qt_drt_run):
25895
258962007-10-24  Lars Knoll  <lars@trolltech.com>
25897
25898        Reviewed by Simon.
25899
25900        implemented support for most editing shortcuts to make contentEditable usable.
25901
25902        * Api/qwebpage.cpp:
25903        (QWebPage::keyPressEvent):
25904
259052007-10-24  Lars Knoll  <lars@trolltech.com>
25906
25907        Reviewed by Simon.
25908
25909        no need to call setIsActive ourselves on the frame, as the focus controller does it for us.
25910
25911        * Api/qwebpage.cpp:
25912        (QWebPage::focusInEvent):
25913
259142007-10-24  Lars Knoll  <lars@trolltech.com>
25915
25916        Reviewed by Simon.
25917
25918        Implement support for testing editing.
25919
25920        * WebCoreSupport/EditorClientQt.cpp:
25921        (qt_dump_editing_callbacks):
25922        (qt_dump_set_accepts_editing):
25923        (dumpPath):
25924        (dumpRange):
25925        (WebCore::EditorClientQt::shouldDeleteRange):
25926        (WebCore::EditorClientQt::shouldShowDeleteInterface):
25927        (WebCore::EditorClientQt::shouldBeginEditing):
25928        (WebCore::EditorClientQt::shouldEndEditing):
25929        (WebCore::EditorClientQt::shouldInsertText):
25930        (WebCore::EditorClientQt::shouldChangeSelectedRange):
25931        (WebCore::EditorClientQt::shouldApplyStyle):
25932        (WebCore::EditorClientQt::didBeginEditing):
25933        (WebCore::EditorClientQt::respondToChangedContents):
25934        (WebCore::EditorClientQt::respondToChangedSelection):
25935        (WebCore::EditorClientQt::didEndEditing):
25936        (WebCore::EditorClientQt::shouldInsertNode):
25937
259382007-10-19  Alp Toker  <alp@atoker.com>
25939
25940        Reviewed by Oliver.
25941
25942        GTK+ build fix enabling the new local database storage feature.
25943        There is also a prospective Qt build fix.
25944
25945        * WebCoreSupport/ChromeClientQt.cpp:
25946        (WebCore::ChromeClientQt::runDatabaseSizeLimitPrompt):
25947        * WebCoreSupport/ChromeClientQt.h:
25948
259492007-10-19  Simon Hausmann  <hausmann@kde.org>
25950
25951        Fix the Qt/Windows build: Include the moc file from the .cpp file so
25952        that config.h is included before wtf/MathExtras. The former defines
25953        the MSVC defines for rand_s.
25954
25955        * WebCoreSupport/FrameLoaderClientQt.cpp:
25956
259572007-10-19  Simon Hausmann  <shausman@trolltech.com>
25958
25959        Reviewed by Lars.
25960
25961        Fix the windows/qt build by including config.h first to fix wtf/MathExtras.h inclusion.
25962
25963        * Api/qwebframe.cpp:
25964        * Api/qwebpage.cpp:
25965
259662007-10-10  Alice Liu  <alice.liu@apple.com>
25967
25968        Reviewed by Geoff Garen.
25969
25970        changes to keep the build from breaking
25971
25972        * WebCoreSupport/FrameLoaderClientQt.cpp:
25973        (WebCore::FrameLoaderClientQt::createFrame):
25974        * WebCoreSupport/FrameLoaderClientQt.h:
25975
259762007-10-09  Lars Knoll  <lars@trolltech.com>
25977
25978        Reviewed by Simon.
25979
25980        set a default encoding for documents. Makes fast/dom/Document/document-charset.html pass.
25981
25982        * Api/qwebpage.cpp:
25983        (QWebPage::setSettings):
25984
259852007-10-09  Lars Knoll  <lars@trolltech.com>
25986
25987        Reviewed by Simon.
25988
25989        Don't return a 404 status code for empty data: urls. Fixes fast/dom/HTMLHeadElement/head-check.html
25990
25991        * Api/qwebnetworkinterface.cpp:
25992        (QWebNetworkManager::add):
25993        (QWebNetworkManager::cancel):
25994        (QWebNetworkManager::started):
25995        (QWebNetworkManager::data):
25996        (QWebNetworkInterfacePrivate::parseDataUrl):
25997
259982007-10-09  Lars Knoll  <lars@trolltech.com>
25999
26000        Reviewed by Simon.
26001
26002        Don't set up connections inside QWebPage::createFrame, as users might be reimplementing that method. Make sure we get only one titleChanged() signal per title change, and implement the support for testing this in DRT.
26003
26004        * Api/qwebpage.cpp:
26005        (QWebPagePrivate::createMainFrame):
26006        (QWebPage::createFrame):
26007        * WebCoreSupport/FrameLoaderClientQt.cpp:
26008        (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
26009        * WebCoreSupport/FrameLoaderClientQt.h:
26010
260112007-10-09  Lars Knoll  <lars@trolltech.com>
26012
26013        Reviewed by Simon.
26014
26015        add a clear() method to QWebPageHistory.
26016
26017        * Api/qwebpagehistory.cpp:
26018        (QWebPageHistory::clear):
26019        (QWebPageHistory::itemAtIndex):
26020        * Api/qwebpagehistory.h:
26021
260222007-10-05  Lars Knoll  <lars@trolltech.com>
26023
26024        add proper error messages to the FrameLoaderClient.
26025        Implement ChromeClientQt::closeWindowSoon and
26026        FrameLoaderClientQt::dispatchCreatePage (which should go away IMO).
26027        Some fixes in DRT to make it work correctly with multiple windows.
26028
26029        Reviewed by Maciej.
26030
26031        * Api/qwebframe.h:
26032        * Api/qwebnetworkinterface.cpp:
26033        (QWebNetworkManager::cancel):
26034        (QWebNetworkInterface::addJob):
26035        * WebCoreSupport/ChromeClientQt.cpp:
26036        (WebCore::ChromeClientQt::closeWindowSoon):
26037        * WebCoreSupport/FrameLoaderClientQt.cpp:
26038        (WebCore::FrameLoaderClientQt::cancelledError):
26039        (WebCore::):
26040        (WebCore::FrameLoaderClientQt::blockedError):
26041        (WebCore::FrameLoaderClientQt::cannotShowURLError):
26042        (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
26043        (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
26044        (WebCore::FrameLoaderClientQt::dispatchCreatePage):
26045
260462007-10-03  Lars Knoll  <lars@trolltech.com>
26047
26048        Signed off by Olliej.
26049
26050        move WebKitQt to WebKit/qt for consistency with the other ports.
26051
26052        * Api/headers.pri: Renamed from WebKitQt/Api/headers.pri.
26053        * Api/qcookiejar.cpp: Renamed from WebKitQt/Api/qcookiejar.cpp.
26054        (QCookieJarPrivate::QCookieJarPrivate):
26055        (qHash):
26056        (QCookieJar::QCookieJar):
26057        (QCookieJar::~QCookieJar):
26058        (QCookieJar::setCookies):
26059        (QCookieJar::cookies):
26060        (QCookieJar::isEnabled):
26061        (QCookieJar::setEnabled):
26062        (gCleanupJar):
26063        (QCookieJar::setCookieJar):
26064        (QCookieJar::cookieJar):
26065        * Api/qcookiejar.h: Renamed from WebKitQt/Api/qcookiejar.h.
26066        * Api/qtwebkit.prf: Renamed from WebKitQt/Api/qtwebkit.prf.
26067        * Api/qwebframe.cpp: Renamed from WebKitQt/Api/qwebframe.cpp.
26068        (QWebFramePrivate::init):
26069        (QWebFramePrivate::parentFrame):
26070        (QWebFramePrivate::horizontalScrollBar):
26071        (QWebFramePrivate::verticalScrollBar):
26072        (QWebFrame::QWebFrame):
26073        (QWebFrame::~QWebFrame):
26074        (QWebFrame::addToJSWindowObject):
26075        (QWebFrame::markup):
26076        (QWebFrame::innerText):
26077        (QWebFrame::renderTreeDump):
26078        (QWebFrame::title):
26079        (QWebFrame::name):
26080        (QWebFrame::page):
26081        (QWebFrame::selectedText):
26082        (QWebFrame::childFrames):
26083        (QWebFrame::verticalScrollBarPolicy):
26084        (QWebFrame::setVerticalScrollBarPolicy):
26085        (QWebFrame::horizontalScrollBarPolicy):
26086        (QWebFrame::setHorizontalScrollBarPolicy):
26087        (QWebFrame::render):
26088        (QWebFrame::layout):
26089        (QWebFrame::pos):
26090        (QWebFrame::geometry):
26091        (QWebFrame::evaluateJavaScript):
26092        (QWebFrame::mouseMoveEvent):
26093        (QWebFrame::mousePressEvent):
26094        (QWebFrame::mouseDoubleClickEvent):
26095        (QWebFrame::mouseReleaseEvent):
26096        (QWebFrame::wheelEvent):
26097        * Api/qwebframe.h: Renamed from WebKitQt/Api/qwebframe.h.
26098        * Api/qwebframe_p.h: Renamed from WebKitQt/Api/qwebframe_p.h.
26099        (QWebFramePrivate::QWebFramePrivate):
26100        * Api/qwebhistoryinterface.cpp: Renamed from WebKitQt/Api/qwebhistoryinterface.cpp.
26101        (WebCore::historyContains):
26102        (gCleanupInterface):
26103        (QWebHistoryInterface::setDefaultInterface):
26104        (QWebHistoryInterface::defaultInterface):
26105        (QWebHistoryInterface::QWebHistoryInterface):
26106        * Api/qwebhistoryinterface.h: Renamed from WebKitQt/Api/qwebhistoryinterface.h.
26107        * Api/qwebkitglobal.h: Renamed from WebKitQt/Api/qwebkitglobal.h.
26108        * Api/qwebnetworkinterface.cpp: Renamed from WebKitQt/Api/qwebnetworkinterface.cpp.
26109        (qHash):
26110        (operator==):
26111        (QWebNetworkRequestPrivate::init):
26112        (QWebNetworkRequestPrivate::setURL):
26113        (QWebNetworkRequest::QWebNetworkRequest):
26114        (QWebNetworkRequest::operator=):
26115        (QWebNetworkRequest::~QWebNetworkRequest):
26116        (QWebNetworkRequest::url):
26117        (QWebNetworkRequest::setUrl):
26118        (QWebNetworkRequest::httpHeader):
26119        (QWebNetworkRequest::setHttpHeader):
26120        (QWebNetworkRequest::httpHeaderField):
26121        (QWebNetworkRequest::setHttpHeaderField):
26122        (QWebNetworkRequest::postData):
26123        (QWebNetworkRequest::setPostData):
26124        (QWebNetworkJob::QWebNetworkJob):
26125        (QWebNetworkJob::~QWebNetworkJob):
26126        (QWebNetworkJob::url):
26127        (QWebNetworkJob::postData):
26128        (QWebNetworkJob::httpHeader):
26129        (QWebNetworkJob::request):
26130        (QWebNetworkJob::response):
26131        (QWebNetworkJob::setResponse):
26132        (QWebNetworkJob::cancelled):
26133        (QWebNetworkJob::ref):
26134        (QWebNetworkJob::deref):
26135        (QWebNetworkJob::networkInterface):
26136        (QWebNetworkJob::frame):
26137        (QWebNetworkManager::QWebNetworkManager):
26138        (QWebNetworkManager::self):
26139        (QWebNetworkManager::add):
26140        (QWebNetworkManager::cancel):
26141        (QWebNetworkManager::started):
26142        (QWebNetworkManager::data):
26143        (QWebNetworkManager::finished):
26144        (QWebNetworkManager::addHttpJob):
26145        (QWebNetworkManager::cancelHttpJob):
26146        (QWebNetworkManager::httpConnectionClosed):
26147        (QWebNetworkInterfacePrivate::sendFileData):
26148        (QWebNetworkInterfacePrivate::parseDataUrl):
26149        (gCleanupInterface):
26150        (QWebNetworkInterface::setDefaultInterface):
26151        (QWebNetworkInterface::defaultInterface):
26152        (QWebNetworkInterface::QWebNetworkInterface):
26153        (QWebNetworkInterface::~QWebNetworkInterface):
26154        (QWebNetworkInterface::addJob):
26155        (QWebNetworkInterface::cancelJob):
26156        (WebCoreHttp::WebCoreHttp):
26157        (WebCoreHttp::~WebCoreHttp):
26158        (WebCoreHttp::request):
26159        (WebCoreHttp::scheduleNextRequest):
26160        (WebCoreHttp::getConnection):
26161        (WebCoreHttp::onResponseHeaderReceived):
26162        (WebCoreHttp::onReadyRead):
26163        (WebCoreHttp::onRequestFinished):
26164        (WebCoreHttp::onDone):
26165        (WebCoreHttp::onStateChanged):
26166        (WebCoreHttp::cancel):
26167        (WebCoreHttp::onSslErrors):
26168        (WebCoreHttp::onAuthenticationRequired):
26169        (WebCoreHttp::onProxyAuthenticationRequired):
26170        (HostInfo::HostInfo):
26171        * Api/qwebnetworkinterface.h: Renamed from WebKitQt/Api/qwebnetworkinterface.h.
26172        * Api/qwebnetworkinterface_p.h: Renamed from WebKitQt/Api/qwebnetworkinterface_p.h.
26173        (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
26174        (WebCore::HostInfo::HostInfo):
26175        (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
26176        * Api/qwebobjectplugin.cpp: Renamed from WebKitQt/Api/qwebobjectplugin.cpp.
26177        (QWebFactoryLoader::QWebFactoryLoader):
26178        (QWebFactoryLoader::self):
26179        (QWebFactoryLoader::descriptionForName):
26180        (QWebFactoryLoader::mimetypesForName):
26181        (QWebFactoryLoader::mimeTypeForExtension):
26182        (QWebFactoryLoader::extensions):
26183        (QWebFactoryLoader::nameForMimetype):
26184        (QWebFactoryLoader::create):
26185        (QWebObjectPlugin::QWebObjectPlugin):
26186        (QWebObjectPlugin::~QWebObjectPlugin):
26187        (QWebObjectPlugin::descriptionForKey):
26188        (QWebObjectPlugin::mimetypesForKey):
26189        (QWebObjectPlugin::extensionsForMimetype):
26190        * Api/qwebobjectplugin.h: Renamed from WebKitQt/Api/qwebobjectplugin.h.
26191        * Api/qwebobjectplugin_p.h: Renamed from WebKitQt/Api/qwebobjectplugin_p.h.
26192        (QWebFactoryLoader::names):
26193        (QWebFactoryLoader::supportsMimeType):
26194        * Api/qwebobjectpluginconnector.cpp: Renamed from WebKitQt/Api/qwebobjectpluginconnector.cpp.
26195        (QWebObjectPluginConnector::QWebObjectPluginConnector):
26196        (QWebObjectPluginConnector::frame):
26197        (QWebObjectPluginConnector::pluginParentWidget):
26198        (QWebObjectPluginConnector::requestUrl):
26199        * Api/qwebobjectpluginconnector.h: Renamed from WebKitQt/Api/qwebobjectpluginconnector.h.
26200        * Api/qwebpage.cpp: Renamed from WebKitQt/Api/qwebpage.cpp.
26201        (QWebPagePrivate::QWebPagePrivate):
26202        (QWebPagePrivate::~QWebPagePrivate):
26203        (QWebPagePrivate::navigationRequested):
26204        (QWebPagePrivate::createMainFrame):
26205        (QWebPage::QWebPage):
26206        (QWebPage::~QWebPage):
26207        (QWebPage::createFrame):
26208        (QWebPage::open):
26209        (QWebPage::url):
26210        (QWebPage::title):
26211        (QWebPage::mainFrame):
26212        (QWebPage::sizeHint):
26213        (QWebPage::stop):
26214        (QWebPage::history):
26215        (QWebPage::goBack):
26216        (QWebPage::goForward):
26217        (QWebPage::goToHistoryItem):
26218        (QWebPage::javaScriptConsoleMessage):
26219        (QWebPage::javaScriptAlert):
26220        (QWebPage::javaScriptConfirm):
26221        (QWebPage::javaScriptPrompt):
26222        (QWebPage::createWindow):
26223        (QWebPage::createModalDialog):
26224        (QWebPage::createPlugin):
26225        (QWebPage::navigationRequested):
26226        (QWebPage::setWindowGeometry):
26227        (QWebPage::canCut):
26228        (QWebPage::canCopy):
26229        (QWebPage::canPaste):
26230        (QWebPage::cut):
26231        (QWebPage::copy):
26232        (QWebPage::paste):
26233        (QWebPage::isModified):
26234        (QWebPage::undoStack):
26235        (dropActionToDragOp):
26236        (dragOpToDropAction):
26237        (QWebPage::resizeEvent):
26238        (QWebPage::paintEvent):
26239        (QWebPage::mouseMoveEvent):
26240        (QWebPage::mousePressEvent):
26241        (QWebPage::mouseDoubleClickEvent):
26242        (QWebPage::mouseReleaseEvent):
26243        (QWebPage::wheelEvent):
26244        (QWebPage::keyPressEvent):
26245        (QWebPage::keyReleaseEvent):
26246        (QWebPage::focusInEvent):
26247        (QWebPage::focusOutEvent):
26248        (QWebPage::focusNextPrevChild):
26249        (QWebPage::dragEnterEvent):
26250        (QWebPage::dragLeaveEvent):
26251        (QWebPage::dragMoveEvent):
26252        (QWebPage::dropEvent):
26253        (QWebPage::setNetworkInterface):
26254        (QWebPage::networkInterface):
26255        (QWebPage::icon):
26256        (QWebPage::setSettings):
26257        (QWebPage::settings):
26258        (QWebPage::chooseFile):
26259        (QWebPage::setNetworkProxy):
26260        (QWebPage::networkProxy):
26261        (QWebPage::userAgentStringForUrl):
26262        (QWebPage::onLoadProgressChanged):
26263        (QWebPage::totalBytes):
26264        * Api/qwebpage.h: Renamed from WebKitQt/Api/qwebpage.h.
26265        * Api/qwebpage_p.h: Renamed from WebKitQt/Api/qwebpage_p.h.
26266        * Api/qwebpagehistory.cpp: Renamed from WebKitQt/Api/qwebpagehistory.cpp.
26267        (QWebHistoryItem::QWebHistoryItem):
26268        (QWebHistoryItem::operator=):
26269        (QWebHistoryItem::~QWebHistoryItem):
26270        (QWebHistoryItem::originalUrl):
26271        (QWebHistoryItem::currentUrl):
26272        (QWebHistoryItem::title):
26273        (QWebHistoryItem::lastVisited):
26274        (QWebHistoryItem::icon):
26275        (QWebPageHistory::QWebPageHistory):
26276        (QWebPageHistory::itemAtIndex):
26277        (QWebPageHistory::operator=):
26278        (QWebPageHistory::~QWebPageHistory):
26279        (QWebPageHistory::items):
26280        (QWebPageHistory::backItems):
26281        (QWebPageHistory::forwardItems):
26282        (QWebPageHistory::canGoBack):
26283        (QWebPageHistory::canGoForward):
26284        (QWebPageHistory::goBack):
26285        (QWebPageHistory::goForward):
26286        (QWebPageHistory::goToItem):
26287        (QWebPageHistory::backItem):
26288        (QWebPageHistory::currentItem):
26289        (QWebPageHistory::forwardItem):
26290        * Api/qwebpagehistory.h: Renamed from WebKitQt/Api/qwebpagehistory.h.
26291        (QExplicitlySharedDataPointer::operator*):
26292        (QExplicitlySharedDataPointer::operator->):
26293        (QExplicitlySharedDataPointer::operator T *):
26294        (QExplicitlySharedDataPointer::operator const T *):
26295        (QExplicitlySharedDataPointer::data):
26296        (QExplicitlySharedDataPointer::constData):
26297        (QExplicitlySharedDataPointer::operator==):
26298        (QExplicitlySharedDataPointer::operator!=):
26299        (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer):
26300        (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer):
26301        (QExplicitlySharedDataPointer::operator=):
26302        (QExplicitlySharedDataPointer::operator!):
26303        (::QExplicitlySharedDataPointer):
26304        * Api/qwebpagehistory_p.h: Renamed from WebKitQt/Api/qwebpagehistory_p.h.
26305        (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
26306        (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
26307        (QWebPageHistoryPrivate::QWebPageHistoryPrivate):
26308        (QWebPageHistoryPrivate::~QWebPageHistoryPrivate):
26309        * Api/qwebsettings.cpp: Renamed from WebKitQt/Api/qwebsettings.cpp.
26310        (QWebSettingsPrivate::QWebSettingsPrivate):
26311        (QWebSettings::QWebSettings):
26312        (QWebSettings::~QWebSettings):
26313        (QWebSettings::setMinimumFontSize):
26314        (QWebSettings::minimumFontSize):
26315        (QWebSettings::setMinimumLogicalFontSize):
26316        (QWebSettings::minimumLogicalFontSize):
26317        (QWebSettings::setDefaultFontSize):
26318        (QWebSettings::defaultFontSize):
26319        (QWebSettings::setDefaultFixedFontSize):
26320        (QWebSettings::defaultFixedFontSize):
26321        (QWebSettings::setUserStyleSheetLocation):
26322        (QWebSettings::userStyleSheetLocation):
26323        (QWebSettings::setIconDatabaseEnabled):
26324        (QWebSettings::iconDatabaseEnabled):
26325        (QWebSettings::setWebGraphic):
26326        (QWebSettings::webGraphic):
26327        (QWebSettings::operator=):
26328        (QWebSettings::setGlobal):
26329        (QWebSettings::global):
26330        (QWebSettings::setFontFamily):
26331        (QWebSettings::fontFamily):
26332        (QWebSettings::setAttribute):
26333        (QWebSettings::testAttribute):
26334        (loadResourcePixmap):
26335        * Api/qwebsettings.h: Renamed from WebKitQt/Api/qwebsettings.h.
26336        * ChangeLog: Renamed from WebKitQt/ChangeLog.
26337        * Plugins/ICOHandler.cpp: Renamed from WebKitQt/Plugins/ICOHandler.cpp.
26338        (IcoHeader::operator >>):
26339        (IcoHeader::BMP_INFOHDR::):
26340        (IcoHeader::operator<<):
26341        (IcoHeader::LessDifference::LessDifference):
26342        (IcoHeader::LessDifference::operator ()):
26343        (IcoHeader::loadFromDIB):
26344        (ICOHandler::ICOHandler):
26345        (ICOHandler::canRead):
26346        (ICOHandler::read):
26347        (ICOHandler::write):
26348        (ICOHandler::name):
26349        (ICOPlugin::keys):
26350        (ICOPlugin::capabilities):
26351        (ICOPlugin::create):
26352        * Plugins/ICOHandler.h: Renamed from WebKitQt/Plugins/ICOHandler.h.
26353        * Plugins/Plugins.pro: Renamed from WebKitQt/Plugins/Plugins.pro.
26354        * QtLauncher/QtLauncher.pro: Renamed from WebKitQt/QtLauncher/QtLauncher.pro.
26355        * QtLauncher/main.cpp: Renamed from WebKitQt/QtLauncher/main.cpp.
26356        (HoverLabel::HoverLabel):
26357        (HoverLabel::setHoverLink):
26358        (HoverLabel::sizeForFont):
26359        (HoverLabel::sizeHint):
26360        (HoverLabel::updateSize):
26361        (HoverLabel::resetAnimation):
26362        (HoverLabel::paintEvent):
26363        (HoverLabel::interpolate):
26364        (ClearButton::ClearButton):
26365        (ClearButton::paintEvent):
26366        (SearchEdit::SearchEdit):
26367        (SearchEdit::~SearchEdit):
26368        (SearchEdit::paintEvent):
26369        (SearchEdit::resizeEvent):
26370        (SearchEdit::moveEvent):
26371        (MainWindow::MainWindow):
26372        (MainWindow::changeLocation):
26373        (MainWindow::loadFinished):
26374        (MainWindow::showLinkHover):
26375        (MainWindow::resizeEvent):
26376        (main):
26377        * WebCoreSupport/ChromeClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.cpp.
26378        (WebCore::ChromeClientQt::ChromeClientQt):
26379        (WebCore::ChromeClientQt::~ChromeClientQt):
26380        (WebCore::ChromeClientQt::setWindowRect):
26381        (WebCore::ChromeClientQt::windowRect):
26382        (WebCore::ChromeClientQt::pageRect):
26383        (WebCore::ChromeClientQt::scaleFactor):
26384        (WebCore::ChromeClientQt::focus):
26385        (WebCore::ChromeClientQt::unfocus):
26386        (WebCore::ChromeClientQt::canTakeFocus):
26387        (WebCore::ChromeClientQt::takeFocus):
26388        (WebCore::ChromeClientQt::createWindow):
26389        (WebCore::ChromeClientQt::createModalDialog):
26390        (WebCore::ChromeClientQt::show):
26391        (WebCore::ChromeClientQt::canRunModal):
26392        (WebCore::ChromeClientQt::runModal):
26393        (WebCore::ChromeClientQt::setToolbarsVisible):
26394        (WebCore::ChromeClientQt::toolbarsVisible):
26395        (WebCore::ChromeClientQt::setStatusbarVisible):
26396        (WebCore::ChromeClientQt::statusbarVisible):
26397        (WebCore::ChromeClientQt::setScrollbarsVisible):
26398        (WebCore::ChromeClientQt::scrollbarsVisible):
26399        (WebCore::ChromeClientQt::setMenubarVisible):
26400        (WebCore::ChromeClientQt::menubarVisible):
26401        (WebCore::ChromeClientQt::setResizable):
26402        (WebCore::ChromeClientQt::addMessageToConsole):
26403        (WebCore::ChromeClientQt::chromeDestroyed):
26404        (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
26405        (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
26406        (WebCore::ChromeClientQt::closeWindowSoon):
26407        (WebCore::ChromeClientQt::runJavaScriptAlert):
26408        (WebCore::ChromeClientQt::runJavaScriptConfirm):
26409        (WebCore::ChromeClientQt::runJavaScriptPrompt):
26410        (WebCore::ChromeClientQt::setStatusbarText):
26411        (WebCore::ChromeClientQt::shouldInterruptJavaScript):
26412        (WebCore::ChromeClientQt::tabsToLinks):
26413        (WebCore::ChromeClientQt::windowResizerRect):
26414        (WebCore::ChromeClientQt::addToDirtyRegion):
26415        (WebCore::ChromeClientQt::scrollBackingStore):
26416        (WebCore::ChromeClientQt::updateBackingStore):
26417        (WebCore::ChromeClientQt::mouseDidMoveOverElement):
26418        (WebCore::ChromeClientQt::setToolTip):
26419        (WebCore::ChromeClientQt::print):
26420        * WebCoreSupport/ChromeClientQt.h: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.h.
26421        * WebCoreSupport/ContextMenuClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.cpp.
26422        (WebCore::ContextMenuClientQt::contextMenuDestroyed):
26423        (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
26424        (WebCore::ContextMenuClientQt::contextMenuItemSelected):
26425        (WebCore::ContextMenuClientQt::downloadURL):
26426        (WebCore::ContextMenuClientQt::lookUpInDictionary):
26427        (WebCore::ContextMenuClientQt::speak):
26428        (WebCore::ContextMenuClientQt::stopSpeaking):
26429        (WebCore::ContextMenuClientQt::searchWithGoogle):
26430        * WebCoreSupport/ContextMenuClientQt.h: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.h.
26431        * WebCoreSupport/DragClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/DragClientQt.cpp.
26432        (WebCore::DragClientQt::actionMaskForDrag):
26433        (WebCore::DragClientQt::willPerformDragDestinationAction):
26434        (WebCore::DragClientQt::dragControllerDestroyed):
26435        (WebCore::DragClientQt::dragSourceActionMaskForPoint):
26436        (WebCore::DragClientQt::willPerformDragSourceAction):
26437        (WebCore::DragClientQt::startDrag):
26438        * WebCoreSupport/DragClientQt.h: Renamed from WebKitQt/WebCoreSupport/DragClientQt.h.
26439        (WebCore::DragClientQt::DragClientQt):
26440        * WebCoreSupport/EditCommandQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.cpp.
26441        (EditCommandQt::EditCommandQt):
26442        (EditCommandQt::~EditCommandQt):
26443        (EditCommandQt::redo):
26444        (EditCommandQt::undo):
26445        * WebCoreSupport/EditCommandQt.h: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.h.
26446        * WebCoreSupport/EditorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.cpp.
26447        (WebCore::EditorClientQt::shouldDeleteRange):
26448        (WebCore::EditorClientQt::shouldShowDeleteInterface):
26449        (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
26450        (WebCore::EditorClientQt::isGrammarCheckingEnabled):
26451        (WebCore::EditorClientQt::spellCheckerDocumentTag):
26452        (WebCore::EditorClientQt::shouldBeginEditing):
26453        (WebCore::EditorClientQt::shouldEndEditing):
26454        (WebCore::EditorClientQt::shouldInsertText):
26455        (WebCore::EditorClientQt::shouldChangeSelectedRange):
26456        (WebCore::EditorClientQt::shouldApplyStyle):
26457        (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
26458        (WebCore::EditorClientQt::didBeginEditing):
26459        (WebCore::EditorClientQt::respondToChangedContents):
26460        (WebCore::EditorClientQt::respondToChangedSelection):
26461        (WebCore::EditorClientQt::didEndEditing):
26462        (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
26463        (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard):
26464        (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
26465        (WebCore::EditorClientQt::isEditable):
26466        (WebCore::EditorClientQt::registerCommandForUndo):
26467        (WebCore::EditorClientQt::registerCommandForRedo):
26468        (WebCore::EditorClientQt::clearUndoRedoOperations):
26469        (WebCore::EditorClientQt::canUndo):
26470        (WebCore::EditorClientQt::canRedo):
26471        (WebCore::EditorClientQt::undo):
26472        (WebCore::EditorClientQt::redo):
26473        (WebCore::EditorClientQt::shouldInsertNode):
26474        (WebCore::EditorClientQt::pageDestroyed):
26475        (WebCore::EditorClientQt::smartInsertDeleteEnabled):
26476        (WebCore::EditorClientQt::toggleContinuousSpellChecking):
26477        (WebCore::EditorClientQt::toggleGrammarChecking):
26478        (WebCore::EditorClientQt::handleKeypress):
26479        (WebCore::EditorClientQt::handleInputMethodKeypress):
26480        (WebCore::EditorClientQt::EditorClientQt):
26481        (WebCore::EditorClientQt::textFieldDidBeginEditing):
26482        (WebCore::EditorClientQt::textFieldDidEndEditing):
26483        (WebCore::EditorClientQt::textDidChangeInTextField):
26484        (WebCore::EditorClientQt::doTextFieldCommandFromEvent):
26485        (WebCore::EditorClientQt::textWillBeDeletedInTextField):
26486        (WebCore::EditorClientQt::textDidChangeInTextArea):
26487        (WebCore::EditorClientQt::ignoreWordInSpellDocument):
26488        (WebCore::EditorClientQt::learnWord):
26489        (WebCore::EditorClientQt::checkSpellingOfString):
26490        (WebCore::EditorClientQt::checkGrammarOfString):
26491        (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
26492        (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord):
26493        (WebCore::EditorClientQt::showSpellingUI):
26494        (WebCore::EditorClientQt::spellingUIIsShowing):
26495        (WebCore::EditorClientQt::getGuessesForWord):
26496        (WebCore::EditorClientQt::isEditing):
26497        (WebCore::EditorClientQt::setInputMethodState):
26498        * WebCoreSupport/EditorClientQt.h: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.h.
26499        * WebCoreSupport/FrameLoaderClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp.
26500        (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
26501        (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
26502        (WebCore::FrameLoaderClientQt::setFrame):
26503        (WebCore::FrameLoaderClientQt::webFrame):
26504        (WebCore::FrameLoaderClientQt::callPolicyFunction):
26505        (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
26506        (WebCore::FrameLoaderClientQt::hasWebView):
26507        (WebCore::FrameLoaderClientQt::hasFrameView):
26508        (WebCore::FrameLoaderClientQt::hasBackForwardList):
26509        (WebCore::FrameLoaderClientQt::resetBackForwardList):
26510        (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
26511        (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
26512        (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
26513        (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
26514        (WebCore::FrameLoaderClientQt::makeDocumentView):
26515        (WebCore::FrameLoaderClientQt::makeRepresentation):
26516        (WebCore::FrameLoaderClientQt::forceLayout):
26517        (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
26518        (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
26519        (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
26520        (WebCore::FrameLoaderClientQt::resetAfterLoadError):
26521        (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
26522        (WebCore::FrameLoaderClientQt::willCloseDocument):
26523        (WebCore::FrameLoaderClientQt::detachedFromParent2):
26524        (WebCore::FrameLoaderClientQt::detachedFromParent3):
26525        (WebCore::FrameLoaderClientQt::detachedFromParent4):
26526        (WebCore::FrameLoaderClientQt::loadedFromCachedPage):
26527        (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
26528        (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
26529        (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
26530        (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
26531        (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
26532        (WebCore::FrameLoaderClientQt::dispatchWillClose):
26533        (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
26534        (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
26535        (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
26536        (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
26537        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
26538        (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
26539        (WebCore::FrameLoaderClientQt::dispatchShow):
26540        (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
26541        (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
26542        (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
26543        (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
26544        (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
26545        (WebCore::FrameLoaderClientQt::revertToProvisionalState):
26546        (WebCore::FrameLoaderClientQt::clearUnarchivingState):
26547        (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
26548        (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
26549        (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
26550        (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
26551        (WebCore::FrameLoaderClientQt::willChangeTitle):
26552        (WebCore::FrameLoaderClientQt::didChangeTitle):
26553        (WebCore::FrameLoaderClientQt::finishedLoading):
26554        (WebCore::FrameLoaderClientQt::finalSetupForReplace):
26555        (WebCore::FrameLoaderClientQt::setDefersLoading):
26556        (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
26557        (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
26558        (WebCore::FrameLoaderClientQt::clearArchivedResources):
26559        (WebCore::FrameLoaderClientQt::canShowMIMEType):
26560        (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
26561        (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
26562        (WebCore::FrameLoaderClientQt::frameLoadCompleted):
26563        (WebCore::FrameLoaderClientQt::restoreViewState):
26564        (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
26565        (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
26566        (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
26567        (WebCore::FrameLoaderClientQt::didFinishLoad):
26568        (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
26569        (WebCore::FrameLoaderClientQt::setTitle):
26570        (WebCore::FrameLoaderClientQt::userAgent):
26571        (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
26572        (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
26573        (WebCore::FrameLoaderClientQt::canHandleRequest):
26574        (WebCore::FrameLoaderClientQt::windowObjectCleared):
26575        (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
26576        (WebCore::FrameLoaderClientQt::registerForIconNotification):
26577        (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage):
26578        (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
26579        (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload):
26580        (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
26581        (WebCore::FrameLoaderClientQt::saveViewStateToItem):
26582        (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage):
26583        (WebCore::FrameLoaderClientQt::canCachePage):
26584        (WebCore::FrameLoaderClientQt::setMainDocumentError):
26585        (WebCore::FrameLoaderClientQt::committedLoad):
26586        (WebCore::FrameLoaderClientQt::cancelledError):
26587        (WebCore::FrameLoaderClientQt::blockedError):
26588        (WebCore::FrameLoaderClientQt::cannotShowURLError):
26589        (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
26590        (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
26591        (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
26592        (WebCore::FrameLoaderClientQt::shouldFallBack):
26593        (WebCore::FrameLoaderClientQt::createDocumentLoader):
26594        (WebCore::FrameLoaderClientQt::download):
26595        (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
26596        (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
26597        (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
26598        (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
26599        (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
26600        (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
26601        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
26602        (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
26603        (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
26604        (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
26605        (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
26606        (WebCore::FrameLoaderClientQt::dispatchCreatePage):
26607        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
26608        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
26609        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
26610        (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
26611        (WebCore::FrameLoaderClientQt::startDownload):
26612        (WebCore::FrameLoaderClientQt::willUseArchive):
26613        (WebCore::FrameLoaderClientQt::createFrame):
26614        (WebCore::FrameLoaderClientQt::objectContentType):
26615        (WebCore::):
26616        (WebCore::FrameLoaderClientQt::createPlugin):
26617        (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
26618        (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
26619        (WebCore::FrameLoaderClientQt::overrideMediaType):
26620        * WebCoreSupport/FrameLoaderClientQt.h: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.h.
26621        * WebCoreSupport/InspectorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.cpp.
26622        (WebCore::InspectorClientQt::inspectorDestroyed):
26623        (WebCore::InspectorClientQt::createPage):
26624        (WebCore::InspectorClientQt::showWindow):
26625        (WebCore::InspectorClientQt::closeWindow):
26626        (WebCore::InspectorClientQt::attachWindow):
26627        (WebCore::InspectorClientQt::detachWindow):
26628        (WebCore::InspectorClientQt::highlight):
26629        (WebCore::InspectorClientQt::hideHighlight):
26630        * WebCoreSupport/InspectorClientQt.h: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.h.
26631        * WebKitPart/WebKitFactory.cpp: Renamed from WebKitQt/WebKitPart/WebKitFactory.cpp.
26632        (WebKitFactory::WebKitFactory):
26633        (WebKitFactory::~WebKitFactory):
26634        (WebKitFactory::createPartObject):
26635        (WebKitFactory::instance):
26636        (WebKitFactory::ref):
26637        (WebKitFactory::deref):
26638        * WebKitPart/WebKitFactory.h: Renamed from WebKitQt/WebKitPart/WebKitFactory.h.
26639        * WebKitPart/WebKitPart.cpp: Renamed from WebKitQt/WebKitPart/WebKitPart.cpp.
26640        (WebKitPart::WebKitPart):
26641        (WebKitPart::~WebKitPart):
26642        (WebKitPart::openFile):
26643        (WebKitPart::openUrl):
26644        (WebKitPart::closeUrl):
26645        (WebKitPart::parentPart):
26646        (WebKitPart::frame):
26647        (WebKitPart::initView):
26648        * WebKitPart/WebKitPart.desktop: Renamed from WebKitQt/WebKitPart/WebKitPart.desktop.
26649        * WebKitPart/WebKitPart.h: Renamed from WebKitQt/WebKitPart/WebKitPart.h.
26650        (WebKitPart::):
26651        * WebKitPart/WebKitPart.rc: Renamed from WebKitQt/WebKitPart/WebKitPart.rc.
26652        * WebKitPart/WebKitPartBrowser.rc: Renamed from WebKitQt/WebKitPart/WebKitPartBrowser.rc.
26653        * WebKitPart/WebKitPartBrowserExtension.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.cpp.
26654        (WebKitPartBrowserExtension::WebKitPartBrowserExtension):
26655        * WebKitPart/WebKitPartBrowserExtension.h: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.h.
26656        * WebKitPart/WebKitPartClient.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartClient.cpp.
26657        (WebKitPartClient::WebKitPartClient):
26658        (WebKitPartClient::~WebKitPartClient):
26659        * WebKitPart/WebKitPartClient.h: Renamed from WebKitQt/WebKitPart/WebKitPartClient.h.
26660        * WebKitPart/WebKitPartInterface.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.cpp.
26661        (WebKitPartInterface::WebKitPartInterface):
26662        (WebKitPartInterface::~WebKitPartInterface):
26663        (WebKitPartInterface::url):
26664        * WebKitPart/WebKitPartInterface.h: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.h.
26665        * WebKitPart/org.kde.WebKitPart.xml: Renamed from WebKitQt/WebKitPart/org.kde.WebKitPart.xml.
26666
266672007-10-02  Adam Treat  <adam.treat@torchmobile.com>
26668
26669        Reviewed by Eric Seidel.
26670
26671        Open the requested url on the newly created window.
26672        Implement createModalDialog and provide new API for this.
26673        Patch by M. Mehdi Salem Naraghi (momesana) with additions by me.
26674
26675        * Api/qwebpage.cpp:
26676        (QWebPage::createModalDialog):
26677        * Api/qwebpage.h:
26678        * WebCoreSupport/ChromeClientQt.cpp:
26679        (WebCore::ChromeClientQt::createWindow):
26680        (WebCore::ChromeClientQt::createModalDialog):
26681
266822007-10-02  Lars Knoll  <lars@trolltech.com>
26683
26684        Reviewed by bdash.
26685
26686        Add API to retrieve the frame name from QWebFrame.
26687        Implement support for DRT::dumpChildrenAsText.
26688
26689        * Api/qwebframe.cpp:
26690        (QWebFrame::name):
26691        * Api/qwebframe.h:
26692
266932007-10-02  Lars Knoll  <lars@trolltech.com>
26694
26695        Reviewed by bdash.
26696
26697        Fix the handling of the response header for data urls. Make sure we always pass absolute URLs to WebKit from both DRT and QtLauncher.
26698
26699        * Api/qwebnetworkinterface.cpp:
26700        (QWebNetworkManager::started):
26701        (QWebNetworkManager::data):
26702        (QWebNetworkManager::finished):
26703        (QWebNetworkInterfacePrivate::sendFileData):
26704        (QWebNetworkInterfacePrivate::parseDataUrl):
26705        (WebCoreHttp::scheduleNextRequest):
26706        (WebCoreHttp::onSslErrors):
26707        * QtLauncher/main.cpp:
26708        (main):
26709
267102007-10-01  Lars Knoll  <lars@trolltech.com>
26711
26712        Reviewed by Eric.
26713
26714        Fix a wrong extension mapping in the MIMETypeRegistry and identify about: url's as frames in the FrameLoaderClient.
26715
26716        * WebCoreSupport/FrameLoaderClientQt.cpp:
26717        (WebCore::FrameLoaderClientQt::makeDocumentView):
26718        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
26719        (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
26720        (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
26721        (WebCore::FrameLoaderClientQt::objectContentType):
26722        (WebCore::FrameLoaderClientQt::createPlugin):
26723
267242007-09-30  George Staikos  <staikos@kde.org>
26725
26726        Qt build fix (OS X specific).
26727
26728        * QtLauncher/QtLauncher.pro:
26729
267302007-09-26  Mark Rowe  <mrowe@apple.com>
26731
26732        Qt build fix.
26733
26734        * WebCoreSupport/FrameLoaderClientQt.cpp:
26735        (WebCore::FrameLoaderClientQt::objectContentType): Check for empty URL instead of invalid URL.
26736
267372007-09-25  David Kilzer  <ddkilzer@webkit.org>
26738
26739        Reviewed by Adam.
26740
26741        - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
26742          LGPL'ed files contain incorrect FSF address
26743
26744        * Api/qcookiejar.cpp:
26745        * Api/qcookiejar.h:
26746        * Api/qwebframe.cpp:
26747        * Api/qwebframe.h:
26748        * Api/qwebframe_p.h:
26749        * Api/qwebhistoryinterface.cpp:
26750        * Api/qwebhistoryinterface.h:
26751        * Api/qwebkitglobal.h:
26752        * Api/qwebnetworkinterface.cpp:
26753        * Api/qwebnetworkinterface.h:
26754        * Api/qwebnetworkinterface_p.h:
26755        * Api/qwebobjectplugin.cpp:
26756        * Api/qwebobjectplugin.h:
26757        * Api/qwebobjectpluginconnector.cpp:
26758        * Api/qwebobjectpluginconnector.h:
26759        * Api/qwebpage.cpp:
26760        * Api/qwebpage.h:
26761        * Api/qwebpage_p.h:
26762        * Api/qwebpagehistory.cpp:
26763        * Api/qwebpagehistory.h:
26764        * Api/qwebsettings.cpp:
26765        * Api/qwebsettings.h:
26766        * WebCoreSupport/EditCommandQt.cpp:
26767        * WebCoreSupport/EditCommandQt.h:
26768
267692007-09-25  Adam Treat  <adam.treat@torchmobile.com>
26770
26771        Reviewed by Simon and Lars.
26772
26773        Modifies the addToJSWindowObject to bind js objects using the built-in
26774        kjs_window class.  Make sure to protect the created runtime object from
26775        garbage collection.
26776
26777        Adds a signal to QWebFrame to notify clients of the beginning of a
26778        provisional load.  DRT needs this.
26779
26780        * Api/qwebframe.cpp:
26781        (QWebFrame::addToJSWindowObject):
26782        * Api/qwebframe.h:
26783        * WebCoreSupport/FrameLoaderClientQt.cpp:
26784        (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
26785
267862007-09-10  Qing Zhao  <qing@staikos.net>
26787
26788        Reviewed by George Staikos.
26789
26790        Don't re-encode urls, resulting in double encoding.  Fixes login to
26791        GMail.
26792
26793        * Api/qwebnetworkinterface.cpp:
26794        (QWebNetworkRequestPrivate::init):
26795        (QWebNetworkManager::started):
26796
267972007-09-08  Mark Rowe  <mrowe@apple.com>
26798
26799        Qt build fix.  Move stub method implementations to the right class.
26800
26801        * WebCoreSupport/FrameLoaderClientQt.cpp:
26802        (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
26803
268042007-09-08  Brady Eidson  <beidson@apple.com>
26805
26806        YABF (Yet Another Build Fix)
26807
26808        * Api/qwebsettings.cpp:
26809        (QWebSettings::iconDatabaseEnabled):
26810
268112007-09-08  Brady Eidson  <beidson@apple.com>
26812
26813        Better build fix
26814
26815        * WebCoreSupport/FrameLoaderClientQt.cpp:
26816        (WebCore::FrameLoaderClient::registerForIconNotification):
26817        * WebCoreSupport/FrameLoaderClientQt.h:
26818
268192007-09-08  Brady Eidson  <beidson@apple.com>
26820
26821        Build fix
26822
26823        * WebCoreSupport/FrameLoaderClientQt.cpp:
26824        (WebCore::FrameLoaderClient::registerForIconNotification):
26825        * WebCoreSupport/FrameLoaderClientQt.h:
26826
268272007-09-05  Geoffrey Garen  <ggaren@apple.com>
26828
26829        Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
26830
26831        Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no
26832        memory cache, or a very tiny one
26833
26834        Keep the Qt build working with an empty stub.
26835
26836        * WebCoreSupport/FrameLoaderClientQt.cpp:
26837        (WebCore::FrameLoaderClient::didPerformFirstNavigation):
26838        * WebCoreSupport/FrameLoaderClientQt.h:
26839
268402007-09-07  George Staikos  <staikos@kde.org>
26841
26842        Fix typo.
26843
26844        * Api/qwebpage.cpp:
26845        (QWebPage::onLoadProgressChanged):
26846
268472007-09-07  Qing Zhao  <qing@staikos.net>
26848
26849        Reviewed by Anders and George.
26850
26851        Export page size and load progress in bytes.
26852
26853        * Api/qwebpage.cpp:
26854        (QWebPage::QWebPage):
26855        (QWebPage::onLoadProgressChanged):
26856        (QWebPage::totalBytes):
26857        (QWebPage::bytesReceived):
26858        * Api/qwebpage.h:
26859        * Api/qwebpage_p.h:
26860
268612007-09-06  George Staikos  <staikos@kde.org>
26862
26863        Reviewed by Anders.
26864
26865        Make popup windows work again.
26866
26867        * WebCoreSupport/FrameLoaderClientQt.cpp:
26868        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
26869
268702007-09-01  Oliver Hunt  <oliver@apple.com>
26871
26872        Reviewed by Sam.
26873
26874        <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
26875
26876        EditorClient::setInputMethodState stub
26877
26878        * WebCoreSupport/EditorClientQt.cpp:
26879        (WebCore::EditorClientQt::setInputMethodState):
26880        * WebCoreSupport/EditorClientQt.h:
26881
268822007-08-30  Simon Hausmann  <hausmann@kde.org>
26883
26884        Reviewed by Zack.
26885
26886        Use QKeySequence::StandardKey for the page wise scrolling shortcuts.
26887
26888        * Api/qwebpage.cpp:
26889        (QWebPage::keyPressEvent):
26890
268912007-08-30  Simon Hausmann  <hausmann@kde.org>
26892
26893        Reviewed by Zack.
26894
26895        When scrolling with the keyboard don't call update() on the entire widget.
26896        The scrollbar/scrollview implementation is already smart enough to scroll with bitblt
26897        on a value change.
26898
26899        * Api/qwebpage.cpp:
26900        (QWebPage::keyPressEvent):
26901
269022007-08-30  Simon Hausmann  <hausmann@kde.org>
26903
26904        Reviewed by Zack.
26905
26906        Fix scrolling with the keyboard if only one of the two scrollbars is visible.
26907
26908        * Api/qwebpage.cpp:
26909        (QWebPage::keyPressEvent):
26910
269112007-08-29  Simon Hausmann  <hausmann@kde.org>
26912
26913        Reviewed by Zack.
26914
26915        Fix compilation.
26916
26917        * WebCoreSupport/FrameLoaderClientQt.cpp:
26918        (WebCore::FrameLoaderClientQt::objectContentType):
26919
269202007-08-19  Mike Hommey  <mh+webkit@glandium.org>
26921
26922        Reviewed by George Staikos.
26923
26924        Don't export ICO symbols.
26925
26926        * Plugins/Plugins.pro:
26927
269282007-08-19  George Staikos  <staikos@kde.org>
26929
26930        Fix compilation.
26931
26932        * WebCoreSupport/FrameLoaderClientQt.cpp:
26933        (WebCore::FrameLoaderClientQt::createPlugin):
26934        * WebCoreSupport/FrameLoaderClientQt.h:
26935
269362007-08-10  Lars Knoll  <lars@trolltech.com>
26937
26938        Reviewed and landed by Simon.
26939
26940        Limit the set of properties from the computed style to apply to Qt
26941        plugin widgets, as only a few of them make sense.
26942
26943        * WebCoreSupport/FrameLoaderClientQt.cpp:
26944        (WebCore::):
26945
269462007-08-10  Lars Knoll  <lars@trolltech.com>
26947
26948        Reviewed by Simon.
26949
26950        Use <object>'s classid attribute for creation of plugins through QWebPage::createPlugin.
26951
26952        * Api/qwebpage.cpp:
26953        (QWebPage::createPlugin):
26954        * Api/qwebpage.h:
26955        * WebCoreSupport/FrameLoaderClientQt.cpp:
26956        (WebCore::FrameLoaderClientQt::objectContentType):
26957        (WebCore::FrameLoaderClientQt::createPlugin):
26958
269592007-08-10  Simon Hausmann  <hausmann@kde.org>
26960
26961        Reviewed by Lars.
26962
26963        Added support for network jobs from Qt resources using the qrc protocol.
26964
26965        * Api/qwebnetworkinterface.cpp:
26966        (QWebNetworkInterface::addJob):
26967
269682007-08-10  Simon Hausmann  <hausmann@kde.org>
26969
26970        Reviewed by Lars.
26971
26972        Added support for "application/x-qt-styled-widget" that is treated like "application/x-qt-plugin" but also
26973        gets a Qt widget stylesheet set from the CSS computed style and the element style attribute.
26974
26975        * WebCoreSupport/FrameLoaderClientQt.cpp:
26976        (WebCore::FrameLoaderClientQt::objectContentType):
26977        (WebCore::):
26978        (WebCore::FrameLoaderClientQt::createPlugin):
26979
269802007-08-10  Simon Hausmann  <hausmann@kde.org>
26981
26982        Reviewed by Lars.
26983
26984        Added virtual QWebPage::createPlugin that is called for embedded objects with the mime type "application/x-qt-plugin"
26985        and fixed widget embedding by setting the right QWidget parent.
26986
26987        * Api/qwebpage.cpp:
26988        (QWebPage::createPlugin):
26989        * Api/qwebpage.h:
26990        * WebCoreSupport/FrameLoaderClientQt.cpp:
26991        (WebCore::FrameLoaderClientQt::objectContentType):
26992        (WebCore::FrameLoaderClientQt::createPlugin):
26993
269942007-08-02  George Staikos  <staikos@kde.org>
26995
26996        Reviewed by Simon.
26997
26998        Add an interface for the useragent string.
26999
27000        * Api/qwebpage.cpp:
27001        (QWebPage::userAgentStringForUrl):
27002        * Api/qwebpage.h:
27003        * WebCoreSupport/FrameLoaderClientQt.cpp:
27004        (WebCore::FrameLoaderClientQt::userAgent):
27005
270062007-08-01  Adam Treat  <adam.treat@torchmobile.com>
27007
27008        Reviewed by George Staikos.
27009
27010        Add an interface to manage global history for clients
27011
27012        * Api/headers.pri:
27013        * Api/qwebhistoryinterface.cpp: Added.
27014        (WebCore::historyContains):
27015        (gCleanupInterface):
27016        (QWebHistoryInterface::setDefaultInterface):
27017        (QWebHistoryInterface::defaultInterface):
27018        (QWebHistoryInterface::QWebHistoryInterface):
27019        * Api/qwebhistoryinterface.h: Added.
27020
270212007-07-30  Adam Treat  <adam.treat@torchmobile.com>
27022
27023        Fix build.
27024
27025        * WebCoreSupport/EditorClientQt.cpp:
27026        (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
27027        * WebCoreSupport/EditorClientQt.h:
27028
270292007-07-30  Simon Hausmann  <hausmann@kde.org>
27030
27031        Reviewed by Lars.
27032
27033        Link QtLauncher into $$OUTPUT_DIR/bin
27034
27035        * QtLauncher/QtLauncher.pro:
27036
270372007-07-29  Adam Treat  <adam.treat@torchmobile.com>
27038
27039        Reviewed by George Staikos.
27040
27041        Change QWebPage::paintEvent to draw using the individual rects provided
27042        via the QRegion and set the widget to use opaque paint events.
27043
27044        These changes greatly reduce the cpu load as we are no longer painting the
27045        entire page for each 1px scroll :P
27046
27047        * Api/qwebframe.cpp:
27048        (QWebFrame::render):
27049        * Api/qwebpage.cpp:
27050        (QWebPage::QWebPage):
27051        (QWebPage::paintEvent):
27052        * WebCoreSupport/ChromeClientQt.cpp:
27053        (WebCore::ChromeClientQt::addToDirtyRegion):
27054
270552007-07-29  Adam Treat  <adam.treat@torchmobile.com>
27056
27057        Reviewed by Alexey Proskuryakov.
27058
27059        Respect the margins when creating frames.
27060        Set the scroll mode to always off like we did before the rendered
27061        frames patch and the other ports do now.
27062
27063        * Api/qwebframe.cpp:
27064        (QWebFramePrivate::init):
27065
270662007-07-27  Holger Hans Peter Freyther  <zecke@selfish.org>
27067
27068        Reviewed by Mark.
27069
27070        Don't create an app bundle on OSX to keep WebKitTools/Scripts/run-launcher working.
27071
27072        * QtLauncher/QtLauncher.pro:
27073
270742007-07-27  Simon Hausmann  <hausmann@kde.org>
27075
27076        Reviewed by Lars.
27077
27078        Fix compilation with MSVC.
27079
27080        * Api/qwebpagehistory.cpp:
27081        (QWebPageHistory::operator=):
27082        * Api/qwebpagehistory.h:
27083        * Api/qwebsettings.cpp:
27084        (QWebSettings::operator=):
27085        * Api/qwebsettings.h:
27086
270872007-07-26  Qing Zhao  <qing@staikos.net>
27088
27089        Reviewed by George Staikos.
27090
27091        Add a signal for history notification.
27092
27093        * Api/qwebpage.h:
27094        * WebCoreSupport/FrameLoaderClientQt.cpp:
27095
270962007-07-24  Adam Treat  <adam.treat@torchmobile.com>
27097
27098        Reviewed by Niko and Lars.
27099
27100        These are no longer necessary or used.
27101
27102        * WebCoreSupport/FrameLoaderClientQt.cpp:
27103        * WebCoreSupport/FrameLoaderClientQt.h:
27104
271052007-07-20  Adam Treat  <adam@staikos.net>
27106
27107        Reviewed by George Staikos.
27108
27109        Add a signal for first layout and add the action type for the policy
27110        function.
27111
27112        * Api/qwebpage.cpp:
27113        (QWebPagePrivate::navigationRequested):
27114        (QWebPage::navigationRequested):
27115        * Api/qwebpage.h:
27116        * Api/qwebpage_p.h:
27117        * WebCoreSupport/FrameLoaderClientQt.cpp:
27118        (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
27119        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
27120
271212007-07-19  Adam Treat  <adam.treat@torchmobile.com>
27122
27123        Reviewed by George.
27124
27125        Do a recursive layout on the frame's children.  This fixes a
27126        segfault found when rendering some framesets.
27127
27128        * Api/qwebframe.cpp:
27129        (QWebFrame::render):
27130        (QWebFrame::layout):
27131        * Api/qwebframe.h:
27132
271332007-07-18  Timothy Hatcher  <timothy@apple.com>
27134
27135        Reviewed by Adam.
27136
27137        Make the Page with the now required InspectorClient.
27138
27139        * Api/qwebpage.cpp:
27140        (QWebPagePrivate::QWebPagePrivate):
27141        * WebKitPart/WebKitPart.cpp:
27142        (WebKitPart::initView):
27143
271442007-07-18  Sam Weinig  <sam@webkit.org>
27145
27146        Build fix.
27147
27148        * Api/qwebnetworkinterface.cpp:
27149        (QWebNetworkManager::started):
27150        * WebCoreSupport/FrameLoaderClientQt.cpp:
27151        (WebCore::FrameLoaderClientQt::canShowMIMEType):
27152        (WebCore::FrameLoaderClientQt::objectContentType):
27153
271542007-07-18  Lars Knoll <lars@trolltech.com>
27155
27156        Reviewed by Zack & Simon
27157
27158        Reallow setting of scrollbar policies on QWebFrame.
27159
27160        * Api/qwebframe.cpp:
27161        (QWebFrame::verticalScrollBarPolicy):
27162        (QWebFrame::setVerticalScrollBarPolicy):
27163        (QWebFrame::horizontalScrollBarPolicy):
27164        * Api/qwebframe.h:
27165
271662007-07-17  Adam Treat <adam.treat@torchmobile.com>
27167
27168        Build fix.
27169
27170        * WebCoreSupport/FrameLoaderClientQt.cpp:
27171        (WebCore::FrameLoaderClientQt::createFrame):
27172
271732007-07-17  Holger Hans Peter Freyther  <zecke@selfish.org>
27174
27175        Blind build fix for Qt after r24366 by adding the additional
27176        WebCore::ResourceRequest& parameter to the download method.
27177
27178        * WebCoreSupport/FrameLoaderClientQt.cpp:
27179        (WebCore::FrameLoaderClientQt::download):
27180        * WebCoreSupport/FrameLoaderClientQt.h:
27181
271822007-07-17  Adam Roben  <aroben@apple.com>
27183
27184        Remove ContextMenuClientQt::shouldIncludeInspectElementItem
27185
27186        Reviewed by Tim.
27187
27188        * WebCoreSupport/ContextMenuClientQt.cpp:
27189        * WebCoreSupport/ContextMenuClientQt.h:
27190
271912007-07-16  Adam Roben  <aroben@apple.com>
27192
27193        Updated ChromeClientQt for ChromeClient changes.
27194
27195        Reviewed by Darin Adler.
27196
27197        * WebCoreSupport/ChromeClientQt.cpp:
27198        (WebCore::ChromeClientQt::print): Added a Frame* parameter.
27199        * WebCoreSupport/ChromeClientQt.h: Ditto.
27200
272012007-07-13  Mark Rowe  <mrowe@apple.com>
27202
27203        Reviewed by Mitz.
27204
27205        Build fix.  Stub out ChromeClientQt::print.
27206
27207        * WebCoreSupport/ChromeClientQt.cpp:
27208        (WebCore::ChromeClientQt::print):
27209        * WebCoreSupport/ChromeClientQt.h:
27210
272112007-07-12  George Staikos  <staikos@kde.org>
27212
27213        Qt build fix for assertions.
27214
27215        * Api/qwebnetworkinterface.cpp:
27216        (QWebNetworkManager::add):
27217
272182007-07-12  George Staikos  <staikos@kde.org>
27219
27220        Qt build fix.
27221
27222        * Api/qwebnetworkinterface.cpp:
27223        (QWebNetworkManager::add):
27224
272252007-07-10  Mark Rowe  <mrowe@apple.com>
27226
27227        Qt build fix after r24126.
27228
27229        * Api/qwebframe.cpp:
27230        (QWebFrame::evaluateJavaScript):
27231
272322007-07-10  Eli Fidler  <eli@staikos.net>
27233
27234        Reviewed by George Staikos.
27235
27236        Properly url-decode data urls.
27237
27238        * Api/qwebnetworkinterface.cpp:
27239        (QWebNetworkInterfacePrivate::parseDataUrl):
27240
272412007-07-09  Adam Treat  <adam@staikos.net>
27242
27243        Reviewed by George Staikos.
27244
27245        Convert QWebFrame from a QFrame to a pure QObject to eliminate all
27246        traces of widgets.
27247
27248        * Api/qwebframe.cpp:
27249        (QWebFramePrivate::init):
27250        (QWebFramePrivate::parentFrame):
27251        (QWebFrame::QWebFrame):
27252        (QWebFrame::render):
27253        (QWebFrame::pos):
27254        (QWebFrame::geometry):
27255        (QWebFrame::evaluateJavaScript):
27256        (QWebFrame::mouseMoveEvent):
27257        (QWebFrame::mousePressEvent):
27258        (QWebFrame::mouseDoubleClickEvent):
27259        (QWebFrame::mouseReleaseEvent):
27260        (QWebFrame::wheelEvent):
27261        * Api/qwebframe.h:
27262        * Api/qwebobjectpluginconnector.cpp:
27263        (QWebObjectPluginConnector::pluginParentWidget):
27264        * Api/qwebpage.cpp:
27265        (QWebPagePrivate::QWebPagePrivate):
27266        (QWebPagePrivate::createMainFrame):
27267        (QWebPage::QWebPage):
27268        (QWebPage::javaScriptAlert):
27269        (QWebPage::javaScriptConfirm):
27270        (QWebPage::javaScriptPrompt):
27271        (QWebPage::resizeEvent):
27272        (QWebPage::paintEvent):
27273        (QWebPage::mouseMoveEvent):
27274        (QWebPage::mousePressEvent):
27275        (QWebPage::mouseDoubleClickEvent):
27276        (QWebPage::mouseReleaseEvent):
27277        (QWebPage::wheelEvent):
27278        (QWebPage::keyPressEvent):
27279        (QWebPage::keyReleaseEvent):
27280        (QWebPage::focusInEvent):
27281        (QWebPage::focusOutEvent):
27282        (QWebPage::focusNextPrevChild):
27283        (QWebPage::chooseFile):
27284        * Api/qwebpage.h:
27285        * Api/qwebpage_p.h:
27286        * WebCoreSupport/ChromeClientQt.cpp:
27287        (WebCore::ChromeClientQt::addToDirtyRegion):
27288
272892007-07-09  George Staikos  <staikos@kde.org>
27290
27291        Fix a minor memory leak in the loader.
27292
27293        * Api/qwebnetworkinterface.cpp:
27294        (gCleanupInterface):
27295        (QWebNetworkInterface::setDefaultInterface):
27296        (QWebNetworkInterface::defaultInterface):
27297
272982007-07-09  George Staikos  <staikos@kde.org>
27299
27300        Fix a massive memory leak in the loader.
27301
27302        * Api/qwebnetworkinterface.cpp:
27303        (QWebNetworkManager::httpConnectionClosed):
27304        (WebCoreHttp::~WebCoreHttp):
27305
273062007-07-09  George Staikos  <staikos@kde.org>
27307
27308        Reviewed by Simon.
27309
27310        Rework much of the HTTP stuff to make it more stable, and add SSL and
27311        proxy support.  Major memory leak also discovered but it needs more
27312        research as the obvious fix causes crashes.
27313
27314        * Api/qwebnetworkinterface.cpp:
27315        (QWebNetworkManager::add):
27316        (QWebNetworkManager::started):
27317        (QWebNetworkManager::data):
27318        (WebCoreHttp::WebCoreHttp):
27319        (WebCoreHttp::~WebCoreHttp):
27320        (WebCoreHttp::request):
27321        (WebCoreHttp::scheduleNextRequest):
27322        (WebCoreHttp::getConnection):
27323        (WebCoreHttp::onResponseHeaderReceived):
27324        (WebCoreHttp::onReadyRead):
27325        (WebCoreHttp::onRequestFinished):
27326        (WebCoreHttp::onDone):
27327        (WebCoreHttp::onStateChanged):
27328        (WebCoreHttp::onSslErrors):
27329        (WebCoreHttp::onAuthenticationRequired):
27330        (WebCoreHttp::onProxyAuthenticationRequired):
27331        * Api/qwebnetworkinterface.h:
27332        * Api/qwebnetworkinterface_p.h:
27333        (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
27334
273352007-07-06  Adam Treat  <adam@staikos.net>
27336
27337        Reviewed by George Staikos.
27338
27339        Convert QWebFrame to a QFrame from a scroll area.
27340
27341        * Api/qwebframe.cpp:
27342        (QWebFramePrivate::init):
27343        (QWebFramePrivate::parentFrame):
27344        (QWebFramePrivate::horizontalScrollBar):
27345        (QWebFramePrivate::verticalScrollBar):
27346        (QWebFrame::QWebFrame):
27347        (QWebFrame::resizeEvent):
27348        (QWebFrame::suppressScrollbars):
27349        (QWebFrame::paintEvent):
27350        (QWebFrame::mouseMoveEvent):
27351        (QWebFrame::mousePressEvent):
27352        (QWebFrame::mouseDoubleClickEvent):
27353        (QWebFrame::mouseReleaseEvent):
27354        (QWebFrame::wheelEvent):
27355        (QWebFrame::keyPressEvent):
27356        (QWebFrame::focusInEvent):
27357        (QWebFrame::focusOutEvent):
27358        (QWebFrame::evaluateJavaScript):
27359        * Api/qwebframe.h:
27360        * Api/qwebframe_p.h:
27361        * Api/qwebobjectpluginconnector.cpp:
27362        (QWebObjectPluginConnector::pluginParentWidget):
27363
273642007-07-04  Adam Roben  <aroben@apple.com>
27365
27366        Added a stub for ChromeClientQt::setToolTip
27367
27368        Reviewed by Sam.
27369
27370        * WebCoreSupport/ChromeClientQt.cpp:
27371        (WebCore::ChromeClientQt::setToolTip):
27372        * WebCoreSupport/ChromeClientQt.h:
27373
273742007-07-04  Adam Roben  <aroben@apple.com>
27375
27376        Added a stub for ChromeClientQt::mouseDidMoveOverElement
27377
27378        Reviewed by Sam.
27379
27380        * WebCoreSupport/ChromeClientQt.cpp:
27381        (WebCore::ChromeClientQt::mouseDidMoveOverElement):
27382        * WebCoreSupport/ChromeClientQt.h:
27383
273842007-06-28  Simon Hausmann  <hausmann@kde.org>
27385
27386        Reviewed by Zack.
27387
27388        Propagate mouse double click events from Qt to WebCore.
27389
27390        * Api/qwebframe.cpp:
27391        (QWebFrame::mouseDoubleClickEvent):
27392        * Api/qwebframe.h:
27393
273942007-06-28  Simon Hausmann  <hausmann@kde.org>
27395
27396        Reviewed by Zack.
27397
27398        Implemented clipboard functions in QWebPage, in particular can(Cut|Copy|Paste), cut/copy/paste as slot as well as a selectionChanged() signal.
27399
27400        * Api/qwebpage.cpp:
27401        (QWebPage::canCut):
27402        (QWebPage::canCopy):
27403        (QWebPage::canPaste):
27404        (QWebPage::cut):
27405        (QWebPage::copy):
27406        (QWebPage::paste):
27407        * Api/qwebpage.h:
27408        * WebCoreSupport/EditorClientQt.cpp:
27409
274102007-06-27  George Staikos  <staikos@kde.org>
27411
27412        Compile with various Qt configurations.
27413
27414        * Api/qwebnetworkinterface.cpp:
27415        (WebCoreHttp::scheduleNextRequest):
27416        * Api/qwebpage.cpp:
27417        (QWebPage::javaScriptPrompt):
27418        (QWebPage::dragEnterEvent):
27419        (QWebPage::dragLeaveEvent):
27420        (QWebPage::dragMoveEvent):
27421        (QWebPage::dropEvent):
27422        (QWebPage::chooseFile):
27423        * Api/qwebpage.h:
27424        * Api/qwebpage_p.h:
27425        * WebCoreSupport/DragClientQt.cpp:
27426        (WebCore::DragClientQt::startDrag):
27427
274282007-06-27  Eli Fidler  <eli@staikos.net>
27429
27430        Reviewed by George Staikos.
27431
27432        Check for QT_NO_IMAGE_TEXT and compile either way.
27433
27434        * Plugins/ICOHandler.cpp:
27435        (ICOHandler::read):
27436
274372007-06-27  Eli Fidler  <eli@staikos.net>
27438
27439        Reviewed by George Staikos.
27440
27441        Remove QT3_SUPPORT dependency in the ICO plugin.
27442
27443        * Plugins/ICOHandler.cpp:
27444        (IcoHeader::loadFromDIB):
27445
274462007-06-25  George Staikos  <staikos@kde.org>
27447
27448        Reviewed by Zack.
27449
27450        Start to add proxy and SSL support to WebKit Qt.  Proxy works
27451        unauthenticated.  Added hooks to be able to add authentication.
27452        Also fixes some network errors.
27453
27454        * Api/qwebnetworkinterface.cpp:
27455        (QWebNetworkRequestPrivate::setURL):
27456        (QWebNetworkJob::frame):
27457        (WebCoreHttp::WebCoreHttp):
27458        (WebCoreHttp::scheduleNextRequest):
27459        (WebCoreHttp::onRequestFinished):
27460        (WebCoreHttp::onDone):
27461        (WebCoreHttp::onSslErrors):
27462        (WebCoreHttp::onAuthenticationRequired):
27463        (WebCoreHttp::onProxyAuthenticationRequired):
27464        * Api/qwebnetworkinterface.h:
27465        * Api/qwebnetworkinterface_p.h:
27466        * Api/qwebpage.cpp:
27467        (QWebPage::setNetworkProxy):
27468        (QWebPage::networkProxy):
27469        * Api/qwebpage.h:
27470        * Api/qwebpage_p.h:
27471
274722007-06-21  Adam Treat  <adam@staikos.net>
27473
27474        Reviewed by George Staikos.
27475
27476        Implement the default resources on Qt.
27477
27478        * Api/qwebpage.cpp:
27479        (QWebPage::icon):
27480        * Api/qwebsettings.cpp:
27481        (QWebSettings::setWebGraphic):
27482        (QWebSettings::webGraphic):
27483        (loadResourcePixmap):
27484        * Api/qwebsettings.h:
27485
274862007-06-15  Adam Treat  <adam@staikos.net>
27487
27488        Reviewed by George Staikos.
27489
27490        Add ICO support to the Qt build.
27491
27492        * Api/qwebpage.cpp:
27493        (QWebPage::icon):
27494        * Api/qwebpage.h:
27495        * Api/qwebsettings.cpp:
27496        (QWebSettings::setIconDatabaseEnabled):
27497        (QWebSettings::iconDatabaseEnabled):
27498        * Api/qwebsettings.h:
27499        * Plugins: Added.
27500        * Plugins/ICOHandler.cpp: Added.
27501        (IcoHeader::operator >>):
27502        (IcoHeader::BMP_INFOHDR::):
27503        (IcoHeader::operator<<):
27504        (IcoHeader::LessDifference::LessDifference):
27505        (IcoHeader::LessDifference::operator ()):
27506        (IcoHeader::loadFromDIB):
27507        (ICOHandler::ICOHandler):
27508        (ICOHandler::canRead):
27509        (ICOHandler::read):
27510        (ICOHandler::write):
27511        (ICOHandler::name):
27512        (ICOPlugin::keys):
27513        (ICOPlugin::capabilities):
27514        (ICOPlugin::create):
27515        * Plugins/ICOHandler.h: Added.
27516        * Plugins/Plugins.pro: Added.
27517        * WebCoreSupport/FrameLoaderClientQt.cpp:
27518        (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
27519
275202007-06-15  George Staikos  <staikos@kde.org>
27521
27522        Fixing the Qt build.
27523
27524        * WebCoreSupport/ContextMenuClientQt.cpp:
27525        (WebCore::ContextMenuClientQt::shouldIncludeInspectElementItem):
27526        * WebCoreSupport/ContextMenuClientQt.h:
27527
275282007-06-20  Adam Roben  <aroben@apple.com>
27529
27530        More speculative Qt build fixes.
27531
27532        Add a stub implementation of InspectorClientQt.
27533
27534        * WebCoreSupport/InspectorClientQt.cpp: Added.
27535        (WebCore::InspectorClientQt::inspectorDestroyed):
27536        (WebCore::InspectorClientQt::createPage):
27537        (WebCore::InspectorClientQt::showWindow):
27538        (WebCore::InspectorClientQt::closeWindow):
27539        (WebCore::InspectorClientQt::attachWindow):
27540        (WebCore::InspectorClientQt::detachWindow):
27541        (WebCore::InspectorClientQt::highlight):
27542        (WebCore::InspectorClientQt::hideHighlight):
27543        * WebCoreSupport/InspectorClientQt.h: Added.
27544
275452007-06-19  George Staikos  <staikos@kde.org>
27546
27547        Reviewed by Tim Hatcher.
27548
27549        Add https support.
27550
27551        * Api/qwebnetworkinterface.cpp:
27552        (QWebNetworkInterface::addJob):
27553        (QWebNetworkInterface::cancelJob):
27554        (WebCoreHttp::WebCoreHttp):
27555
275562007-06-14  George Staikos  <staikos@kde.org>
27557
27558        Reviewed by Lars.
27559
27560        Add evaluateJavaScript() method.
27561
27562        * Api/qwebframe.cpp:
27563        (QWebFrame::evaluateJavaScript):
27564        * Api/qwebframe.h:
27565
275662007-06-14  George Staikos  <staikos@kde.org>
27567
27568        Reviewed by Lars.
27569
27570        Implement most of the editing commands, better focus handling, fix some
27571        keyboard and mouse handling, and add keyboard navigation.  May be
27572        refactored later as the key switches are ugly.
27573
27574        * Api/qwebframe.cpp:
27575        (QWebFramePrivate::init):
27576        (QWebFrame::mousePressEvent):
27577        (QWebFrame::mouseReleaseEvent):
27578        (QWebFrame::wheelEvent):
27579        (QWebFrame::keyPressEvent):
27580        (QWebFrame::keyReleaseEvent):
27581        (QWebFrame::focusInEvent):
27582        (QWebFrame::focusOutEvent):
27583        (QWebFrame::focusNextPrevChild):
27584        * Api/qwebframe.h:
27585        * Api/qwebframe_p.h:
27586        * WebCoreSupport/EditorClientQt.cpp:
27587        (WebCore::EditorClientQt::handleKeypress):
27588
275892007-06-14  George Staikos  <staikos@kde.org>
27590
27591        Reviewed by Lars.
27592
27593        Implement all of the Javascript dialogs and file chooser.
27594        Also makes the statusbar virtual into a signal and shuffles some
27595        virtuals around a bit.  The helper in FrameLoaderClientQt may go away
27596        shortly.
27597
27598        * Api/qwebpage.cpp:
27599        (QWebPagePrivate::QWebPagePrivate):
27600        (QWebPage::javaScriptAlert):
27601        (QWebPage::javaScriptConfirm):
27602        (QWebPage::javaScriptPrompt):
27603        (QWebPage::chooseFile):
27604        * Api/qwebpage.h:
27605        * WebCoreSupport/ChromeClientQt.cpp:
27606        (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
27607        (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
27608        (WebCore::ChromeClientQt::runJavaScriptAlert):
27609        (WebCore::ChromeClientQt::runJavaScriptConfirm):
27610        (WebCore::ChromeClientQt::runJavaScriptPrompt):
27611        (WebCore::ChromeClientQt::setStatusbarText):
27612        * WebCoreSupport/FrameLoaderClientQt.cpp:
27613        (WebCore::FrameLoaderClientQt::chooseFile):
27614        * WebCoreSupport/FrameLoaderClientQt.h:
27615
276162007-06-14  Simon Hausmann  <hausmann@kde.org>
27617
27618        Reviewed by Zack.
27619
27620        Removed QWebHistoryItem::parent() as it is not implemented and WebCore's
27621
27622        HistoryItem itself doesn't seem to have a parent pointer either.
27623
27624        * Api/qwebpagehistory.h:
27625
276262007-06-14  Simon Hausmann  <hausmann@kde.org>
27627
27628        Reviewed by Zack.
27629
27630        Make it possible to copy QWebHistoryItem objects.
27631
27632        * Api/qwebpagehistory.cpp:
27633        * Api/qwebpagehistory.h:
27634
276352007-06-14  Lars Knoll <lars@trolltech.com>
27636
27637        Reviewed by George
27638
27639        Fix a crash when a request from the plugin resulted
27640        in a HTTP redirect.
27641
27642        * Api/qwebnetworkinterface.cpp:
27643        (QWebNetworkManager::started):
27644
276452007-06-14  Lars Knoll <lars@trolltech.com>
27646
27647        Reviewed by George.
27648
27649        Work around a bug in Qt's QHttp implementation and
27650        get web pages to load again.
27651
27652        * Api/qwebpage.cpp:
27653        (QWebPage::open):
27654
276552007-06-13  Simon Hausmann  <hausmann@kde.org>
27656
27657        Reviewed by Lars.
27658
27659        Added a make install target that installs the Qt port and renamed
27660        WebKitQt to QtWebKit
27661
27662        * Api/headers.pri: Added.
27663        * Api/qtwebkit.prf: Added.
27664
276652007-06-13  Simon Hausmann  <hausmann@kde.org>
27666
27667        Reviewed by Lars.
27668
27669        Added httpHeaderField setter/getter to QWebNetworkRequest for convenience.
27670
27671        * Api/qwebnetworkinterface.cpp:
27672        * Api/qwebnetworkinterface.h:
27673
276742007-06-13  Simon Hausmann  <hausmann@kde.org>
27675
27676        Reviewed by Lars.
27677
27678        Changed QWebObjectPluginConnector::requestUrl to take a QWebNetworkRequest as argument.
27679
27680        * Api/qwebnetworkinterface.h:
27681        * Api/qwebobjectpluginconnector.cpp:
27682        (QWebObjectPluginConnector::requestUrl):
27683        * Api/qwebobjectpluginconnector.h:
27684
276852007-06-13  Simon Hausmann  <hausmann@kde.org>
27686
27687        Reviewed by Lars.
27688
27689        Added a QWebNetworkRequest convenience constructor.
27690
27691        * Api/qwebnetworkinterface.cpp:
27692        * Api/qwebnetworkinterface.h:
27693        * Api/qwebpage.cpp:
27694        (QWebPage::open):
27695
276962007-06-13  Simon Hausmann  <hausmann@kde.org>
27697
27698        Reviewed by Lars.
27699
27700        Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData)
27701        overload to take a QWebNetworkRequest instead.
27702
27703        * Api/qwebpage.cpp:
27704        (QWebPage::open):
27705        * Api/qwebpage.h:
27706
277072007-06-13  Simon Hausmann  <hausmann@kde.org>
27708
27709        Reviewed by Lars.
27710
27711        In QWebPage::open(const QUrl &, const QHttpRequestHeader &, ...) don't make the population
27712        of the WebCore::ResourceRequest depend on the validity of the QHttpRequestHeader but just
27713        pick the individual fields if we can use them.
27714
27715        * Api/qwebpage.cpp:
27716        (QWebPage::open):
27717
277182007-06-13  Simon Hausmann  <hausmann@kde.org>
27719
27720        Reviewed by Lars.
27721
27722        Minor QWebNetworkRequet API fixlet
27723
27724        * Api/qwebnetworkinterface.cpp:
27725        * Api/qwebnetworkinterface.h:
27726
277272007-06-13  Simon Hausmann  <hausmann@kde.org>
27728
27729        Reviewed by Lars.
27730
27731        Use QWebNetworkRequest for QWebPage::navigationRequested.
27732
27733        * Api/qwebnetworkinterface.cpp:
27734        * Api/qwebnetworkinterface.h:
27735        * Api/qwebpage.cpp:
27736        (QWebPagePrivate::navigationRequested):
27737        (QWebPage::navigationRequested):
27738        * Api/qwebpage.h:
27739        * Api/qwebpage_p.h:
27740        * WebCoreSupport/FrameLoaderClientQt.cpp:
27741        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
27742
277432007-06-13  Simon Hausmann  <hausmann@kde.org>
27744
27745        Reviewed by Lars.
27746
27747        Some docs for QWebNetworkRequest
27748
27749        * Api/qwebnetworkinterface.cpp:
27750        (QWebNetworkRequest::QWebNetworkRequest):
27751        (QWebNetworkRequest::~QWebNetworkRequest):
27752
277532007-06-13  Simon Hausmann  <hausmann@kde.org>
27754
27755        Reviewed by Lars.
27756
27757        Moved QWebNetworkJob::Method enum into QWebNetworkRequest.
27758
27759        * Api/qwebnetworkinterface.h:
27760        * Api/qwebobjectpluginconnector.cpp:
27761        (QWebObjectPluginConnector::requestUrl):
27762        * Api/qwebobjectpluginconnector.h:
27763
277642007-06-13  Simon Hausmann  <hausmann@kde.org>
27765
27766        Reviewed by Lars.
27767
27768        Rename QWebNetworkJob::request() into QWebNetworkJob::httpHeader() and added
27769
27770        * Api/qwebnetworkinterface.cpp:
27771        (QWebNetworkJob::postData):
27772        (WebCoreHttp::WebCoreHttp):
27773        (WebCoreHttp::scheduleNextRequest):
27774        * Api/qwebnetworkinterface.h:
27775
277762007-06-13  Simon Hausmann  <hausmann@kde.org>
27777
27778        Reviewed by Lars.
27779
27780        Introduce QWebNetworkRequest in the public API.
27781
27782        * Api/qwebnetworkinterface.cpp:
27783        (QWebNetworkRequestPrivate::init):
27784        * Api/qwebnetworkinterface.h:
27785        * Api/qwebnetworkinterface_p.h:
27786        * WebCoreSupport/FrameLoaderClientQt.cpp:
27787        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
27788
277892007-06-13  Simon Hausmann  <hausmann@kde.org>
27790
27791        Reviewed by Lars.
27792
27793        Changed QWebNetworkJobPrivate to aggregate a QWebNetworkRequest instead of inheriting from it.
27794
27795        * Api/qwebnetworkinterface.cpp:
27796        (QWebNetworkManager::add):
27797        (QWebNetworkManager::started):
27798        (QWebNetworkManager::data):
27799        (QWebNetworkManager::finished):
27800        * Api/qwebnetworkinterface_p.h:
27801        * Api/qwebobjectpluginconnector.cpp:
27802        (QWebObjectPluginConnector::requestUrl):
27803
278042007-06-13  Simon Hausmann  <hausmann@kde.org>
27805
27806        Reviewed by Lars.
27807
27808        Rename QWebNetworkRequest::request into QWebNetworkRequest::httpHeader.
27809
27810        * Api/qwebnetworkinterface.cpp:
27811        (QWebNetworkRequest::init):
27812        (QWebNetworkRequest::setURL):
27813        (QWebNetworkManager::add):
27814        (QWebNetworkManager::started):
27815        * Api/qwebnetworkinterface_p.h:
27816        * WebCoreSupport/FrameLoaderClientQt.cpp:
27817        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
27818
278192007-06-12  Lars Knoll <lars@trolltech.com>
27820
27821        Reviewed by George Staikos.
27822
27823        Remove duplicate symbols.
27824
27825        * Api/qwebobjectplugin_p.h:
27826
278272007-06-13  Lars Knoll <lars@trolltech.com>
27828
27829        Reviewed by Niko.
27830
27831        Fix compilation, and remove dependency on Qt
27832        private header.
27833
27834        * Api/qwebobjectplugin_p.h:
27835        (QWebFactoryLoader::supportsMimeType):
27836
278372007-06-13  Lars Knoll <lars@trolltech.com>
27838
27839        Reviewed by Niko.
27840
27841        Parts of the patch done by Zack.
27842        Fix up some parts in the implementation of QWebNetworkInterface
27843        so it can be used by plugins.
27844        Change the plugin API so we can actually get all the information
27845        required by the JS bridge from them as well.
27846
27847        * Api/qwebnetworkinterface.cpp:
27848        (QWebNetworkJob::cancelled):
27849        (QWebNetworkManager::cancel):
27850        (QWebNetworkManager::started):
27851        (QWebNetworkManager::finished):
27852        * Api/qwebobjectplugin.cpp:
27853        (QWebFactoryLoader::QWebFactoryLoader):
27854        (QWebFactoryLoader::descriptionForName):
27855        (QWebFactoryLoader::mimetypesForName):
27856        (QWebFactoryLoader::mimeTypeForExtension):
27857        (QWebFactoryLoader::extensions):
27858        (QWebFactoryLoader::nameForMimetype):
27859        (QWebFactoryLoader::create):
27860        (QWebObjectPlugin::descriptionForKey):
27861        (QWebObjectPlugin::mimetypesForKey):
27862        * Api/qwebobjectplugin.h:
27863        * Api/qwebobjectplugin_p.h:
27864        (QWebFactoryLoader::names):
27865        * Api/qwebobjectpluginconnector.cpp:
27866        (QWebObjectPluginConnector::requestUrl):
27867        * Api/qwebpage.cpp:
27868        (QWebPage::networkInterface):
27869
278702007-06-11  Simon Hausmann  <hausmann@kde.org>
27871
27872        Reviewed by Lars.
27873
27874        Added a QWebPage::open overload to allow specifying the http header and post data.
27875        (it's an overload instead of a merged openUrl to avoid including qhttp.h in qwebpage.h,
27876        which would imply that one has to have QT += network in the .pro file for using WebKitQt)
27877
27878        * Api/qwebpage.cpp:
27879        * Api/qwebpage.h:
27880
278812007-06-11  Simon Hausmann  <hausmann@kde.org>
27882
27883        Reviewed by Lars.
27884
27885        Added the possibility to intercept url requests through QWebPage::navigationRequested.
27886
27887        * Api/qwebpage.cpp:
27888        (QWebPagePrivate::QWebPagePrivate):
27889        (QWebPage::createFrame):
27890        * Api/qwebpage.h:
27891        * Api/qwebpage_p.h:
27892        * WebCoreSupport/FrameLoaderClientQt.cpp:
27893
278942007-06-11  Simon Hausmann  <hausmann@kde.org>
27895
27896        Reviewed by Lars.
27897
27898        Added a QWebNetworkRequest::init overload that takes a WebCore::ResourceRequest,
27899        to be called from FrameLoaderClientQt in the near future.
27900
27901        * Api/qwebnetworkinterface.cpp:
27902        (QWebNetworkManager::add):
27903        * Api/qwebnetworkinterface_p.h:
27904
279052007-06-11  Simon Hausmann  <hausmann@kde.org>
27906
27907        Reviewed by Lars.
27908
27909        Moved the postData setup into QWebNetworkRequest::init.
27910
27911        * Api/qwebnetworkinterface.cpp:
27912        (QWebNetworkRequest::init):
27913        (QWebNetworkManager::add):
27914
279152007-06-11  Simon Hausmann  <hausmann@kde.org>
27916
27917        Reviewed by Lars.
27918
27919        Moved HTTP header field propagation to QWebNetworkRequest::init.
27920
27921        * Api/qwebnetworkinterface.cpp:
27922        (QWebNetworkRequest::init):
27923        (QWebNetworkManager::add):
27924
279252007-06-11  Simon Hausmann  <hausmann@kde.org>
27926
27927        Reviewed by Lars.
27928
27929        Started moving the code to separate a WebCore::ResourceRequest into a QUrl, postData
27930        and QHttpRequestHeader into a separate little QWebNetworkRequest struct.
27931
27932        * Api/qwebnetworkinterface.cpp:
27933        (QWebNetworkRequest::init):
27934        (QWebNetworkManager::add):
27935        * Api/qwebnetworkinterface_p.h:
27936        * Api/qwebobjectpluginconnector.cpp:
27937        (QWebObjectPluginConnector::requestUrl):
27938
279392007-06-11  Zack Rusin <zrusin@trolltech.com>
27940
27941        Reviewed by Lars
27942
27943        Forgot to export the plugin connector.
27944
27945        * Api/qwebobjectpluginconnector.h
27946
279472007-06-08  Lars Knoll <lars@trolltech.com>
27948
27949        Reviewed by Zack.
27950
27951        Add a QWebObjectPluginConnector class. The class will
27952        facility communication between the plugin and WebKit.
27953        Currently it's used to make the plugin network capable.
27954
27955        * Api/qwebnetworkinterface.cpp:
27956        (QWebNetworkJobPrivate::setDefaults):
27957        (QWebNetworkManager::add):
27958        (QWebNetworkManager::started):
27959        (QWebNetworkManager::data):
27960        (QWebNetworkManager::finished):
27961        * Api/qwebnetworkinterface.h:
27962        * Api/qwebnetworkinterface_p.h:
27963        (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
27964        * Api/qwebobjectplugin.cpp:
27965        (QWebFactoryLoader::create):
27966        * Api/qwebobjectplugin.h:
27967        * Api/qwebobjectplugin_p.h:
27968        * Api/qwebobjectpluginconnector.cpp: Added.
27969        (QWebObjectPluginConnector::QWebObjectPluginConnector):
27970        (QWebObjectPluginConnector::frame):
27971        (QWebObjectPluginConnector::pluginParentWidget):
27972        (QWebObjectPluginConnector::requestUrl):
27973        * Api/qwebobjectpluginconnector.h: Added.
27974        (QWebObjectPluginConnector::):
27975        * WebCoreSupport/FrameLoaderClientQt.cpp:
27976        (WebCore::FrameLoaderClientQt::createPlugin):
27977
279782007-06-06  Lars Knoll <lars@trolltech.com>
27979
27980        Reviewed by Zack
27981
27982        Add an API to create and load plugins.
27983        Don't include moc files by hand anymore, rather let
27984        qmake handle them.
27985
27986        * Api/qcookiejar.cpp:
27987        (QCookieJar::cookieJar):
27988        * Api/qwebframe.cpp:
27989        (QWebFrame::scrollContentsBy):
27990        * Api/qwebnetworkinterface.cpp:
27991        * Api/qwebobjectplugin.cpp: Added.
27992        (QWebFactoryLoader::QWebFactoryLoader):
27993        (QWebFactoryLoader::self):
27994        (QWebFactoryLoader::mimeTypeForExtension):
27995        (QWebFactoryLoader::create):
27996        (QWebObjectPlugin::QWebObjectPlugin):
27997        (QWebObjectPlugin::~QWebObjectPlugin):
27998        (QWebObjectPlugin::extensionsForMimetype):
27999        * Api/qwebobjectplugin.h: Added.
28000        * Api/qwebobjectplugin_p.h: Added.
28001        (QWebFactoryLoader::mimeTypes):
28002        (QWebFactoryLoader::extensions):
28003        (QWebFactoryLoader::supportsMimeType):
28004        * Api/qwebpage.cpp:
28005        (QWebPage::settings):
28006        * WebCoreSupport/FrameLoaderClientQt.cpp:
28007        (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
28008        (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
28009        (WebCore::FrameLoaderClientQt::objectContentType):
28010        (WebCore::FrameLoaderClientQt::createPlugin):
28011
280122007-05-28  Zack Rusin  <zrusin@trolltech.com>
28013
28014        Reviewed by andersca and simon
28015
28016        Adding public settings Api to the Qt port.
28017        QWebSetting's is a value based settings
28018        object settable on the QWebPage.
28019
28020        * Api/qwebpage.cpp:
28021        (QWebPagePrivate::QWebPagePrivate):
28022        (QWebPage::QWebPage):
28023        (QWebPage::setSettings):
28024        (QWebPage::settings):
28025        * Api/qwebpage.h:
28026        * Api/qwebsettings.cpp: Added.
28027        (QWebSettingsPrivate::QWebSettingsPrivate):
28028        (QWebSettings::QWebSettings):
28029        (QWebSettings::~QWebSettings):
28030        (QWebSettings::setMinimumFontSize):
28031        (QWebSettings::minimumFontSize):
28032        (QWebSettings::setMinimumLogicalFontSize):
28033        (QWebSettings::minimumLogicalFontSize):
28034        (QWebSettings::setDefaultFontSize):
28035        (QWebSettings::defaultFontSize):
28036        (QWebSettings::setDefaultFixedFontSize):
28037        (QWebSettings::defaultFixedFontSize):
28038        (QWebSettings::setUserStyleSheetLocation):
28039        (QWebSettings::userStyleSheetLocation):
28040        (QWebSettings::setGlobal):
28041        (QWebSettings::global):
28042        (QWebSettings::setFontFamily):
28043        (QWebSettings::fontFamily):
28044        (QWebSettings::setAttribute):
28045        (QWebSettings::testAttribute):
28046        * Api/qwebsettings.h: Added.
28047        * QtLauncher/main.cpp:
28048        (main):
280492007-05-27  Kevin Ollivier  <kevino@theolliviers.com>
28050
28051        Reviewed by Sam Weinig.
28052
28053        Consolidate all notImplemented() macro definitions into
28054        one header file for all platforms.
28055
28056        * WebCoreSupport/ChromeClientQt.cpp:
28057        * WebCoreSupport/ContextMenuClientQt.cpp:
28058        * WebCoreSupport/EditorClientQt.cpp:
28059        * WebCoreSupport/FrameLoaderClientQt.cpp:
28060
280612007-05-25  George Staikos  <staikos@kde.org>
28062
28063        Reviewed by Simon.
28064
28065        The http loader should only ask for .... http cookies!
28066
28067        * Api/qwebnetworkinterface.cpp:
28068        (QWebNetworkManager::add):
28069
280702007-05-24  Simon Hausmann  <hausmann@kde.org>
28071
28072        Reviewed by Zack.
28073
28074        Fix multipart/form-data HTTP POSTs. The content-type wasn't set
28075        correctly. Fortunately WebCore does it already, so there's no need
28076        for us to do it since we already transfer all HTTP header fields :)
28077
28078        * Api/qwebnetworkinterface.cpp:
28079        (QWebNetworkManager::add):
28080
280812007-05-23  Simon Hausmann  <hausmann@kde.org>
28082
28083        Reviewed by Zack, idea from Lars.
28084
28085        Share WebCoreHttp and therefore HTTP connections among multiple
28086        QWebNetworkInterface instances by moving the code into
28087        QWebNetworkManager.
28088
28089        * Api/qwebnetworkinterface.cpp:
28090        (QWebNetworkManager::addHttpJob):
28091        (QWebNetworkManager::cancelHttpJob):
28092        (QWebNetworkManager::httpConnectionClosed):
28093        (QWebNetworkInterface::addJob):
28094        (QWebNetworkInterface::cancelJob):
28095        (WebCoreHttp::scheduleNextRequest):
28096        (WebCoreHttp::onResponseHeaderReceived):
28097        (WebCoreHttp::onReadyRead):
28098        (WebCoreHttp::onRequestFinished):
28099        (WebCoreHttp::cancel):
28100        * Api/qwebnetworkinterface.h:
28101        * Api/qwebnetworkinterface_p.h:
28102
281032007-05-23  Simon Hausmann  <hausmann@kde.org>
28104
28105        Reviewed by Zack, discussed also with Lars.
28106
28107        Make it possible to specify a per-QWebPage network interface (needed
28108        for the KDE KIO integration).
28109
28110        Merged the file and the network loader into
28111        QWebNetworkInterface(Private), which simplifies the loading code.
28112
28113        When receiving a redirection don't emit the data of the redirected job
28114        to the document. (otherwise the kind of "This page has moved" text
28115        appears right on top of the real page content)
28116
28117        * Api/qwebnetworkinterface.cpp:
28118        (qHash):
28119        (operator==):
28120        (QWebNetworkJob::QWebNetworkJob):
28121        (QWebNetworkJob::networkInterface):
28122        (QWebNetworkManager::add):
28123        (QWebNetworkManager::cancel):
28124        (QWebNetworkManager::data):
28125        (QWebNetworkManager::finished):
28126        (QWebNetworkInterfacePrivate::sendFileData):
28127        (QWebNetworkInterfacePrivate::parseDataUrl):
28128        (QWebNetworkInterfacePrivate::addHttpJob):
28129        (QWebNetworkInterfacePrivate::httpConnectionClosed):
28130        (QWebNetworkInterface::setDefaultInterface):
28131        (QWebNetworkInterface::QWebNetworkInterface):
28132        (QWebNetworkInterface::addJob):
28133        (QWebNetworkInterface::cancelJob):
28134        (WebCoreHttp::scheduleNextRequest):
28135        (WebCoreHttp::onResponseHeaderReceived):
28136        (WebCoreHttp::onReadyRead):
28137        (WebCoreHttp::onRequestFinished):
28138        (WebCoreHttp::cancel):
28139        * Api/qwebnetworkinterface.h:
28140        * Api/qwebnetworkinterface_p.h:
28141        * Api/qwebpage.cpp:
28142        (QWebPagePrivate::QWebPagePrivate):
28143        (QWebPage::setNetworkInterface):
28144        * Api/qwebpage.h:
28145        * Api/qwebpage_p.h:
28146
281472007-05-23  Lars Knoll <lars@trolltech.com>
28148
28149        Reviewed by Zack
28150
28151        Don't do HTTP downloads in a second thread. Simplifies
28152        the code significantly and fixes crashes on some
28153        Web pages.
28154
28155        * Api/qwebnetworkinterface.cpp:
28156        (QWebNetworkManager::add):
28157        (QWebNetworkInterface::QWebNetworkInterface):
28158        (QWebNetworkInterface::addJob):
28159        (QWebNetworkInterface::cancelJob):
28160        (LoaderThread::LoaderThread):
28161        (LoaderThread::run):
28162        (WebCoreHttp::cancel):
28163        (NetworkLoader::NetworkLoader):
28164        (NetworkLoader::request):
28165        (NetworkLoader::cancel):
28166        * Api/qwebnetworkinterface_p.h:
28167        * WebCoreSupport/FrameLoaderClientQt.cpp:
28168        (WebCore::FrameLoaderClientQt::committedLoad):
28169        (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
28170
281712007-05-23  Lars Knoll <lars@trolltech.com>
28172
28173        Reviewed by Simon.
28174
28175        * Api/qwebnetworkinterface.cpp:
28176        (QWebNetworkJobPrivate::setURL):
28177        (QWebNetworkManager::started):
28178            Fix Host: line in HTTP headers and resolving of relative URLs
28179            when redirecting.
28180        * Api/qwebnetworkinterface_p.h:
28181            Clean up qHash forward declaration a bit.
28182
281832007-05-23  Simon Hausmann  <hausmann@kde.org>
28184
28185        Reviewed by Zack.
28186
28187        * QtLauncher/main.cpp:
28188        (MainWindow::MainWindow): Fix loading progress signal/slot connection.
28189
281902007-05-22  Simon Hausmann  <hausmann@kde.org>
28191
28192        Reviewed by Lars.
28193
28194        * Api/qwebnetworkinterface.cpp:
28195        (QWebNetworkManager::add): Fix http headers for POST.
28196
281972007-05-21  Lars Knoll <lars@trolltech.com>
28198
28199        Reviewed by Simon
28200
28201        Remove the userHandle methods from QWebnetworkJob again.
28202        They don't really give us anything and just clutter the API.
28203
28204        * Api/qwebnetworkinterface.cpp:
28205        * Api/qwebnetworkinterface.h:
28206        * Api/qwebnetworkinterface_p.h:
28207
282082007-05-21  Simon Hausmann  <hausmann@kde.org>
28209
28210        Reviewed by Zack.
28211
28212        * Api/qwebnetworkinterface.h: Export the net API.
28213
282142007-05-21  Lars Knoll <lars@trolltech.com>
28215
28216        Reviewed by Zack.
28217
28218        Add an API layer for network downloads. Basically QWebnetworkInterface
28219        is an interface class for downloading resources. QWebnetworkJob describes
28220        the actual object to download.
28221
28222        QWebNetworkInterface has a default implementation that replaces the
28223        old ResourceHandleManager class in the Qt port.
28224
28225        * Api/qwebnetworkinterface.cpp: Added.
28226        (QWebNetworkJobPrivate::setURL):
28227        (QWebNetworkJob::QWebNetworkJob):
28228        (QWebNetworkJob::~QWebNetworkJob):
28229        (QWebNetworkJob::url):
28230        (QWebNetworkJob::postData):
28231        (QWebNetworkJob::request):
28232        (QWebNetworkJob::response):
28233        (QWebNetworkJob::setResponse):
28234        (QWebNetworkJob::cancelled):
28235        (QWebNetworkJob::ref):
28236        (QWebNetworkJob::deref):
28237        (QWebNetworkJob::setUserHandle):
28238        (QWebNetworkJob::userHandle):
28239        (QWebNetworkManager::QWebNetworkManager):
28240        (QWebNetworkManager::self):
28241        (QWebNetworkManager::add):
28242        (QWebNetworkManager::cancel):
28243        (QWebNetworkManager::started):
28244        (QWebNetworkManager::data):
28245        (QWebNetworkManager::finished):
28246        (QWebNetworkInterface::setDefaultInterface):
28247        (QWebNetworkInterface::defaultInterface):
28248        (QWebNetworkInterface::QWebNetworkInterface):
28249        (QWebNetworkInterface::~QWebNetworkInterface):
28250        (QWebNetworkInterface::addJob):
28251        (QWebNetworkInterface::cancelJob):
28252        (LoaderThread::LoaderThread):
28253        (LoaderThread::run):
28254        (FileLoader::FileLoader):
28255        (FileLoader::request):
28256        (FileLoader::sendData):
28257        (FileLoader::parseDataUrl):
28258        (WebCoreHttp::WebCoreHttp):
28259        (WebCoreHttp::~WebCoreHttp):
28260        (WebCoreHttp::request):
28261        (WebCoreHttp::scheduleNextRequest):
28262        (WebCoreHttp::getConnection):
28263        (WebCoreHttp::onResponseHeaderReceived):
28264        (WebCoreHttp::onReadyRead):
28265        (WebCoreHttp::onRequestFinished):
28266        (WebCoreHttp::onStateChanged):
28267        (WebCoreHttp::cancel):
28268        (HostInfo::HostInfo):
28269        (qHash):
28270        (operator==):
28271        (NetworkLoader::NetworkLoader):
28272        (NetworkLoader::~NetworkLoader):
28273        (NetworkLoader::request):
28274        (NetworkLoader::connectionClosed):
28275        (NetworkLoader::cancel):
28276        * Api/qwebnetworkinterface.h: Added.
28277        (QWebNetworkJob::setHandle):
28278        (QWebNetworkJob::handle):
28279        * Api/qwebnetworkinterface_p.h: Added.
28280        (WebCore::LoaderThread::):
28281        (WebCore::LoaderThread::waitForSetup):
28282        (WebCore::HostInfo::HostInfo):
28283
282842007-05-18  Simon Hausmann  <hausmann@kde.org>
28285
28286        Reviewed by Nikolas.
28287
28288        * Api/qwebpage.h: Changed the loadProgressChanged API to use an
28289        percent integer instead of a double precision floating pointer number.
28290        * WebCoreSupport/FrameLoaderClientQt.cpp:
28291        (WebCore::FrameLoaderClientQt::setFrame):
28292        (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
28293        * WebCoreSupport/FrameLoaderClientQt.h:
28294
282952007-05-18  Marius Bugge Monsen  <mbm@trolltech.com>
28296
28297        Reviewed by Zack Rusin.
28298
28299        The default constructed KeyboardEvent has
28300        no PlatformKeyboardEvent.
28301
28302        * WebCoreSupport/EditorClientQt.cpp:
28303        (WebCore::EditorClientQt::handleKeypress):
28304
283052007-05-17  Adam Treat <adam@staikos.net>
28306
28307        Reviewed by George Staikos.
28308
28309        - Implement frameLoadCompleted
28310        - Fix build (by George)
28311
28312        * WebCoreSupport/FrameLoaderClientQt.cpp:
28313        (WebCore::FrameLoaderClientQt::frameLoadCompleted):
28314        (WebCore::FrameLoaderClientQt::createFrame):
28315
283162007-05-17  Adam Treat  <adam@staikos.net>
28317
28318        Reviewed by George Staikos.
28319
28320        Implement canShowMIMEType
28321
28322        * WebCoreSupport/FrameLoaderClientQt.cpp:
28323        (WebCore::FrameLoaderClientQt::canShowMIMEType):
28324
283252007-05-16  Lars Knoll <lars@trolltech.com>
28326
28327        Reviewed by Zack
28328
28329        pass the mouse events to the event handler, not the frameview.
28330
28331        * Api/qwebframe.cpp:
28332        (QWebFrame::mouseMoveEvent):
28333        (QWebFrame::mouseReleaseEvent):
28334
283352007-05-14  Lars Knoll <lars@trolltech.com>
28336
28337        Reviewed by Zack
28338
28339        Updates after Maciej's frame change.
28340
28341        * Api/qwebpage.cpp:
28342        (QWebPage::stop):
28343              Call stopForUserCancel() instead of stopAllLoaders()
28344        * WebCoreSupport/FrameLoaderClientQt.cpp:
28345        (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
28346        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
28347        (WebCore::FrameLoaderClientQt::didFinishLoad):
28348        (WebCore::FrameLoaderClientQt::setMainDocumentError):
28349        (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
28350        (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
28351        (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
28352        (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
28353              Call QWebFrame::loadDone() from the places it's supposed to be
28354              called from.
28355
283562007-05-12  Maciej Stachowiak  <mjs@apple.com>
28357
28358        Reviewed by Rob Buis.
28359
28360        - call Frame::init as needed - this prevents crashes but pages don't appear.
28361
28362        * Api/qwebframe.cpp:
28363        (QWebFramePrivate::init):
28364        * WebKitPart/WebKitPart.cpp:
28365        (WebKitPart::initView):
28366
283672007-05-08  Steve Falkenburg  <sfalken@apple.com>
28368
28369        Reviewed by Ada.
28370
28371        Slight modification to last editor method fix.
28372
28373        * WebCoreSupport/EditorClientQt.cpp:
28374        (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
28375        * WebCoreSupport/EditorClientQt.h:
28376
283772007-05-03  Steve Falkenburg  <sfalken@apple.com>
28378
28379        Reviewed by Oliver.
28380
28381        Add missing user description parameter to spelling-related editor client method.
28382
28383        * WebCoreSupport/EditorClientQt.cpp:
28384        (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
28385        * WebCoreSupport/EditorClientQt.h:
28386
283872007-04-29  Oliver Hunt  <oliver@apple.com>
28388
28389        Reviewed by Zack.
28390
28391        Tie QT drag events to the DragController logic
28392        to allow drag and drop events to be handled by
28393        webkit.
28394
28395        * Api/qwebframe.cpp:
28396        * Api/qwebframe.h:
28397        * Api/qwebpage.cpp:
28398        (QWebPagePrivate::QWebPagePrivate):
28399        (QWebPage::QWebPage):
28400        (dropActionToDragOp):
28401        (dragOpToDropAction):
28402        (QWebPage::dragEnterEvent):
28403        (QWebPage::dragLeaveEvent):
28404        (QWebPage::dragMoveEvent):
28405        (QWebPage::dropEvent):
28406        * Api/qwebpage.h:
28407        * WebCoreSupport/DragClientQt.cpp:
28408        (WebCore::DragClientQt::startDrag):
28409        * WebCoreSupport/DragClientQt.h:
28410        (WebCore::DragClientQt::DragClientQt):
28411
284122007-04-27  Holger Freyther <freyther@kde.org>
28413
28414        Reviewed by Maciej.
28415
28416        Remove unmaintained CMake build system.
28417
28418        * QtLauncher/CMakeLists.txt: Removed.
28419        * WebKitPart/CMakeLists.txt: Removed.
28420
284212007-04-25  Steve Falkenburg  <sfalken@apple.com>
28422
28423        Reviewed by Adam.
28424
28425        Fix spelling error in spelling method name.
28426
28427        * WebCoreSupport/EditorClientQt.cpp:
28428        (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
28429        * WebCoreSupport/EditorClientQt.h:
28430
284312007-04-24  Steve Falkenburg  <sfalken@apple.com>
28432
28433        Reviewed by Oliver.
28434
28435        Spelling and grammar stubs
28436
28437        * WebCoreSupport/EditorClientQt.cpp:
28438        (WebCore::EditorClientQt::ignoreWordInSpellDocument):
28439        (WebCore::EditorClientQt::learnWord):
28440        (WebCore::EditorClientQt::checkSpellingOfString):
28441        (WebCore::EditorClientQt::checkGrammarOfString):
28442        (WebCore::EditorClientQt::udpateSpellingUIWithGrammarString):
28443        (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord):
28444        (WebCore::EditorClientQt::showSpellingUI):
28445        (WebCore::EditorClientQt::spellingUIIsShowing):
28446        (WebCore::EditorClientQt::getGuessesForWord):
28447        * WebCoreSupport/EditorClientQt.h:
28448
284492007-04-11  MorganL  <morganl.webkit@yahoo.com>
28450
28451        Reviewed by Maciej.
28452
28453        Add a Frame pointer to ChromeClient methods:
28454        http://bugs.webkit.org/show_bug.cgi?id=13127
28455
28456        * WebCoreSupport/ChromeClientQt.cpp:
28457        (WebCore::ChromeClientQt::createWindow):
28458        (WebCore::ChromeClientQt::createModalDialog):
28459        * WebCoreSupport/ChromeClientQt.h:
28460
284612007-04-12  Mark Rowe  <mrowe@apple.com>
28462
28463        Second part of Qt build fix.
28464
28465        * WebCoreSupport/FrameLoaderClientQt.cpp:
28466        (WebCore::FrameLoaderClientQt::loadedFromCachedPage):
28467        (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage):
28468        (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage):
28469        * WebCoreSupport/FrameLoaderClientQt.h:
28470
284712007-03-27  Zack Rusin  <zrusin@trolltech.com>
28472
28473        Fix the rendering crashes due triggered
28474        asserts. Improve a bit the layout
28475        scheduling.
28476
28477        * Api/qwebframe.cpp:
28478        (QWebFrame::resizeEvent):
28479        (QWebFrame::paintEvent):
28480        * WebCoreSupport/FrameLoaderClientQt.cpp:
28481        (WebCore::FrameLoaderClientQt::forceLayout):
28482
284832007-03-16  Lars Knoll <lars@trolltech.com>
28484
28485        Fix the Qt build once again.
28486
28487        * WebCoreSupport/EditorClientQt.cpp:
28488        (WebCore::EditorClientQt::handleKeypress):
28489        * WebCoreSupport/FrameLoaderClientQt.cpp:
28490        (WebCore::FrameLoaderClientQt::blockedError):
28491        * WebCoreSupport/FrameLoaderClientQt.h:
28492
284932007-03-13  Lars Knoll <lars@trolltech.com>
28494
28495        Reviewed by George.
28496
28497        Don't try to load <object> tags with an invalid url.
28498        Fixes LayoutTests/fast/dom/object-plugin-hides-properties.html
28499        which hit an assertion in the frameloader.
28500
28501        * WebCoreSupport/FrameLoaderClientQt.cpp:
28502        (WebCore::FrameLoaderClientQt::objectContentType):
28503
285042007-03-13  Lars Knoll <lars@trolltech.com>
28505
28506        Reviewed by Anders.
28507
28508        Fix some crashes in the Qt build.
28509
28510        * Api/qwebframe.cpp:
28511        (QWebFrame::markup):
28512            Check for null pointer
28513        * WebCoreSupport/FrameLoaderClientQt.cpp:
28514        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
28515            Don't use an async callback into the FrameLoader.
28516        (WebCore::FrameLoaderClientQt::createFrame):
28517
285182007-03-11  Oliver Hunt  <oliver@apple.com>
28519
28520        Reviewed by Adele.
28521
28522        Stub for EditorClientQt::respondToChangedSelection
28523
28524        * WebCoreSupport/EditorClientQt.cpp:
28525        (WebCore::EditorClientQt::respondToChangedSelection):
28526        * WebCoreSupport/EditorClientQt.h:
28527
285282007-03-07  Adele Peterson  <adele@apple.com>
28529
28530        Reviewed by Darin Adler.
28531
28532        WebKitQT part of fix for:
28533        http://bugs.webkit.org/show_bug.cgi?id=10871
28534        http://bugs.webkit.org/show_bug.cgi?id=12677
28535        <rdar://problem/4823129> REGRESSION: IME key events different in nightly
28536        <rdar://problem/4759563> REGRESSION: Return key is always sent when you confirm a clause in kotoeri
28537
28538        * WebCoreSupport/EditorClientQt.cpp:
28539        (WebCore::EditorClientQt::handleKeypress): Changed handleKeyPress to handleKeypress.
28540        (WebCore::EditorClientQt::handleInputMethodKeypress): Added.
28541        * WebCoreSupport/EditorClientQt.h:
28542
285432007-03-07  Darin Adler  <darin@apple.com>
28544
28545        * WebCoreSupport/FrameLoaderClientQt.h: Oops, forgot the header.
28546
285472007-03-07  Darin Adler  <darin@apple.com>
28548
28549        * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::userAgent):
28550        Try to fix the build by correcting the parameter here.
28551
285522007-03-02  Sam Weinig  <sam@webkit.org>
28553
28554        Reviewed by Anders.
28555
28556        Try to fix the Qt build
28557
28558        * WebCoreSupport/DragClientQt.cpp:
28559        (WebCore::DragClientQt::willPerformDragDestinationAction):
28560        (WebCore::DragClientQt::dragControllerDestroyed):
28561        (WebCore::DragClientQt::createDragImageForLink):
28562
285632007-02-26  Maciej Stachowiak  <mjs@apple.com>
28564
28565        Reviewed by Kevin McCullough.
28566
28567        - fix Qt build for earlier SVG changes.
28568
28569        * WebCoreSupport/EditCommandQt.cpp:
28570
285712007-02-24  Zack Rusin  <zrusin@trolltech.com>
28572
28573        Adjust the animation a little bit to make it more natural.
28574
28575        * QtLauncher/main.cpp:
28576        (HoverLabel::paintEvent):
28577
285782007-02-23  Zack Rusin  <zrusin@trolltech.com>
28579
28580        Adding a little bit of eye-candy to the last
28581        commit (animations on hover events)
28582
28583        * QtLauncher/main.cpp:
28584        (HoverLabel::HoverLabel):
28585        (HoverLabel::setHoverLink):
28586        (HoverLabel::sizeForFont):
28587        (HoverLabel::sizeHint):
28588        (HoverLabel::resetAnimation):
28589        (HoverLabel::paintEvent):
28590        (HoverLabel::interpolate):
28591        (SearchEdit::resizeEvent):
28592
285932007-02-23  Zack Rusin  <zrusin@trolltech.com>
28594
28595        Reviewed by Lars
28596
28597        Adding API and code for notification of when the
28598        mouse is hovering over a link and adding code to
28599        the sample app to showcase it.
28600
28601        * Api/qwebframe.cpp:
28602        (QWebFrame::mouseMoveEvent):
28603        * Api/qwebframe.h:
28604        * Api/qwebframe_p.h:
28605        (QWebFramePrivate::QWebFramePrivate):
28606        * Api/qwebpage.cpp:
28607        (QWebPage::createFrame):
28608        * Api/qwebpage.h:
28609        * QtLauncher/main.cpp:
28610        (HoverLabel::HoverLabel):
28611        (HoverLabel::setHoverLink):
28612        (HoverLabel::sizeHint):
28613        (HoverLabel::updateSize):
28614        (HoverLabel::paintEvent):
28615        (ClearButton::ClearButton):
28616        (ClearButton::paintEvent):
28617        (SearchEdit::SearchEdit):
28618        (SearchEdit::resizeEvent):
28619        (SearchEdit::moveEvent):
28620        (MainWindow::MainWindow):
28621        (MainWindow::showLinkHover):
28622        (MainWindow::resizeEvent):
28623
286242007-02-22  Zack Rusin  <zrusin@trolltech.com>
28625
28626        Reviewed by Lars
28627
28628        Fixing the default scroll offset, cleaning
28629        up private methods and making the default
28630        look not use any frames.
28631
28632        * Api/qwebframe.cpp:
28633        (QWebFramePrivate::init):
28634        (QWebFramePrivate::_q_handleKeyEvent):
28635        (QWebFrame::QWebFrame):
28636        (QWebFrame::wheelEvent):
28637        (QWebFrame::keyPressEvent):
28638        (QWebFrame::keyReleaseEvent):
28639        * Api/qwebframe.h:
28640        * Api/qwebframe_p.h:
28641
286422007-02-22  Zack Rusin  <zrusin@trolltech.com>
28643
28644        Reviewed by Lars
28645
28646        Make the qwebframe act as a proper canvas.
28647        Implement it on top of QAbstractScrollArea.
28648
28649        * Api/qwebframe.cpp:
28650        (QWebFramePrivate::init):
28651        (QWebFramePrivate::_q_adjustScrollbars):
28652        (QWebFrame::init):
28653        (QWebFrame::QWebFrame):
28654        (QWebFrame::resizeEvent):
28655        (QWebFrame::childFrames):
28656        (QWebFrame::paintEvent):
28657        (QWebFrame::mouseMoveEvent):
28658        (QWebFrame::mousePressEvent):
28659        (QWebFrame::mouseReleaseEvent):
28660        (QWebFrame::wheelEvent):
28661        (QWebFrame::keyPressEvent):
28662        (QWebFrame::keyReleaseEvent):
28663        (QWebFrame::dragEnterEvent):
28664        (QWebFrame::dragLeaveEvent):
28665        (QWebFrame::dragMoveEvent):
28666        (QWebFrame::handleKeyEvent):
28667        (QWebFrame::scrollContentsBy):
28668        * Api/qwebframe.h:
28669        * Api/qwebframe_p.h:
28670        (QWebFramePrivate::QWebFramePrivate):
28671
286722007-02-21  George Staikos  <staikos@kde.org>
28673
28674        Reviewed by Zack.
28675
28676        Add more editing support, and undo/redo.  Requires some nasty evil
28677        hacks that have to be sorted out in WebCore/editor.
28678
28679        * Api/qwebpage.cpp:
28680        (QWebPagePrivate::QWebPagePrivate):
28681        (QWebPagePrivate::~QWebPagePrivate):
28682        (QWebPage::undoStack):
28683        * Api/qwebpage.h:
28684        * Api/qwebpage_p.h:
28685        * WebCoreSupport/EditorClientQt.cpp:
28686        (WebCore::EditorClientQt::didBeginEditing):
28687        (WebCore::EditorClientQt::didEndEditing):
28688        (WebCore::EditorClientQt::isEditable):
28689        (WebCore::EditorClientQt::registerCommandForUndo):
28690        (WebCore::EditorClientQt::registerCommandForRedo):
28691        (WebCore::EditorClientQt::clearUndoRedoOperations):
28692        (WebCore::EditorClientQt::canUndo):
28693        (WebCore::EditorClientQt::canRedo):
28694        (WebCore::EditorClientQt::undo):
28695        (WebCore::EditorClientQt::redo):
28696        (WebCore::EditorClientQt::handleKeyPress):
28697        (WebCore::EditorClientQt::EditorClientQt):
28698        (WebCore::EditorClientQt::textFieldDidBeginEditing):
28699        (WebCore::EditorClientQt::textFieldDidEndEditing):
28700        (WebCore::EditorClientQt::isEditing):
28701        * WebCoreSupport/EditorClientQt.h:
28702
287032007-02-21  Zack Rusin  <zrusin@trolltech.com>
28704
28705        Fix compilation.
28706
28707        * WebCoreSupport/ContextMenuClientQt.cpp:
28708        * WebCoreSupport/ContextMenuClientQt.h:
28709
287102007-02-21  George Staikos  <staikos@kde.org>
28711
28712        Fix compile.
28713
28714        * Api/qwebpage.cpp:
28715        (QWebPage::stop):
28716
287172007-02-20  Zack Rusin  <zrusin@trolltech.com>
28718
28719        Reviewed by Lars
28720
28721        Make editing of forms work plus make sure that non-void methods
28722        always return something.
28723
28724        * WebCoreSupport/ChromeClientQt.cpp:
28725        (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
28726        (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
28727        (WebCore::ChromeClientQt::runJavaScriptConfirm):
28728        (WebCore::ChromeClientQt::runJavaScriptPrompt):
28729        (WebCore::ChromeClientQt::shouldInterruptJavaScript):
28730        * WebCoreSupport/EditorClientQt.cpp:
28731        (WebCore::EditorClientQt::shouldDeleteRange):
28732        (WebCore::EditorClientQt::shouldBeginEditing):
28733        (WebCore::EditorClientQt::shouldEndEditing):
28734        (WebCore::EditorClientQt::shouldInsertText):
28735        (WebCore::EditorClientQt::shouldChangeSelectedRange):
28736        (WebCore::EditorClientQt::shouldApplyStyle):
28737        (WebCore::EditorClientQt::shouldInsertNode):
28738        * WebCoreSupport/FrameLoaderClientQt.cpp:
28739        (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
28740        (WebCore::FrameLoaderClientQt::dispatchCreatePage):
28741
287422007-02-17  Lars Knoll <lars@trolltech.com>
28743
28744        Reviewed by Maciej.
28745
28746        Additional coding by Maciej, additional review by Oliver.
28747
28748        Add stubs for the new methods in ChormeClient and EditorClient,
28749        remove all references to FrameQt.
28750
28751        * Api/qwebframe.cpp:
28752        (QWebFrame::QWebFrame):
28753        * Api/qwebframe_p.h:
28754        * Api/qwebpage.cpp:
28755        * WebCoreSupport/ChromeClientQt.cpp:
28756        (WebCore::ChromeClientQt::shouldInterruptJavaScript):
28757        * WebCoreSupport/ChromeClientQt.h:
28758        * WebCoreSupport/EditorClientQt.cpp:
28759        (WebCore::EditorClientQt::shouldChangeSelectedRange):
28760        (WebCore::EditorClientQt::isEditable):
28761        * WebCoreSupport/EditorClientQt.h:
28762        * WebCoreSupport/FrameLoaderClientQt.cpp:
28763        (WebCore::FrameLoaderClientQt::setFrame):
28764        (WebCore::FrameLoaderClientQt::webFrame):
28765        * WebCoreSupport/FrameLoaderClientQt.h:
28766
287672007-02-18  Oliver Hunt  <oliver@apple.com>
28768
28769        Build fix -- adding DragClientQt method stubs
28770
28771        * WebCoreSupport/DragClientQt.cpp:
28772        (WebCore::DragClientQt::willPerformDragSourceAction):
28773        (WebCore::DragClientQt::startDrag):
28774        (WebCore::DragClientQt::createDragImageForLink):
28775        * WebCoreSupport/DragClientQt.h:
28776
287772007-02-15  Brady Eidson  <beidson@apple.com>
28778
28779        Reviewed by Adam
28780
28781        Moved scroll state down into the cross platform FrameLoader -
28782        Blind attempt at keeping Qt building
28783
28784        * WebCoreSupport/FrameLoaderClientQt.cpp:
28785        (WebCore::FrameLoaderClientQt::restoreViewState):
28786        (WebCore::FrameLoaderClientQt::saveViewStateToItem):
28787        * WebCoreSupport/FrameLoaderClientQt.h:
28788
287892007-02-07  Anders Carlsson  <acarlsson@apple.com>
28790
28791        Try fixing the Qt build.
28792
28793        * WebCoreSupport/ChromeClientQt.cpp:
28794        (WebCore::ChromeClientQt::shouldInterruptJavaScript):
28795        * WebCoreSupport/ChromeClientQt.h:
28796
287972007-02-02  Zack Rusin  <zrusin@trolltech.com>
28798
28799        Compilation fix: forward declare d-ptr.
28800
28801        * Api/qcookiejar.h:
28802
288032007-02-02  Zack Rusin  <zrusin@trolltech.com>
28804
28805        Reviewed by Lars
28806
28807        Make the frames white by default and get the
28808        files that WebCore can handle render inside
28809        the frames.
28810
28811        * Api/qwebframe.cpp:
28812        (QWebFrame::QWebFrame):
28813        * WebCoreSupport/FrameLoaderClientQt.cpp:
28814        (WebCore::FrameLoaderClientQt::createFrame):
28815        (WebCore::FrameLoaderClientQt::objectContentType):
28816
288172007-02-01  George Staikos  <staikos@kde.org>
28818
28819        Reviewed by Zack and Lars.
28820
28821        Add a cookie interface for the Qt build.
28822
28823        * Api/qcookiejar.cpp: Added.
28824        (QCookieJarPrivate::QCookieJarPrivate):
28825        (qHash):
28826        (QCookieJar::QCookieJar):
28827        (QCookieJar::~QCookieJar):
28828        (QCookieJar::setCookies):
28829        (QCookieJar::cookies):
28830        (QCookieJar::isEnabled):
28831        (QCookieJar::setEnabled):
28832        (gCleanupJar):
28833        (QCookieJar::setCookieJar):
28834        (QCookieJar::cookieJar):
28835        * Api/qcookiejar.h: Added.
28836
288372007-02-01  Lars Knoll <lars@trolltech.com>
28838
28839        Reviewed by Adam.
28840
28841        Fix form loading for the Qt build.
28842
28843        * WebCoreSupport/FrameLoaderClientQt.cpp:
28844        (WebCore::FrameLoaderClientQt::callPolicyFunction):
28845        (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
28846        (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
28847        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
28848        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
28849        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
28850
288512007-01-31  Zack Rusin  <zrusin@trolltech.com>
28852
28853        Expose the fact that the form has been edited
28854        in the public api.
28855
28856        * Api/qwebpage.cpp:
28857        (QWebPagePrivate::QWebPagePrivate):
28858        (QWebPage::isModified):
28859        * Api/qwebpage.h:
28860        * Api/qwebpage_p.h:
28861        * WebCoreSupport/EditorClientQt.cpp:
28862        (WebCore::EditorClientQt::respondToChangedContents):
28863        (WebCore::EditorClientQt::isEditable):
28864
288652007-01-31  Zack Rusin  <zrusin@trolltech.com>
28866
28867        Reviewed by Lars
28868
28869        Properly propagate key events.
28870
28871        * Api/qwebframe.cpp:
28872        (QWebFrame::addToJSWindowObject):
28873        (QWebFrame::innerText):
28874        (QWebFrame::renderTreeDump):
28875        * Api/qwebpage.cpp:
28876        (QWebPagePrivate::QWebPagePrivate):
28877        * Api/qwebpage.h:
28878        * WebCoreSupport/EditorClientQt.cpp:
28879        (WebCore::EditorClientQt::pageDestroyed):
28880        (WebCore::EditorClientQt::handleKeyPress):
28881        (WebCore::EditorClientQt::EditorClientQt):
28882        * WebCoreSupport/EditorClientQt.h:
28883
288842007-01-31  George Staikos  <staikos@kde.org>
28885
28886        Remove focusFrame() - misguided - and add childFrames().  Fix a crash
28887        on exit.
28888
28889        Reviewed by Zack.
28890
28891        * Api/qwebframe.cpp:
28892        (QWebFrame::resizeEvent):
28893        (QWebFrame::childFrames):
28894        * Api/qwebframe.h:
28895        * Api/qwebpage.cpp:
28896        * Api/qwebpage.h:
28897        * WebCoreSupport/FrameLoaderClientQt.cpp:
28898        (WebCore::FrameLoaderClientQt::webFrame):
28899        * WebCoreSupport/FrameLoaderClientQt.h:
28900
289012007-01-30  Zack Rusin  <zrusin@trolltech.com>
28902
28903        Improve QtLauncher to make it more useful as a testing tool.
28904
28905        * QtLauncher/main.cpp:
28906        (ClearButton::ClearButton):
28907        (ClearButton::paintEvent):
28908        (SearchEdit::SearchEdit):
28909        (SearchEdit::~SearchEdit):
28910        (SearchEdit::paintEvent):
28911        (SearchEdit::resizeEvent):
28912        (SearchEdit::moveEvent):
28913        (MainWindow::MainWindow):
28914        (MainWindow::changeLocation):
28915        (MainWindow::loadFinished):
28916
289172007-01-30  Simon Hausmann  <hausmann@kde.org>
28918
28919        Reviewed by Zack.
28920
28921        Added import/export macros needed for build with ELF visibility and
28922        for a build on Windows (in the future).
28923
28924        * Api/qwebframe.h:
28925        * Api/qwebkitglobal.h: Added.
28926        * Api/qwebpage.h:
28927        * Api/qwebpagehistory.h:
28928
289292007-01-30  Zack Rusin  <zack@kde.org>
28930
28931        Change the signature of handleKeyPress
28932        (make it compile)
28933
28934        * WebCoreSupport/EditorClientQt.cpp:
28935        (WebCore::EditorClientQt::handleKeyPress):
28936        * WebCoreSupport/EditorClientQt.h:
28937
289382007-01-29  Zack Rusin  <zack@kde.org>
28939
28940        Reviewed by Lars
28941
28942        Set the allows-scrolling property on the view.
28943
28944        * Api/qwebframe.cpp:
28945        (QWebFrame::QWebFrame):
28946
289472007-01-29  Oliver Hunt  <oliver@apple.com>
28948
28949        Reviewed by Adam.
28950
28951        Stub for new DragClient method
28952
28953        * WebCoreSupport/DragClientQt.cpp:
28954        (WebCore::DragClientQt::dragSourceActionMaskForPoint):
28955        * WebCoreSupport/DragClientQt.h:
28956
289572007-01-29  Maciej Stachowiak  <mjs@apple.com>
28958
28959        Reviewed by Mark.
28960
28961        - updated for cross-platform data loading support
28962
28963        * WebCoreSupport/FrameLoaderClientQt.cpp:
28964        (WebCore::FrameLoaderClientQt::createDocumentLoader):
28965        * WebCoreSupport/FrameLoaderClientQt.h:
28966
289672007-01-29  George Staikos  <staikos@kde.org>
28968
28969        Make window resizing work.
28970
28971        * Api/qwebpage.cpp:
28972        (QWebPage::setWindowGeometry):
28973        * Api/qwebpage.h:
28974        * WebCoreSupport/ChromeClientQt.cpp:
28975        (WebCore::ChromeClientQt::setWindowRect):
28976
289772007-01-29  George Staikos  <staikos@kde.org>
28978
28979        Make popup windows work.
28980
28981        * Api/qwebpage.cpp:
28982        (QWebPage::createWindow):
28983        * Api/qwebpage.h:
28984        * WebCoreSupport/ChromeClientQt.cpp:
28985        (WebCore::ChromeClientQt::createWindow):
28986
289872007-01-29  Lars Knoll <lars@trolltech.com>
28988
28989        Reviewed by Zack
28990
28991        Fix the way we handle native widgets (QWidget) inside
28992        WebCore. Now WebCore::Widget owns the QWidget in all
28993        cases. This is the only way to get well defined semantics
28994        for all teh native widgets we have (currently ScrollView
28995        and ScrollBar, but plugins will follow).
28996
28997        This has the side effect that one cannot rely on a defined
28998        lifetime of a QWebFrame when using the API.
28999
29000        * Api/qwebframe.cpp:
29001        (QWebFrame::~QWebFrame):
29002        * Api/qwebpage.cpp:
29003        (QWebPage::~QWebPage):
29004        * Api/qwebpage_p.h:
29005        * WebCoreSupport/FrameLoaderClientQt.cpp:
29006        (WebCore::FrameLoaderClientQt::detachedFromParent3):
29007        (WebCore::FrameLoaderClientQt::detachedFromParent4):
29008        (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
29009        * WebCoreSupport/FrameLoaderClientQt.h:
29010
290112007-01-29  George Staikos  <staikos@kde.org>
29012
29013        Reviewed by Zack.
29014
29015        Implement more functions
29016
29017        * Api/qwebpage.cpp:
29018        (QWebPage::javaScriptConsoleMessage):
29019        (QWebPage::statusTextChanged):
29020        (QWebPage::runJavaScriptAlert):
29021        * Api/qwebpage.h:
29022        * Api/qwebpagehistory.cpp:
29023        (QWebPageHistory::canGoBack):
29024        (QWebPageHistory::canGoForward):
29025        * Api/qwebpagehistory.h:
29026        * WebCoreSupport/ChromeClientQt.cpp:
29027        (WebCore::ChromeClientQt::addMessageToConsole):
29028        (WebCore::ChromeClientQt::runJavaScriptAlert):
29029        * WebCoreSupport/FrameLoaderClientQt.cpp:
29030        (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
29031
290322007-01-26  George Staikos  <staikos@kde.org>
29033
29034        Reviewed by Zack.
29035
29036        Qt implementation.
29037
29038        * Api/qwebframe.cpp:
29039        (QWebFrame::QWebFrame):
29040        (QWebFrame::title):
29041        (QWebFrame::selectedText):
29042        * Api/qwebframe.h:
29043        * Api/qwebframe_p.h:
29044        * Api/qwebpage.cpp:
29045        (QWebPage::createFrame):
29046        (QWebPage::open):
29047        (QWebPage::url):
29048        (QWebPage::title):
29049        (QWebPage::focusFrame):
29050        (QWebPage::stop):
29051        * Api/qwebpage.h:
29052        * WebCoreSupport/FrameLoaderClientQt.cpp:
29053        (WebCore::FrameLoaderClientQt::setFrame):
29054        (WebCore::FrameLoaderClientQt::detachFrameLoader):
29055        (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
29056        (WebCore::FrameLoaderClientQt::didChangeTitle):
29057        (WebCore::FrameLoaderClientQt::setTitle):
29058        * WebCoreSupport/FrameLoaderClientQt.h:
29059
290602007-01-26  Lars Knoll <lars@trolltech.com>
29061
29062        Make it compile again with Qt 4.2 and add the copyright
29063        headers where forgotten in the last submit.
29064
29065        * Api/qwebpagehistory.cpp:
29066        * Api/qwebpagehistory.h:
29067        (QExplicitlySharedDataPointer::operator*):
29068        (QExplicitlySharedDataPointer::operator->):
29069        (QExplicitlySharedDataPointer::operator T *):
29070        (QExplicitlySharedDataPointer::operator const T *):
29071        (QExplicitlySharedDataPointer::data):
29072        (QExplicitlySharedDataPointer::constData):
29073        (QExplicitlySharedDataPointer::operator==):
29074        (QExplicitlySharedDataPointer::operator!=):
29075        (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer):
29076        (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer):
29077        (QExplicitlySharedDataPointer::operator=):
29078        (QExplicitlySharedDataPointer::operator!):
29079        (::QExplicitlySharedDataPointer):
29080
290812007-01-26  Zack Rusin  <zrusin@trolltech.com>
29082
29083        Reviewed by Lars
29084
29085        Implement history support on platform Qt.
29086
29087        * Api/qwebpage.cpp:
29088        (QWebPage::history):
29089        (QWebPage::goBack):
29090        (QWebPage::goForward):
29091        (QWebPage::goToHistoryItem):
29092        * Api/qwebpage.h:
29093        * Api/qwebpagehistory.cpp: Added.
29094        (QWebHistoryItem::~QWebHistoryItem):
29095        (QWebHistoryItem::originalUrl):
29096        (QWebHistoryItem::currentUrl):
29097        (QWebHistoryItem::title):
29098        (QWebHistoryItem::lastVisited):
29099        (QWebHistoryItem::icon):
29100        (QWebHistoryItem::QWebHistoryItem):
29101        (QWebPageHistory::QWebPageHistory):
29102        (QWebPageHistory::itemAtIndex):
29103        (QWebPageHistory::~QWebPageHistory):
29104        (QWebPageHistory::items):
29105        (QWebPageHistory::backItems):
29106        (QWebPageHistory::forwardItems):
29107        (QWebPageHistory::goBack):
29108        (QWebPageHistory::goForward):
29109        (QWebPageHistory::goToItem):
29110        (QWebPageHistory::backItem):
29111        (QWebPageHistory::currentItem):
29112        (QWebPageHistory::forwardItem):
29113        * Api/qwebpagehistory.h: Added.
29114        * Api/qwebpagehistory_p.h: Added.
29115        (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
29116        (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
29117        (QWebPageHistoryPrivate::QWebPageHistoryPrivate):
29118        (QWebPageHistoryPrivate::~QWebPageHistoryPrivate):
29119
291202007-01-26  Lars Knoll <lars@trolltech.com>
29121
29122        Get rid of FrameQtClient. It's unused since we moved over
29123        to the loader.
29124
29125        * Api/qwebframe.cpp:
29126        (QWebFrame::QWebFrame):
29127
291282007-01-26  Zack Rusin  <zack@kde.org>
29129
29130        Reviewed by Lars
29131
29132        Correctly position child frames within the
29133        toplevel frame. We were placed it on the widget
29134        itself instead of the vieweport.
29135
29136        * Api/qwebframe.cpp:
29137        (QWebFrame::QWebFrame):
29138
291392007-01-26  Lars Knoll <lars@trolltech.com>
29140
29141        Reviewed by Zack
29142
29143        Make sure we resize the HTML when resizing a
29144        QWebFrame. Also ensure that the render tree
29145        is up to date before dumping it.
29146
29147        * Api/qwebframe.cpp:
29148        (QWebFrame::innerText):
29149        (QWebFrame::renderTreeDump):
29150        (QWebFrame::resizeEvent):
29151        * Api/qwebframe.h:
29152        * Api/qwebpage.cpp:
29153        (QWebPagePrivate::createMainFrame):
29154
291552007-01-26  Zack Rusin  <zack@kde.org>
29156
29157        Reviewed by Lars
29158
29159        Display pages inside a mainwindow instead
29160        of a custom qwidget.
29161
29162        * QtLauncher/main.cpp:
29163        (MainWindow::MainWindow):
29164        (main):
29165
291662007-01-25  Lars Knoll <lars@trolltech.com>
29167
29168        Reviewed by Zack
29169
29170        Emit the loadDone() signal from teh onload event callback
29171        again. This hangs on one or two test cases, but removes
29172        hundreds of failures elsewhere.
29173
29174        * WebCoreSupport/FrameLoaderClientQt.cpp:
29175        (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
29176        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
29177
291782007-01-24  Lars Knoll <lars@trolltech.com>
29179
29180        Reviewed by Zack
29181
29182        Implement some bits and pieces required by the loader.
29183        Fixes quite a few crashes and hangs in the lyout tests
29184
29185        * Api/qwebframe.h:
29186        * WebCoreSupport/FrameLoaderClientQt.cpp:
29187        (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
29188        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
29189        (WebCore::FrameLoaderClientQt::finishedLoading):
29190        (WebCore::FrameLoaderClientQt::setMainDocumentError):
29191        (WebCore::FrameLoaderClientQt::committedLoad):
29192        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
29193        (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
29194        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
29195        (WebCore::FrameLoaderClientQt::createFrame):
29196
291972007-01-24  Lars Knoll <lars@trolltech.com>
29198
29199        Fix compilation again.
29200
29201        * WebCoreSupport/EditorClientQt.cpp:
29202        (WebCore::EditorClientQt::handleKeyPress):
29203        * WebCoreSupport/EditorClientQt.h:
29204
292052007-01-23  Lars Knoll <lars@trolltech.com>
29206
29207        Reviewed by Zack
29208
29209        Fix refcounting of FrameViews (they get created with a
29210        refcount of 1) and add a few safety checks to the
29211        FrameLoaderClientQt.
29212
29213        * Api/qwebframe.cpp:
29214        (QWebFrame::QWebFrame):
29215        (QWebFrame::~QWebFrame):
29216        * WebCoreSupport/FrameLoaderClientQt.cpp:
29217        (WebCore::FrameLoaderClientQt::detachedFromParent3):
29218        (WebCore::FrameLoaderClientQt::detachedFromParent4):
29219        (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
29220        (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
29221        (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
29222        (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
29223        (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
29224        (WebCore::FrameLoaderClientQt::windowObjectCleared):
29225
292262007-01-23  Zack Rusin  <zack@kde.org>
29227
29228        Adjust the DragClientQt to latest changes.
29229
29230        * Api/qwebpage.cpp:
29231        (QWebPagePrivate::QWebPagePrivate):
29232        * WebCoreSupport/DragClientQt.cpp:
29233        (WebCore::DragClientQt::dragControllerDestroyed):
29234        * WebCoreSupport/DragClientQt.h:
29235
292362007-01-23  Zack Rusin  <zack@kde.org>
29237
29238        Fix the Qt build
29239
29240        * WebCoreSupport/DragClientQt.cpp:
29241        (WebCore::DragClientQt::willPerformDragDestinationAction):
29242        * WebCoreSupport/DragClientQt.h:
29243
292442007-01-23  Lars Knoll <lars@trolltech.com>
29245
29246        Reviewed by Maciej
29247
29248        Add support for Frames to the Qt build and fix some issues
29249        in the API classes.
29250
29251        * Api/qwebframe.cpp:
29252        (QWebFrame::QWebFrame):
29253        (QWebFrame::~QWebFrame):
29254        * Api/qwebframe.h:
29255        * Api/qwebframe_p.h:
29256        * Api/qwebpage.cpp:
29257        (QWebPagePrivate::QWebPagePrivate):
29258        (QWebPagePrivate::createMainFrame):
29259        (QWebPage::createFrame):
29260        * Api/qwebpage.h:
29261        * WebCoreSupport/FrameLoaderClientQt.cpp:
29262        (WebCore::FrameLoaderClientQt::detachedFromParent3):
29263        (WebCore::FrameLoaderClientQt::detachedFromParent4):
29264        (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
29265        (WebCore::FrameLoaderClientQt::windowObjectCleared):
29266        (WebCore::FrameLoaderClientQt::createFrame):
29267        (WebCore::FrameLoaderClientQt::objectContentType):
29268        (WebCore::FrameLoaderClientQt::createPlugin):
29269        (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
29270        (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
29271        (WebCore::FrameLoaderClientQt::overrideMediaType):
29272        * WebCoreSupport/FrameLoaderClientQt.h:
29273
292742007-01-23  Oliver Hunt  <oliver@apple.com>
29275
29276        Reviewed by Adam.
29277
29278        Qt build stubs for Drop logic
29279
29280        * WebCoreSupport/DragClientQt.cpp: Added.
29281        (WebCore::DragClientQt::actionMaskForDrag):
29282        (WebCore::DragClientQt::willPerformDragDestinationAction):
29283        * WebCoreSupport/DragClientQt.h: Added.
29284        * WebKitPart/WebKitPart.cpp:
29285        (WebKitPart::initView):
29286
292872007-01-19  John Sullivan  <sullivan@apple.com>
29288
29289        Added stubs for new callbacks, to try to avoid breaking the Qt port.
29290
29291        * WebCoreSupport/FrameLoaderClientQt.cpp:
29292        (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
29293        * WebCoreSupport/FrameLoaderClientQt.h:
29294
292952007-01-19  Anders Carlsson  <acarlsson@apple.com>
29296
29297        Try fixing the QT build.
29298
29299        * WebCoreSupport/ChromeClientQt.cpp:
29300        (WebCore::ChromeClientQt::runJavaScriptAlert):
29301        (WebCore::ChromeClientQt::runJavaScriptConfirm):
29302        (WebCore::ChromeClientQt::runJavaScriptPrompt):
29303        (WebCore::ChromeClientQt::setStatusbarText):
29304        * WebCoreSupport/ChromeClientQt.h:
29305
293062007-01-18  Zack Rusin  <zack@kde.org>
29307
29308        Reviewed by Lars.
29309
29310        Implementing a little bit of load progress tracking in the Qt port.
29311
29312        * Api/qwebframe.cpp:
29313        (QWebFrame::QWebFrame):
29314        (QWebFrame::page):
29315        * Api/qwebframe.h:
29316        * Api/qwebframe_p.h:
29317        (QWebFramePrivate::QWebFramePrivate):
29318        * Api/qwebpage.h:
29319        * QtLauncher/main.cpp:
29320        (main):
29321        * WebCoreSupport/FrameLoaderClientQt.cpp:
29322        (WebCore::FrameLoaderClientQt::setFrame):
29323        (WebCore::FrameLoaderClientQt::detachFrameLoader):
29324        (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
29325        (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
29326        (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
29327        * WebCoreSupport/FrameLoaderClientQt.h:
29328
293292007-01-17  Alice Liu  <alice.liu@apple.com>
29330
29331        Added these stubs to keep the Qt build from failing.
29332
29333        * WebCoreSupport/EditorClientQt.cpp:
29334        (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard):
29335        * WebCoreSupport/EditorClientQt.h:
29336
293372007-01-17  Lars Knoll <lars@trolltech.com>
29338
29339        Reviewed by Zack
29340
29341        Remove the inheritance from Shared<XxxClient> in the
29342        client classes.
29343
29344        Answer asynchronously to most of the Policy checking methods
29345        in FrameLoaderClientQt to avoid some crashes in the loader.
29346
29347        * WebCoreSupport/ChromeClientQt.cpp:
29348        * WebCoreSupport/ChromeClientQt.h:
29349        * WebCoreSupport/ContextMenuClientQt.cpp:
29350        * WebCoreSupport/ContextMenuClientQt.h:
29351        * WebCoreSupport/EditorClientQt.cpp:
29352        * WebCoreSupport/EditorClientQt.h:
29353        * WebCoreSupport/FrameLoaderClientQt.cpp:
29354        (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
29355        (WebCore::FrameLoaderClientQt::callPolicyFunction):
29356        (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
29357        (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
29358        (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
29359        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
29360        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
29361        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
29362        * WebCoreSupport/FrameLoaderClientQt.h:
29363
293642007-01-17  Lars Knoll <lars@trolltech.com>
29365
29366        Reviewed by Zack
29367
29368        change all notImplemented() macros to use qDebug
29369        instead of fprintf(stder, ...)
29370
29371        * WebCoreSupport/ChromeClientQt.cpp:
29372        * WebCoreSupport/ContextMenuClientQt.cpp:
29373        * WebCoreSupport/EditorClientQt.cpp:
29374        * WebCoreSupport/FrameLoaderClientQt.cpp:
29375
293762007-01-16  Alice Liu  <alice.liu@apple.com>
29377
29378        Added these stubs to keep the Qt build from failing.
29379
29380        * WebCoreSupport/EditorClientQt.cpp:
29381        (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
29382        * WebCoreSupport/EditorClientQt.h:
29383
293842007-01-16  Lars Knoll <lars@trolltech.com>
29385
29386        Reviewed by Zack
29387
29388        Added the start of a public API to the Qt build
29389        of WebKit. Currently we have QWebPage and QWebFrame
29390        with a few small methods.
29391
29392        Converted the QtLauncher to use the new public API.
29393
29394        * Api/qwebframe.cpp: Added.
29395        (QWebFrame::QWebFrame):
29396        (QWebFrame::~QWebFrame):
29397        (QWebFrame::addToJSWindowObject):
29398        (QWebFrame::markup):
29399        (QWebFrame::innerText):
29400        (QWebFrame::renderTreeDump):
29401        * Api/qwebframe.h: Added.
29402        * Api/qwebframe_p.h: Added.
29403        (QWebFramePrivate::QWebFramePrivate):
29404        * Api/qwebpage.cpp: Added.
29405        (QWebPagePrivate::QWebPagePrivate):
29406        (QWebPagePrivate::~QWebPagePrivate):
29407        (QWebPagePrivate::createMainFrame):
29408        (QWebPage::QWebPage):
29409        (QWebPage::~QWebPage):
29410        (QWebPage::createFrame):
29411        (QWebPage::open):
29412        (QWebPage::mainFrame):
29413        (QWebPage::sizeHint):
29414        * Api/qwebpage.h: Added.
29415        * Api/qwebpage_p.h: Added.
29416        * QtLauncher/main.cpp:
29417        (main):
29418        * WebCoreSupport/ChromeClientQt.cpp:
29419        (WebCore::ChromeClientQt::ChromeClientQt):
29420        (WebCore::ChromeClientQt::setWindowRect):
29421        (WebCore::ChromeClientQt::windowRect):
29422        (WebCore::ChromeClientQt::pageRect):
29423        (WebCore::ChromeClientQt::focus):
29424        (WebCore::ChromeClientQt::unfocus):
29425        (WebCore::ChromeClientQt::canTakeFocus):
29426        (WebCore::ChromeClientQt::takeFocus):
29427        (WebCore::ChromeClientQt::createWindow):
29428        (WebCore::ChromeClientQt::createModalDialog):
29429        (WebCore::ChromeClientQt::show):
29430        (WebCore::ChromeClientQt::addMessageToConsole):
29431        (WebCore::ChromeClientQt::chromeDestroyed):
29432        (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
29433        (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
29434        (WebCore::ChromeClientQt::closeWindowSoon):
29435        * WebCoreSupport/ChromeClientQt.h:
29436        * WebCoreSupport/FrameLoaderClientQt.cpp:
29437        (WebCore::FrameLoaderClientQt::setFrame):
29438        (WebCore::FrameLoaderClientQt::detachFrameLoader):
29439        (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
29440        (WebCore::FrameLoaderClientQt::partClearedInBegin):
29441        * WebCoreSupport/FrameLoaderClientQt.h:
29442
294432007-01-15  Anders Carlsson  <acarlsson@apple.com>
29444
29445        Fix build.
29446
29447        * WebCoreSupport/FrameLoaderClientQt.cpp:
29448        (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
29449        (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
29450        (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
29451        * WebCoreSupport/FrameLoaderClientQt.h:
29452
294532007-01-13  Lars Knoll <lars@trolltech.com>
29454
29455        Compile again after yesterdays changes.
29456
29457        * WebCoreSupport/FrameLoaderClientQt.cpp:
29458        (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
29459        (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
29460        (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
29461        (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
29462        (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
29463        (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
29464        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
29465        (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
29466        (WebCore::FrameLoaderClientQt::incrementProgress):
29467        (WebCore::FrameLoaderClientQt::completeProgress):
29468        * WebCoreSupport/FrameLoaderClientQt.h:
29469
294702007-01-11  Brady Eidson  <beidson@apple.com>
29471
29472        Keep the fancy new FrameLoaderClientQt building with a small api change in WebCore
29473        Yay for the loader on QT!
29474
29475        * WebCoreSupport/FrameLoaderClientQt.cpp:
29476        (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
29477        (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
29478        * WebCoreSupport/FrameLoaderClientQt.h:
29479
294802007-01-11  Lars Knoll <lars@trolltech.com>
29481
29482        Reviewed by Darin
29483
29484        Start using the loader in the Qt port.
29485
29486        * QtLauncher/main.cpp:
29487        (main):
29488        * WebCoreSupport/FrameLoaderClientQt.cpp:
29489        (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
29490        (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
29491        (WebCore::FrameLoaderClientQt::setFrame):
29492        (WebCore::FrameLoaderClientQt::detachFrameLoader):
29493        (WebCore::FrameLoaderClientQt::makeDocumentView):
29494        (WebCore::FrameLoaderClientQt::makeRepresentation):
29495        (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
29496        (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
29497        (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
29498        (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
29499        (WebCore::FrameLoaderClientQt::progressStarted):
29500        (WebCore::FrameLoaderClientQt::progressCompleted):
29501        (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
29502        (WebCore::FrameLoaderClientQt::clearArchivedResources):
29503        (WebCore::FrameLoaderClientQt::canShowMIMEType):
29504        (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
29505        (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
29506        (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
29507        (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
29508        (WebCore::FrameLoaderClientQt::canHandleRequest):
29509        (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
29510        (WebCore::FrameLoaderClientQt::canCachePage):
29511        (WebCore::FrameLoaderClientQt::committedLoad):
29512        (WebCore::FrameLoaderClientQt::cancelledError):
29513        (WebCore::FrameLoaderClientQt::cannotShowURLError):
29514        (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
29515        (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
29516        (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
29517        (WebCore::FrameLoaderClientQt::shouldFallBack):
29518        (WebCore::FrameLoaderClientQt::createDocumentLoader):
29519        (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
29520        (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
29521        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
29522        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
29523        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
29524        (WebCore::FrameLoaderClientQt::willUseArchive):
29525        * WebCoreSupport/FrameLoaderClientQt.h:
29526
295272007-01-11  George Staikos  <staikos@kde.org>
29528
29529        Fix Qt Build.
29530
29531        * WebCoreSupport/ContextMenuClientQt.cpp:
29532        (WebCore::ContextMenuClientQt::searchWithGoogle):
29533        * WebCoreSupport/ContextMenuClientQt.h:
29534
295352007-01-06  George Staikos  <staikos@kde.org>
29536
29537        Reviewed by Brady.
29538
29539        Make it link.
29540
29541        * WebCoreSupport/FrameLoaderClientQt.cpp:
29542        (WebCore::FrameLoaderClientQt::setMainDocumentError):
29543        (WebCore::FrameLoaderClientQt::committedLoad):
29544        (WebCore::FrameLoaderClientQt::cancelledError):
29545        (WebCore::FrameLoaderClientQt::cannotShowURLError):
29546        (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
29547        (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
29548        (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
29549        (WebCore::FrameLoaderClientQt::shouldFallBack):
29550        (WebCore::FrameLoaderClientQt::createDocumentLoader):
29551        (WebCore::FrameLoaderClientQt::download):
29552        (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
29553        (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
29554        (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
29555        (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
29556        (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
29557        (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
29558        (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
29559        (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
29560        (WebCore::FrameLoaderClientQt::dispatchCreatePage):
29561        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
29562        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
29563        (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
29564        (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
29565        (WebCore::FrameLoaderClientQt::incrementProgress):
29566        (WebCore::FrameLoaderClientQt::completeProgress):
29567        (WebCore::FrameLoaderClientQt::startDownload):
29568        (WebCore::FrameLoaderClientQt::willUseArchive):
29569        * WebCoreSupport/FrameLoaderClientQt.h:
29570
295712007-01-05  Lars Knoll <lars@trolltech.com>
29572
29573        Make the Qt build compile again
29574
29575        * WebCoreSupport/ChromeClientQt.cpp:
29576        (WebCore::ChromeClientQt::canTakeFocus):
29577        (WebCore::ChromeClientQt::takeFocus):
29578        * WebCoreSupport/ChromeClientQt.h:
29579        * WebCoreSupport/ContextMenuClientQt.cpp:
29580        (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
29581        * WebCoreSupport/ContextMenuClientQt.h:
29582
295832007-01-03  Lars Knoll <lars@trolltech.com>
29584
29585        Fix the Qt build
29586
29587        * WebCoreSupport/FrameLoaderClientQt.cpp:
29588        (WebCore::FrameLoaderClientQt::setDocumentViewFromPageCache):
29589        (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
29590        (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload):
29591        (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
29592        (WebCore::FrameLoaderClientQt::saveScrollPositionAndViewStateToItem):
29593        (WebCore::FrameLoaderClientQt::saveDocumentViewToPageCache):
29594        (WebCore::FrameLoaderClientQt::canCachePage):
29595        * WebCoreSupport/FrameLoaderClientQt.h:
29596
295972006-12-29  George Staikos  <staikos@kde.org>
29598
29599        Add missing notimplemented.
29600
29601        * WebCoreSupport/FrameLoaderClientQt.cpp:
29602        (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
29603        (WebCore::FrameLoaderClientQt::canHandleRequest):
29604        (WebCore::FrameLoaderClientQt::partClearedInBegin):
29605
296062006-12-21  Lars Knoll <lars@trolltech.com>
29607
29608        Reviewed by Zack
29609
29610        * WebCoreSupport/FrameLoaderClientQt.cpp:
29611        (WebCore::FrameLoaderClientQt::hasWebView):
29612        (WebCore::FrameLoaderClientQt::hasFrameView):
29613        (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
29614        (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
29615        (WebCore::FrameLoaderClientQt::setTitle):
29616        (WebCore::FrameLoaderClientQt::partClearedInBegin):
29617        * WebCoreSupport/FrameLoaderClientQt.h:
29618                 Remove some runtimw warnings
29619                 Add partClearedInBegin forwarding call, so
29620                 I can catch this in the layout tests.
29621
296222006-12-19  Lars Knoll <lars@trolltech.com>
29623
29624        Reviewed by Rob.
29625
29626        * WebCoreSupport/ChromeClientQt.cpp:
29627        (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
29628        (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
29629        (WebCore::ChromeClientQt::closeWindowSoon):
29630        * WebCoreSupport/ChromeClientQt.h:
29631                Make it compile.
29632
296332006-12-16  Zack Rusin  <zack@kde.org>
29634
29635        Adjust the client to the most recent interface.
29636
29637        * WebCoreSupport/ContextMenuClientQt.cpp:
29638        (WebCore::ContextMenuClientQt::contextMenuDestroyed):
29639        (WebCore::ContextMenuClientQt::addCustomContextMenuItems):
29640        (WebCore::ContextMenuClientQt::contextMenuItemSelected):
29641        (WebCore::ContextMenuClientQt::downloadURL):
29642        (WebCore::ContextMenuClientQt::copyImageToClipboard):
29643        (WebCore::ContextMenuClientQt::lookUpInDictionary):
29644        * WebCoreSupport/ContextMenuClientQt.h:
29645
296462006-12-14  Simon Hausmann  <hausmann@kde.org>
29647
29648        Reviewed by Zack.
29649
29650        * QtLauncher/QtLauncher.pro: Link this little test program
29651        with rpath, for convenience. (This is never going to get installed
29652        anyway)
29653
296542006-12-12  George Staikos  <staikos@kde.org>
29655
29656        Reviewed by Alexey.
29657
29658        Fix the Qt build again.
29659
29660        * WebCoreSupport/ContextMenuClientQt.cpp:
29661        (WebCore::ContextMenuClientQt::speak):
29662        (WebCore::ContextMenuClientQt::stopSpeaking):
29663        * WebCoreSupport/ContextMenuClientQt.h:
29664        * WebCoreSupport/EditorClientQt.cpp:
29665        (WebCore::EditorClientQt::toggleContinuousSpellChecking):
29666        (WebCore::EditorClientQt::toggleGrammarChecking):
29667        * WebCoreSupport/EditorClientQt.h:
29668
296692006-12-10  George Staikos  <staikos@kde.org>
29670
29671        Reviewed by Zack.
29672
29673        Add a default user agent for now.
29674
29675        * WebCoreSupport/FrameLoaderClientQt.cpp:
29676        (WebCore::FrameLoaderClientQt::userAgent):
29677
296782006-12-10  Lars Knoll <lars@trolltech.com>
29679
29680        Reviewed by Zack
29681
29682        Comment out a notImplemented() warning
29683
29684        * WebCoreSupport/EditorClientQt.cpp:
29685        (WebCore::EditorClientQt::clearUndoRedoOperations):
29686
296872006-12-10  Zack Rusin  <zack@kde.org>
29688
29689        Print out the method name if it's unimplemented.
29690
29691        * WebCoreSupport/FrameLoaderClientQt.cpp:
29692
296932006-12-10  Zack Rusin  <zack@kde.org>
29694
29695        Moving the clients from platform to their final location.
29696
29697        * WebCoreSupport/FrameLoaderClientQt.cpp: Added.
29698        * WebCoreSupport/FrameLoaderClientQt.h: Added.
29699        * WebCoreSupport/ChromeClientQt.cpp: Added.
29700        * WebCoreSupport/ChromeClientQt.h: Added.
29701        * WebCoreSupport/ContextMenuClientQt.cpp: Added.
29702        * WebCoreSupport/ContextMenuClientQt.h: Added.
29703        * WebCoreSupport/EditorClientQt.cpp: Added.
29704        * WebCoreSupport/EditorClientQt.h: Added.
29705
297062006-12-10  Zack Rusin  <zack@kde.org>
29707
29708        Adjusting to the changes in platform/qt.
29709
29710        * QtLauncher/main.cpp:
29711        (main):
29712
297132006-12-09  Lars Knoll <lars@trolltech.com>
29714
29715        Reviewed by Zack
29716
29717        Make it possible to build WebKit with qmake.
29718
29719        * QtLauncher/QtLauncher.pro: Added.
29720        * QtLauncher/main.cpp:
29721
297222006-12-08  Zack Rusin  <zack@kde.org>
29723
29724        Reviewed by Maciej.
29725
29726        Fix the build after the recent changes.
29727
29728        * QtLauncher/main.cpp:
29729        (main):
29730        * WebKitPart/WebKitPart.cpp:
29731        (WebKitPart::initView):
29732
297332006-11-19  Simon Hausmann  <hausmann@kde.org>
29734
29735        Reviewed by Zack.
29736
29737        http://bugs.webkit.org/show_bug.cgi?id=11649
29738        Fix Qt-only build
29739
29740        * QtLauncher/CMakeLists.txt:
29741
297422006-11-17  Zack Rusin  <zack@kde.org>
29743
29744        Reviewed by Mitz. Landed by Niko.
29745
29746        Adjusting to the new api.
29747
29748        * QtLauncher/main.cpp:
29749        (main):
29750        * WebKitPart/WebKitPart.cpp:
29751        (WebKitPart::initView):
29752
297532006-11-10  Zack Rusin  <zack@kde.org>
29754
29755        Reviewed and landed by Anders.
29756
29757        Adjusting to the recent loader changes, making it compile
29758        and work.
29759
29760        * QtLauncher/main.cpp:
29761        (main):
29762        * WebKitPart/WebKitPart.cpp:
29763        (WebKitPart::closeUrl):
29764        (WebKitPart::initView):
29765
297662006-11-03  Zack Rusin  <zack@kde.org>
29767
29768        Reviewed by Maciej.
29769
29770        Fixing compile on both Qt and KDE platforms.
29771
29772        * QtLauncher/main.cpp:
29773        (main): url has already been defined
29774        * WebKitPart/WebKitPartBrowserExtension.cpp: removing
29775        duplicate implementation of this class
29776
297772006-10-31  Simon Hausmann  <hausmann@kde.org>
29778
29779        Reviewed by Maciej, landed by Anders.
29780
29781        * QtLauncher/CMakeLists.txt: Make linkage against kde libraries
29782          optional
29783        * QtLauncher/main.cpp: Make it compile without KDE.
29784        (main):
29785
297862006-11-02  Simon Hausmann  <hausmann@kde.org>
29787
29788        Reviewed by Maciej, landed by Anders.
29789
29790        * QtLauncher/main.cpp:
29791        (main): Declare our frame as main frame to the Page object.
29792        Fixes crashes on various web sites
29793
297942006-10-31  Zack Rusin  <zack@kde.org>
29795
29796        Reviewed by Mitz.
29797
29798        Fix the Qt build after last nights changes.
29799
29800        * QtLauncher/CMakeLists.txt:
29801        * WebKitPart/CMakeLists.txt:
29802
298032006-10-26  Nikolas Zimmermann  <zimmermann@kde.org>
29804
29805        Reviewed by Darin Adler.
29806
29807        Fix Qt/Linux build.
29808
29809        * QtLauncher/main.cpp:
29810        (main):
29811        * WebKitPart/WebKitPart.cpp:
29812        (WebKitPart::openUrl):
29813
298142006-10-24  Nikolas Zimmermann  <zimmermann@kde.org>
29815
29816        Reviewed by Maciej.
29817
29818        Fix Qt/Linux build.
29819
29820        - Remove BrowserExtensionQt, move it's methods to Page/FrameQt.
29821        - Fix CMakeLists.txt to include platform/network.
29822
29823        * QtLauncher/CMakeLists.txt:
29824        * WebKitPart/CMakeLists.txt:
29825
298262006-10-24  Simon Hausmann  <hausmann@kde.org>
29827
29828        Reviewed by Darin Adler.
29829
29830        * QtLauncher/CMakeLists.txt, WebKitPart/CMakeLists.txt: Added project name to
29831          kde4_automoc macro, as required by the latest KDE4 cmake module.
29832
298332006-10-20  Nikolas Zimmermann  <zimmermann@kde.org>
29834
29835        Reviewed and landed by Anders.
29836
29837        Adapt to FrameQtClient changes, and provide some kind of status
29838        information to the KPart wheter we're loading or not (started/completed signaling).
29839
29840        * WebKitPart/CMakeLists.txt:
29841        * WebKitPart/WebKitPart.cpp:
29842        (WebKitPart::WebKitPart):
29843        (WebKitPart::~WebKitPart):
29844        (WebKitPart::openUrl):
29845        (WebKitPart::initView):
29846        * WebKitPart/WebKitPart.h:
29847        * WebKitPart/WebKitPartBrowserExtension.cpp: Added.
29848        (WebKitPartBrowserExtension::WebKitPartBrowserExtension):
29849        (WebKitPartBrowserExtension::~WebKitPartBrowserExtension):
29850        * WebKitPart/WebKitPartBrowserExtension.h: Added.
29851        * WebKitPart/WebKitPartClient.cpp:
29852        (WebKitPartClient::WebKitPartClient):
29853        (WebKitPartClient::loadFinished):
29854        * WebKitPart/WebKitPartClient.h:
29855        * WebKitPart/WebKitPartInterface.h:
29856
298572006-10-02  Nikolas Zimmermann  <zimmermann@kde.org>
29858
29859        Reviewed by eseidel.  Landed by eseidel.
29860
29861        Fix last remaining issue Qt/Linux build with gcc3.
29862
29863        * WebKitPart/WebKitPart.h: Remove Q_PROPERTY usage, which is not needed and made problems.
29864
298652006-09-10  Nikolas Zimmermann  <zimmermann@kde.org>
29866
29867        Reviewed and landed by ap.
29868
29869        Fix QtLauncher - it is supposed to create a FrameView on its own nowadays.
29870
29871        * QtLauncher/main.cpp:
29872        (main):
29873
298742006-09-04  Nikolas Zimmermann  <zimmermann@kde.org>
29875
29876        Reviewed by Tim H.
29877
29878        Fixes last part of: http://bugs.webkit.org/show_bug.cgi?id=10644
29879        Move QtLauncher down to WebKitQt.
29880
29881        * QtLauncher/CMakeLists.txt: Added.
29882        * QtLauncher/main.cpp: Added.
29883        (main):
29884
298852006-09-04  Nikolas Zimmermann  <zimmermann@kde.org>
29886
29887        Reviewed by Darin Adler. Final polish by Sam.
29888
29889        Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10644
29890        Add WebKitPart, an embeddable KPart for the KDE platform.
29891
29892        * WebKitPart/CMakeLists.txt: Added.
29893        * WebKitPart/WebKitFactory.cpp: Added.
29894        (WebKitFactory::WebKitFactory):
29895        (WebKitFactory::~WebKitFactory):
29896        (WebKitFactory::createPartObject):
29897        (WebKitFactory::instance):
29898        (WebKitFactory::ref):
29899        (WebKitFactory::deref):
29900        (init_libWebKitPart):
29901        * WebKitPart/WebKitFactory.h: Added.
29902        * WebKitPart/WebKitPart.cpp: Added.
29903        (WebKitPart::WebKitPart):
29904        (WebKitPart::~WebKitPart):
29905        (WebKitPart::openFile):
29906        (WebKitPart::openUrl):
29907        (WebKitPart::closeUrl):
29908        (WebKitPart::parentPart):
29909        (WebKitPart::frame):
29910        (WebKitPart::initView):
29911        * WebKitPart/WebKitPart.desktop: Added.
29912        * WebKitPart/WebKitPart.h: Added.
29913        (WebKitPart::):
29914        * WebKitPart/WebKitPart.rc: Added.
29915        * WebKitPart/WebKitPartBrowser.rc: Added.
29916        * WebKitPart/WebKitPartClient.cpp: Added.
29917        (WebKitPartClient::WebKitPartClient):
29918        (WebKitPartClient::~WebKitPartClient):
29919        * WebKitPart/WebKitPartClient.h: Added.
29920        * WebKitPart/WebKitPartInterface.cpp: Added.
29921        (WebKitPartInterface::WebKitPartInterface):
29922        (WebKitPartInterface::~WebKitPartInterface):
29923        (WebKitPartInterface::url):
29924        (WebKitPartInterface::closeURL):
29925        * WebKitPart/WebKitPartInterface.h: Added.
29926        * WebKitPart/org.kde.WebKitPart.xml: Added.
29927
29928