Lars Knoll <lars@trolltech.com>
[WebKit-https.git] / WebKit / qt / ChangeLog
1 2008-01-22  Lars Knoll  <lars@trolltech.com>
2
3         Reviewed by Simon.
4
5         setup a family for cursive and fantasy fonts as well.
6         
7
8         * Api/qwebsettings.cpp:
9         (QWebSettings::QWebSettings):
10
11 2008-01-22  Benjamin Meyer  <bmeyer@trolltech.com>
12
13         Reviewed by Simon.
14
15         Implement ChromeClientQt::setToolTip
16         Implement ChromeClientQt::mouseDidMoveOverElement
17         
18
19         * Api/qwebpage.cpp:
20         * Api/qwebpage_p.h:
21         * WebCoreSupport/ChromeClientQt.cpp:
22         (WebCore::ChromeClientQt::ChromeClientQt):
23         (WebCore::ChromeClientQt::focus):
24         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
25         (WebCore::ChromeClientQt::setToolTip):
26         (WebCore::ChromeClientQt::print):
27         * WebCoreSupport/ChromeClientQt.h:
28
29 2008-01-21  Darin Adler  <darin@apple.com>
30
31         Reviewed by John Sullivan.
32
33         - updated for changes to ChromeClient database functions
34
35         * WebCoreSupport/ChromeClientQt.cpp:
36         (WebCore::ChromeClientQt::exceededDatabaseQuota):
37         * WebCoreSupport/ChromeClientQt.h:
38
39 2008-01-21  Benjamin Meyer  <bmeyer@trolltech.com>
40
41         Reviewed by Simon.
42
43         Change QWebHistoryInterface::addHistoryEntry() from const to non-const
44         
45
46         * Api/qwebhistoryinterface.h:
47
48 2008-01-21  Adam Treat  <treat@kde.org>
49
50         Reviewed by Simon.
51
52         * Don't leak the d-pointer in QWebSettings.
53         
54
55         * Api/qwebsettings.cpp:
56         (QWebSettings::~QWebSettings):
57
58 2008-01-21  Simon Hausmann  <hausmann@webkit.org>
59
60         Reviewed by Holger.
61
62         Update the WebKit version number from WebKit/win/WebKit.vcproj/VERSION.
63         
64         This has the fortunate side-effect that gmail sends us sensible HTML/JS again :)
65         
66
67         * Api/qwebpage.cpp:
68
69 2008-01-21  Simon Hausmann  <hausmann@webkit.org>
70
71         Reviewed by Holger.
72
73         Fix focus chain handling and cycling through focusable objects (links) using tab/backtab.
74         
75         * Fix GraphicsContext::drawFocusRing to also draw single focus rects.
76         * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events
77         and make the return value depend on whether we successfully determined a focusable
78         node or not.
79         * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly
80         if we could not handle the focus chain ourselves.
81         * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus.
82         * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only
83         used to control the situation of stepping out of the focus chain inside the page.
84         * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain.
85         The layout tests expect this to be disabled but for the user it seems sensible to have it
86         on by default, hence the default in qwebsettings.cpp
87         
88
89         * Api/qwebpage.cpp:
90         (QWebPage::focusNextPrevChild):
91         * Api/qwebsettings.cpp:
92         (QWebSettings::QWebSettings):
93         * Api/qwebsettings.h:
94         * Api/qwebview.cpp:
95         (QWebView::QWebView):
96         (QWebView::focusNextPrevChild):
97         * WebCoreSupport/ChromeClientQt.cpp:
98         (WebCore::ChromeClientQt::canTakeFocus):
99         (WebCore::ChromeClientQt::takeFocus):
100
101 2008-01-18  Simon Hausmann  <hausmann@webkit.org>
102
103         Reviewed by Holger.
104
105         Coding style fixes and added a comment about the include order.
106
107         * WebKit_pch.h:
108
109 2008-01-18  Marius Storm-Olsen  <marius@trolltech.com>
110
111         Reviewed by Simon Hausmann <hausmann@webkit.org>.
112
113         Add use of precompiled header, when building inside Qt.
114         
115         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.
116         
117
118         * WebKit_pch.h: Added.
119
120 2008-01-18  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
121
122         Reviewed by Simon.
123
124         * Ask the WebCore::IconDatabase only if our URL is not empty. Otherwise
125         we will see a crash in a HashSet.
126         * It is crashing there because the StringImpl of an empty String is 0.
127         * We avoid this crash by checking for isEmpty() in WebKit as there is no
128         use to ask the iconDatabase for an empty string. We will fallback to the
129         defaultIcon.
130         
131
132         * Api/qwebframe.cpp:
133         (QWebFrame::icon):
134
135 2008-01-17  Simon Hausmann  <hausmann@webkit.org>
136
137         Reviewed by Holger.
138
139         Minor documentation fixes
140         
141
142         * Api/qwebframe.cpp:
143         * Api/qwebview.cpp:
144
145 2008-01-17  Simon Hausmann  <shausman@trolltech.com>
146
147         Reviewed by Lars.
148
149         Fix form elements not focusing correctly after the qt widget lost its focus.
150         
151         When receiving a focus out event notify the focus controller. Otherwise its
152         m_focusedFrame variable remains unchanged and setFocusedFrame on a focusIn
153         event shortcuts and doesn't call setActive(true).
154         
155
156         * Api/qwebpage.cpp:
157
158 2008-01-17  Simon Hausmann  <shausman@trolltech.com>
159
160         Reviewed by Holger.
161
162         Lots of updates to the documentation.
163         
164
165         * Api/qwebframe.cpp:
166         * Api/qwebhistory.cpp:
167         * Api/qwebpage.cpp:
168         (QWebPagePrivate::dropEvent):
169         (QWebPage::history):
170         (openNewWindow):
171         (QWebPage::triggerAction):
172         (QWebPage::viewportSize):
173         (QWebPage::navigationRequested):
174         (QWebPage::action):
175         (QWebPage::event):
176         (QWebPageContext::targetFrame):
177         * Api/qwebpage.h:
178         * Api/qwebview.cpp:
179
180 2008-01-17  Simon Hausmann  <shausman@trolltech.com>
181
182         Reviewed by Lars.
183
184         Added a urlChanged signals to QWebFrame and QWebView.
185         
186
187         * Api/qwebframe.cpp:
188         * Api/qwebframe.h:
189         * Api/qwebview.cpp:
190         (QWebView::setPage):
191         * Api/qwebview.h:
192         * WebCoreSupport/FrameLoaderClientQt.cpp:
193
194 2008-01-17  Simon Hausmann  <shausman@trolltech.com>
195
196         Reviewed by Lars.
197
198         Fixed docs and sanity checks in QWebSettings::setIconDatabaseEnabled
199         
200
201         * Api/qwebsettings.cpp:
202         (QWebSettings::setIconDatabaseEnabled):
203
204 2008-01-17  Simon Hausmann  <shausman@trolltech.com>
205
206         Reviewed by Lars.
207
208         Added QWebView::createWindow() which is forwarded from QWebPage::createWindow() for convenience.
209         
210
211         * Api/qwebpage.cpp:
212         (QWebPage::createWindow):
213         * Api/qwebview.cpp:
214         (QWebView::createWindow):
215         * Api/qwebview.h:
216
217 2008-01-17  Lars Knoll  <lars@trolltech.com>
218
219         Reviewed by Lars.
220
221         add a 0 pointer check.
222
223         Fixes a crash in the demo web browser.
224
225         * WebCoreSupport/FrameLoaderClientQt.cpp:
226         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
227
228 2008-01-17  Simon Hausmann  <hausmann@webkit.org>
229
230         Reviewed by Holger.
231
232         Fix QWebFrame::title().
233         
234         For the titleChanged() signal we use the documentloader's title. For the property we have to use the same
235         instead of Document::title() as the latter is not trimmed and not suited for a window caption.
236         
237
238         * Api/qwebframe.cpp:
239         (QWebFrame::title):
240
241 2008-01-17  Simon Hausmann  <hausmann@webkit.org>
242
243         Reviewed by Maciej, Lars, Holger.
244
245         http://bugs.webkit.org/show_bug.cgi?id=16589
246
247         Add a document parameter to WebCore::cookies, setCookies and cookiesEnabled.
248
249         * Api/qwebnetworkinterface.cpp:
250         (QWebNetworkRequestPrivate::init):
251         (QWebNetworkManager::started):
252
253 2008-01-17  Warwick Allison  <warwick@trolltech.com>
254
255         Reviewed by Simon Hausmann <hausmann@webkit.org>.
256
257         Follow QWidget::keyPressEvent advice and call parents.
258         
259         Without this, Back does not work in Qtopia, for example.
260         
261
262         * Api/qwebview.cpp:
263         (QWebView::keyPressEvent):
264         (QWebView::keyReleaseEvent):
265
266 2008-01-17  Simon Hausmann  <hausmann@webkit.org>
267
268         Reviewed by Lars.
269
270         Fix compilation against Qt 4.3 after the recent KURL <> QUrl conversion fixes.
271
272         * Api/qwebnetworkinterface.cpp:
273         (QWebNetworkManager::started):
274
275 2008-01-17  Simon Hausmann  <shausman@trolltech.com>
276
277         Reviewed by Holger.
278
279         Fix compilation against Qt 4.4 without files that are specific for the Qt 4.3 build.
280         
281
282         * Api/qwebframe.cpp:
283         * Api/qwebpage.cpp:
284         * WebCoreSupport/FrameLoaderClientQt.cpp:
285
286 2008-01-17  Lincoln Ramsay  <lincoln.ramsay@trolltech.com>
287
288         Reviewed by Simon Hausmann <hausmann@webkit.org>.
289
290         Fixes compilation with QT_NO_DRAGANDDROP
291         
292
293         * Api/qwebpage.cpp:
294         (QWebPage::event):
295         * Api/qwebview.cpp:
296         (QWebView::dragEnterEvent):
297         (QWebView::dragLeaveEvent):
298         (QWebView::dragMoveEvent):
299         (QWebView::dropEvent):
300
301 2008-01-17  Simon Hausmann  <hausmann@webkit.org>
302
303         Reviewed by Lars.
304
305         Fix compilation, removed obsolete privateBrowsingEnabled() method.
306
307         * WebCoreSupport/FrameLoaderClientQt.cpp:
308
309 2008-01-16  Lars Knoll  <lars@trolltech.com>
310
311         Reviewed by Simon Hausmann <simon.hausmann@trolltech.com>.
312
313         Removed a whole bunch of notImplemented() warnings.
314         
315         I don't want to hide the real warnings in lots of things that
316         I am by now pretty certain we won't need.
317         
318
319         * WebCoreSupport/FrameLoaderClientQt.cpp:
320         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
321         (WebCore::FrameLoaderClientQt::canShowMIMEType):
322
323 2008-01-16  Simon Hausmann  <hausmann@webkit.org>
324
325         Reviewed by Holger.
326
327         Fix crash when bringing up the context menu on maps.google.com.
328         
329         If the website provides its own context menu then we don't have a ContextMenu pointer.
330         
331
332         * Api/qwebpage.cpp:
333         (QWebPagePrivate::contextMenuEvent):
334
335 2008-01-16  Simon Hausmann  <hausmann@webkit.org>
336
337         Reviewed by Holger.
338
339         Don't crash when receiving all sorts of events on a default constructed QWebView without a page.
340
341         * Api/qwebview.cpp:
342         (QWebView::mouseMoveEvent):
343         (QWebView::mousePressEvent):
344         (QWebView::mouseDoubleClickEvent):
345         (QWebView::mouseReleaseEvent):
346         (QWebView::contextMenuEvent):
347         (QWebView::wheelEvent):
348         (QWebView::keyPressEvent):
349         (QWebView::keyReleaseEvent):
350         (QWebView::focusInEvent):
351         (QWebView::focusOutEvent):
352         (QWebView::dragEnterEvent):
353         (QWebView::dragLeaveEvent):
354         (QWebView::dragMoveEvent):
355         (QWebView::dropEvent):
356         (QWebView::focusNextPrevChild):
357
358 2008-01-16  Simon Hausmann  <hausmann@webkit.org>
359
360         Reviewed by Lars.
361
362         Made the url property read-write.
363
364         * Api/qwebview.h:
365
366 2008-01-16  Simon Hausmann  <hausmann@webkit.org>
367
368         Reviewed by Lars.
369
370         Don't crash when showing a default initialized QWebView that has no page/frame yet.
371
372         * Api/qwebview.cpp:
373         (QWebView::paintEvent):
374
375 2008-01-16  Holger Freyther  <holger.freyther@trolltech.com>
376
377         Reviewed by Simon.
378
379         Change hoveringOverLink implementation to have less issues.
380         
381         * Currently we only compare a pointer. In the worst case we
382         could delete the Element we have pointed to and a new one
383         gets the same address. But even if that doesn't happen the
384         WebCore::Element is mutable and JavaScript could change the
385         URL, Title or Content. So we have to compare all these three
386         attributes.
387         * This does not seem to be a performance impact.
388         
389
390         * Api/qwebpage.cpp:
391         (QWebPagePrivate::mouseMoveEvent):
392         * Api/qwebpage_p.h:
393
394 2008-01-16  Holger Freyther  <holger.freyther@trolltech.com>
395
396         Reviewed by Simon.
397
398         * Move the hoverElement from QWebFrame to QWebPage. As it is
399         only used there.
400         
401
402         * Api/qwebframe_p.h:
403         (QWebFramePrivate::QWebFramePrivate):
404         * Api/qwebpage.cpp:
405         (QWebPagePrivate::mouseMoveEvent):
406         * Api/qwebpage_p.h:
407
408 2008-01-16  Holger Freyther  <holger.freyther@trolltech.com>
409
410         Reviewed by Simon.
411
412         EventHandler changes/fixes in QWebPage:
413         -mouse{Press,Move,Release}Event:
414         Send the event always to the mainFrame of the QWebPage.
415         
416         -contextMenuEvent, key{Press,Release}Event:
417         Send the event to the focused frame.
418         
419         This is following the Windows port and fixes a issue with the
420         Web Inspector where we were sending the events to a wrong frame.
421         
422         It is guaranteed that the mainFrame will always have an eventHandler
423         and frameView set. There is no need to check for this in QWebPage.
424         
425
426         * Api/qwebframe.cpp:
427         (QWebFramePrivate::init):
428         * Api/qwebframe_p.h:
429         (QWebFramePrivate::QWebFramePrivate):
430         * Api/qwebpage.cpp:
431         (QWebPagePrivate::updateEditorActions):
432         (QWebPagePrivate::mouseMoveEvent):
433         (QWebPagePrivate::mousePressEvent):
434         (QWebPagePrivate::mouseDoubleClickEvent):
435         (QWebPagePrivate::mouseReleaseEvent):
436         (QWebPagePrivate::contextMenuEvent):
437         (QWebPagePrivate::wheelEvent):
438         (QWebPagePrivate::keyPressEvent):
439         (QWebPagePrivate::keyReleaseEvent):
440         (QWebPagePrivate::focusInEvent):
441         * Api/qwebpage_p.h:
442
443 2008-01-16  Holger Freyther  <holger.freyther@trolltech.com>
444
445         Reviewed by Simon.
446
447         * Add core and kit functions to QWebFramePrivate to convert from
448         QWebFrame to WebCore::Frame and vice versa.
449         
450
451         * Api/qwebframe.cpp:
452         (QWebFramePrivate::core):
453         (QWebFramePrivate::kit):
454         * Api/qwebframe.h:
455         * Api/qwebframe_p.h:
456
457 2008-01-16  Lars Knoll  <lars@trolltech.com>
458
459         Reviewed by Simon.
460
461         add conversion methods from and to QUrl to KURL.
462         
463         Use them in the places I found at the moment. Fixes a bug
464         where form data was encoded twice.
465         Also fix QWebSettings to take a QUrl for the user style sheet
466         location.
467         
468
469         * Api/qwebframe.cpp:
470         (QWebFrame::load):
471         * Api/qwebpage.cpp:
472         (QWebPage::createPlugin):
473         (frameLoadRequest):
474         (QWebPage::triggerAction):
475         * Api/qwebsettings.cpp:
476         (QWebSettingsPrivate::apply):
477         * Api/qwebsettings.h:
478         * WebCoreSupport/ChromeClientQt.cpp:
479         (WebCore::ChromeClientQt::createWindow):
480         (WebCore::ChromeClientQt::show):
481
482 2008-01-16  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
483
484         Reviewed by Lars.
485
486         * Make the InspectorClientView inherit from QWebView instead of QWidget. This
487         way paintEvent, mouse{Press,Release}Event and other events get forwarded to
488         the QWebPage/WebInspector automatically.
489         
490
491         * WebCoreSupport/InspectorClientQt.cpp:
492         (WebCore::InspectorClientWebPage::createWindow):
493         (WebCore::InspectorClientView::InspectorClientView):
494
495 2008-01-10  Maciej Stachowiak  <mjs@apple.com>
496
497         Reviewed by Sam.
498
499         - remove SecurityOriginData and fold its functionality into SecurityOrigin
500
501         * WebCoreSupport/ChromeClientQt.cpp:
502         (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
503         (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
504         * WebCoreSupport/ChromeClientQt.h:
505
506 2008-01-10  Lars Knoll  <lars@trolltech.com>
507
508         Reviewed by Simon.
509
510         document QWebHistory
511         
512
513         * Api/qwebhistory.cpp:
514         (QWebHistoryItem::QWebHistoryItem):
515         (QWebHistoryItem::operator=):
516         (QWebHistoryItem::~QWebHistoryItem):
517         (QWebHistoryItem::originalUrl):
518         (QWebHistoryItem::currentUrl):
519         (QWebHistoryItem::title):
520         (QWebHistoryItem::icon):
521         (QWebHistory::canGoBack):
522         (QWebHistory::canGoForward):
523         (QWebHistory::goBack):
524         (QWebHistory::goForward):
525         (QWebHistory::goToItem):
526         * Api/qwebhistory.h:
527
528 2008-01-10  Simon Hausmann  <hausmann@webkit.org>
529
530         Reviewed by Lars.
531
532         Make the reset() functions not do anything on the default QWebSettings object.
533         
534
535         * Api/qwebsettings.cpp:
536         (QWebSettings::resetFontSize):
537         (QWebSettings::resetFontFamily):
538         (QWebSettings::clearAttribute):
539
540 2008-01-10  Lars Knoll  <lars@trolltech.com>
541
542         Reviewed by Simon.
543
544         rename QWebPageHistory to QWebHistory.
545         
546
547         * Api/qwebhistory.cpp: Added.
548         (QWebHistoryItem::QWebHistoryItem):
549         (QWebHistoryItem::operator=):
550         (QWebHistoryItem::~QWebHistoryItem):
551         (QWebHistoryItem::originalUrl):
552         (QWebHistoryItem::currentUrl):
553         (QWebHistoryItem::title):
554         (QWebHistoryItem::lastVisited):
555         (QWebHistoryItem::icon):
556         (QWebHistory::QWebHistory):
557         (QWebHistory::~QWebHistory):
558         (QWebHistory::clear):
559         (QWebHistory::items):
560         (QWebHistory::backItems):
561         (QWebHistory::forwardItems):
562         (QWebHistory::canGoBack):
563         (QWebHistory::canGoForward):
564         (QWebHistory::goBack):
565         (QWebHistory::goForward):
566         (QWebHistory::goToItem):
567         (QWebHistory::backItem):
568         (QWebHistory::currentItem):
569         (QWebHistory::forwardItem):
570         (QWebHistory::itemAtIndex):
571         * Api/qwebhistory.h: Added.
572         * Api/qwebhistory_p.h: Added.
573         (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
574         (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
575         (QWebHistoryPrivate::QWebHistoryPrivate):
576         (QWebHistoryPrivate::~QWebHistoryPrivate):
577         * Api/qwebpage.cpp:
578         (QWebPagePrivate::QWebPagePrivate):
579         * Api/qwebpage.h:
580         * Api/qwebpage_p.h:
581         * Api/qwebpagehistory.cpp: Removed.
582         * Api/qwebpagehistory.h: Removed.
583         * Api/qwebpagehistory_p.h: Removed.
584         * Api/qwebview.cpp:
585         * Api/qwebview.h:
586
587 2008-01-10  Simon Hausmann  <hausmann@webkit.org>
588
589         Reviewed by Lars.
590
591         Documentation for QWebSettings
592         
593
594         * Api/qwebsettings.cpp:
595         (QWebSettings::~QWebSettings):
596         (QWebSettings::setFontSize):
597         (QWebSettings::resetFontSize):
598         (QWebSettings::setUserStyleSheetLocation):
599         (QWebSettings::userStyleSheetLocation):
600         (QWebSettings::iconDatabaseEnabled):
601         (QWebSettings::webGraphic):
602         (QWebSettings::setFontFamily):
603         (QWebSettings::resetFontFamily):
604         (QWebSettings::setAttribute):
605
606 2008-01-10  Lars Knoll  <lars@trolltech.com>
607
608         Reviewed by Simon.
609
610         Document QWebHistoryInterface.
611         
612
613         * Api/qwebhistoryinterface.cpp:
614         (QWebHistoryInterface::defaultInterface):
615         (QWebHistoryInterface::~QWebHistoryInterface):
616
617 2008-01-10  Lars Knoll  <lars@trolltech.com>
618
619         Reviewed by Simon.
620
621         Documentation for QWebFrame.
622         
623
624         * Api/qwebframe.cpp:
625         (QWebFrame::url):
626         (QWebFrame::name):
627         (QWebFrame::page):
628         (QWebFrame::setHtml):
629         (QWebFrame::parentFrame):
630         (QWebFrame::render):
631         (QWebFrame::pos):
632         (QWebFrame::geometry):
633         * Api/qwebframe.h:
634         * Api/qwebframe_p.h:
635
636 2008-01-10  Lars Knoll  <lars@trolltech.com>
637
638         Reviewed by Simon.
639
640         fix the drawing errors that where introduced due to refactoring.
641         
642         Correctly clip to the rectangle we want to draw in ScrollView::paint().
643         
644
645         * Api/qwebframe.cpp:
646         (QWebFrame::render):
647         * Api/qwebframe.h:
648         * Api/qwebview.cpp:
649         (QWebView::paintEvent):
650         * WebCoreSupport/ChromeClientQt.cpp:
651         (WebCore::ChromeClientQt::scrollBackingStore):
652
653 2008-01-10  Simon Hausmann  <hausmann@webkit.org>
654
655         Reviewed by Lars.
656
657         Added a whole bunch of docs for QWebPage and fixed some minor doc glitches in QWebView.
658         
659
660         * Api/qwebpage.cpp:
661         (QWebPagePrivate::dropEvent):
662         (QWebPage::QWebPage):
663         (QWebPage::~QWebPage):
664         (QWebPage::mainFrame):
665         (QWebPage::currentFrame):
666         (QWebPage::history):
667         (QWebPage::setView):
668         (QWebPage::view):
669         (QWebPage::javaScriptConsoleMessage):
670         (QWebPage::javaScriptAlert):
671         (QWebPage::javaScriptConfirm):
672         (QWebPage::javaScriptPrompt):
673         (QWebPage::createWindow):
674         (QWebPage::createModalDialog):
675         (openNewWindow):
676         (QWebPage::triggerAction):
677         (QWebPage::viewportSize):
678         (QWebPage::navigationRequested):
679         (QWebPage::selectedText):
680         (QWebPage::isModified):
681         (QWebPage::focusNextPrevChild):
682         (QWebPage::settings):
683         (QWebPage::networkProxy):
684         (QWebPage::setNetworkAccessManager):
685         (QWebPage::networkAccessManager):
686         (QWebPagePrivate::_q_onLoadProgressChanged):
687         * Api/qwebview.cpp:
688
689 2008-01-07  Holger Freyther  <zecke@selfish.org>
690
691         Reviewed by Alp Toker.
692
693         * Qt and Gtk must know if a ContextMenuItem is checkable. Add a new ContextMenuItemType for checkable
694         actions.
695         * Use this information in the Gtk platform to create a GtkCheckMenuItem when needed.
696         * Update the ContextMenuController to accept CheckableActionTypes as well.
697         * Change ContextMenu.cpp to use the CheckableActionType. The information if a item is checkable
698         was extracted from ContextMenu::checkOrEnableIfNeeded.
699         * Update the Qt and Windows port.
700
701         * Api/qwebpage.cpp:
702         (QWebPagePrivate::createContextMenu):
703
704 2008-01-07  Simon Hausmann  <hausmann@webkit.org>
705
706         Build fix for the Windows build. MSVC wants to see the full
707         declaration of arguments even when just passing them through.
708
709         * Api/qwebpage.cpp:
710
711 2008-01-07  Simon Hausmann  <hausmann@webkit.org>
712
713         Reviewed by Lars.
714
715         Added the missing parameters to make it possible to do POST operations from the public API.
716         
717         This is ugly though as it also requires including qnetworkaccessmanager.h. It would be nicer if the
718         two extra arguments were in QNetworkRequest :-/
719         
720
721         * Api/qwebframe.cpp:
722         (QWebFrame::load):
723         * Api/qwebframe.h:
724         * Api/qwebview.cpp:
725         (QWebView::load):
726         * Api/qwebview.h:
727
728 2008-01-07  Simon Hausmann  <hausmann@webkit.org>
729
730         Reviewed by Lars.
731
732         Ported of the network backend of the Qt platform to Qt 4.4's new networking API.
733         
734
735         * Api/qwebframe.cpp:
736         (QWebFrame::load):
737         * Api/qwebframe.h:
738         * Api/qwebnetworkinterface.cpp:
739         * Api/qwebnetworkinterface.h:
740         * Api/qwebnetworkinterface_p.h:
741         * Api/qwebobjectplugin.cpp:
742         * Api/qwebobjectplugin.h:
743         * Api/qwebobjectplugin_p.h:
744         * Api/qwebobjectpluginconnector.cpp:
745         * Api/qwebobjectpluginconnector.h:
746         * Api/qwebpage.cpp:
747         (QWebPagePrivate::QWebPagePrivate):
748         (QWebPagePrivate::~QWebPagePrivate):
749         (QWebPagePrivate::navigationRequested):
750         (QWebPage::setNetworkInterface):
751         (QWebPage::networkInterface):
752         (QWebPage::setNetworkAccessManager):
753         (QWebPage::networkAccessManager):
754         * Api/qwebpage.h:
755         * Api/qwebpage_p.h:
756         * Api/qwebview.cpp:
757         * Api/qwebview.h:
758         * WebCoreSupport/FrameLoaderClientQt.cpp:
759         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
760         (WebCore::FrameLoaderClientQt::objectContentType):
761         (WebCore::FrameLoaderClientQt::createPlugin):
762
763 2008-01-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
764
765         Reviewed by Simon.
766
767         * Move the QWebPagePrivate methods up to the other private ones
768
769         * Api/qwebpage.cpp:
770         (dropActionToDragOp):
771         (dragOpToDropAction):
772         (QWebPagePrivate::mouseMoveEvent):
773         (QWebPagePrivate::mousePressEvent):
774         (QWebPagePrivate::mouseDoubleClickEvent):
775         (QWebPagePrivate::mouseReleaseEvent):
776         (QWebPagePrivate::contextMenuEvent):
777         (QWebPagePrivate::wheelEvent):
778         (QWebPagePrivate::keyPressEvent):
779         (QWebPagePrivate::keyReleaseEvent):
780         (QWebPagePrivate::focusInEvent):
781         (QWebPagePrivate::focusOutEvent):
782         (QWebPagePrivate::dragEnterEvent):
783         (QWebPagePrivate::dragLeaveEvent):
784         (QWebPagePrivate::dragMoveEvent):
785         (QWebPagePrivate::dropEvent):
786         (QWebPage::focusNextPrevChild):
787
788 2008-01-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
789
790         Reviewed by Simon.
791
792         * Add reimplemented comments for the methods reimplemented in QWebView and QWebPage.
793         
794
795         * Api/qwebpage.cpp:
796         (dragOpToDropAction):
797         * Api/qwebview.cpp:
798         (QWebView::mouseMoveEvent):
799         (QWebView::mousePressEvent):
800         (QWebView::mouseDoubleClickEvent):
801         (QWebView::mouseReleaseEvent):
802         (QWebView::contextMenuEvent):
803         (QWebView::keyPressEvent):
804         (QWebView::keyReleaseEvent):
805         (QWebView::focusInEvent):
806         (QWebView::focusOutEvent):
807         (QWebView::dragEnterEvent):
808         (QWebView::dragLeaveEvent):
809         (QWebView::dragMoveEvent):
810         (QWebView::dropEvent):
811
812 2008-01-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
813
814         Reviewed by Lars.
815
816         * This layout is not needed anymore as Widget::invalidateRect will not
817         draw anymore.
818         
819
820         * Api/qwebview.cpp:
821         (QWebView::paintEvent):
822
823 2008-01-04  Lars Knoll  <lars@trolltech.com>
824
825         Reviewed by Simon.
826
827         Remove most dependencies of Widget/ScrollView onto native QWidgets.
828         
829         This also brings the code closer in line with the Windows code. Seems
830         to work nicely on first try :)
831         
832
833         * WebCoreSupport/ChromeClientQt.cpp:
834         (WebCore::ChromeClientQt::updateBackingStore):
835         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
836         (WebCore::ChromeClientQt::setToolTip):
837         * WebCoreSupport/FrameLoaderClientQt.cpp:
838         (WebCore::FrameLoaderClientQt::createPlugin):
839
840 2008-01-04  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
841
842         Reviewed by Simon.
843
844         * Remove the todo from QWebPage and move the code to QWebView.
845         
846
847         * Api/qwebpage.cpp:
848         (QWebPagePrivate::wheelEvent):
849         (QWebPagePrivate::focusInEvent):
850         * Api/qwebview.cpp:
851         (QWebView::wheelEvent):
852         (QWebView::focusInEvent):
853
854 2008-01-04  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
855
856         Reviewed by Simon.
857
858         * Move the various event methods to QWebPagePrivate. This is similar to
859         QTextControl as well.
860         
861
862         * Api/qwebpage.cpp:
863         (QWebPage::event):
864         (QWebPagePrivate::mouseMoveEvent):
865         (QWebPagePrivate::mousePressEvent):
866         (QWebPagePrivate::mouseDoubleClickEvent):
867         (QWebPagePrivate::mouseReleaseEvent):
868         (QWebPagePrivate::contextMenuEvent):
869         (QWebPagePrivate::wheelEvent):
870         (QWebPagePrivate::keyPressEvent):
871         (QWebPagePrivate::keyReleaseEvent):
872         (QWebPagePrivate::focusInEvent):
873         (QWebPagePrivate::focusOutEvent):
874         (QWebPage::focusNextPrevChild):
875         (QWebPagePrivate::dragEnterEvent):
876         (QWebPagePrivate::dragLeaveEvent):
877         (QWebPagePrivate::dragMoveEvent):
878         (QWebPagePrivate::dropEvent):
879         * Api/qwebpage.h:
880         * Api/qwebpage_p.h:
881
882 2008-01-04  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
883
884         Reviewed by Simon.
885
886         * Forward the event from QWebView to QWebPage through QObject::event. This
887         is similar to the way QTextControl is working.
888         
889
890         * Api/qwebpage.cpp:
891         (dragOpToDropAction):
892         (QWebPage::event):
893         * Api/qwebpage.h:
894         * Api/qwebview.cpp:
895         (QWebView::mouseMoveEvent):
896         (QWebView::mousePressEvent):
897         (QWebView::mouseDoubleClickEvent):
898         (QWebView::mouseReleaseEvent):
899         (QWebView::contextMenuEvent):
900         (QWebView::wheelEvent):
901         (QWebView::keyPressEvent):
902         (QWebView::keyReleaseEvent):
903         (QWebView::focusInEvent):
904         (QWebView::focusOutEvent):
905         (QWebView::dragEnterEvent):
906         (QWebView::dragLeaveEvent):
907         (QWebView::dragMoveEvent):
908         (QWebView::dropEvent):
909         * Api/qwebview.h:
910
911 2008-01-04  Lars Knoll  <lars@trolltech.com>
912
913         Reviewed by Simon.
914
915         make QWebPage a QObject and get things to compile.
916         
917         Nothing works currently though.
918         
919
920         * Api/qwebobjectpluginconnector.cpp:
921         * Api/qwebpage.cpp:
922         (QWebPagePrivate::QWebPagePrivate):
923         (QWebPagePrivate::createMainFrame):
924         (QWebPage::QWebPage):
925         (QWebPage::setView):
926         (QWebPage::view):
927         (QWebPage::javaScriptAlert):
928         (QWebPage::javaScriptPrompt):
929         (dragOpToDropAction):
930         (QWebPage::mousePressEvent):
931         (QWebPage::mouseDoubleClickEvent):
932         (QWebPage::mouseReleaseEvent):
933         (QWebPage::wheelEvent):
934         (QWebPage::keyPressEvent):
935         (QWebPage::focusInEvent):
936         * Api/qwebpage.h:
937         * Api/qwebpage_p.h:
938         * Api/qwebview.cpp:
939         (QWebView::QWebView):
940         (QWebView::setPage):
941         (QWebView::resizeEvent):
942         (QWebView::paintEvent):
943         * Api/qwebview.h:
944         * WebCoreSupport/ChromeClientQt.cpp:
945         (WebCore::ChromeClientQt::windowRect):
946         (WebCore::ChromeClientQt::pageRect):
947         (WebCore::ChromeClientQt::focus):
948         (WebCore::ChromeClientQt::unfocus):
949         (WebCore::ChromeClientQt::canTakeFocus):
950         (WebCore::ChromeClientQt::takeFocus):
951         (WebCore::ChromeClientQt::canRunModal):
952         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
953         * WebCoreSupport/DragClientQt.cpp:
954         (WebCore::DragClientQt::startDrag):
955         * WebCoreSupport/FrameLoaderClientQt.cpp:
956         (WebCore::FrameLoaderClientQt::createPlugin):
957         * WebCoreSupport/InspectorClientQt.cpp:
958         (WebCore::InspectorClientWebPage::createWindow):
959         (WebCore::InspectorClientView::InspectorClientView):
960         (WebCore::InspectorClientView::page):
961         (WebCore::InspectorClientView::hideEvent):
962         (WebCore::InspectorClientView::closeEvent):
963         (WebCore::InspectorClientQt::createPage):
964         (WebCore::InspectorClientQt::closeWindow):
965
966 2008-01-04  Simon Hausmann  <hausmann@webkit.org>
967
968         Reviewed by Lars.
969
970         Added some preliminary class documentation for QWebView, fixed a missing const() and some missing Q_PROPERTYs
971         
972
973         * Api/qwebview.cpp:
974         (QWebView::setHtml):
975         (QWebView::setContent):
976         (QWebView::history):
977         (QWebView::settings):
978         (QWebView::action):
979         (QWebView::triggerAction):
980         (QWebView::stop):
981         (QWebView::backward):
982         (QWebView::forward):
983         (QWebView::reload):
984         * Api/qwebview.h:
985
986 2008-01-04  Lars Knoll  <lars@trolltech.com>
987
988         Reviewed by Simon.
989
990         add a viewportSize to QWebPage.
991         
992         This is required to eventually make it a QObject only.
993         
994
995         * Api/qwebpage.cpp:
996         (QWebPage::triggerAction):
997         (QWebPage::viewportSize):
998         (QWebPage::setViewportSize):
999         * Api/qwebpage.h:
1000
1001 2008-01-04  Lars Knoll  <lars@trolltech.com>
1002
1003         Reviewed by Simon.
1004
1005         take a QString as identifier in QWebFrame::addToJSWindowObject.
1006
1007         * Api/qwebframe.cpp:
1008         (QWebFrame::addToJSWindowObject):
1009         * Api/qwebframe.h:
1010
1011 2008-01-04  Simon Hausmann  <hausmann@webkit.org>
1012
1013         Reviewed by Lars.
1014
1015         Call the frame arguments for the javascript callbacks "originatingFrame"
1016         
1017
1018         * Api/qwebpage.h:
1019
1020 2008-01-04  Simon Hausmann  <hausmann@webkit.org>
1021
1022         Reviewed by Lars.
1023
1024         Moved the QWebPage::addToHistory signal into QWebHistoryInterface
1025         
1026
1027         * Api/qwebhistoryinterface.h:
1028         * Api/qwebpage.h:
1029         * WebCoreSupport/FrameLoaderClientQt.cpp:
1030         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
1031
1032 2008-01-04  Lars Knoll  <lars@trolltech.com>
1033
1034         Reviewed by Simon.
1035
1036         moved title(), url(), icon() and initialLayoutComplete() from QWebPage to QWebFrame
1037
1038         * Api/qwebframe.cpp:
1039         (QWebFrame::url):
1040         (QWebFrame::icon):
1041         (QWebFrame::setVerticalScrollBarPolicy):
1042         * Api/qwebframe.h:
1043         * Api/qwebpage.cpp:
1044         (QWebPage::javaScriptAlert):
1045         (QWebPage::javaScriptPrompt):
1046         (QWebPage::networkInterface):
1047         * Api/qwebpage.h:
1048         * Api/qwebview.cpp:
1049         (QWebView::title):
1050         (QWebView::url):
1051         (QWebView::icon):
1052         * WebCoreSupport/FrameLoaderClientQt.cpp:
1053
1054 2008-01-03  Simon Hausmann  <hausmann@webkit.org>
1055
1056         Reviewed by Lars.
1057
1058         Moved QWebPage::open to QWebFrame::load and added setHtml.
1059         
1060
1061         * Api/qwebframe.cpp:
1062         (QWebFrame::load):
1063         (QWebFrame::setHtml):
1064         (QWebFrame::setContent):
1065         * Api/qwebframe.h:
1066         * Api/qwebpage.cpp:
1067         * Api/qwebpage.h:
1068         * Api/qwebview.cpp:
1069         (QWebView::load):
1070         (QWebView::setHtml):
1071         * Api/qwebview.h:
1072         * WebCoreSupport/ChromeClientQt.cpp:
1073         (WebCore::ChromeClientQt::createWindow):
1074         * WebCoreSupport/InspectorClientQt.cpp:
1075         (WebCore::InspectorClientQt::createPage):
1076
1077 2008-01-03  Simon Hausmann  <hausmann@webkit.org>
1078
1079         Reviewed by Lars.
1080
1081         Added the first revision of QWebView and started moving functionality from QWebPave over to QWebView and QWebFrame.
1082         
1083
1084         * Api/headers.pri:
1085         * Api/qwebframe.h:
1086         * Api/qwebpage.cpp:
1087         (QWebPagePrivate::createMainFrame):
1088         * Api/qwebpage.h:
1089         * Api/qwebpagehistory.h:
1090         * Api/qwebview.cpp: Added.
1091         (QWebView::QWebView):
1092         (QWebView::~QWebView):
1093         (QWebView::page):
1094         (QWebView::setPage):
1095         (QWebView::load):
1096         (QWebView::setHtml):
1097         (QWebView::history):
1098         (QWebView::settings):
1099         (QWebView::title):
1100         (QWebView::url):
1101         (QWebView::icon):
1102         (QWebView::selectedText):
1103         (QWebView::action):
1104         (QWebView::triggerAction):
1105         (QWebView::isModified):
1106         (QWebView::textInteractionFlags):
1107         (QWebView::setTextInteractionFlags):
1108         (QWebView::sizeHint):
1109         (QWebView::stop):
1110         (QWebView::backward):
1111         (QWebView::forward):
1112         (QWebView::reload):
1113         * Api/qwebview.h: Added.
1114         * QtLauncher/main.cpp:
1115         (MainWindow::MainWindow):
1116         (MainWindow::webPage):
1117         (MainWindow::changeLocation):
1118         * WebCoreSupport/FrameLoaderClientQt.cpp:
1119         (WebCore::FrameLoaderClientQt::setFrame):
1120         * WebCoreSupport/FrameLoaderClientQt.h:
1121
1122 2007-12-14  Darin Adler  <darin@apple.com>
1123
1124         Reviewed by Alexey.
1125
1126         * Api/qwebpage.cpp:
1127         (QWebPage::triggerAction): Removed some use of Editor member functions we plan
1128         to eventually eliminate. Switch from Editor::execCommand to Editor::command.
1129         * WebCoreSupport/EditorClientQt.cpp:
1130         (WebCore::EditorClientQt::handleKeyboardEvent): Ditto. Also updated name from
1131         MoveUpByPageAndModifyCaret to MovePageUp and from MoveDownByPageAndModifyCaret
1132         to MovePageDown.
1133
1134 2007-12-12  Brady Eidson  <beidson@apple.com>
1135
1136         Reviewed by Sam Weinig
1137
1138         As part of doing some CachedPage and client cleanup, keep Qt building
1139
1140         * WebCoreSupport/FrameLoaderClientQt.cpp:
1141         (WebCore::FrameLoaderClientQt::savePlatformDataToCachedPage):
1142         (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
1143         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1144         * WebCoreSupport/FrameLoaderClientQt.h:
1145
1146 2007-12-12  Sam Weinig  <sam@webkit.org>
1147
1148         Build fix.
1149
1150         * WebCoreSupport/FrameLoaderClientQt.cpp:
1151         (WebCore::FrameLoaderClientQt::userAgent):
1152
1153 2007-12-12  Sam Weinig  <sam@webkit.org>
1154
1155         Build fix.
1156
1157         * Api/qwebnetworkinterface.cpp:
1158         (QWebNetworkRequestPrivate::init):
1159         * Api/qwebpage.cpp:
1160         (QWebPage::url):
1161         (QWebPageContext::QWebPageContext):
1162         * Api/qwebpagehistory.cpp:
1163         (QWebHistoryItem::originalUrl):
1164         (QWebHistoryItem::currentUrl):
1165         * WebCoreSupport/FrameLoaderClientQt.cpp:
1166         (WebCore::FrameLoaderClientQt::cannotShowURLError):
1167         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
1168         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
1169         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
1170         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
1171         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
1172         (WebCore::FrameLoaderClientQt::createPlugin):
1173
1174 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
1175
1176         Reviewed by Darin.
1177
1178         <rdar://problem/5535636>
1179         Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
1180
1181         http://bugs.webkit.org/show_bug.cgi?id=13916
1182         JavaScript detects Tab as a character input on a textfield validation
1183
1184         * WebCoreSupport/EditorClientQt.cpp:
1185         (WebCore::EditorClientQt::handleKeyboardEvent):
1186         (WebCore::EditorClientQt::handleInputMethodKeydown):
1187         * WebCoreSupport/EditorClientQt.h:
1188         Updated for cross-platform changes as much as it was possible without a Qt build environment.
1189
1190 2007-12-07  Darin Adler  <darin@apple.com>
1191
1192         - try to fix build
1193
1194         * Api/qwebhistoryinterface.cpp:
1195         (WebCore::historyContains): There's a WebCore function here in WebKit! Needs to
1196         be updated, since WebCore changed, but this should not be here.
1197
1198 2007-12-04  Darin Adler  <darin@apple.com>
1199
1200         Reviewed by Kevin Decker.
1201
1202         * WebCoreSupport/FrameLoaderClientQt.cpp: Removed obsolete privateBrowsingEnabled.
1203         * WebCoreSupport/FrameLoaderClientQt.h: Ditto.
1204
1205 2007-12-04  Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1206
1207         Reviewed by Simon.
1208
1209         * Implement the InspectorClient for the Qt port
1210         * It does not support highlighting of nodes yet
1211         * Use QRC to open the internal page. The important thing is the
1212         '/' in the URL to make WebCore::Document::completeURL behave the
1213         way we want.
1214         * To make the InspectorClient work we will have to mark qrc as secure.
1215
1216         * Api/qwebpage.cpp:
1217         (QWebPagePrivate::QWebPagePrivate):
1218         * Api/qwebpage.h:
1219         * WebCoreSupport/InspectorClientQt.cpp:
1220         (WebCore::InspectorClientWebPage::hideEvent):
1221         (WebCore::InspectorClientQt::InspectorClientQt):
1222         (WebCore::InspectorClientQt::inspectorDestroyed):
1223         (WebCore::InspectorClientQt::createPage):
1224         (WebCore::InspectorClientQt::localizedStringsURL):
1225         (WebCore::InspectorClientQt::showWindow):
1226         (WebCore::InspectorClientQt::closeWindow):
1227         (WebCore::InspectorClientQt::attachWindow):
1228         (WebCore::InspectorClientQt::detachWindow):
1229         * WebCoreSupport/InspectorClientQt.h:
1230
1231 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1232
1233         Rubber stamped by Mark.
1234
1235         Always include config.h at the beginning of the file.
1236
1237         * Api/qwebsettings.cpp:
1238
1239 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1240
1241         Reviewed by Simon.
1242
1243         * Avoid crashes by making sure everything is layouted before
1244         we start painting. This avoids a crash in Widget::invalidateRect
1245         because QPainter::begin would fail
1246         * The QWebFrame::layout() methods and calls are left untouched because
1247         this would be an API decision.
1248         
1249
1250         * Api/qwebframe.cpp:
1251         (QWebFrame::layout):
1252         * Api/qwebpage.cpp:
1253         (QWebPage::paintEvent):
1254
1255 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1256
1257         Reviewed by Simon.
1258
1259         * SubClass QWebPage to handle hide and close events.
1260         * Forward these events to the InspectorController
1261         * The other options would have been using an eventFilter
1262         on the webpage and making InspectorClient a QObject or
1263         creating a QObject Observer.
1264         * Provide a simple QWebPage* createWindow implementation. This is needed
1265         to make FrameLoaderClientQt::dispatchCreatePage stop crashing in the case
1266         of the inspector client.
1267         
1268
1269         * WebCoreSupport/InspectorClientQt.cpp:
1270         (WebCore::InspectorClientWebPage::InspectorClientWebPage):
1271         (WebCore::InspectorClientWebPage::createWindow):
1272         (WebCore::InspectorClientWebPage::hideEvent):
1273         (WebCore::InspectorClientWebPage::closeEvent):
1274         (WebCore::InspectorClientQt::createPage):
1275
1276 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1277
1278         Reviewed by Simon.
1279
1280         * Allow adding the Inspect ContextMenuItem to our Menu
1281         * Open the Inspector when Inspect was activated. This requires
1282         that we keep the innerNonSharedNode from the HitTest around. This
1283         forces us to include <wtf/RefPtr.h> in the private header. It is
1284         the first non Qt header but should be okay.
1285         
1286
1287         * Api/qwebpage.cpp:
1288         (webActionForContextMenuAction):
1289         (QWebPage::triggerAction):
1290         (QWebPage::action):
1291         (QWebPageContext::QWebPageContext):
1292         * Api/qwebpage.h:
1293         * Api/qwebpage_p.h:
1294
1295 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1296
1297         Reviewed by Simon.
1298
1299         * Add the Developer Extras to the WebAttribute and propagate it
1300         to WebCore::Settings. This will enable the Inspect Element menu item
1301         * CodingStyle fixes in QWebSettings
1302         * Enable the Developer Extras in the QtLauncher
1303         
1304
1305         * Api/qwebsettings.cpp:
1306         (QWebSettingsPrivate::apply):
1307         * Api/qwebsettings.h:
1308         * QtLauncher/main.cpp:
1309         (main):
1310
1311 2007-12-03  Geoffrey Garen  <ggaren@apple.com>
1312
1313         Removed unnecessary and possibly incorrect #include from my last 
1314         check-in.
1315
1316         * Api/qwebframe.cpp:
1317
1318 2007-12-03  Geoffrey Garen  <ggaren@apple.com>
1319
1320         Qt build fix: Get globalExec() from the right place.
1321
1322 2007-11-30  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1323
1324         Reviewed by Simon.
1325
1326         * Self destruct the clients like the ohter ports do
1327         
1328
1329         * WebCoreSupport/ChromeClientQt.cpp:
1330         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
1331         * WebCoreSupport/ContextMenuClientQt.cpp:
1332         * WebCoreSupport/DragClientQt.cpp:
1333         * WebCoreSupport/EditorClientQt.cpp:
1334         * WebCoreSupport/InspectorClientQt.cpp:
1335
1336 2007-11-29  Brady Eidson  <beidson@apple.com>
1337
1338         Keep it building with new client method
1339
1340         * WebCoreSupport/ChromeClientQt.cpp:
1341         (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
1342         (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
1343         * WebCoreSupport/ChromeClientQt.h:
1344
1345 2007-11-22  Simon Hausmann  <hausmann@webkit.org>
1346
1347         Reviewed by Adam Treat.
1348
1349         Fix compilation (don't define notImplemented twice)
1350
1351         * Api/qwebnetworkinterface.cpp:
1352
1353 2007-11-22  Simon Hausmann  <hausmann@kde.org>
1354
1355         Reviewed by George.
1356
1357         Use Q_SIGNALS/Q_SLOTS in the public API
1358
1359         * Api/qwebframe.h:
1360         * Api/qwebpage.h:
1361
1362 2007-11-22  Simon Hausmann  <hausmann@kde.org>
1363
1364         Reviewed by George.
1365
1366         Fixed the signature of the QWebPage constructor to follow Qt guidelines.
1367
1368         * Api/qwebpage.h:
1369
1370 2007-11-22  Simon Hausmann  <hausmann@kde.org>
1371
1372         Reviewed by George.
1373
1374         Use <QtModule/headerfile.h> instead of <Classname> in public HEADER files, to not require the include paths for the other modules to be present
1375
1376         * Api/qcookiejar.h:
1377         * Api/qwebframe.h:
1378         * Api/qwebhistoryinterface.h:
1379         * Api/qwebnetworkinterface.h:
1380         * Api/qwebobjectplugin.h:
1381         * Api/qwebobjectplugin_p.h:
1382         * Api/qwebobjectpluginconnector.h:
1383         * Api/qwebpage.h:
1384         * Api/qwebpagehistory.h:
1385         * Api/qwebsettings.h:
1386
1387 2007-11-22  Simon Hausmann  <hausmann@kde.org>
1388
1389         Reviewed by George.
1390
1391         Removed inline copy of QExplicitlySharedDataPointer. This is not needed anymore since we require Qt >= 4.3.0.
1392
1393         * Api/qwebpagehistory.h:
1394
1395 2007-11-22  George Staikos  <staikos@kde.org>
1396
1397         Reviewed by Simon Hausmann <hausmann@kde.org>.
1398
1399         Fix license headers
1400         
1401
1402         * Api/qwebobjectplugin.cpp:
1403         * Api/qwebobjectplugin.h:
1404         * Api/qwebobjectpluginconnector.cpp:
1405         * Api/qwebobjectpluginconnector.h:
1406
1407 2007-11-22  Simon Hausmann  <hausmann@kde.org>
1408
1409         Reviewed by George Staikos <staikos@kde.org>.
1410
1411         Fix shadowing of "page" variable that is passed as argument as well as a member variable.
1412         
1413         This also fixes compilation with gcc 4.3.
1414         
1415
1416         * Api/qwebframe.cpp:
1417         (QWebFramePrivate::init):
1418
1419 2007-11-21  Adam Treat  <treat@kde.org>
1420
1421         Reviewed by Simon.
1422
1423         * Connect up the signal for all subframes too.
1424
1425         * Api/qwebframe.cpp:
1426         (QWebFramePrivate::init):
1427         * Api/qwebpage.cpp:
1428         (QWebPagePrivate::createMainFrame):
1429
1430 2007-11-20  Simon Hausmann  <hausmann@kde.org>
1431
1432         Reviewed by Adam Treat <treat@kde.org>.
1433
1434         Remove static linkage of QtWebKit against the ICO image format plugin.
1435         
1436         Instead build the support for the ICO image format as a proper standalone qt image format plugin and install it.
1437         
1438
1439         * Plugins/Plugins.pro:
1440
1441 2007-11-20  Simon Hausmann  <hausmann@kde.org>
1442
1443         Reviewed by George Staikos <staikos@kde.org>.
1444
1445         Added a default argument to textContent for the hoveringOverLink signal to keep existing two-argument connections working
1446         
1447
1448         * Api/qwebpage.h:
1449
1450 2007-11-20  George Staikos  <staikos@kde.org>
1451
1452         Reviewed by Simon Hausmann <hausmann@kde.org>.
1453
1454         Add an argument to pass the link text in the hovering signal
1455         
1456
1457         * Api/qwebframe.h:
1458         * Api/qwebpage.cpp:
1459         (QWebPagePrivate::createMainFrame):
1460         (QWebPage::mouseMoveEvent):
1461         * Api/qwebpage.h:
1462
1463 2007-11-20  Adam Treat  <treat@kde.org>
1464
1465         Reviewed by Simon and George.
1466
1467         * Be quiet and allow suppression of NotImplemented calls at runtime.
1468
1469         * WebCoreSupport/FrameLoaderClientQt.cpp:
1470         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
1471
1472 2007-11-19  Adam Treat  <treat@kde.org>
1473
1474         Reviewed by Simon.
1475
1476         * Don't segfault when event pos is outside of the widget.
1477
1478         * Api/qwebpage.cpp:
1479         (QWebPage::mouseMoveEvent):
1480         (QWebPage::mousePressEvent):
1481         (QWebPage::mouseDoubleClickEvent):
1482         (QWebPage::mouseReleaseEvent):
1483         (QWebPage::contextMenuEvent):
1484
1485 2007-11-17  Timothy Hatcher  <timothy@apple.com>
1486
1487         Reviewed by Mark Rowe.
1488
1489         Bug 13470: i18n: The Web Inspector is not localizable
1490         http://bugs.webkit.org/show_bug.cgi?id=13470
1491
1492         * WebCoreSupport/InspectorClientQt.cpp:
1493         (WebCore::InspectorClientQt::localizedStringsURL): Empty stub.
1494         * WebCoreSupport/InspectorClientQt.h: Added localizedStringsURL.
1495
1496 2007-11-13  Geoffrey Garen  <ggaren@apple.com>
1497
1498         Build fix: changed Shared to RefCounted.
1499
1500         * WebCoreSupport/ChromeClientQt.h:
1501         * WebCoreSupport/ContextMenuClientQt.cpp:
1502         * WebCoreSupport/ContextMenuClientQt.h:
1503         * WebCoreSupport/EditorClientQt.h:
1504         * WebCoreSupport/FrameLoaderClientQt.h:
1505
1506 2007-11-10  Simon Hausmann  <hausmann@kde.org>
1507
1508         Reviewed by Nikolas.
1509
1510         When populating the context menu with sub-menus don't add sub-menus if they're empty.
1511         
1512
1513         * Api/qwebpage.cpp:
1514         (QWebPagePrivate::createContextMenu):
1515
1516 2007-11-10  Simon Hausmann  <hausmann@kde.org>
1517
1518         Reviewed by Nikolas.
1519
1520         Added support for the Bold/Italic/Underline toggle actions.
1521         
1522
1523         * Api/qwebpage.cpp:
1524         (webActionForContextMenuAction):
1525         (QWebPage::triggerAction):
1526         (QWebPage::action):
1527         * Api/qwebpage.h:
1528
1529 2007-11-10  Simon Hausmann  <hausmann@kde.org>
1530
1531         Reviewed by Nikolas.
1532
1533         Before adding an action to the context menu call checkOrEnableIfNeeded for each action
1534         to update the enable/checked state correctly.
1535         
1536
1537         * Api/qwebpage.cpp:
1538         (QWebPagePrivate::createContextMenu):
1539         (QWebPage::contextMenuEvent):
1540         * Api/qwebpage_p.h:
1541
1542 2007-11-10  Simon Hausmann  <hausmann@kde.org>
1543
1544         Reviewed by Nikolas.
1545
1546         Mark the text direction actions as checkable actions.
1547         
1548
1549         * Api/qwebpage.cpp:
1550         (QWebPage::action):
1551
1552 2007-11-09  Simon Hausmann  <hausmann@kde.org>
1553
1554         Reviewed by Holger.
1555
1556         Implemented the webcore actions for changing the text direction.
1557         
1558
1559         * Api/qwebpage.cpp:
1560         (webActionForContextMenuAction):
1561         (QWebPage::triggerAction):
1562         (QWebPage::action):
1563         * Api/qwebpage.h:
1564
1565 2007-11-09  Simon Hausmann  <hausmann@kde.org>
1566
1567         Reviewed by Holger.
1568
1569         Fix ContextMenu allocation in the Qt port.
1570         
1571         Store all items and submenus value based in ContextMenu and ContextMenuItem.
1572         That fixes the crashes when the context menu was populated with sub-menus because
1573         of the use of temporary ContextMenu objects like this:
1574         
1575         ContextMenu subMenu(...);
1576         subMenu.appendItem(...);
1577         subMenu.appendItem(...);
1578         
1579         subMenuItem.setSubMenu(&subMenu); // temporary pointer, need to _copy_ contents
1580         
1581
1582         * Api/qwebpage.cpp:
1583         (QWebPage::contextMenuEvent):
1584         * Api/qwebpage_p.h:
1585
1586 2007-11-09  Simon Hausmann  <hausmann@kde.org>
1587
1588         Reviewed by Holger.
1589
1590         Renamed QWebPage::NumWebActions to QWebPage::WebActionCount (for consistency) and fixed its value.
1591         
1592
1593         * Api/qwebpage.h:
1594         * Api/qwebpage_p.h:
1595
1596 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
1597
1598         Reviewed by Sam.
1599
1600         - windowObjectCleared() is no longer const.  It needs to setup the
1601         script debugger and cannot be const to do so.
1602
1603         * WebCoreSupport/FrameLoaderClientQt.cpp:
1604         (WebCore::FrameLoaderClientQt::windowObjectCleared):
1605         * WebCoreSupport/FrameLoaderClientQt.h:
1606
1607 2007-11-08  Simon Hausmann  <hausmann@kde.org>
1608
1609         Reviewed by nobody (well, Holger knows about it), build fix for Qt 4.3.
1610
1611         The buildbots use Qt 4.4 which has the function in question, but Qt
1612         4.3 doesn't have it. Use removeAll() as replacement instead, it
1613         shouldn't make a difference in performance.
1614
1615         * Api/qwebsettings.cpp:
1616         (QWebSettings::~QWebSettings):
1617
1618 2007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1619
1620         Reviewed by Lars Knoll <lars@trolltech.com>.
1621
1622         Cleanup checking for the request method.
1623         
1624         * Check the request method only in QWebNetworkManager::add.
1625         * Currently HEAD, GET, POST are allowed and for everything else
1626         QWebNetworkManager::add returns false.
1627         * Returning false is compatible with ResourceHandle::start and it
1628         can be used in ResourceHandle::loadResourceSynchronously to generate
1629         a ResourceError
1630         
1631
1632         * Api/qwebnetworkinterface.cpp:
1633         (QWebNetworkManager::add):
1634
1635 2007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
1636
1637         Reviewed by Lars Knoll <lars@trolltech.com>.
1638
1639         Fix bug in the implementation of synchronous network jobs.
1640         
1641         * George (pmax) reviewed the networking patches and found the following bug (thanks for reviewing)
1642         -    if (jobMode == AsynchronousJob) {
1643         +    if (jobMode == SynchronousJob) {
1644         add job to synchronous list/hash
1645         
1646         * Just applying the above change will lead to crashes because we can finish
1647         jobs before we started them.
1648         
1649         * Avoid these issues by saving all work (starting a job, sending data and
1650         finishing it) inside one list. JobWork will contain any
1651         of the above three work types and doWork will just work on this list
1652         (m_pendingWork). As foreach takes a copy of the list calling started, data
1653         and finished will not add new work and we gurantee that if we have JobStarted
1654         it will be in the list before JobData and JobFinished.
1655         
1656         * Observation: We might just kill the code to handle sync jobs.
1657         
1658
1659         * Api/qwebnetworkinterface.cpp:
1660         (QWebNetworkManager::add):
1661         (QWebNetworkManager::queueStart):
1662         (QWebNetworkManager::queueData):
1663         (QWebNetworkManager::queueFinished):
1664         (QWebNetworkManager::doWork):
1665         * Api/qwebnetworkinterface_p.h:
1666         (QWebNetworkManager::JobWork::):
1667         (QWebNetworkManager::JobWork::JobWork):
1668
1669 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1670
1671         Build fix, reviewed by nobody.
1672
1673         Fix the Qt build by setting up WindowFeatures before calling
1674         createWindow on the Chrome. This is similar to openNewWindow in
1675         page/ContextMenuController.cpp
1676
1677         * Api/qwebpage.cpp:
1678         (openNewWindow):
1679
1680 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1681
1682         Reviewed by Lars.
1683
1684         Make the setting of letting Javascript access the clipboard configurable through QWebSettings, turn it off by default and turn it on in DumpRenderTree.
1685
1686         * Api/qwebpage.cpp:
1687         (QWebPagePrivate::QWebPagePrivate):
1688         * Api/qwebsettings.cpp:
1689         (QWebSettingsPrivate::apply):
1690         * Api/qwebsettings.h:
1691
1692 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1693
1694         Reviewed by Lars.
1695
1696         Changed QWebPageHistory::goToItem to take a value instead of a pointer.
1697
1698         * Api/qwebpagehistory.cpp:
1699         * Api/qwebpagehistory.h:
1700
1701 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1702
1703         Reviewed by Lars.
1704
1705         Removed unimplemented QWebHistoryItem::children() function
1706
1707         * Api/qwebpagehistory.h:
1708
1709 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1710
1711         Reviewed by Lars.
1712
1713         Changed the getter functions in QWebSettings to transparently resolve against the default settings.
1714
1715         * Api/qwebsettings.cpp:
1716         (QWebSettings::fontSize):
1717         (QWebSettings::fontFamily):
1718         (QWebSettings::testAttribute):
1719
1720 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1721
1722         Reviewed by Lars.
1723
1724         Added explicit functions for resetting the font sizes and font families.
1725
1726         * Api/qwebsettings.cpp:
1727         (QWebSettings::resetFontSize):
1728         (QWebSettings::resetFontFamily):
1729         * Api/qwebsettings.h:
1730
1731 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1732
1733         Reviewed by Lars.
1734
1735         Combined the font sizes accessors/setters under one setter/getter with an enum.
1736
1737         * Api/qwebsettings.cpp:
1738         (QWebSettingsPrivate::QWebSettingsPrivate):
1739         (QWebSettingsPrivate::apply):
1740         (QWebSettings::QWebSettings):
1741         (QWebSettings::setFontSize):
1742         * Api/qwebsettings.h:
1743
1744 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1745
1746         Reviewed by Lars.
1747
1748         Renamed QWebPage::userAgentStringForUrl(url) to QWebPage::userAgentFor(url);
1749
1750         * Api/qwebpage.cpp:
1751         * Api/qwebpage.h:
1752         * WebCoreSupport/FrameLoaderClientQt.cpp:
1753         (WebCore::FrameLoaderClientQt::userAgent):
1754
1755 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1756
1757         Reviewed by Lars.
1758
1759         Renamed QWebPage::webActionTriggered to QWebPage::triggerAction
1760
1761         * Api/qwebpage.cpp:
1762         (QWebPagePrivate::_q_webActionTriggered):
1763         (QWebPage::keyPressEvent):
1764         * Api/qwebpage.h:
1765
1766 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1767
1768         Reviewed by Lars.
1769
1770         Changed the virtual QWebPage::setWindowGeometry to be a geometryChangeRequest signal instead.
1771
1772         * Api/qwebpage.cpp:
1773         * Api/qwebpage.h:
1774         * WebCoreSupport/ChromeClientQt.cpp:
1775         (WebCore::ChromeClientQt::setWindowRect):
1776
1777 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1778
1779         Reviewed by Lars.
1780
1781         Renamed QWebPage::webAction() to QWebPage::action()
1782
1783         * Api/qwebpage.cpp:
1784         (QWebPagePrivate::createContextMenu):
1785         * Api/qwebpage.h:
1786         * QtLauncher/main.cpp:
1787         (MainWindow::MainWindow):
1788
1789 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1790
1791         Reviewed by Lars.
1792
1793         Removed a bunch of slots/functions that are now available through the new actions API.
1794
1795         * Api/qwebpage.cpp:
1796         * Api/qwebpage.h:
1797
1798 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1799
1800         Reviewed by Lars.
1801
1802         Added some more comments to the API after another round of API review with Lars.
1803
1804         * Api/qwebpage.h:
1805
1806 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1807
1808         Reviewed by Lars.
1809
1810         Moved QWebFrame::selectedText() to QWebPage::selectedText().
1811         
1812         The currently selected text is a property of the page as a whole.
1813
1814         * Api/qwebframe.cpp:
1815         * Api/qwebframe.h:
1816         * Api/qwebpage.cpp:
1817         (QWebPage::selectedText):
1818         * Api/qwebpage.h:
1819
1820 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1821
1822         Reviewed by Lars.
1823
1824         Implemented support for settings propagation.
1825         
1826         If an individual setting is not set in a page's QWebSettings then it is inherited from the default settings.
1827
1828         * Api/qwebsettings.cpp:
1829         (QWebSettingsPrivate::QWebSettingsPrivate):
1830         (QWebSettingsPrivate::apply):
1831         (QWebSettings::QWebSettings):
1832         (QWebSettings::~QWebSettings):
1833         (QWebSettings::setFontFamily):
1834         * Api/qwebsettings.h:
1835
1836 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1837
1838         Reviewed by Lars.
1839
1840         Reworked the QWebSettings API.
1841         QWebPage now returns a pointer to its mutable QWebSettings object and the settings of newly created QWebPageObjects are initialized from QWebSettings::defaultSettings().
1842
1843         * Api/qwebpage.cpp:
1844         (QWebPagePrivate::QWebPagePrivate):
1845         (QWebPagePrivate::~QWebPagePrivate):
1846         (QWebPage::QWebPage):
1847         * Api/qwebpage.h:
1848         * Api/qwebpage_p.h:
1849         * Api/qwebsettings.cpp:
1850         (QWebSettingsPrivate::QWebSettingsPrivate):
1851         (QWebSettingsPrivate::apply):
1852         (QWebSettings::defaultSettings):
1853         (QWebSettings::QWebSettings):
1854         (QWebSettings::setMinimumFontSize):
1855         (QWebSettings::setMinimumLogicalFontSize):
1856         (QWebSettings::setDefaultFontSize):
1857         (QWebSettings::setDefaultFixedFontSize):
1858         (QWebSettings::setUserStyleSheetLocation):
1859         (QWebSettings::setFontFamily):
1860         (QWebSettings::fontFamily):
1861         (QWebSettings::setAttribute):
1862         * Api/qwebsettings.h:
1863         * QtLauncher/main.cpp:
1864         (main):
1865
1866 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1867
1868         Reviewed by Lars.
1869
1870         Made the QWebSettings::webGraphic functions static. The implementation was using QWebSettings::global() anyway.
1871
1872         * Api/qwebsettings.cpp:
1873         (QWebSettings::setWebGraphic):
1874         * Api/qwebsettings.h:
1875
1876 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1877
1878         Reviewed by Lars.
1879
1880         Moved the WebCore::Image specific function loadResourcePixmap from qwebsettings.cpp to ImageQt.cpp and made it static.
1881
1882         * Api/qwebsettings.cpp:
1883
1884 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1885
1886         Reviewed by Lars.
1887
1888         Changed the icondatabase accessor to be a static function because it doesn't change the QWebSettings object.
1889
1890         * Api/qwebsettings.cpp:
1891         * Api/qwebsettings.h:
1892
1893 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1894
1895         Reviewed by Lars.
1896
1897         Changed the webAction() accessor to not be a slot but just a public function.
1898
1899         * Api/qwebpage.h:
1900
1901 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1902
1903         Reviewed by Lars.
1904
1905         Implemented createWindow() in QtLauncher.
1906
1907         * QtLauncher/main.cpp:
1908         (WebPage::WebPage):
1909         (MainWindow::MainWindow):
1910         (WebPage::createWindow):
1911
1912 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1913
1914         Reviewed by Lars.
1915
1916         Implemented opening links in new windows
1917
1918         * Api/qwebpage.cpp:
1919         (frameLoadRequest):
1920         (openNewWindow):
1921         (QWebPage::webActionTriggered):
1922
1923 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1924
1925         Reviewed by Lars.
1926
1927         Added and implemented the "OpenLink" action.
1928
1929         * Api/qwebpage.cpp:
1930         (webActionForContextMenuAction):
1931         (QWebPage::webActionTriggered):
1932         (QWebPage::webAction):
1933         * Api/qwebpage.h:
1934
1935 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1936
1937         Reviewed by Lars.
1938
1939         Adjust the state of the reload action correctly.
1940
1941         * Api/qwebpage.cpp:
1942         (QWebPagePrivate::updateAction):
1943         (QWebPagePrivate::updateNavigationActions):
1944
1945 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1946
1947         Reviewed by Lars.
1948
1949         Initialize the undo/redo actions from QUndoStack. That automatically takes care of enabling/disabling them as well as the activation/trigger.
1950
1951         * Api/qwebpage.cpp:
1952         (QWebPagePrivate::updateAction):
1953         (QWebPage::webAction):
1954         (QWebPage::undoStack):
1955         * Api/qwebpage.h:
1956
1957 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1958
1959         Reviewed by Lars.
1960
1961         Added undo/redo toolbar buttons, moved the location line edit into a separate toolbar.
1962
1963         * QtLauncher/main.cpp:
1964         (MainWindow::MainWindow):
1965
1966 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1967
1968         Reviewed by Lars.
1969
1970         Update the editor actions when the selection changes.
1971
1972         * Api/qwebpage.cpp:
1973         (QWebPagePrivate::updateAction):
1974         (QWebPagePrivate::updateEditorActions):
1975         * Api/qwebpage_p.h:
1976         * WebCoreSupport/EditorClientQt.cpp:
1977         (WebCore::EditorClientQt::respondToChangedSelection):
1978
1979 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1980
1981         Reviewed by Lars.
1982
1983         Added cut/copy/paste actions to the toolbar of QtLauncher
1984
1985         * QtLauncher/main.cpp:
1986         (MainWindow::MainWindow):
1987
1988 2007-11-07  Simon Hausmann  <hausmann@kde.org>
1989
1990         Reviewed by Lars.
1991
1992         Started working on keeping the state of the navigation actions up-to-date.
1993
1994         * Api/qwebpage.cpp:
1995         (QWebPagePrivate::updateAction):
1996         (QWebPagePrivate::updateNavigationActions):
1997         (QWebPage::webAction):
1998         * Api/qwebpage_p.h:
1999         * WebCoreSupport/FrameLoaderClientQt.cpp:
2000         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2001         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
2002         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2003         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
2004         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
2005
2006 2007-11-07  Simon Hausmann  <hausmann@kde.org>
2007
2008         Reviewed by Lars.
2009
2010         Use the navigational web actions in the toolbar
2011
2012         * QtLauncher/main.cpp:
2013         (MainWindow::MainWindow):
2014
2015 2007-11-07  Simon Hausmann  <hausmann@kde.org>
2016
2017         Reviewed by Lars.
2018
2019         Store a bunch of QActions in QWebPagePrivate, corresponding to QWebPage::WebAction.
2020         Added QWebPageContext to hold context sensitive information (for example used by the context menu).
2021
2022         * Api/qwebpage.cpp:
2023         (QWebPagePrivate::QWebPagePrivate):
2024         (webActionForContextMenuAction):
2025         (QWebPagePrivate::createContextMenu):
2026         (QWebPagePrivate::_q_webActionTriggered):
2027         (QWebPage::webActionTriggered):
2028         (QWebPage::webAction):
2029         (QWebPage::contextMenuEvent):
2030         (QWebPageContext::QWebPageContext):
2031         (QWebPageContext::operator=):
2032         (QWebPageContext::~QWebPageContext):
2033         (QWebPageContext::pos):
2034         (QWebPageContext::text):
2035         (QWebPageContext::linkUrl):
2036         (QWebPageContext::imageUrl):
2037         (QWebPageContext::image):
2038         (QWebPageContext::targetFrame):
2039         * Api/qwebpage.h:
2040         * Api/qwebpage_p.h:
2041
2042 2007-11-07  Simon Hausmann  <hausmann@kde.org>
2043
2044         Reviewed by Lars.
2045
2046         Moved the editing actions implemented in keyPressEvent into webActionTriggered.
2047
2048         * Api/qwebpage.cpp:
2049         (QWebPage::webActionTriggered):
2050         (QWebPage::keyPressEvent):
2051         * Api/qwebpage.h:
2052
2053 2007-11-07  Simon Hausmann  <hausmann@kde.org>
2054
2055         Reviewed by Lars.
2056
2057         Introduced a central virtual void webActionTriggered(WebAction action) method that is called from various
2058         convenience methods such as cut()/copy()/paste().
2059
2060         * Api/qwebpage.cpp:
2061         (QWebPage::goBack):
2062         (QWebPage::webActionTriggered):
2063         (QWebPage::cut):
2064         (QWebPage::copy):
2065         * Api/qwebpage.h:
2066
2067 2007-11-07  Simon Hausmann  <hausmann@kde.org>
2068
2069         Reviewed by Lars.
2070
2071         Restructure the context menu classes for the Qt port. ContextMenu and ContextMenuItem don't store
2072         QActions/QMenus anymore but just store the action type, tag, title and optionally submenu as created
2073         in ContextMenu::populate().
2074         For the actual Qt context menu we traverse this structure after sendContextMenuEvent and create a QMenu
2075         out of it. That menu is currently not functional anymore though.
2076
2077         * Api/qwebpage.cpp:
2078         (QWebPagePrivate::createContextMenu):
2079         (QWebPage::contextMenuEvent):
2080         * Api/qwebpage_p.h:
2081
2082 2007-11-07  Simon Hausmann  <hausmann@kde.org>
2083
2084         Reviewed by Lars.
2085
2086         Changed ContextMenu::setPlatformDescription for the Qt port to not show the qmenu right away
2087         but instead just behave as a normal setter that takes ownership of the platform menu description (the qmenu).
2088         Instead now QWebPage::contextMenuEvent() retrieves the QMenu after calling sendContextMenuEvent and calls exec()
2089         on it.
2090
2091         * Api/qwebpage.cpp:
2092         (QWebPage::contextMenuEvent):
2093         * WebCoreSupport/ContextMenuClientQt.cpp:
2094         (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
2095
2096 2007-11-07  Simon Hausmann  <hausmann@kde.org>
2097
2098         Reviewed by Lars.
2099
2100         Changed to PlatformMouseEvent constructor to allow construction from a QContextMenuEvent.
2101         Call sendContextMenuEvent on the event handler from a QWidget::contextMenuEvent re-implementation instead of in mousePressEvent.
2102
2103         * Api/qwebpage.cpp:
2104         (QWebPage::mousePressEvent):
2105         (QWebPage::contextMenuEvent):
2106         * Api/qwebpage.h:
2107
2108 2007-11-07  Simon Hausmann  <hausmann@kde.org>
2109
2110         Reviewed by Lars.
2111
2112         Turned onLoadProgressChanged into a real private slot.
2113
2114         * Api/qwebpage.cpp:
2115         (QWebPage::QWebPage):
2116         * Api/qwebpage.h:
2117         * Api/qwebpage_p.h:
2118
2119 2007-11-07  Simon Hausmann  <hausmann@kde.org>
2120
2121         Reviewed by Lars.
2122
2123         Make QWebHistory an explicitly shared object, returned as a pointer by QWebPage::history().
2124
2125         * Api/qwebpage.cpp:
2126         (QWebPagePrivate::QWebPagePrivate):
2127         * Api/qwebpage.h:
2128         * Api/qwebpage_p.h:
2129         * Api/qwebpagehistory.cpp:
2130         (QWebPageHistory::QWebPageHistory):
2131         * Api/qwebpagehistory.h:
2132
2133 2007-11-07  Lars Knoll  <lars@trolltech.com>
2134
2135         Reviewed by Simon.
2136
2137         comments on API changes that we'd like to do.
2138
2139         * Api/qwebpage.h:
2140
2141 2007-11-07  Simon Hausmann  <hausmann@kde.org>
2142
2143         Reviewed by Lars Knoll <lars@trolltech.com>.
2144
2145         Add a QWebPage::frameCreated() signal and fix DRT
2146         
2147         The removal of createFrame in QWebPage broke the re-implementation
2148         in DumpRenderTree. Instead emit a frameCreated() signal and
2149         connect to it in DumpRenderTree.
2150         
2151
2152         * Api/qwebpage.cpp:
2153         (QWebPagePrivate::createMainFrame):
2154         * Api/qwebpage.h:
2155         * WebCoreSupport/FrameLoaderClientQt.cpp:
2156         (WebCore::FrameLoaderClientQt::createFrame):
2157
2158 2007-11-07  Lars Knoll  <lars@trolltech.com>
2159
2160         Reviewed by Simon.
2161
2162         Remove QWebPage::createFrame()
2163         
2164         now that QWebFrame doesn't have virtual methods anymore, there
2165         is no need for a createFrame() factory method in QWebpage.
2166
2167         * Api/qwebpage.cpp:
2168         (QWebPagePrivate::createMainFrame):
2169         * Api/qwebpage.h:
2170         * WebCoreSupport/FrameLoaderClientQt.cpp:
2171         (WebCore::FrameLoaderClientQt::createFrame):
2172
2173 2007-11-07  Simon Hausmann  <hausmann@kde.org>
2174
2175         Reviewed by Lars Knoll <lars@trolltech.com>.
2176
2177         Moved all the event handlers from QWebFrame into QWebPage.
2178         
2179         This cleans up the public API and allows us to remove the
2180         HackWebFrame hack in DumpRenderTree.
2181         
2182
2183         * Api/qwebframe.cpp:
2184         (QWebFrame::pos):
2185         * Api/qwebframe.h:
2186         * Api/qwebframe_p.h:
2187         * Api/qwebpage.cpp:
2188         (QWebPagePrivate::frameAt):
2189         (QWebPage::mouseMoveEvent):
2190         (QWebPage::mousePressEvent):
2191         (QWebPage::mouseDoubleClickEvent):
2192         (QWebPage::mouseReleaseEvent):
2193         (QWebPage::wheelEvent):
2194         * Api/qwebpage_p.h:
2195
2196 2007-11-07  Holger Freyther  <holger.freyther@trolltech.com>
2197
2198         Reviewed by Lars Knoll <lars@trolltech.com>.
2199
2200         Use correct UserAgent string.
2201         
2202         * Only have one User Agent String and this place is QWebPage
2203         * QWebPage::open -> QWebNetworkRequest -> QWebPage::open ->
2204         ResourceRequest -> FrameLoader::load -> QWebNetworkRequest
2205         * ResourceRequest is != 0 when getting called from WebCore, we
2206         will only do requests when coming from WebCore and then we can
2207         use the User-Agent set with the help of the FrameLoaderClient
2208         * We might want to change QWebNetworkRequest a bit
2209         
2210
2211         * Api/qwebnetworkinterface.cpp:
2212         (QWebNetworkRequestPrivate::init):
2213
2214 2007-11-07  Lars Knoll  <lars@trolltech.com>
2215
2216         Reviewed by Simon.
2217
2218         remove two notImplemented() warnings, as I believe we don't
2219         have to implement these methods. Add some (commented out)
2220         debug code in one place.
2221
2222         * WebCoreSupport/EditorClientQt.cpp:
2223         (WebCore::EditorClientQt::respondToChangedSelection):
2224         (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
2225
2226 2007-11-05  Tristan O'Tierney  <tristan@apple.com>
2227
2228         Reviewed by Darin Adler.
2229
2230         * WebCoreSupport/ChromeClientQt.cpp:
2231         (WebCore::ChromeClientQt::createWindow):
2232         * WebCoreSupport/ChromeClientQt.h:
2233         Revised to use new WebCore ChromeClient createWindow API.
2234
2235 2007-10-31  Lars Knoll  <lars@trolltech.com>
2236
2237         Reviewed by Simon.
2238
2239         fix most of the issues I found with Clipboard and DnD.
2240
2241         * Api/qwebpage.cpp:
2242         (QWebPage::dragLeaveEvent):
2243
2244 2007-10-31  Lars Knoll  <lars@trolltech.com>
2245
2246         Reviewed by Simon.
2247
2248         QDrag objects need to be created on the heap.
2249
2250         * WebCoreSupport/DragClientQt.cpp:
2251         (WebCore::DragClientQt::startDrag):
2252
2253 2007-10-31  Lars Knoll  <lars@trolltech.com>
2254
2255         Reviewed by Simon.
2256
2257         a dragLeave event is not the same as cancelling a drag.
2258
2259         * Api/qwebpage.cpp:
2260
2261 2007-10-26  Mark Rowe  <mrowe@apple.com>
2262
2263         Build fix.  Add missing #include of Platform.h.
2264
2265         * Api/qwebhistoryinterface.cpp:
2266
2267 2007-10-25  Holger Freyther  <zecke@selfish.org>
2268
2269         Reviewed by Simon Hausmann <hausmann@kde.org>.
2270
2271         * We need to set a != 0 status code for the fast/loader/xmlhttprequest-missing-file-exception.html
2272         * libxml2 has the semantic that when writing an empty string and finishing it will report an error. For QXmlStreamReader this is valid.
2273         * This is causing some regressions...
2274         
2275
2276         * Api/qwebnetworkinterface.cpp:
2277         (QWebNetworkManager::started):
2278         (QWebNetworkInterface::addJob):
2279
2280 2007-10-25  Holger Freyther  <zecke@selfish.org>
2281
2282         Reviewed by Simon Hausmann <hausmann@kde.org>.
2283
2284         * 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.
2285         * We can use the cross-platform result now. QWebNetworkInterface/Manager behaves the same as mac for local files.
2286         
2287
2288         * Api/qwebnetworkinterface.cpp:
2289         (QWebNetworkManager::started):
2290
2291 2007-10-25  Holger Freyther  <zecke@selfish.org>
2292
2293         Reviewed by Simon Hausmann <hausmann@kde.org>.
2294
2295         * 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.
2296         * Use the error message from Qt. It might or might not be translated.
2297         
2298
2299         * Api/qwebnetworkinterface.cpp:
2300         (QWebNetworkJob::errorString):
2301         (QWebNetworkJob::setErrorString):
2302         (QWebNetworkManager::finished):
2303         (QWebNetworkManager::doWork):
2304         (WebCoreHttp::onRequestFinished):
2305         * Api/qwebnetworkinterface.h:
2306         * Api/qwebnetworkinterface_p.h:
2307
2308 2007-10-25  Holger Freyther  <zecke@selfish.org>
2309
2310         Reviewed by Simon Hausmann <hausmann@kde.org>.
2311
2312         * 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.
2313         * 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.
2314         
2315
2316         * Api/qwebnetworkinterface.cpp:
2317         (QWebNetworkManager::doWork):
2318
2319 2007-10-25  Holger Freyther  <zecke@selfish.org>
2320
2321         Reviewed by Simon Hausmann <hausmann@kde.org>.
2322
2323         * No need to initialize values in the QWebNetworkJob c'tor
2324         * 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.
2325         
2326
2327         * Api/qwebnetworkinterface.cpp:
2328         (QWebNetworkJob::status):
2329         (QWebNetworkJob::setStatus):
2330         (QWebNetworkManager::started):
2331         (QWebNetworkManager::data):
2332         (QWebNetworkManager::finished):
2333         * Api/qwebnetworkinterface.h:
2334         * Api/qwebnetworkinterface_p.h:
2335         (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
2336
2337 2007-10-25  Holger Freyther  <zecke@selfish.org>
2338
2339         Reviewed by Simon Hausmann <hausmann@kde.org>.
2340
2341         * Consistency: Always name the jobs job.
2342         
2343
2344         * Api/qwebnetworkinterface.cpp:
2345         (WebCoreHttp::onReadyRead):
2346         (WebCoreHttp::onRequestFinished):
2347         (WebCoreHttp::onSslErrors):
2348         (WebCoreHttp::onAuthenticationRequired):
2349         (WebCoreHttp::onProxyAuthenticationRequired):
2350
2351 2007-10-25  Holger Freyther  <zecke@selfish.org>
2352
2353         Reviewed by Simon Hausmann <hausmann@kde.org>.
2354
2355         * 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.
2356         * This should be thread-safe besides QWebNetworkJob::{ref,deref}
2357         
2358
2359         * Api/qwebnetworkinterface.cpp:
2360         (QWebNetworkJob::~QWebNetworkJob):
2361         (QWebNetworkManager::QWebNetworkManager):
2362         (QWebNetworkManager::self):
2363         (QWebNetworkManager::add):
2364         (QWebNetworkManager::started):
2365         (QWebNetworkManager::finished):
2366         (QWebNetworkInterfacePrivate::sendFileData):
2367         (QWebNetworkInterfacePrivate::parseDataUrl):
2368         (QWebNetworkManager::queueStart):
2369         (QWebNetworkManager::queueData):
2370         (QWebNetworkManager::queueFinished):
2371         (QWebNetworkManager::doScheduleWork):
2372         (QWebNetworkManager::doWork):
2373         (gCleanupInterface):
2374         (QWebNetworkInterface::setDefaultInterface):
2375         (QWebNetworkInterface::defaultInterface):
2376         (QWebNetworkInterface::QWebNetworkInterface):
2377         (QWebNetworkInterface::started):
2378         (QWebNetworkInterface::data):
2379         (QWebNetworkInterface::finished):
2380         (WebCoreHttp::scheduleNextRequest):
2381         (WebCoreHttp::onResponseHeaderReceived):
2382         (WebCoreHttp::onReadyRead):
2383         (WebCoreHttp::onRequestFinished):
2384         (WebCoreHttp::cancel):
2385         * Api/qwebnetworkinterface.h:
2386         * Api/qwebnetworkinterface_p.h:
2387         (QWebNetworkManager::):
2388         (QWebNetworkManager::JobData::JobData):
2389         (QWebNetworkManager::JobFinished::JobFinished):
2390
2391 2007-10-25  Holger Freyther  <zecke@selfish.org>
2392
2393         Reviewed by Simon Hausmann <hausmann@kde.org>.
2394
2395         * Do the percent replacement only when we are not base64. With base64 we should not have any % in it anyway.
2396         * Have a custom decodePercentEncoding method that works without doing any charset conversion. With converting back to latin1() we lost some information.
2397         * We pass the char-decoding.html test now
2398         
2399
2400         * Api/qwebnetworkinterface.cpp:
2401         (decodePercentEncoding):
2402         (QWebNetworkInterfacePrivate::parseDataUrl):
2403
2404 2007-10-24  Holger Hans Peter Freyther  <zecke@selfish.org>
2405
2406         Reviewed by Lars Knoll <lars@trolltech.com>.
2407
2408         * Stop crashing on fast/events/frame-tab-focus.html the keyEvent can be 0.
2409         
2410
2411         * WebCoreSupport/EditorClientQt.cpp:
2412         (WebCore::EditorClientQt::handleKeypress):
2413
2414 2007-10-24  Lars Knoll  <lars@trolltech.com>
2415
2416         Reviewed by Simon.
2417
2418         remove some notImplemented() warnings.
2419
2420         * WebCoreSupport/EditorClientQt.cpp:
2421         (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
2422         (WebCore::EditorClientQt::isGrammarCheckingEnabled):
2423         (WebCore::EditorClientQt::respondToChangedSelection):
2424
2425 2007-10-24  Lars Knoll  <lars@trolltech.com>
2426
2427         Reviewed by Simon.
2428
2429         allow paste from DOM so we pass more test cases.
2430
2431         * Api/qwebpage.cpp:
2432         (QWebPage::setSettings):
2433
2434 2007-10-24  Lars Knoll  <lars@trolltech.com>
2435
2436         Reviewed by Simon.
2437
2438         Simplify the PlatformKeyEvent constructor. No need to have an extra boolean for isKeyUp in there, as the QKeyEvent has the information.
2439
2440         * Api/qwebpage.cpp:
2441         (QWebPage::keyPressEvent):
2442         (QWebPage::keyReleaseEvent):
2443
2444 2007-10-24  Lars Knoll  <lars@trolltech.com>
2445
2446         Reviewed by Simon.
2447
2448         some smaller fixes to the editing support in DRT. Makes another few tests pass.
2449
2450         * WebCoreSupport/EditorClientQt.cpp:
2451         (qt_dump_editing_callbacks):
2452         (qt_drt_run):
2453
2454 2007-10-24  Lars Knoll  <lars@trolltech.com>
2455
2456         Reviewed by Simon.
2457
2458         implemented support for most editing shortcuts to make contentEditable usable.
2459
2460         * Api/qwebpage.cpp:
2461         (QWebPage::keyPressEvent):
2462
2463 2007-10-24  Lars Knoll  <lars@trolltech.com>
2464
2465         Reviewed by Simon.
2466
2467         no need to call setIsActive ourselves on the frame, as the focus controller does it for us.
2468
2469         * Api/qwebpage.cpp:
2470         (QWebPage::focusInEvent):
2471
2472 2007-10-24  Lars Knoll  <lars@trolltech.com>
2473
2474         Reviewed by Simon.
2475
2476         Implement support for testing editing.
2477
2478         * WebCoreSupport/EditorClientQt.cpp:
2479         (qt_dump_editing_callbacks):
2480         (qt_dump_set_accepts_editing):
2481         (dumpPath):
2482         (dumpRange):
2483         (WebCore::EditorClientQt::shouldDeleteRange):
2484         (WebCore::EditorClientQt::shouldShowDeleteInterface):
2485         (WebCore::EditorClientQt::shouldBeginEditing):
2486         (WebCore::EditorClientQt::shouldEndEditing):
2487         (WebCore::EditorClientQt::shouldInsertText):
2488         (WebCore::EditorClientQt::shouldChangeSelectedRange):
2489         (WebCore::EditorClientQt::shouldApplyStyle):
2490         (WebCore::EditorClientQt::didBeginEditing):
2491         (WebCore::EditorClientQt::respondToChangedContents):
2492         (WebCore::EditorClientQt::respondToChangedSelection):
2493         (WebCore::EditorClientQt::didEndEditing):
2494         (WebCore::EditorClientQt::shouldInsertNode):
2495
2496 2007-10-19  Alp Toker  <alp@atoker.com>
2497
2498         Reviewed by Oliver.
2499
2500         GTK+ build fix enabling the new local database storage feature.
2501         There is also a prospective Qt build fix.
2502
2503         * WebCoreSupport/ChromeClientQt.cpp:
2504         (WebCore::ChromeClientQt::runDatabaseSizeLimitPrompt):
2505         * WebCoreSupport/ChromeClientQt.h:
2506
2507 2007-10-19  Simon Hausmann  <hausmann@kde.org>
2508
2509         Fix the Qt/Windows build: Include the moc file from the .cpp file so
2510         that config.h is included before wtf/MathExtras. The former defines
2511         the MSVC defines for rand_s.
2512
2513         * WebCoreSupport/FrameLoaderClientQt.cpp:
2514
2515 2007-10-19  Simon Hausmann  <shausman@trolltech.com>
2516
2517         Reviewed by Lars.
2518
2519         Fix the windows/qt build by including config.h first to fix wtf/MathExtras.h inclusion.
2520
2521         * Api/qwebframe.cpp:
2522         * Api/qwebpage.cpp:
2523
2524 2007-10-10  Alice Liu  <alice.liu@apple.com>
2525
2526         Reviewed by Geoff Garen.
2527
2528         changes to keep the build from breaking
2529
2530         * WebCoreSupport/FrameLoaderClientQt.cpp:
2531         (WebCore::FrameLoaderClientQt::createFrame):
2532         * WebCoreSupport/FrameLoaderClientQt.h:
2533
2534 2007-10-09  Lars Knoll  <lars@trolltech.com>
2535
2536         Reviewed by Simon.
2537
2538         set a default encoding for documents. Makes fast/dom/Document/document-charset.html pass.
2539
2540         * Api/qwebpage.cpp:
2541         (QWebPage::setSettings):
2542
2543 2007-10-09  Lars Knoll  <lars@trolltech.com>
2544
2545         Reviewed by Simon.
2546
2547         Don't return a 404 status code for empty data: urls. Fixes fast/dom/HTMLHeadElement/head-check.html
2548
2549         * Api/qwebnetworkinterface.cpp:
2550         (QWebNetworkManager::add):
2551         (QWebNetworkManager::cancel):
2552         (QWebNetworkManager::started):
2553         (QWebNetworkManager::data):
2554         (QWebNetworkInterfacePrivate::parseDataUrl):
2555
2556 2007-10-09  Lars Knoll  <lars@trolltech.com>
2557
2558         Reviewed by Simon.
2559
2560         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.
2561
2562         * Api/qwebpage.cpp:
2563         (QWebPagePrivate::createMainFrame):
2564         (QWebPage::createFrame):
2565         * WebCoreSupport/FrameLoaderClientQt.cpp:
2566         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2567         * WebCoreSupport/FrameLoaderClientQt.h:
2568
2569 2007-10-09  Lars Knoll  <lars@trolltech.com>
2570
2571         Reviewed by Simon.
2572
2573         add a clear() method to QWebPageHistory.
2574
2575         * Api/qwebpagehistory.cpp:
2576         (QWebPageHistory::clear):
2577         (QWebPageHistory::itemAtIndex):
2578         * Api/qwebpagehistory.h:
2579
2580 2007-10-05  Lars Knoll  <lars@trolltech.com>
2581
2582         add proper error messages to the FrameLoaderClient.
2583         Implement ChromeClientQt::closeWindowSoon and
2584         FrameLoaderClientQt::dispatchCreatePage (which should go away IMO).
2585         Some fixes in DRT to make it work correctly with multiple windows.
2586
2587         Reviewed by Maciej.
2588
2589         * Api/qwebframe.h:
2590         * Api/qwebnetworkinterface.cpp:
2591         (QWebNetworkManager::cancel):
2592         (QWebNetworkInterface::addJob):
2593         * WebCoreSupport/ChromeClientQt.cpp:
2594         (WebCore::ChromeClientQt::closeWindowSoon):
2595         * WebCoreSupport/FrameLoaderClientQt.cpp:
2596         (WebCore::FrameLoaderClientQt::cancelledError):
2597         (WebCore::):
2598         (WebCore::FrameLoaderClientQt::blockedError):
2599         (WebCore::FrameLoaderClientQt::cannotShowURLError):
2600         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2601         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2602         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
2603
2604 2007-10-03  Lars Knoll  <lars@trolltech.com>
2605
2606         Signed off by Olliej.
2607
2608         move WebKitQt to WebKit/qt for consistency with the other ports.
2609
2610         * Api/headers.pri: Renamed from WebKitQt/Api/headers.pri.
2611         * Api/qcookiejar.cpp: Renamed from WebKitQt/Api/qcookiejar.cpp.
2612         (QCookieJarPrivate::QCookieJarPrivate):
2613         (qHash):
2614         (QCookieJar::QCookieJar):
2615         (QCookieJar::~QCookieJar):
2616         (QCookieJar::setCookies):
2617         (QCookieJar::cookies):
2618         (QCookieJar::isEnabled):
2619         (QCookieJar::setEnabled):
2620         (gCleanupJar):
2621         (QCookieJar::setCookieJar):
2622         (QCookieJar::cookieJar):
2623         * Api/qcookiejar.h: Renamed from WebKitQt/Api/qcookiejar.h.
2624         * Api/qtwebkit.prf: Renamed from WebKitQt/Api/qtwebkit.prf.
2625         * Api/qwebframe.cpp: Renamed from WebKitQt/Api/qwebframe.cpp.
2626         (QWebFramePrivate::init):
2627         (QWebFramePrivate::parentFrame):
2628         (QWebFramePrivate::horizontalScrollBar):
2629         (QWebFramePrivate::verticalScrollBar):
2630         (QWebFrame::QWebFrame):
2631         (QWebFrame::~QWebFrame):
2632         (QWebFrame::addToJSWindowObject):
2633         (QWebFrame::markup):
2634         (QWebFrame::innerText):
2635         (QWebFrame::renderTreeDump):
2636         (QWebFrame::title):
2637         (QWebFrame::name):
2638         (QWebFrame::page):
2639         (QWebFrame::selectedText):
2640         (QWebFrame::childFrames):
2641         (QWebFrame::verticalScrollBarPolicy):
2642         (QWebFrame::setVerticalScrollBarPolicy):
2643         (QWebFrame::horizontalScrollBarPolicy):
2644         (QWebFrame::setHorizontalScrollBarPolicy):
2645         (QWebFrame::render):
2646         (QWebFrame::layout):
2647         (QWebFrame::pos):
2648         (QWebFrame::geometry):
2649         (QWebFrame::evaluateJavaScript):
2650         (QWebFrame::mouseMoveEvent):
2651         (QWebFrame::mousePressEvent):
2652         (QWebFrame::mouseDoubleClickEvent):
2653         (QWebFrame::mouseReleaseEvent):
2654         (QWebFrame::wheelEvent):
2655         * Api/qwebframe.h: Renamed from WebKitQt/Api/qwebframe.h.
2656         * Api/qwebframe_p.h: Renamed from WebKitQt/Api/qwebframe_p.h.
2657         (QWebFramePrivate::QWebFramePrivate):
2658         * Api/qwebhistoryinterface.cpp: Renamed from WebKitQt/Api/qwebhistoryinterface.cpp.
2659         (WebCore::historyContains):
2660         (gCleanupInterface):
2661         (QWebHistoryInterface::setDefaultInterface):
2662         (QWebHistoryInterface::defaultInterface):
2663         (QWebHistoryInterface::QWebHistoryInterface):
2664         * Api/qwebhistoryinterface.h: Renamed from WebKitQt/Api/qwebhistoryinterface.h.
2665         * Api/qwebkitglobal.h: Renamed from WebKitQt/Api/qwebkitglobal.h.
2666         * Api/qwebnetworkinterface.cpp: Renamed from WebKitQt/Api/qwebnetworkinterface.cpp.
2667         (qHash):
2668         (operator==):
2669         (QWebNetworkRequestPrivate::init):
2670         (QWebNetworkRequestPrivate::setURL):
2671         (QWebNetworkRequest::QWebNetworkRequest):
2672         (QWebNetworkRequest::operator=):
2673         (QWebNetworkRequest::~QWebNetworkRequest):
2674         (QWebNetworkRequest::url):
2675         (QWebNetworkRequest::setUrl):
2676         (QWebNetworkRequest::httpHeader):
2677         (QWebNetworkRequest::setHttpHeader):
2678         (QWebNetworkRequest::httpHeaderField):
2679         (QWebNetworkRequest::setHttpHeaderField):
2680         (QWebNetworkRequest::postData):
2681         (QWebNetworkRequest::setPostData):
2682         (QWebNetworkJob::QWebNetworkJob):
2683         (QWebNetworkJob::~QWebNetworkJob):
2684         (QWebNetworkJob::url):
2685         (QWebNetworkJob::postData):
2686         (QWebNetworkJob::httpHeader):
2687         (QWebNetworkJob::request):
2688         (QWebNetworkJob::response):
2689         (QWebNetworkJob::setResponse):
2690         (QWebNetworkJob::cancelled):
2691         (QWebNetworkJob::ref):
2692         (QWebNetworkJob::deref):
2693         (QWebNetworkJob::networkInterface):
2694         (QWebNetworkJob::frame):
2695         (QWebNetworkManager::QWebNetworkManager):
2696         (QWebNetworkManager::self):
2697         (QWebNetworkManager::add):
2698         (QWebNetworkManager::cancel):
2699         (QWebNetworkManager::started):
2700         (QWebNetworkManager::data):
2701         (QWebNetworkManager::finished):
2702         (QWebNetworkManager::addHttpJob):
2703         (QWebNetworkManager::cancelHttpJob):
2704         (QWebNetworkManager::httpConnectionClosed):
2705         (QWebNetworkInterfacePrivate::sendFileData):
2706         (QWebNetworkInterfacePrivate::parseDataUrl):
2707         (gCleanupInterface):
2708         (QWebNetworkInterface::setDefaultInterface):
2709         (QWebNetworkInterface::defaultInterface):
2710         (QWebNetworkInterface::QWebNetworkInterface):
2711         (QWebNetworkInterface::~QWebNetworkInterface):
2712         (QWebNetworkInterface::addJob):
2713         (QWebNetworkInterface::cancelJob):
2714         (WebCoreHttp::WebCoreHttp):
2715         (WebCoreHttp::~WebCoreHttp):
2716         (WebCoreHttp::request):
2717         (WebCoreHttp::scheduleNextRequest):
2718         (WebCoreHttp::getConnection):
2719         (WebCoreHttp::onResponseHeaderReceived):
2720         (WebCoreHttp::onReadyRead):
2721         (WebCoreHttp::onRequestFinished):
2722         (WebCoreHttp::onDone):
2723         (WebCoreHttp::onStateChanged):
2724         (WebCoreHttp::cancel):
2725         (WebCoreHttp::onSslErrors):
2726         (WebCoreHttp::onAuthenticationRequired):
2727         (WebCoreHttp::onProxyAuthenticationRequired):
2728         (HostInfo::HostInfo):
2729         * Api/qwebnetworkinterface.h: Renamed from WebKitQt/Api/qwebnetworkinterface.h.
2730         * Api/qwebnetworkinterface_p.h: Renamed from WebKitQt/Api/qwebnetworkinterface_p.h.
2731         (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
2732         (WebCore::HostInfo::HostInfo):
2733         (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
2734         * Api/qwebobjectplugin.cpp: Renamed from WebKitQt/Api/qwebobjectplugin.cpp.
2735         (QWebFactoryLoader::QWebFactoryLoader):
2736         (QWebFactoryLoader::self):
2737         (QWebFactoryLoader::descriptionForName):
2738         (QWebFactoryLoader::mimetypesForName):
2739         (QWebFactoryLoader::mimeTypeForExtension):
2740         (QWebFactoryLoader::extensions):
2741         (QWebFactoryLoader::nameForMimetype):
2742         (QWebFactoryLoader::create):
2743         (QWebObjectPlugin::QWebObjectPlugin):
2744         (QWebObjectPlugin::~QWebObjectPlugin):
2745         (QWebObjectPlugin::descriptionForKey):
2746         (QWebObjectPlugin::mimetypesForKey):
2747         (QWebObjectPlugin::extensionsForMimetype):
2748         * Api/qwebobjectplugin.h: Renamed from WebKitQt/Api/qwebobjectplugin.h.
2749         * Api/qwebobjectplugin_p.h: Renamed from WebKitQt/Api/qwebobjectplugin_p.h.
2750         (QWebFactoryLoader::names):
2751         (QWebFactoryLoader::supportsMimeType):
2752         * Api/qwebobjectpluginconnector.cpp: Renamed from WebKitQt/Api/qwebobjectpluginconnector.cpp.
2753         (QWebObjectPluginConnector::QWebObjectPluginConnector):
2754         (QWebObjectPluginConnector::frame):
2755         (QWebObjectPluginConnector::pluginParentWidget):
2756         (QWebObjectPluginConnector::requestUrl):
2757         * Api/qwebobjectpluginconnector.h: Renamed from WebKitQt/Api/qwebobjectpluginconnector.h.
2758         * Api/qwebpage.cpp: Renamed from WebKitQt/Api/qwebpage.cpp.
2759         (QWebPagePrivate::QWebPagePrivate):
2760         (QWebPagePrivate::~QWebPagePrivate):
2761         (QWebPagePrivate::navigationRequested):
2762         (QWebPagePrivate::createMainFrame):
2763         (QWebPage::QWebPage):
2764         (QWebPage::~QWebPage):
2765         (QWebPage::createFrame):
2766         (QWebPage::open):
2767         (QWebPage::url):
2768         (QWebPage::title):
2769         (QWebPage::mainFrame):
2770         (QWebPage::sizeHint):
2771         (QWebPage::stop):
2772         (QWebPage::history):
2773         (QWebPage::goBack):
2774         (QWebPage::goForward):
2775         (QWebPage::goToHistoryItem):
2776         (QWebPage::javaScriptConsoleMessage):
2777         (QWebPage::javaScriptAlert):
2778         (QWebPage::javaScriptConfirm):
2779         (QWebPage::javaScriptPrompt):
2780         (QWebPage::createWindow):
2781         (QWebPage::createModalDialog):
2782         (QWebPage::createPlugin):
2783         (QWebPage::navigationRequested):
2784         (QWebPage::setWindowGeometry):
2785         (QWebPage::canCut):
2786         (QWebPage::canCopy):
2787         (QWebPage::canPaste):
2788         (QWebPage::cut):
2789         (QWebPage::copy):
2790         (QWebPage::paste):
2791         (QWebPage::isModified):
2792         (QWebPage::undoStack):
2793         (dropActionToDragOp):
2794         (dragOpToDropAction):
2795         (QWebPage::resizeEvent):
2796         (QWebPage::paintEvent):
2797         (QWebPage::mouseMoveEvent):
2798         (QWebPage::mousePressEvent):
2799         (QWebPage::mouseDoubleClickEvent):
2800         (QWebPage::mouseReleaseEvent):
2801         (QWebPage::wheelEvent):
2802         (QWebPage::keyPressEvent):
2803         (QWebPage::keyReleaseEvent):
2804         (QWebPage::focusInEvent):
2805         (QWebPage::focusOutEvent):
2806         (QWebPage::focusNextPrevChild):
2807         (QWebPage::dragEnterEvent):
2808         (QWebPage::dragLeaveEvent):
2809         (QWebPage::dragMoveEvent):
2810         (QWebPage::dropEvent):
2811         (QWebPage::setNetworkInterface):
2812         (QWebPage::networkInterface):
2813         (QWebPage::icon):
2814         (QWebPage::setSettings):
2815         (QWebPage::settings):
2816         (QWebPage::chooseFile):
2817         (QWebPage::setNetworkProxy):
2818         (QWebPage::networkProxy):
2819         (QWebPage::userAgentStringForUrl):
2820         (QWebPage::onLoadProgressChanged):
2821         (QWebPage::totalBytes):
2822         * Api/qwebpage.h: Renamed from WebKitQt/Api/qwebpage.h.
2823         * Api/qwebpage_p.h: Renamed from WebKitQt/Api/qwebpage_p.h.
2824         * Api/qwebpagehistory.cpp: Renamed from WebKitQt/Api/qwebpagehistory.cpp.
2825         (QWebHistoryItem::QWebHistoryItem):
2826         (QWebHistoryItem::operator=):
2827         (QWebHistoryItem::~QWebHistoryItem):
2828         (QWebHistoryItem::originalUrl):
2829         (QWebHistoryItem::currentUrl):
2830         (QWebHistoryItem::title):
2831         (QWebHistoryItem::lastVisited):
2832         (QWebHistoryItem::icon):
2833         (QWebPageHistory::QWebPageHistory):
2834         (QWebPageHistory::itemAtIndex):
2835         (QWebPageHistory::operator=):
2836         (QWebPageHistory::~QWebPageHistory):
2837         (QWebPageHistory::items):
2838         (QWebPageHistory::backItems):
2839         (QWebPageHistory::forwardItems):
2840         (QWebPageHistory::canGoBack):
2841         (QWebPageHistory::canGoForward):
2842         (QWebPageHistory::goBack):
2843         (QWebPageHistory::goForward):
2844         (QWebPageHistory::goToItem):
2845         (QWebPageHistory::backItem):
2846         (QWebPageHistory::currentItem):
2847         (QWebPageHistory::forwardItem):
2848         * Api/qwebpagehistory.h: Renamed from WebKitQt/Api/qwebpagehistory.h.
2849         (QExplicitlySharedDataPointer::operator*):
2850         (QExplicitlySharedDataPointer::operator->):
2851         (QExplicitlySharedDataPointer::operator T *):
2852         (QExplicitlySharedDataPointer::operator const T *):
2853         (QExplicitlySharedDataPointer::data):
2854         (QExplicitlySharedDataPointer::constData):
2855         (QExplicitlySharedDataPointer::operator==):
2856         (QExplicitlySharedDataPointer::operator!=):
2857         (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer):
2858         (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer):
2859         (QExplicitlySharedDataPointer::operator=):
2860         (QExplicitlySharedDataPointer::operator!):
2861         (::QExplicitlySharedDataPointer):
2862         * Api/qwebpagehistory_p.h: Renamed from WebKitQt/Api/qwebpagehistory_p.h.
2863         (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
2864         (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
2865         (QWebPageHistoryPrivate::QWebPageHistoryPrivate):
2866         (QWebPageHistoryPrivate::~QWebPageHistoryPrivate):
2867         * Api/qwebsettings.cpp: Renamed from WebKitQt/Api/qwebsettings.cpp.
2868         (QWebSettingsPrivate::QWebSettingsPrivate):
2869         (QWebSettings::QWebSettings):
2870         (QWebSettings::~QWebSettings):
2871         (QWebSettings::setMinimumFontSize):
2872         (QWebSettings::minimumFontSize):
2873         (QWebSettings::setMinimumLogicalFontSize):
2874         (QWebSettings::minimumLogicalFontSize):
2875         (QWebSettings::setDefaultFontSize):
2876         (QWebSettings::defaultFontSize):
2877         (QWebSettings::setDefaultFixedFontSize):
2878         (QWebSettings::defaultFixedFontSize):
2879         (QWebSettings::setUserStyleSheetLocation):
2880         (QWebSettings::userStyleSheetLocation):
2881         (QWebSettings::setIconDatabaseEnabled):
2882         (QWebSettings::iconDatabaseEnabled):
2883         (QWebSettings::setWebGraphic):
2884         (QWebSettings::webGraphic):
2885         (QWebSettings::operator=):
2886         (QWebSettings::setGlobal):
2887         (QWebSettings::global):
2888         (QWebSettings::setFontFamily):
2889         (QWebSettings::fontFamily):
2890         (QWebSettings::setAttribute):
2891         (QWebSettings::testAttribute):
2892         (loadResourcePixmap):
2893         * Api/qwebsettings.h: Renamed from WebKitQt/Api/qwebsettings.h.
2894         * ChangeLog: Renamed from WebKitQt/ChangeLog.
2895         * Plugins/ICOHandler.cpp: Renamed from WebKitQt/Plugins/ICOHandler.cpp.
2896         (IcoHeader::operator >>):
2897         (IcoHeader::BMP_INFOHDR::):
2898         (IcoHeader::operator<<):
2899         (IcoHeader::LessDifference::LessDifference):
2900         (IcoHeader::LessDifference::operator ()):
2901         (IcoHeader::loadFromDIB):
2902         (ICOHandler::ICOHandler):
2903         (ICOHandler::canRead):
2904         (ICOHandler::read):
2905         (ICOHandler::write):
2906         (ICOHandler::name):
2907         (ICOPlugin::keys):
2908         (ICOPlugin::capabilities):
2909         (ICOPlugin::create):
2910         * Plugins/ICOHandler.h: Renamed from WebKitQt/Plugins/ICOHandler.h.
2911         * Plugins/Plugins.pro: Renamed from WebKitQt/Plugins/Plugins.pro.
2912         * QtLauncher/QtLauncher.pro: Renamed from WebKitQt/QtLauncher/QtLauncher.pro.
2913         * QtLauncher/main.cpp: Renamed from WebKitQt/QtLauncher/main.cpp.
2914         (HoverLabel::HoverLabel):
2915         (HoverLabel::setHoverLink):
2916         (HoverLabel::sizeForFont):
2917         (HoverLabel::sizeHint):
2918         (HoverLabel::updateSize):
2919         (HoverLabel::resetAnimation):
2920         (HoverLabel::paintEvent):
2921         (HoverLabel::interpolate):
2922         (ClearButton::ClearButton):
2923         (ClearButton::paintEvent):
2924         (SearchEdit::SearchEdit):
2925         (SearchEdit::~SearchEdit):
2926         (SearchEdit::paintEvent):
2927         (SearchEdit::resizeEvent):
2928         (SearchEdit::moveEvent):
2929         (MainWindow::MainWindow):
2930         (MainWindow::changeLocation):
2931         (MainWindow::loadFinished):
2932         (MainWindow::showLinkHover):
2933         (MainWindow::resizeEvent):
2934         (main):
2935         * WebCoreSupport/ChromeClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.cpp.
2936         (WebCore::ChromeClientQt::ChromeClientQt):
2937         (WebCore::ChromeClientQt::~ChromeClientQt):
2938         (WebCore::ChromeClientQt::setWindowRect):
2939         (WebCore::ChromeClientQt::windowRect):
2940         (WebCore::ChromeClientQt::pageRect):
2941         (WebCore::ChromeClientQt::scaleFactor):
2942         (WebCore::ChromeClientQt::focus):
2943         (WebCore::ChromeClientQt::unfocus):
2944         (WebCore::ChromeClientQt::canTakeFocus):
2945         (WebCore::ChromeClientQt::takeFocus):
2946         (WebCore::ChromeClientQt::createWindow):
2947         (WebCore::ChromeClientQt::createModalDialog):
2948         (WebCore::ChromeClientQt::show):
2949         (WebCore::ChromeClientQt::canRunModal):
2950         (WebCore::ChromeClientQt::runModal):
2951         (WebCore::ChromeClientQt::setToolbarsVisible):
2952         (WebCore::ChromeClientQt::toolbarsVisible):
2953         (WebCore::ChromeClientQt::setStatusbarVisible):
2954         (WebCore::ChromeClientQt::statusbarVisible):
2955         (WebCore::ChromeClientQt::setScrollbarsVisible):
2956         (WebCore::ChromeClientQt::scrollbarsVisible):
2957         (WebCore::ChromeClientQt::setMenubarVisible):
2958         (WebCore::ChromeClientQt::menubarVisible):
2959         (WebCore::ChromeClientQt::setResizable):
2960         (WebCore::ChromeClientQt::addMessageToConsole):
2961         (WebCore::ChromeClientQt::chromeDestroyed):
2962         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
2963         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
2964         (WebCore::ChromeClientQt::closeWindowSoon):
2965         (WebCore::ChromeClientQt::runJavaScriptAlert):
2966         (WebCore::ChromeClientQt::runJavaScriptConfirm):
2967         (WebCore::ChromeClientQt::runJavaScriptPrompt):
2968         (WebCore::ChromeClientQt::setStatusbarText):
2969         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
2970         (WebCore::ChromeClientQt::tabsToLinks):
2971         (WebCore::ChromeClientQt::windowResizerRect):
2972         (WebCore::ChromeClientQt::addToDirtyRegion):
2973         (WebCore::ChromeClientQt::scrollBackingStore):
2974         (WebCore::ChromeClientQt::updateBackingStore):
2975         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2976         (WebCore::ChromeClientQt::setToolTip):
2977         (WebCore::ChromeClientQt::print):
2978         * WebCoreSupport/ChromeClientQt.h: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.h.
2979         * WebCoreSupport/ContextMenuClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.cpp.
2980         (WebCore::ContextMenuClientQt::contextMenuDestroyed):
2981         (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
2982         (WebCore::ContextMenuClientQt::contextMenuItemSelected):
2983         (WebCore::ContextMenuClientQt::downloadURL):
2984         (WebCore::ContextMenuClientQt::lookUpInDictionary):
2985         (WebCore::ContextMenuClientQt::speak):
2986         (WebCore::ContextMenuClientQt::stopSpeaking):
2987         (WebCore::ContextMenuClientQt::searchWithGoogle):
2988         * WebCoreSupport/ContextMenuClientQt.h: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.h.
2989         * WebCoreSupport/DragClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/DragClientQt.cpp.
2990         (WebCore::DragClientQt::actionMaskForDrag):
2991         (WebCore::DragClientQt::willPerformDragDestinationAction):
2992         (WebCore::DragClientQt::dragControllerDestroyed):
2993         (WebCore::DragClientQt::dragSourceActionMaskForPoint):
2994         (WebCore::DragClientQt::willPerformDragSourceAction):
2995         (WebCore::DragClientQt::startDrag):
2996         * WebCoreSupport/DragClientQt.h: Renamed from WebKitQt/WebCoreSupport/DragClientQt.h.
2997         (WebCore::DragClientQt::DragClientQt):
2998         * WebCoreSupport/EditCommandQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.cpp.
2999         (EditCommandQt::EditCommandQt):
3000         (EditCommandQt::~EditCommandQt):
3001         (EditCommandQt::redo):
3002         (EditCommandQt::undo):
3003         * WebCoreSupport/EditCommandQt.h: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.h.
3004         * WebCoreSupport/EditorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.cpp.
3005         (WebCore::EditorClientQt::shouldDeleteRange):
3006         (WebCore::EditorClientQt::shouldShowDeleteInterface):
3007         (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
3008         (WebCore::EditorClientQt::isGrammarCheckingEnabled):
3009         (WebCore::EditorClientQt::spellCheckerDocumentTag):
3010         (WebCore::EditorClientQt::shouldBeginEditing):
3011         (WebCore::EditorClientQt::shouldEndEditing):
3012         (WebCore::EditorClientQt::shouldInsertText):
3013         (WebCore::EditorClientQt::shouldChangeSelectedRange):
3014         (WebCore::EditorClientQt::shouldApplyStyle):
3015         (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
3016         (WebCore::EditorClientQt::didBeginEditing):
3017         (WebCore::EditorClientQt::respondToChangedContents):
3018         (WebCore::EditorClientQt::respondToChangedSelection):
3019         (WebCore::EditorClientQt::didEndEditing):
3020         (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
3021         (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard):
3022         (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
3023         (WebCore::EditorClientQt::isEditable):
3024         (WebCore::EditorClientQt::registerCommandForUndo):
3025         (WebCore::EditorClientQt::registerCommandForRedo):
3026         (WebCore::EditorClientQt::clearUndoRedoOperations):
3027         (WebCore::EditorClientQt::canUndo):
3028         (WebCore::EditorClientQt::canRedo):
3029         (WebCore::EditorClientQt::undo):
3030         (WebCore::EditorClientQt::redo):
3031         (WebCore::EditorClientQt::shouldInsertNode):
3032         (WebCore::EditorClientQt::pageDestroyed):
3033         (WebCore::EditorClientQt::smartInsertDeleteEnabled):
3034         (WebCore::EditorClientQt::toggleContinuousSpellChecking):
3035         (WebCore::EditorClientQt::toggleGrammarChecking):
3036         (WebCore::EditorClientQt::handleKeypress):
3037         (WebCore::EditorClientQt::handleInputMethodKeypress):
3038         (WebCore::EditorClientQt::EditorClientQt):
3039         (WebCore::EditorClientQt::textFieldDidBeginEditing):
3040         (WebCore::EditorClientQt::textFieldDidEndEditing):
3041         (WebCore::EditorClientQt::textDidChangeInTextField):
3042         (WebCore::EditorClientQt::doTextFieldCommandFromEvent):
3043         (WebCore::EditorClientQt::textWillBeDeletedInTextField):
3044         (WebCore::EditorClientQt::textDidChangeInTextArea):
3045         (WebCore::EditorClientQt::ignoreWordInSpellDocument):
3046         (WebCore::EditorClientQt::learnWord):
3047         (WebCore::EditorClientQt::checkSpellingOfString):
3048         (WebCore::EditorClientQt::checkGrammarOfString):
3049         (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
3050         (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord):
3051         (WebCore::EditorClientQt::showSpellingUI):
3052         (WebCore::EditorClientQt::spellingUIIsShowing):
3053         (WebCore::EditorClientQt::getGuessesForWord):
3054         (WebCore::EditorClientQt::isEditing):
3055         (WebCore::EditorClientQt::setInputMethodState):
3056         * WebCoreSupport/EditorClientQt.h: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.h.
3057         * WebCoreSupport/FrameLoaderClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp.
3058         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3059         (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
3060         (WebCore::FrameLoaderClientQt::setFrame):
3061         (WebCore::FrameLoaderClientQt::webFrame):
3062         (WebCore::FrameLoaderClientQt::callPolicyFunction):
3063         (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
3064         (WebCore::FrameLoaderClientQt::hasWebView):
3065         (WebCore::FrameLoaderClientQt::hasFrameView):
3066         (WebCore::FrameLoaderClientQt::hasBackForwardList):
3067         (WebCore::FrameLoaderClientQt::resetBackForwardList):
3068         (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
3069         (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
3070         (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
3071         (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
3072         (WebCore::FrameLoaderClientQt::makeDocumentView):
3073         (WebCore::FrameLoaderClientQt::makeRepresentation):
3074         (WebCore::FrameLoaderClientQt::forceLayout):
3075         (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
3076         (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
3077         (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
3078         (WebCore::FrameLoaderClientQt::resetAfterLoadError):
3079         (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
3080         (WebCore::FrameLoaderClientQt::willCloseDocument):
3081         (WebCore::FrameLoaderClientQt::detachedFromParent2):
3082         (WebCore::FrameLoaderClientQt::detachedFromParent3):
3083         (WebCore::FrameLoaderClientQt::detachedFromParent4):
3084         (WebCore::FrameLoaderClientQt::loadedFromCachedPage):
3085         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
3086         (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
3087         (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
3088         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
3089         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
3090         (WebCore::FrameLoaderClientQt::dispatchWillClose):
3091         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
3092         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
3093         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
3094         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
3095         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3096         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
3097         (WebCore::FrameLoaderClientQt::dispatchShow):
3098         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
3099         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
3100         (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
3101         (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
3102         (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
3103         (WebCore::FrameLoaderClientQt::revertToProvisionalState):
3104         (WebCore::FrameLoaderClientQt::clearUnarchivingState):
3105         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
3106         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
3107         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
3108         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
3109         (WebCore::FrameLoaderClientQt::willChangeTitle):
3110         (WebCore::FrameLoaderClientQt::didChangeTitle):
3111         (WebCore::FrameLoaderClientQt::finishedLoading):
3112         (WebCore::FrameLoaderClientQt::finalSetupForReplace):
3113         (WebCore::FrameLoaderClientQt::setDefersLoading):
3114         (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
3115         (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
3116         (WebCore::FrameLoaderClientQt::clearArchivedResources):
3117         (WebCore::FrameLoaderClientQt::canShowMIMEType):
3118         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
3119         (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
3120         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
3121         (WebCore::FrameLoaderClientQt::restoreViewState):
3122         (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
3123         (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
3124         (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
3125         (WebCore::FrameLoaderClientQt::didFinishLoad):
3126         (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
3127         (WebCore::FrameLoaderClientQt::setTitle):
3128         (WebCore::FrameLoaderClientQt::userAgent):
3129         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
3130         (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
3131         (WebCore::FrameLoaderClientQt::canHandleRequest):
3132         (WebCore::FrameLoaderClientQt::windowObjectCleared):
3133         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
3134         (WebCore::FrameLoaderClientQt::registerForIconNotification):
3135         (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage):
3136         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
3137         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload):
3138         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
3139         (WebCore::FrameLoaderClientQt::saveViewStateToItem):
3140         (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage):
3141         (WebCore::FrameLoaderClientQt::canCachePage):
3142         (WebCore::FrameLoaderClientQt::setMainDocumentError):
3143         (WebCore::FrameLoaderClientQt::committedLoad):
3144         (WebCore::FrameLoaderClientQt::cancelledError):
3145         (WebCore::FrameLoaderClientQt::blockedError):
3146         (WebCore::FrameLoaderClientQt::cannotShowURLError):
3147         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
3148         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
3149         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
3150         (WebCore::FrameLoaderClientQt::shouldFallBack):
3151         (WebCore::FrameLoaderClientQt::createDocumentLoader):
3152         (WebCore::FrameLoaderClientQt::download):
3153         (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
3154         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
3155         (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
3156         (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
3157         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
3158         (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
3159         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
3160         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
3161         (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
3162         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3163         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3164         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
3165         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
3166         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
3167         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3168         (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
3169         (WebCore::FrameLoaderClientQt::startDownload):
3170         (WebCore::FrameLoaderClientQt::willUseArchive):
3171         (WebCore::FrameLoaderClientQt::createFrame):
3172         (WebCore::FrameLoaderClientQt::objectContentType):
3173         (WebCore::):
3174         (WebCore::FrameLoaderClientQt::createPlugin):
3175         (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
3176         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
3177         (WebCore::FrameLoaderClientQt::overrideMediaType):
3178         * WebCoreSupport/FrameLoaderClientQt.h: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.h.
3179         * WebCoreSupport/InspectorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.cpp.
3180         (WebCore::InspectorClientQt::inspectorDestroyed):
3181         (WebCore::InspectorClientQt::createPage):
3182         (WebCore::InspectorClientQt::showWindow):
3183         (WebCore::InspectorClientQt::closeWindow):
3184         (WebCore::InspectorClientQt::attachWindow):
3185         (WebCore::InspectorClientQt::detachWindow):
3186         (WebCore::InspectorClientQt::highlight):
3187         (WebCore::InspectorClientQt::hideHighlight):
3188         * WebCoreSupport/InspectorClientQt.h: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.h.
3189         * WebKitPart/WebKitFactory.cpp: Renamed from WebKitQt/WebKitPart/WebKitFactory.cpp.
3190         (WebKitFactory::WebKitFactory):
3191         (WebKitFactory::~WebKitFactory):
3192         (WebKitFactory::createPartObject):
3193         (WebKitFactory::instance):
3194         (WebKitFactory::ref):
3195         (WebKitFactory::deref):
3196         * WebKitPart/WebKitFactory.h: Renamed from WebKitQt/WebKitPart/WebKitFactory.h.
3197         * WebKitPart/WebKitPart.cpp: Renamed from WebKitQt/WebKitPart/WebKitPart.cpp.
3198         (WebKitPart::WebKitPart):
3199         (WebKitPart::~WebKitPart):
3200         (WebKitPart::openFile):
3201         (WebKitPart::openUrl):
3202         (WebKitPart::closeUrl):
3203         (WebKitPart::parentPart):
3204         (WebKitPart::frame):
3205         (WebKitPart::initView):
3206         * WebKitPart/WebKitPart.desktop: Renamed from WebKitQt/WebKitPart/WebKitPart.desktop.
3207         * WebKitPart/WebKitPart.h: Renamed from WebKitQt/WebKitPart/WebKitPart.h.
3208         (WebKitPart::):
3209         * WebKitPart/WebKitPart.rc: Renamed from WebKitQt/WebKitPart/WebKitPart.rc.
3210         * WebKitPart/WebKitPartBrowser.rc: Renamed from WebKitQt/WebKitPart/WebKitPartBrowser.rc.
3211         * WebKitPart/WebKitPartBrowserExtension.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.cpp.
3212         (WebKitPartBrowserExtension::WebKitPartBrowserExtension):
3213         * WebKitPart/WebKitPartBrowserExtension.h: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.h.
3214         * WebKitPart/WebKitPartClient.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartClient.cpp.
3215         (WebKitPartClient::WebKitPartClient):
3216         (WebKitPartClient::~WebKitPartClient):
3217         * WebKitPart/WebKitPartClient.h: Renamed from WebKitQt/WebKitPart/WebKitPartClient.h.
3218         * WebKitPart/WebKitPartInterface.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.cpp.
3219         (WebKitPartInterface::WebKitPartInterface):
3220         (WebKitPartInterface::~WebKitPartInterface):
3221         (WebKitPartInterface::url):
3222         * WebKitPart/WebKitPartInterface.h: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.h.
3223         * WebKitPart/org.kde.WebKitPart.xml: Renamed from WebKitQt/WebKitPart/org.kde.WebKitPart.xml.
3224
3225 2007-10-02  Adam Treat  <treat@kde.org>
3226
3227         Reviewed by Eric Seidel.
3228
3229         Open the requested url on the newly created window.
3230         Implement createModalDialog and provide new API for this.
3231         Patch by M. Mehdi Salem Naraghi (momesana) with additions by me.
3232
3233         * Api/qwebpage.cpp:
3234         (QWebPage::createModalDialog):
3235         * Api/qwebpage.h:
3236         * WebCoreSupport/ChromeClientQt.cpp:
3237         (WebCore::ChromeClientQt::createWindow):
3238         (WebCore::ChromeClientQt::createModalDialog):
3239
3240 2007-10-02  Lars Knoll  <lars@trolltech.com>
3241
3242         Reviewed by bdash.
3243
3244         Add API to retrieve the frame name from QWebFrame.
3245         Implement support for DRT::dumpChildrenAsText.
3246
3247         * Api/qwebframe.cpp:
3248         (QWebFrame::name):
3249         * Api/qwebframe.h:
3250
3251 2007-10-02  Lars Knoll  <lars@trolltech.com>
3252
3253         Reviewed by bdash.
3254
3255         Fix the handling of the response header for data urls. Make sure we always pass absolute URLs to WebKit from both DRT and QtLauncher.
3256
3257         * Api/qwebnetworkinterface.cpp:
3258         (QWebNetworkManager::started):
3259         (QWebNetworkManager::data):
3260         (QWebNetworkManager::finished):
3261         (QWebNetworkInterfacePrivate::sendFileData):
3262         (QWebNetworkInterfacePrivate::parseDataUrl):
3263         (WebCoreHttp::scheduleNextRequest):
3264         (WebCoreHttp::onSslErrors):
3265         * QtLauncher/main.cpp:
3266         (main):
3267
3268 2007-10-01  Lars Knoll  <lars@trolltech.com>
3269
3270         Reviewed by Eric.
3271
3272         Fix a wrong extension mapping in the MIMETypeRegistry and identify about: url's as frames in the FrameLoaderClient.
3273
3274         * WebCoreSupport/FrameLoaderClientQt.cpp:
3275         (WebCore::FrameLoaderClientQt::makeDocumentView):
3276         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3277         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3278         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3279         (WebCore::FrameLoaderClientQt::objectContentType):
3280         (WebCore::FrameLoaderClientQt::createPlugin):
3281
3282 2007-09-30  George Staikos  <staikos@kde.org>
3283
3284         Qt build fix (OS X specific).
3285
3286         * QtLauncher/QtLauncher.pro:
3287
3288 2007-09-26  Mark Rowe  <mrowe@apple.com>
3289
3290         Qt build fix.
3291
3292         * WebCoreSupport/FrameLoaderClientQt.cpp:
3293         (WebCore::FrameLoaderClientQt::objectContentType): Check for empty URL instead of invalid URL.
3294
3295 2007-09-25  David Kilzer  <ddkilzer@webkit.org>
3296
3297         Reviewed by Adam.
3298
3299         - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
3300           LGPL'ed files contain incorrect FSF address
3301
3302         * Api/qcookiejar.cpp:
3303         * Api/qcookiejar.h:
3304         * Api/qwebframe.cpp:
3305         * Api/qwebframe.h:
3306         * Api/qwebframe_p.h:
3307         * Api/qwebhistoryinterface.cpp:
3308         * Api/qwebhistoryinterface.h:
3309         * Api/qwebkitglobal.h:
3310         * Api/qwebnetworkinterface.cpp:
3311         * Api/qwebnetworkinterface.h:
3312         * Api/qwebnetworkinterface_p.h:
3313         * Api/qwebobjectplugin.cpp:
3314         * Api/qwebobjectplugin.h:
3315         * Api/qwebobjectpluginconnector.cpp:
3316         * Api/qwebobjectpluginconnector.h:
3317         * Api/qwebpage.cpp:
3318         * Api/qwebpage.h:
3319         * Api/qwebpage_p.h:
3320         * Api/qwebpagehistory.cpp:
3321         * Api/qwebpagehistory.h:
3322         * Api/qwebsettings.cpp:
3323         * Api/qwebsettings.h:
3324         * WebCoreSupport/EditCommandQt.cpp:
3325         * WebCoreSupport/EditCommandQt.h:
3326
3327 2007-09-25  Adam Treat  <treat@kde.org>
3328
3329         Reviewed by Simon and Lars.
3330
3331         Modifies the addToJSWindowObject to bind js objects using the built-in
3332         kjs_window class.  Make sure to protect the created runtime object from
3333         garbage collection.
3334
3335         Adds a signal to QWebFrame to notify clients of the beginning of a
3336         provisional load.  DRT needs this.
3337
3338         * Api/qwebframe.cpp:
3339         (QWebFrame::addToJSWindowObject):
3340         * Api/qwebframe.h:
3341         * WebCoreSupport/FrameLoaderClientQt.cpp:
3342         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
3343
3344 2007-09-10  Qing Zhao  <qing@staikos.net>
3345
3346         Reviewed by George Staikos.
3347
3348         Don't re-encode urls, resulting in double encoding.  Fixes login to
3349         GMail.
3350
3351         * Api/qwebnetworkinterface.cpp:
3352         (QWebNetworkRequestPrivate::init):
3353         (QWebNetworkManager::started):
3354
3355 2007-09-08  Mark Rowe  <mrowe@apple.com>
3356
3357         Qt build fix.  Move stub method implementations to the right class.
3358
3359         * WebCoreSupport/FrameLoaderClientQt.cpp:
3360         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
3361
3362 2007-09-08  Brady Eidson  <beidson@apple.com>
3363
3364         YABF (Yet Another Build Fix)
3365
3366         * Api/qwebsettings.cpp:
3367         (QWebSettings::iconDatabaseEnabled):
3368
3369 2007-09-08  Brady Eidson  <beidson@apple.com>
3370
3371         Better build fix
3372
3373         * WebCoreSupport/FrameLoaderClientQt.cpp:
3374         (WebCore::FrameLoaderClient::registerForIconNotification):
3375         * WebCoreSupport/FrameLoaderClientQt.h:
3376
3377 2007-09-08  Brady Eidson  <beidson@apple.com>
3378
3379         Build fix
3380
3381         * WebCoreSupport/FrameLoaderClientQt.cpp:
3382         (WebCore::FrameLoaderClient::registerForIconNotification):
3383         * WebCoreSupport/FrameLoaderClientQt.h:
3384
3385 2007-09-05  Geoffrey Garen  <ggaren@apple.com>
3386
3387         Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
3388         
3389         Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no 
3390         memory cache, or a very tiny one
3391         
3392         Keep the Qt build working with an empty stub.
3393         
3394         * WebCoreSupport/FrameLoaderClientQt.cpp:
3395         (WebCore::FrameLoaderClient::didPerformFirstNavigation):
3396         * WebCoreSupport/FrameLoaderClientQt.h:
3397
3398 2007-09-07  George Staikos  <staikos@kde.org>
3399
3400         Fix typo.
3401
3402         * Api/qwebpage.cpp:
3403         (QWebPage::onLoadProgressChanged):
3404
3405 2007-09-07  Qing Zhao  <qing@staikos.net>
3406
3407         Reviewed by Anders and George.
3408
3409         Export page size and load progress in bytes.
3410
3411         * Api/qwebpage.cpp:
3412         (QWebPage::QWebPage):
3413         (QWebPage::onLoadProgressChanged):
3414         (QWebPage::totalBytes):
3415         (QWebPage::bytesReceived):
3416         * Api/qwebpage.h:
3417         * Api/qwebpage_p.h:
3418
3419 2007-09-06  George Staikos  <staikos@kde.org>
3420
3421         Reviewed by Anders.
3422
3423         Make popup windows work again.
3424
3425         * WebCoreSupport/FrameLoaderClientQt.cpp:
3426         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
3427
3428 2007-09-01  Oliver Hunt  <oliver@apple.com>
3429
3430         Reviewed by Sam.
3431
3432         <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
3433  
3434         EditorClient::setInputMethodState stub
3435
3436         * WebCoreSupport/EditorClientQt.cpp:
3437         (WebCore::EditorClientQt::setInputMethodState):
3438         * WebCoreSupport/EditorClientQt.h:
3439
3440 2007-08-30  Simon Hausmann  <hausmann@kde.org>
3441
3442         Reviewed by Zack.
3443
3444         Use QKeySequence::StandardKey for the page wise scrolling shortcuts.
3445
3446         * Api/qwebpage.cpp:
3447         (QWebPage::keyPressEvent):
3448
3449 2007-08-30  Simon Hausmann  <hausmann@kde.org>
3450
3451         Reviewed by Zack.
3452
3453         When scrolling with the keyboard don't call update() on the entire widget.
3454         The scrollbar/scrollview implementation is already smart enough to scroll with bitblt
3455         on a value change.
3456
3457         * Api/qwebpage.cpp:
3458         (QWebPage::keyPressEvent):
3459
3460 2007-08-30  Simon Hausmann  <hausmann@kde.org>
3461
3462         Reviewed by Zack.
3463
3464         Fix scrolling with the keyboard if only one of the two scrollbars is visible.
3465
3466         * Api/qwebpage.cpp:
3467         (QWebPage::keyPressEvent):
3468
3469 2007-08-29  Simon Hausmann  <hausmann@kde.org>
3470
3471         Reviewed by Zack.
3472
3473         Fix compilation.
3474
3475         * WebCoreSupport/FrameLoaderClientQt.cpp:
3476         (WebCore::FrameLoaderClientQt::objectContentType):
3477
3478 2007-08-19  Mike Hommey  <mh+webkit@glandium.org>
3479
3480         Reviewed by George Staikos.
3481
3482         Don't export ICO symbols.
3483
3484         * Plugins/Plugins.pro:
3485
3486 2007-08-19  George Staikos  <staikos@kde.org>
3487
3488         Fix compilation.
3489
3490         * WebCoreSupport/FrameLoaderClientQt.cpp:
3491         (WebCore::FrameLoaderClientQt::createPlugin):
3492         * WebCoreSupport/FrameLoaderClientQt.h:
3493
3494 2007-08-10  Lars Knoll  <lars@trolltech.com>
3495
3496         Reviewed and landed by Simon.
3497
3498         Limit the set of properties from the computed style to apply to Qt
3499         plugin widgets, as only a few of them make sense.
3500
3501         * WebCoreSupport/FrameLoaderClientQt.cpp:
3502         (WebCore::):
3503
3504 2007-08-10  Lars Knoll  <lars@trolltech.com>
3505
3506         Reviewed by Simon.
3507
3508         Use <object>'s classid attribute for creation of plugins through QWebPage::createPlugin.
3509
3510         * Api/qwebpage.cpp:
3511         (QWebPage::createPlugin):
3512         * Api/qwebpage.h:
3513         * WebCoreSupport/FrameLoaderClientQt.cpp:
3514         (WebCore::FrameLoaderClientQt::objectContentType):
3515         (WebCore::FrameLoaderClientQt::createPlugin):
3516
3517 2007-08-10  Simon Hausmann  <hausmann@kde.org>
3518
3519         Reviewed by Lars.
3520
3521         Added support for network jobs from Qt resources using the qrc protocol.
3522
3523         * Api/qwebnetworkinterface.cpp:
3524         (QWebNetworkInterface::addJob):
3525
3526 2007-08-10  Simon Hausmann  <hausmann@kde.org>
3527
3528         Reviewed by Lars.
3529
3530         Added support for "application/x-qt-styled-widget" that is treated like "application/x-qt-plugin" but also
3531         gets a Qt widget stylesheet set from the CSS computed style and the element style attribute.
3532
3533         * WebCoreSupport/FrameLoaderClientQt.cpp:
3534         (WebCore::FrameLoaderClientQt::objectContentType):
3535         (WebCore::):
3536         (WebCore::FrameLoaderClientQt::createPlugin):
3537
3538 2007-08-10  Simon Hausmann  <hausmann@kde.org>
3539
3540         Reviewed by Lars.
3541
3542         Added virtual QWebPage::createPlugin that is called for embedded objects with the mime type "application/x-qt-plugin"
3543         and fixed widget embedding by setting the right QWidget parent.
3544
3545         * Api/qwebpage.cpp:
3546         (QWebPage::createPlugin):
3547         * Api/qwebpage.h:
3548         * WebCoreSupport/FrameLoaderClientQt.cpp:
3549         (WebCore::FrameLoaderClientQt::objectContentType):
3550         (WebCore::FrameLoaderClientQt::createPlugin):
3551
3552 2007-08-02  George Staikos  <staikos@kde.org>
3553
3554         Reviewed by Simon.
3555
3556         Add an interface for the useragent string.
3557
3558         * Api/qwebpage.cpp:
3559         (QWebPage::userAgentStringForUrl):
3560         * Api/qwebpage.h:
3561         * WebCoreSupport/FrameLoaderClientQt.cpp:
3562         (WebCore::FrameLoaderClientQt::userAgent):
3563
3564 2007-08-01  Adam Treat  <treat@kde.org>
3565
3566         Reviewed by George Staikos.
3567
3568         Add an interface to manage global history for clients
3569
3570         * Api/headers.pri:
3571         * Api/qwebhistoryinterface.cpp: Added.
3572         (WebCore::historyContains):
3573         (gCleanupInterface):
3574         (QWebHistoryInterface::setDefaultInterface):
3575         (QWebHistoryInterface::defaultInterface):
3576         (QWebHistoryInterface::QWebHistoryInterface):
3577         * Api/qwebhistoryinterface.h: Added.
3578
3579 2007-07-30  Adam Treat  <treat@kde.org>
3580
3581         Fix build.
3582
3583         * WebCoreSupport/EditorClientQt.cpp:
3584         (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
3585         * WebCoreSupport/EditorClientQt.h:
3586
3587 2007-07-30  Simon Hausmann  <hausmann@kde.org>
3588
3589         Reviewed by Lars.
3590
3591         Link QtLauncher into $$OUTPUT_DIR/bin
3592
3593         * QtLauncher/QtLauncher.pro:
3594
3595 2007-07-29  Adam Treat  <treat@kde.org>
3596
3597         Reviewed by George Staikos.
3598
3599         Change QWebPage::paintEvent to draw using the individual rects provided
3600         via the QRegion and set the widget to use opaque paint events.
3601
3602         These changes greatly reduce the cpu load as we are no longer painting the
3603         entire page for each 1px scroll :P
3604
3605         * Api/qwebframe.cpp:
3606         (QWebFrame::render):
3607         * Api/qwebpage.cpp:
3608         (QWebPage::QWebPage):
3609         (QWebPage::paintEvent):
3610         * WebCoreSupport/ChromeClientQt.cpp:
3611         (WebCore::ChromeClientQt::addToDirtyRegion):
3612
3613 2007-07-29  Adam Treat  <treat@kde.org>
3614
3615         Reviewed by Alexey Proskuryakov.
3616
3617         Respect the margins when creating frames.
3618         Set the scroll mode to always off like we did before the rendered
3619         frames patch and the other ports do now.
3620
3621         * Api/qwebframe.cpp:
3622         (QWebFramePrivate::init):
3623
3624 2007-07-27  Holger Hans Peter Freyther  <zecke@selfish.org>
3625
3626         Reviewed by Mark.
3627
3628         Don't create an app bundle on OSX to keep WebKitTools/Scripts/run-launcher working.
3629
3630         * QtLauncher/QtLauncher.pro:
3631
3632 2007-07-27  Simon Hausmann  <hausmann@kde.org>
3633
3634         Reviewed by Lars.
3635
3636         Fix compilation with MSVC.
3637
3638         * Api/qwebpagehistory.cpp:
3639         (QWebPageHistory::operator=):
3640         * Api/qwebpagehistory.h:
3641         * Api/qwebsettings.cpp:
3642         (QWebSettings::operator=):
3643         * Api/qwebsettings.h:
3644
3645 2007-07-26  Qing Zhao  <qing@staikos.net>
3646
3647         Reviewed by George Staikos.
3648
3649         Add a signal for history notification.
3650
3651         * Api/qwebpage.h:
3652         * WebCoreSupport/FrameLoaderClientQt.cpp:
3653
3654 2007-07-24  Adam Treat  <treat@kde.org>
3655
3656         Reviewed by Niko and Lars.
3657
3658         These are no longer necessary or used.
3659
3660         * WebCoreSupport/FrameLoaderClientQt.cpp:
3661         * WebCoreSupport/FrameLoaderClientQt.h:
3662
3663 2007-07-20  Adam Treat  <adam@staikos.net>
3664
3665         Reviewed by George Staikos.
3666
3667         Add a signal for first layout and add the action type for the policy
3668         function.
3669
3670         * Api/qwebpage.cpp:
3671         (QWebPagePrivate::navigationRequested):
3672         (QWebPage::navigationRequested):
3673         * Api/qwebpage.h:
3674         * Api/qwebpage_p.h:
3675         * WebCoreSupport/FrameLoaderClientQt.cpp:
3676         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
3677         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3678
3679 2007-07-19  Adam Treat  <treat@kde.org>
3680
3681         Reviewed by George.
3682
3683         Do a recursive layout on the frame's children.  This fixes a
3684         segfault found when rendering some framesets.
3685
3686         * Api/qwebframe.cpp:
3687         (QWebFrame::render):
3688         (QWebFrame::layout):
3689         * Api/qwebframe.h:
3690
3691 2007-07-18  Timothy Hatcher  <timothy@apple.com>
3692
3693         Reviewed by Adam.
3694
3695         Make the Page with the now required InspectorClient.
3696
3697         * Api/qwebpage.cpp:
3698         (QWebPagePrivate::QWebPagePrivate):
3699         * WebKitPart/WebKitPart.cpp: