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