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