96fe80c95d91e0f2fd1009e906193cfc04c8dcc9
[WebKit-https.git] / WebKit / qt / ChangeLog
1 2009-01-04  Adam Treat  <treat@kde.org>
2
3         Reviewed by George Staikos.
4
5         Add new API to QWebHitTestResult to return a rect for the smallest enclosing
6         block element of the hit test
7
8         * Api/qwebframe.cpp:
9         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
10         (QWebHitTestResult::enclosingBlock):
11         * Api/qwebframe.h:
12         * Api/qwebframe_p.h:
13
14 2008-12-30  Adam Treat  <treat@kde.org>
15
16         Reviewed by George Staikos.
17
18         Make the qt port build and work with the new fixedLayoutSize feature
19
20         * Api/qwebpage.cpp:
21         (QWebPagePrivate::QWebPagePrivate):
22         (QWebPage::fixedLayoutSize):
23         (QWebPage::setFixedLayoutSize):
24         (QWebPage::useFixedLayout):
25         (QWebPage::setUseFixedLayout):
26         * Api/qwebpage.h:
27         * Api/qwebpage_p.h:
28         * WebCoreSupport/FrameLoaderClientQt.cpp:
29         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
30
31 2008-12-19  Jade Han <jade.han@nokia.com>
32
33         Reviewed by Tor Arne Vestbø.
34
35         [Qt] Allow conversion of JavaScript Number and Boolean types to Qt types
36
37         https://bugs.webkit.org/show_bug.cgi?id=22880
38
39         * tests/qwebframe/tst_qwebframe.cpp:
40         (MyQObject::myInvokableWithBoolArg):
41
42 2008-12-18  Yael Aharon  <yael.aharon@nokia.com>
43
44         Reviewed by Tor Arne Vestbø.
45
46         When Web Inspector is launched without an associated node,
47         call show() instead of inspect().
48
49         * Api/qwebpage.cpp:
50         (QWebPage::triggerAction):
51
52 2008-12-18  Dan Bernstein  <mitz@apple.com>
53
54         Reviewed by Sam Weinig.
55
56         - stub out FrameLoaderClient::shouldUseCredentialStorage().
57
58         * WebCoreSupport/FrameLoaderClientQt.cpp:
59         (WebCore::FrameLoaderClientQt::shouldUseCredentialStorage):
60         * WebCoreSupport/FrameLoaderClientQt.h:
61
62 2008-12-18  Sam Weinig  <sam@webkit.org>
63
64         Reviewed by John Sullivan.
65
66         Stub out FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout()
67
68         * WebCoreSupport/FrameLoaderClientQt.cpp:
69         (WebCore::FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout):
70         * WebCoreSupport/FrameLoaderClientQt.h:
71
72 2008-12-16  Simon Hausmann  <hausmann@webkit.org>
73
74         Reviewed by Holger Freyther.
75
76         Added support for unload event counting to the Qt DRT.
77
78         * Api/qwebpage.cpp:
79         (qt_drt_run): Moved function here.
80         * Api/qwebpage_p.h: Moved drt run boolean here.
81         * WebCoreSupport/EditorClientQt.cpp: Moved drt run boolean.
82         (WebCore::EditorClientQt::shouldShowDeleteInterface): Use the new drt
83         run variable.
84         * WebCoreSupport/FrameLoaderClientQt.cpp:
85         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): Add DRT
86         output for unload event handler counting.
87
88 2008-12-15  Holger Hans Peter Freyther  <zecke@selfish.org>
89
90         Reviewed by Simon Hausmann.
91
92         Change the order of sub frame initialisation to avoid crashes
93
94         Add the newly created frame to the FrameTree before calling
95         WebCore::Frame::init to not segfault on
96         LayoutTests/fast/loader/frame-creation-removal.html.
97
98         * Api/qwebframe.cpp:
99         (QWebFramePrivate::init):
100         * WebCoreSupport/FrameLoaderClientQt.cpp:
101         (WebCore::FrameLoaderClientQt::createFrame):
102
103 2008-12-15  Simon Hausmann  <hausmann@webkit.org>
104
105         Reviewed by Holger Freyther.
106
107         Implement setJavaScriptProfilingEnabled in the Qt DRT to pass fast/profiler.
108
109         * Api/qwebframe.cpp:
110         (qt_drt_setJavaScriptProfilingEnabled):
111
112 2008-12-12  Simon Hausmann  <hausmann@webkit.org>
113
114         Reviewed by Tor Arne Vestbø.
115
116         Fix pressing return/enter not triggering any action on web sites
117         that define event handlers, such as the JS console in the web
118         inspector.
119
120         Process the key events in the DOM first and if not handled map them
121         to editor actions.
122
123         * Api/qwebpage.cpp:
124         (QWebPagePrivate::editorActionForKeyEvent): Made a class method.
125         (QWebPagePrivate::keyPressEvent): Pass the key event first to the DOM.
126         * WebCoreSupport/EditorClientQt.cpp:
127         (WebCore::EditorClientQt::handleKeyboardEvent): Map the key event to
128         actions and trigger them.
129
130 2008-12-12  Ariya Hidayat  <ariya.hidayat@trolltech.com>
131
132         Reviewed by Simon Hausmann.
133
134         Create the plugin widget even though the web page has no associated
135         view. This prevents the plugin to be uselessly constructed more than once.
136
137         * WebCoreSupport/FrameLoaderClientQt.cpp:
138         (WebCore::FrameLoaderClientQt::createPlugin):
139         * tests/qwebpage/tst_qwebpage.cpp:
140         (tst_QWebPage::createViewlessPlugin):
141
142 2008-12-11  Enrico Ros  <enrico.ros@m31.com>
143
144         Reviewed by Simon Hausmann.
145
146         Fix the broken focus behavior that happened when QWebPage lost
147         focus to a popup menu.
148
149         The previous code didn't notify the QWebPage at all when the
150         focus was back in (breaking focus rects, caret blinking, ...).
151         By the way when a popup is show, 2 FocusOut events are delivered
152         to the QWebPage, but this doesn't seem to hurt.
153
154         Added a test to check popup opening, closing a lineedit blinks.
155
156         * Api/qwebpage.cpp:
157         (QWebPagePrivate::focusInEvent):
158         (QWebPagePrivate::focusOutEvent):
159         * tests/qwebframe/tst_qwebframe.cpp:
160         (tst_QWebFrame::):
161
162 2008-12-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
163
164         Reviewed by Tor Arne Vestbø.
165
166         When the web page is navigated away, delete the instance
167         of the native plugin.
168
169         http://trolltech.com/developer/task-tracker/index_html?id=214946&method=entry
170
171         * WebCoreSupport/FrameLoaderClientQt.cpp:
172         (WebCore::):
173         * tests/qwebpage/tst_qwebpage.cpp:
174         (PluginTrackedPage::PluginTrackedPage):
175         (PluginTrackedPage::createPlugin):
176         (tst_QWebPage::destroyPlugin):
177
178 2008-12-11  Yael Aharon  <yael.aharon@nokia.com>
179
180         Reviewed by Simon Hausmann.
181
182         Allow applications to save and restore their state between loads.
183
184         * Api/qwebframe.cpp:
185         * Api/qwebframe.h:
186         * WebCoreSupport/FrameLoaderClientQt.cpp:
187         (WebCore::FrameLoaderClientQt::restoreViewState):
188         (WebCore::FrameLoaderClientQt::saveViewStateToItem):
189         * tests/qwebpage/tst_qwebpage.cpp:
190         (tst_QWebPage::modified):
191
192 2008-12-08  Tor Arne Vestbø  <tavestbo@trolltech.com>
193
194         Reviewed by Darin Adler and Holger Freyther.
195
196         Make Widget::frameRectsChanged() and overrides non-const
197
198         This will hopefully allow us to get rid of some of the mutables in
199         the classes that react to the callback by changing their own state.
200
201         * WebCoreSupport/FrameLoaderClientQt.cpp:
202         (WebCore::):
203
204 2008-12-10  Holger Hans Peter Freyther  <zecke@selfish.org>
205
206         Reviewed by Simon Hausmann.
207
208         API changes discussed with Simon Hausmann, Tor Arne
209         Vestbø, Ariya Hidayat...
210
211         * Api/qwebdatabase.cpp:
212         (QWebDatabase::fileName):
213         (QWebDatabase::removeDatabase):
214         * Api/qwebdatabase.h:
215         * Api/qwebframe.cpp:
216         (QWebFrame::scroll):
217         (QWebFrame::scrollPosition):
218         (QWebFrame::setScrollPosition):
219         * Api/qwebframe.h:
220         * Api/qwebpage.cpp:
221         (QWebPage::setContentEditable):
222         (QWebPage::isContentEditable):
223         (QWebPage::extension):
224         * Api/qwebpage.h:
225         * Api/qwebsecurityorigin.cpp:
226         * Api/qwebsettings.cpp:
227         (QWebSettingsPrivate::apply):
228         (QWebSettings::QWebSettings):
229         * Api/qwebsettings.h:
230         * QtLauncher/main.cpp:
231         (MainWindow::setEditable):
232         * WebCoreSupport/ChromeClientQt.cpp:
233         (WebCore::ChromeClientQt::exceededDatabaseQuota):
234         (WebCore::ChromeClientQt::runOpenPanel):
235         * WebCoreSupport/EditorClientQt.cpp:
236         (WebCore::EditorClientQt::isEditable):
237         * tests/qwebpage/tst_qwebpage.cpp:
238         (tst_QWebPage::database):
239
240 2008-12-09  Balazs Kelemen  <Kelemen.Balazs.3@stud.u-szeged.hu>
241
242         Reviewed by Simon Hausmann.
243
244         Extended QtLauncher so now it can load pages from an url list
245         one by one. This can be useful for testing purposes (eq. leak hunting).
246         The -r option activates this feature.
247
248         https://bugs.webkit.org/show_bug.cgi?id=20932
249
250         * QtLauncher/main.cpp:
251         (MainWindow::webPage):
252         Just a coding style repairing (* written with no space between the return type name)
253         (MainWindow::webView):
254         I need the webView to connect it with the URLLoader object.
255         (URLLoader::URLLoader):
256         (URLLoader::loadNext):
257         (URLLoader::init):
258         (URLLoader::getUrl):
259         (main):
260
261 2008-12-10  Simon Hausmann  <hausmann@webkit.org>
262
263         Fix the Qt build, added const to Node* parameter after change
264         in signature.
265
266         * WebCoreSupport/ChromeClientQt.h:
267         (WebCore::ChromeClientQt::formStateDidChange):
268
269 2008-12-09  Brett Wilson  <brettw@chromium.org>
270
271         Reviewed by Dave Hyatt.
272
273         https://bugs.webkit.org/show_bug.cgi?id=22177
274
275         Add a callback on ChromeClient that the state of form elements on
276         the page has changed. This is to allow clients implementing session
277         saving to know when the current state is dirty.
278
279         * WebCoreSupport/ChromeClientQt.h:
280         (WebCore::ChromeClientQt::formStateDidChange):
281
282 2008-12-09  Ariya Hidayat  <ariya.hidayat@trolltech.com>
283
284         Reviewed by Simon Hausmann.
285
286         Fix the documentation of the localStorageDatabasePath setters/getters.
287
288         * Api/qwebsettings.cpp:
289
290 2008-12-08  Ariya Hidayat  <ariya.hidayat@trolltech.com>
291
292         Reviewed by Simon Hausmann.
293
294         Multiple files support for the file chooser.
295
296         * Api/qwebpage.cpp:
297         (QWebPage::chooseFiles):
298         * Api/qwebpage.h:
299         * WebCoreSupport/ChromeClientQt.cpp:
300         (WebCore::ChromeClientQt::runOpenPanel):
301
302 2008-12-06  Simon Fraser  <simon.fraser@apple.com>
303
304         Reviewed by Dave Hyatt
305
306         https://bugs.webkit.org/show_bug.cgi?id=15671
307
308         Renderer::caretRect() is now localCaretRect(), which needs
309         converting to absolute coordinates (taking transforms into account).
310
311         * Api/qwebpage.cpp:
312         (QWebPage::inputMethodQuery):
313
314 2008-12-03  Tor Arne Vestbø  <tavestbo@trolltech.com>
315
316         Reviewed by Simon Hausmann.
317
318         Allow passing jsNull and jsUndefined to Qt plugins
319
320         Currently limited to functions with QString and QVariant arguments,
321         and properties of these types. Both jsNull and jsUndefined ends up
322         as default-constructed QStrings and QVariants, which means you can
323         check for isEmpty() and isValid() in the native plugin code.
324
325         Based on patches by Jade Han <jade.han@nokia.com>
326
327         * tests/qwebframe/tst_qwebframe.cpp:
328
329 2008-12-02  Simon Hausmann  <hausmann@webkit.org>
330
331         Rubber-stamped by Tor Arne Vestbø.
332
333         Initial API documentation for QWebDatabase, QWebSecurityOrigin and
334         QWebFrame::securityOrigin().
335
336         * Api/qwebdatabase.cpp:
337         * Api/qwebframe.cpp:
338         * Api/qwebsecurityorigin.cpp:
339
340 2008-11-27  Kent Hansen  <khansen@trolltech.com>
341
342         Reviewed by Simon Hausmann.
343
344         Added auto tests for making JavaScript bindings for Qt plugin widgets
345         work again.
346
347         * tests/qwebpage/tst_qwebpage.cpp:
348         (PluginPage::PluginPage):
349         (PluginPage::CallInfo::CallInfo):
350         (PluginPage::createPlugin):
351         (tst_QWebPage::createPlugin):
352
353 2008-11-25  Holger Hans Peter Freyther  <zecke@selfish.org>
354
355         Build fix. Use WebCore::Frame::loader instead of QWebFrame
356
357         * WebCoreSupport/FrameLoaderClientQt.cpp:
358         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
359
360 2008-11-24  Darin Fisher  <darin@chromium.org>
361
362         Fix bustage.
363
364         http://bugs.webkit.org/show_bug.cgi?id=15643
365
366         * WebCoreSupport/EditorClientQt.cpp:
367         (WebCore::EditorClientQt::isSelectTrailingWhitespaceEnabled):
368         * WebCoreSupport/EditorClientQt.h:
369
370 2008-11-24  Darin Adler  <darin@apple.com>
371
372         Reviewed by Dan Bernstein.
373
374         - https://bugs.webkit.org/show_bug.cgi?id=22470
375           remove unneeded URL argument from FrameLoaderClient::updateGlobalHistory
376
377         * WebCoreSupport/FrameLoaderClientQt.cpp:
378         (WebCore::FrameLoaderClientQt::updateGlobalHistory): Get the URL from the
379         DocumentLoader.
380         * WebCoreSupport/FrameLoaderClientQt.h: Remove argument.
381
382 2008-11-24  Darin Fisher  <darin@chromium.org>
383
384         Fix bustage.
385
386         https://bugs.webkit.org/show_bug.cgi?id=22448
387
388         * Api/qwebframe.cpp:
389         (QWebFrame::evaluateJavaScript):
390
391 2008-11-20  Sam Weinig  <sam@webkit.org>
392
393         Fix Qt build.
394
395         * Api/qwebframe.cpp:
396         (QWebFrame::evaluateJavaScript):
397
398 2008-11-19  Darin Fisher  <darin@chromium.org>
399
400         Fix bustage.
401
402         https://bugs.webkit.org/show_bug.cgi?id=22373
403         Ports busted by addition of ScriptValue.{h,cpp}
404
405         * Api/qwebframe.cpp:
406         (QWebFrame::evaluateJavaScript):
407
408 2008-11-19  Darin Fisher  <darin@chromium.org>
409
410         Fix bustage.
411
412         https://bugs.webkit.org/show_bug.cgi?id=22373
413         Ports busted by addition of ScriptValue.{h,cpp}
414
415         * Api/qwebframe.cpp:
416
417 2008-11-19  Simon Hausmann  <hausmann@webkit.org>
418
419         Fix the Qt build, remove file referenced in the qrc file that does not
420         exist and is not needed.
421
422         * tests/qwebframe/qwebframe.qrc:
423
424 2008-11-18  Ariya Hidayat  <ariya.hidayat@trolltech.com>
425
426         Rubber-stamped by Tor Arne Vestbø.
427
428         Missing file in new unit test for QWebFrame (r38493).
429
430         * tests/qwebframe/qwebframe.pro:
431         * tests/qwebframe/qwebframe.qrc: Added.
432
433 2008-11-18  Tor Arne Vestbø  <tavestbo@trolltech.com>
434
435         Rubber-stamped by Simon Hausmann.
436
437         Make sure QWidget based plugins are invisible until placed into the layout
438
439         * WebCoreSupport/FrameLoaderClientQt.cpp:
440         (WebCore::FrameLoaderClientQt::createPlugin):
441
442 2008-11-18  Tor Arne Vestbø  <tavestbo@trolltech.com>
443
444         Reviewed by Simon Hausmann.
445
446         React properly to frame rect changes for QWidget based plugins
447
448         We now set the geometry of the QWidget in frameRectsChanged,
449         intead of setFrameRect, which means we pick up the changes to
450         the frame rect when scrolling. We also set a mask on the
451         widget to keep it from painting over scrollbars and the like
452
453         * WebCoreSupport/FrameLoaderClientQt.cpp:
454         (WebCore::):
455
456 2008-11-18  Ariya Hidayat  <ariya.hidayat@trolltech.com>
457
458         Reviewed by Tor Arne Vestbø.
459
460         Fix crash when trying to pick a file using the file chooser.
461
462         * WebCoreSupport/ChromeClientQt.cpp:
463         (WebCore::ChromeClientQt::runOpenPanel):
464
465 2008-11-18  Holger Hans Peter Freyther  <zecke@selfish.org>
466
467         Reviewed by Simon Hausmann.
468
469         Attempt to share transitionToCommittedForNewPage of FrameLoaderClient with the different ports
470
471         After Hyatt's work on Widget and ScrollView there is little difference
472         between the implementation of Qt, Gtk+ and Win. In fact any kind of
473         difference is mostly a bug. Alp has fixed two of such errors for the Gtk+
474         port and the Qt port has at least one of them left.
475
476         The only difference between the implementations is in getting the the
477         IntSize for the new FrameView, the background color to be applied and
478         eventually some post processing.
479
480         Unify the implementations by providing a static helper function that
481         takes a Frame, IntSize, color and transparency bit and calling it from
482         the Gtk+, the Qt and the Windows port.
483
484         * Api/qwebframe.cpp:
485         * Api/qwebframe_p.h:
486         * Api/qwebpage.cpp:
487         (QWebPage::setPalette):
488         * WebCoreSupport/FrameLoaderClientQt.cpp:
489         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
490
491 2008-11-17  Geoffrey Garen  <ggaren@apple.com>
492
493         Not reviewed.
494         
495         Try to fix qt build.
496
497         * Api/qwebframe.cpp:
498
499 2008-11-17  Ariya Hidayat  <ariya.hidayat@trolltech.com>
500
501         Reviewed by Tor Arne Vestbø and Simon Hausmann.
502
503         Fix regression when loading resources from Qt resource system using qrc:/.
504
505         Added a unit test to catch future regression.
506
507         * Api/qwebpage.cpp:
508         (QWebPagePrivate::QWebPagePrivate):
509         * tests/qwebframe/image.png: Added.
510         * tests/qwebframe/tst_qwebframe.cpp:
511
512 2008-11-16  Darin Adler  <darin@apple.com>
513
514         - try to fix build
515
516         * Api/qwebhistory.cpp: Added include of "KURL.h".
517
518 2008-10-24  Yael Aharon <yael.aharon@nokia.com>
519
520         Reviewed by Simon Hausmann.
521
522         Added some basic unit tests for the public database API.
523
524         * tests/qwebpage/tst_qwebpage.cpp:
525         (tst_QWebPage::initTestCase):
526         (tst_QWebPage::cleanupTestCase):
527         (tst_QWebPage::database):
528
529 2008-11-14  Simon Hausmann  <hausmann@webkit.org>
530
531         Fix the Qt build, add missing export macros for the new classes.
532
533         * Api/qwebdatabase.h:
534         * Api/qwebsecurityorigin.h:
535
536 2008-10-24  Yael Aharon <yael.aharon@nokia.com>
537
538         Reviewed by Simon Hausmann.
539
540         Adding public API to provide access to the security origin
541         (QWebSecurityOrigin) and the databases used for the offline
542         storage (QWebDatabase).
543
544         In addition QWebSettings gains configuration functions for
545         enabling/disabling offline storage, web application cache
546         and DOM local storage.
547
548         This commits lands the core feature(s), the unit tests and the
549         documentation are going to follow in the comming days/weeks.
550
551         Note: The API is not frozen yet.
552
553         * Api/headers.pri:
554         * Api/qwebdatabase.cpp: Added.
555         (QWebDatabase::QWebDatabase):
556         (QWebDatabase::operator=):
557         (QWebDatabase::name):
558         (QWebDatabase::displayName):
559         (QWebDatabase::expectedSize):
560         (QWebDatabase::size):
561         (QWebDatabase::absoluteFilePath):
562         (QWebDatabase::origin):
563         (QWebDatabase::remove):
564         (QWebDatabase::~QWebDatabase):
565         * Api/qwebdatabase.h: Added.
566         * Api/qwebdatabase_p.h: Added.
567         * Api/qwebframe.cpp:
568         (QWebFrame::securityOrigin):
569         * Api/qwebframe.h:
570         * Api/qwebpage.cpp:
571         * Api/qwebpage.h:
572         * Api/qwebsecurityorigin.cpp: Added.
573         (QWebSecurityOrigin::QWebSecurityOrigin):
574         (QWebSecurityOrigin::operator=):
575         (QWebSecurityOrigin::scheme):
576         (QWebSecurityOrigin::host):
577         (QWebSecurityOrigin::port):
578         (QWebSecurityOrigin::databaseUsage):
579         (QWebSecurityOrigin::databaseQuota):
580         (QWebSecurityOrigin::setDatabaseQuota):
581         (QWebSecurityOrigin::~QWebSecurityOrigin):
582         (QWebSecurityOrigin::allOrigins):
583         (QWebSecurityOrigin::databases):
584         * Api/qwebsecurityorigin.h: Added.
585         * Api/qwebsecurityorigin_p.h: Added.
586         (QWebSecurityOriginPrivate::QWebSecurityOriginPrivate):
587         (QWebSecurityOriginPrivate::~QWebSecurityOriginPrivate):
588         * Api/qwebsettings.cpp:
589         (QWebSettingsPrivate::apply):
590         (QWebSettings::QWebSettings):
591         (QWebSettings::setOfflineStoragePath):
592         (QWebSettings::offlineStoragePath):
593         (QWebSettings::setOfflineStorageDefaultQuota):
594         (QWebSettings::offlineStorageDefaultQuota):
595         (QWebSettings::setOfflineWebApplicationCachePath):
596         (QWebSettings::offlineWebApplicationCachePath):
597         (QWebSettings::setLocalStorageDatabasePath):
598         (QWebSettings::localStorageDatabasePath):
599         * Api/qwebsettings.h:
600         * WebCoreSupport/ChromeClientQt.cpp:
601         (WebCore::ChromeClientQt::exceededDatabaseQuota):
602
603 2008-11-12  Ariya Hidayat  <ariya.hidayat@trolltech.com>
604
605         Rubber-stamped by Tor Arne Vestbø.
606
607         Mention the color role change (r38331) in the API doc.
608
609         * Api/qwebpage.cpp:
610
611 2008-11-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
612
613         Reviewed by Tor Arne Vestbø and Simon Hausmann.
614
615         Use QPalette::Base (instead of QPalette::Background) for the page
616         background.
617
618         * Api/qwebframe.cpp:
619         (QWebFramePrivate::updateBackground):
620         * Api/qwebview.cpp:
621         (QWebView::QWebView):
622
623 2008-11-11  Cameron Zwarich  <zwarich@apple.com>
624
625         Reviewed by Geoff Garen.
626
627         Remove pointless dependencies on the now-deleted kjs directory.
628
629         * WebKit_pch.h:
630
631 2008-11-10  Ariya Hidayat  <ariya.hidayat@trolltech.com>
632
633         Rubber-stamped by Simon Hausmann.
634
635         To fit Qt API, scroll offset is a QPoint instead of a QSize.
636
637         * Api/qwebframe.cpp:
638         (QWebFrame::scrollOffset):
639         (QWebFrame::setScrollOffset):
640         * Api/qwebframe.h:
641
642 2008-11-10  David Boddie  <dboddie@trolltech.com>
643
644         Reviewed by Simon Hausmann.
645
646         Doc: Fixed qdoc warnings by supplying function documentation.
647
648         * Api/qwebframe.cpp:
649         * Api/qwebview.cpp:
650
651 2008-11-10  Tobias Koenig <tobias.koenig@trolltech.com>
652
653         Reviewed by Simon Hausmann.
654
655         Removed old and stale prf file that breaks the MingW build.
656
657         * Api/qtwebkit.prf: Removed.
658
659 2008-11-10  Kavindra Palaraja  <kdpalara@trolltech.com>
660
661         Reviewed by Simon Hausmann.
662
663         Clarify QWebFrame/View::setHTML docs with regards to relative URLs
664
665         * Api/qwebframe.cpp:
666         * Api/qwebview.cpp:
667
668 2008-11-10  Joerg Bornemann  <joerg.bornemann@nokia.com>
669
670         Reviewed by Simon Hausmann
671
672         Don't define _CRT_RAND_S on Windows CE in the precompiled
673         header, to fix the CE build.
674
675         * WebKit_pch.h:
676
677 2008-11-07  Ariya Hidayat  <ariya.hidayat@trolltech.com>
678
679         Reviewed by Tor Arne Vestbø and Simon Hausmann.
680
681         Added an option to allow printing the background color and images.
682         Mostly reworked from a patch by Holger.
683         This setting is enabled by default.
684
685         * Api/qwebsettings.cpp:
686         (QWebSettingsPrivate::apply):
687         (QWebSettings::QWebSettings):
688         * Api/qwebsettings.h:
689
690 2008-11-06  Simon Hausmann  <hausmann@webkit.org>
691
692         Reviewed by Tor Arne Vestbø.
693
694         Added a unit tests for QWebFrame::metaData().
695
696         * tests/qwebframe/tst_qwebframe.cpp:
697
698 2008-11-06  Simon Hausmann  <hausmann@webkit.org>
699
700         Reviewed by Tor Arne Vestbø.
701
702         Improved documentation for QWebFrame::metaData().
703
704         * Api/qwebframe.cpp:
705
706 2008-11-05  Sriram Yadavalli <sriram.yadavalli@nokia.com>
707
708         Reviewed by Simon Hausmann.
709
710         Added QWebFrame::metaData() to provide a way in the public API
711         to retrieve the values of the <meta> tags.
712
713         See https://bugs.webkit.org/show_bug.cgi?id=22071
714
715         * Api/qwebframe.cpp:
716         (QWebFrame::metaData):
717         * Api/qwebframe.h:
718
719 2008-10-24  Yael Aharon <yael.aharon@nokia.com>
720
721         Reviewed by Simon Hausmann.
722
723         Add userData() and setUserData() to QWebHistoryItem.
724         Add setMaximumItemCount() and maximumItemCount() to QWebHistory.
725         Add currentItemIndex() to QWebHistory.
726
727         See also https://bugs.webkit.org/show_bug.cgi?id=21864
728
729         Small cleanup by Simon (docs and forward declaration of QWebHistoryItem in qwebframe.h)
730
731         * Api/qwebframe.h:
732         * Api/qwebhistory.cpp:
733         (QWebHistoryItem::userData):
734         (QWebHistoryItem::setUserData):
735         (QWebHistory::currentItemIndex):
736         (QWebHistory::maximumItemCount):
737         (QWebHistory::setMaximumItemCount):
738         * Api/qwebhistory.h:
739         * WebCoreSupport/FrameLoaderClientQt.cpp:
740         (WebCore::FrameLoaderClientQt::saveViewStateToItem):
741         * tests/qwebpage/tst_qwebpage.cpp:
742         (tst_QWebPage::modified):
743
744 2008-11-03  Cameron Zwarich  <zwarich@apple.com>
745
746         Rubber-stamped by Maciej Stachowiak.
747
748         Move more files into the runtime subdirectory of JavaScriptCore.
749
750         * Api/qwebpage.cpp:
751
752 2008-10-25  Jade Han  <jade.han@nokia.com>
753
754         Reviewed by Anders. 
755
756         Enable custom properties for Qt runtime objects in QtWebKit
757
758         https://bugs.webkit.org/show_bug.cgi?id=21813
759
760         * tests/qwebframe/tst_qwebframe.cpp:
761
762 2008-10-24  Sam Weinig  <sam@webkit.org>
763
764         Another Qt build fix.
765
766         * WebCoreSupport/ChromeClientQt.cpp:
767
768 2008-10-24  Sam Weinig  <sam@webkit.org>
769
770         Reviewed by Dan Bernstein.
771
772         Fix https://bugs.webkit.org/show_bug.cgi?id=21759
773         Layering violation: FileChooser should not depend on Document/Frame/Page
774
775         * WebCoreSupport/ChromeClientQt.cpp:
776         (WebCore::ChromeClientQt::runOpenPanel):
777         * WebCoreSupport/ChromeClientQt.h:
778
779 2008-10-24  Timothy Hatcher  <timothy@apple.com>
780
781         Stub out new InspectorClient methods.
782
783         https://bugs.webkit.org/show_bug.cgi?id=21856
784
785         Reviewed by Darin Adler.
786
787         * WebCoreSupport/InspectorClientQt.cpp:
788         (WebCore::InspectorClientQt::populateSetting): Not implemented.
789         (WebCore::InspectorClientQt::storeSetting): Ditto.
790         (WebCore::InspectorClientQt::removeSetting): Ditto.
791         * WebCoreSupport/InspectorClientQt.h:
792
793 2008-10-24  Darin Adler  <darin@apple.com>
794
795         - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732
796
797         * Api/qwebframe.cpp:
798         (QWebFrame::evaluateJavaScript): Use JSValue* instead of JSValuePtr.
799
800 2008-10-23  Yael Aharon <yael.aharon@nokia.com>
801
802         Reviewed by Simon Hausmann.
803
804         Invalid history entries could cause a crash in QT Webkit
805
806         * Api/qwebhistory.cpp:
807         (QWebHistoryItem::originalUrl):
808         (QWebHistoryItem::url):
809         (QWebHistoryItem::title):
810         (QWebHistoryItem::lastVisited):
811         (QWebHistoryItem::icon):
812         (QWebHistoryItem::isValid):
813         * Api/qwebhistory.h:
814         * Api/qwebhistory_p.h:
815         (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
816         (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
817         * tests/qwebpage/tst_qwebpage.cpp:
818         (tst_QWebPage::modified):
819
820 2008-10-22  Yael Aharon <yael.aharon@nokia.com>
821
822         Reviewed by Simon Hausmann.
823
824         emit scrollRequested unconditionally when scrolling.
825
826         See https://bugs.webkit.org/show_bug.cgi?id=21790
827
828         * WebCoreSupport/ChromeClientQt.cpp:
829         (WebCore::ChromeClientQt::scroll):
830
831 2008-10-23  Simon Hausmann  <hausmann@webkit.org>
832
833         Reviewed by Tor Arne.
834
835         Fix handling of mouse events when embedding QWebView into the
836         QGraphicsView.
837
838         QWebPage accepts or ignores events to indicate whether the web page
839         handled the event. However for QWebView to behave like a good widget
840         it should always accept the mouse events to indicate that it handled
841         them and that they should not be subject to event propagation.
842
843         The graphics view relies on acceptance of the initial mouse click to
844         make the embedded widget the focus item.
845
846         * Api/qwebview.cpp:
847         (QWebView::mouseMoveEvent):
848         (QWebView::mousePressEvent):
849         (QWebView::mouseDoubleClickEvent):
850         (QWebView::mouseReleaseEvent):
851         (QWebView::contextMenuEvent):
852         (QWebView::wheelEvent):
853
854 2008-10-22  Ariya Hidayat  <ariya.hidayat@trolltech.com>
855
856         Reviewed by Simon Hausmann.
857
858         For public API, use the term boundingRect instead of boundingBox.
859
860         * Api/qwebframe.cpp:
861         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
862         (QWebHitTestResult::boundingRect):
863         * Api/qwebframe.h:
864         * Api/qwebframe_p.h:
865
866 2008-06-03  Siraj Razick  <siraj.razick@collabora.co.uk>
867
868         Reviewed by Simon Hausmann.
869
870         https://bugs.webkit.org/show_bug.cgi?id=19374
871
872         Expose boundingBox value in QWebHitTestResult
873
874         Add API function QRect QWebHitResult::boundingBox() const
875
876         API docs by Ariya.
877
878         * Api/qwebframe.cpp:
879         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
880         (QWebHitTestResult::boundingBox):
881         * Api/qwebframe.h:
882         * Api/qwebframe_p.h:
883
884 2008-10-21  Yael Aharon <yael.aharon@nokia.com>
885
886         Reviewed by Simon Hausmann.
887
888         emit repaintRequested unconditionally when repaint is requested.
889
890         * WebCoreSupport/ChromeClientQt.cpp:
891         (WebCore::ChromeClientQt::repaint):
892
893 2008-10-20  Sam Weinig  <sam@webkit.org>
894
895         Reviewed by Anders Carlsson.
896
897         Remove FrameLoaderClient::detachedFromParent4.  It is no longer used by any port.
898
899         * WebCoreSupport/FrameLoaderClientQt.cpp:
900         * WebCoreSupport/FrameLoaderClientQt.h:
901
902 2008-10-19  Darin Adler  <darin@apple.com>
903
904         Reviewed by Oliver Hunt.
905
906         - next step of https://bugs.webkit.org/show_bug.cgi?id=21732
907           improve performance by eliminating JSValue as a base class for JSCell
908
909         Remove most uses of JSValue, which will be removed in a future patch.
910
911         * Api/qwebframe.cpp:
912         (QWebFrame::evaluateJavaScript): Use JSValuePtr.
913
914 2008-10-14  Tor Arne Vestbø  <tavestbo@trolltech.com>
915
916         Reviewed by Simon.
917
918         Clip painter to dirty rect before passing on to WebKit
919         
920         This was previously done in ScrollViewQt, but after the
921         refactoring of ScrollView we need to do it in QWebFrame
922         instead, similar to Safari/Win.
923
924         * Api/qwebframe.cpp:
925         (QWebFrame::render):
926
927 2008-10-08  Matthias Ettrich <ettrich@nokia.com>
928
929         Reviewed by Simon.
930
931         Make QWebView ignore focus changes with PopupFocusReason to avoid
932         massive updates when menus open and close.
933
934         * Api/qwebview.cpp:
935         (QWebView::focusInEvent):
936         (QWebView::focusOutEvent):
937
938 2008-10-08  Kavindra Palaraja  <kdpalara@trolltech.com>
939
940         Reviewed by Simon.
941
942         Fixed a qdoc warning and adjusted some spacing
943
944         * Api/qwebframe.cpp:
945
946 2008-10-08  Rhys Weatherley  <rhys.weatherley@nokia.com>
947
948         Reviewed by Simon.
949
950         Compile for platforms without context menus.
951
952         * Api/qwebpage.cpp:
953         (QWebPage::createStandardContextMenu):
954
955 2008-10-08  André Pönitz  <apoenitz@trolltech.com>
956
957         Reviewed by Simon.
958
959         Fix compilation with Qt namespaces.
960
961         * WebCoreSupport/EditCommandQt.h:
962
963 2008-10-07  Tor Arne Vestbø  <tavestbo@trolltech.com>
964
965         QtWebKit build fix after changes to FrameLoaderClient.h in r37371
966
967         * WebCoreSupport/FrameLoaderClientQt.h:
968
969 2008-10-07  Holger Hans Peter Freyther  <zecke@selfish.org>
970
971         [qt] Build fix after Scrollbar.h and Widget.h changes.
972
973         * Api/qwebpage.cpp:
974         (QWebPage::swallowContextMenuEvent):
975
976 2008-10-06  David Hyatt  <hyatt@apple.com>
977
978         Enable viewless Mac WebKit to paint some basic pages.
979         
980         Reviewed by Sam Weinig
981
982         * WebCoreSupport/FrameLoaderClientQt.cpp:
983         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
984
985 2008-10-03  David Hyatt  <hyatt@apple.com>
986
987         Fix scroll method on Qt.  The delta was supposed to use .width()/.height() and not .x()/.y().
988
989         Fix the QtPluginWidget to do an invalidate properly.
990
991         Reviewed by ggaren
992
993         * WebCoreSupport/ChromeClientQt.cpp:
994         (WebCore::ChromeClientQt::scroll):
995         * WebCoreSupport/FrameLoaderClientQt.cpp:
996         (WebCore::):
997
998 2008-10-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
999
1000         Build fix. Remove addToDirtyRegion from the header file.
1001
1002         * WebCoreSupport/ChromeClientQt.h:
1003
1004 2008-10-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1005
1006         Build fix.
1007
1008         * WebCoreSupport/ChromeClientQt.cpp:
1009         (WebCore::ChromeClientQt::scroll):
1010         * WebCoreSupport/FrameLoaderClientQt.cpp:
1011         (WebCore::):
1012         (WebCore::FrameLoaderClientQt::createPlugin):
1013
1014 2008-10-03  David Hyatt  <hyatt@apple.com>
1015
1016         Remove addToDirtyRegion.
1017         
1018         Reviewed by Oliver Hunt
1019
1020         * WebCoreSupport/ChromeClientQt.cpp:
1021
1022 2008-10-02  David Hyatt  <hyatt@apple.com>
1023
1024         https://bugs.webkit.org/show_bug.cgi?id=21314
1025         
1026         Make scrollBackingStore cross-platform.
1027
1028         Reviewed by Sam Weinig
1029
1030         * WebCoreSupport/ChromeClientQt.cpp:
1031         (WebCore::ChromeClientQt::repaint):
1032         (WebCore::ChromeClientQt::scroll):
1033         * WebCoreSupport/ChromeClientQt.h:
1034
1035 2008-10-01  David Hyatt  <hyatt@apple.com>
1036         
1037         https://bugs.webkit.org/show_bug.cgi?id=21282
1038         
1039         Make contentsToScreen/screenToContents cross-platform.  Only implemented by Mac/Win right now.
1040         
1041         Reviewed by Adam Roben
1042
1043         * WebCoreSupport/ChromeClientQt.cpp:
1044         (WebCore::ChromeClientQt::windowToScreen):
1045         (WebCore::ChromeClientQt::screenToWindow):
1046         * WebCoreSupport/ChromeClientQt.h:
1047
1048 2008-09-30  Dave Hyatt  <hyatt@apple.com>
1049
1050         http://bugs.webkit.org/show_bug.cgi?id=21250
1051         
1052         Rename updateContents to repaintContentRectangle and make it cross-platform by always sending
1053         repaints up through the ChromeClient.
1054
1055         Reviewed by Darin Adler
1056
1057         * WebCoreSupport/ChromeClientQt.cpp:
1058         (WebCore::ChromeClientQt::repaint):
1059         * WebCoreSupport/ChromeClientQt.h:
1060
1061 2008-09-29  Gunnar Sletta  <gunnar@trolltech.com>
1062
1063         Reviewed by Simon
1064
1065         Compile on windows using MSVC 2005
1066
1067         For the PCH We need to define _WIN32_WINNT and include windows.h early on,
1068         otherwise we'll miss several functions.
1069
1070         * WebKit_pch.h:
1071
1072 2008-09-29  Thiago Macieira  <thiago.macieira@nokia.com>
1073
1074         Reviewed by Simon.
1075
1076         Changed copyright from Trolltech ASA to Nokia.
1077         
1078         Nokia acquired Trolltech ASA, assets were transferred on September 26th 2008.
1079         
1080
1081         * Api/qwebframe.cpp:
1082         * Api/qwebframe.h:
1083         * Api/qwebframe_p.h:
1084         * Api/qwebhistory.cpp:
1085         * Api/qwebhistory.h:
1086         * Api/qwebhistory_p.h:
1087         * Api/qwebkitglobal.h:
1088         * Api/qwebnetworkinterface.cpp:
1089         * Api/qwebnetworkinterface.h:
1090         * Api/qwebnetworkinterface_p.h:
1091         * Api/qwebpage.cpp:
1092         * Api/qwebpage.h:
1093         * Api/qwebpage_p.h:
1094         * Api/qwebpluginfactory.cpp:
1095         * Api/qwebpluginfactory.h:
1096         * Api/qwebsettings.cpp:
1097         * Api/qwebsettings.h:
1098         * Api/qwebview.cpp:
1099         * Api/qwebview.h:
1100         * Plugins/ICOHandler.cpp:
1101         * QtLauncher/main.cpp:
1102         * WebCoreSupport/FrameLoaderClientQt.cpp:
1103         * WebCoreSupport/FrameLoaderClientQt.h:
1104         * WebCoreSupport/InspectorClientQt.cpp:
1105         * WebCoreSupport/InspectorClientQt.h:
1106         * tests/qwebframe/tst_qwebframe.cpp:
1107         * tests/qwebpage/tst_qwebpage.cpp:
1108
1109 2008-09-28  Simon Hausmann  <hausmann@webkit.org>
1110
1111         Reviewed by David Hyatt.
1112
1113         Ensure the mainThreadIdentifier is set as well as other bits and pieces of
1114         the threading machinery, by calling JSC::initializeThreading().
1115
1116         * Api/qwebpage.cpp:
1117         (QWebPagePrivate::QWebPagePrivate):
1118
1119 2008-09-27  David Hyatt  <hyatt@apple.com>
1120
1121         Forgot to land renaming changes in WebKit.
1122
1123         * Api/qwebframe.cpp:
1124         (QWebFrame::render):
1125         (QWebFrame::pos):
1126         (QWebFrame::geometry):
1127         * Api/qwebpage.cpp:
1128         (QWebPage::viewportSize):
1129         (QWebPage::setViewportSize):
1130
1131 2008-09-27  Simon Hausmann  <hausmann@webkit.org>
1132
1133         Qt build fix - use frameRect instead of frameGeometry, adapt
1134         to renamed scrollbar frameview methods.
1135
1136         * Api/qwebpage.cpp:
1137         (QWebPage::viewportSize):
1138         (QWebPage::setViewportSize):
1139         * WebCoreSupport/FrameLoaderClientQt.cpp:
1140         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1141
1142 2008-09-27  Jan Michael Alonzo  <jmalonzo@webkit.org>
1143
1144         Qt build fix - rename frameGeometry to frameRect per r36995.
1145
1146         * Api/qwebframe.cpp:
1147         (QWebFrame::render):
1148         (QWebFrame::pos):
1149         (QWebFrame::geometry):
1150
1151 2008-09-26  Ariya Hidayat  <ahidayat@trolltech.com>
1152
1153         Reviewed by Simon.
1154
1155         Fixed potential crash when deleting QWebView instance.
1156
1157         When deleting the view, sets the page's view to NULL.
1158         The reason is that the page is smart and its destructor might lead to a call
1159         that operates on a view (which is in the process of being deleted).
1160
1161         * Api/qwebpage.h:
1162         * Api/qwebview.cpp:
1163         (QWebView::~QWebView):
1164
1165 2008-09-26  Ariya Hidayat  <ahidayat@trolltech.com>
1166
1167         Reviewed by Simon.
1168
1169         Fixed using modifiers to type special symbols (e.g '@','$') does not work on Mac OS X.
1170
1171         * WebCoreSupport/EditorClientQt.cpp:
1172         (WebCore::EditorClientQt::handleKeyboardEvent):
1173
1174 2008-09-26  Håvard Wall  <hwall@trolltech.com>
1175
1176         Reviewed by Simon.
1177
1178         Fix compilation with QT_NO_MESSAGEBOX
1179
1180         * Api/qwebpage.cpp:
1181         (QWebPage::javaScriptAlert):
1182         (QWebPage::javaScriptConfirm):
1183
1184 2008-09-23  Tor Arne Vestbø  <tavestbo@trolltech.com>
1185
1186         Reviewed by Simon.
1187
1188         Remove deprecated JS Qt bindings object call/construct code and fix autotests
1189
1190         * tests/qwebframe/tst_qwebframe.cpp:
1191
1192 2008-09-16  Alp Toker  <alp@nuanti.com>
1193
1194         Prospective Qt build fix. ScrollBar.h -> Scrollbar.h
1195
1196         * Api/qwebframe.cpp:
1197         * Api/qwebpage.cpp:
1198
1199 2008-09-15  Eli Fidler  <eli@staikos.net>
1200
1201         Reviewed by Simon.
1202
1203         Yahoo assumes non-RFC compliant HTTP redirect behaviour. QtWebKit is (more)
1204         compliant, so broken. I think the Yahoo-assumed behaviour is real-world standard.
1205
1206         Basically, Yahoo's login procedure for flickr looks like this:
1207         1. load flickr.com, click "sign in"
1208         2. this is a Yahoo page with a form
1209         (https://login.yahoo.com/config/login?.src=flickr...)
1210         when you click the "Sign In" button, the form submits to a yahoo.com POST URL
1211         3. The POST returns with a 302 (redirect) to another yahoo.com URL
1212         4. If you POST the redirected Location:, it all breaks. Yahoo assumes you will
1213         convert the method to GET, which works fine but is definitely not
1214         RFC-compliant. It would be compliant for 303, and the RFC says that many
1215         implementations treat 302 and 303 the same way (for HTTP/1.0 compliance), but
1216         converting to GET is explicitly wrong for 302.
1217
1218         * Api/qwebnetworkinterface.cpp:
1219         (QWebNetworkManager::started):
1220
1221 2008-09-15  Tor Arne Vestbø  <tavestbo@trolltech.com>
1222
1223         Reviewed by Simon.
1224
1225         Make QtInstance::create() private and fix caching
1226
1227         * Api/qwebframe.cpp:
1228         (QWebFrame::addToJavaScriptWindowObject):
1229
1230 2008-09-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
1231
1232         Rubber-stamped by Simon.
1233
1234         Prevent leaking pages and frames in QWebKit autotest
1235
1236         * tests/qwebpage/tst_qwebpage.cpp:
1237
1238 2008-09-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
1239
1240         Reviewed by Simon
1241
1242         Fix QtWebKit autotest
1243
1244         * tests/qwebpage/tst_qwebpage.cpp:
1245         (tst_QWebPage::userStyleSheet):
1246
1247 2008-09-09  Joerg Bornemann  <joerg.bornemann@trolltech.com>
1248
1249         Reviewed by Simon.
1250
1251         Added missing WebCore prefix to ResourceRequest
1252
1253         This is needed for Windows/CE compilation where there is a conflict
1254         with a global ResourceRequest type. Elsewhere in this file ResourceRequest
1255         is also prefixed with WebCore::
1256
1257         * Api/qwebframe.cpp:
1258         (QWebFrame::QWebFrame):
1259
1260 2008-09-07  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
1261
1262         Reviewed by Maciej Stachowiak.
1263
1264         Bug 20704: Replace the KJS namespace
1265         <https://bugs.webkit.org/show_bug.cgi?id=20704>
1266
1267         Rename the KJS namespace to JSC.
1268
1269         * Api/qwebframe.cpp:
1270         (QWebFrame::addToJavaScriptWindowObject):
1271         (QWebFrame::evaluateJavaScript):
1272
1273 2008-09-04  Tor Arne Vestbø  <tavestbo@trolltech.com>
1274
1275         Reviewed by Simon
1276
1277         Fix the QtWebKit build to match changes in r36016
1278
1279         * Api/qwebframe.cpp:
1280         (QWebFrame::addToJavaScriptWindowObject):
1281
1282 2008-09-04  Tor Arne Vestbø  <tavestbo@trolltech.com>
1283
1284         Reviewed by Simon.
1285
1286         Re-enable support for user stylesheets in QtWebKit
1287         
1288         QtWebKit now follows the FRAME_LOADS_USER_STYLESHEET
1289         code path, which allows us to keep API support for
1290         loading user style sheets from remote URLs.
1291         
1292         As part of the change UserStyleSheetLoader.cpp/h was
1293         moved from WebCore/loader/mac to WebCore/loader.
1294
1295         * tests/qwebpage/tst_qwebpage.cpp:
1296         (tst_QWebPage::userStyleSheet):
1297
1298 2008-08-29  Holger Hans Peter Freyther  <zecke@selfish.org>
1299
1300         Reviewed by Eric Seidel.
1301
1302         [janitor/qt] Start replacing port specific getters with the generic native getter
1303         To get the native presentation of an image we currently have platform
1304         specific #ifdef's and a generic getter using NativeImagePtr. This patch
1305         extends this to the ImageBuffer and updates the Qt platform to get rid
1306         of the special #ifdefs.
1307
1308         https://bugs.webkit.org/attachment.cgi?id=22861
1309
1310         * Api/qwebframe.cpp:
1311         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1312         * Api/qwebhistory.cpp:
1313         * Api/qwebsettings.cpp:
1314         (QWebSettings::iconForUrl):
1315
1316 2008-08-29  Holger Hans Peter Freyther  <zecke@selfish.org>
1317
1318         Reviewed by Simon.
1319
1320         Catch up with the introduction of PageGroup in r30840. Enable tracking of
1321         visited links, enable this in QWebPage next to the other WebCore init call.
1322         Calling this more than once is no issue and a cheap operation, we also do not
1323         reset the state. When clearing the history of a page, clear the link state.
1324
1325         * Api/qwebhistory.cpp:
1326         (QWebHistory::clear):
1327         * Api/qwebhistoryinterface.cpp:
1328         (QWebHistoryInterface::setDefaultInterface):
1329         * Api/qwebpage.cpp:
1330         (QWebPagePrivate::QWebPagePrivate):
1331
1332 2008-08-29  Holger Hans Peter Freyther  <zecke@selfish.org>
1333
1334         Reviewed by Simon.
1335
1336         Revert revision 34348 which removed the global historyContains() function.
1337
1338         This function was needed to implement the public API of QWebHistoryInterface
1339         and will be used again in the near future.
1340
1341         * Api/qwebhistoryinterface.cpp:
1342         (WebCore::historyContains):
1343
1344 2008-08-27  Erik Bunce  <elbunce@thehive.com>
1345
1346         Reviewed by Eric Seidel.
1347
1348         https://bugs.webkit.org/show_bug.cgi?id=20223
1349
1350         Add QWebPage::contentsChanged() signal to notify of content changes.
1351
1352         * Api/qwebpage.cpp:
1353         * Api/qwebpage.h:
1354         * WebCoreSupport/EditorClientQt.cpp:
1355         (WebCore::EditorClientQt::respondToChangedContents):
1356
1357 2008-08-27  Brady Eidson  <beidson@apple.com>
1358
1359         Reviewed by Anders
1360
1361         <rdar://problem/6134133> - Crash when loading large movie as a standalone document
1362
1363         * WebCoreSupport/FrameLoaderClientQt.cpp:
1364         (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError): Stubbed for now
1365         * WebCoreSupport/FrameLoaderClientQt.h:
1366
1367 2008-08-25  Holger Hans Peter Freyther  <zecke@selfish.org>
1368
1369         Reviewed by Simon.
1370
1371         [inspector] Emit signals from attachWindow and detachWindow in the Qt platform
1372         Allow the user of the API to honor the attachWindow and detachWindow
1373         requests and attach the QWebPage/QWebView wherever it is wanted. This needs
1374         some more API in QWebPage to be properly exposed.
1375
1376         * WebCoreSupport/InspectorClientQt.cpp:
1377         (WebCore::InspectorClientQt::createPage):
1378         (WebCore::InspectorClientQt::attachWindow):
1379         (WebCore::InspectorClientQt::detachWindow):
1380         * WebCoreSupport/InspectorClientQt.h:
1381
1382 2008-08-19  Alexey Proskuryakov  <ap@webkit.org>
1383
1384         Reviewed by Geoff Garen.
1385
1386         Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.
1387
1388         * Api/qwebframe.cpp:
1389         (QWebFrame::addToJavaScriptWindowObject):
1390
1391 2008-08-15  Håvard Wall  <hwall@trolltech.com>
1392
1393         Reviewed by Simon.
1394
1395         Fixes: compile with QT_NO_UNDOCOMMAND/STACK
1396         
1397
1398         * Api/qwebpage.cpp:
1399         (SetCursorEvent::SetCursorEvent):
1400         (QWebPagePrivate::createContextMenu):
1401         (QWebPage::action):
1402         * Api/qwebpage.h:
1403         * Api/qwebpage_p.h:
1404         * WebCoreSupport/EditCommandQt.cpp:
1405         (EditCommandQt::EditCommandQt):
1406         * WebCoreSupport/EditCommandQt.h:
1407         * WebCoreSupport/EditorClientQt.cpp:
1408         (dumpPath):
1409         (WebCore::EditorClientQt::shouldInsertText):
1410         (WebCore::EditorClientQt::shouldChangeSelectedRange):
1411         (WebCore::EditorClientQt::isEditable):
1412         (WebCore::EditorClientQt::registerCommandForUndo):
1413         (WebCore::EditorClientQt::clearUndoRedoOperations):
1414         (WebCore::EditorClientQt::canUndo):
1415         (WebCore::EditorClientQt::canRedo):
1416         (WebCore::EditorClientQt::undo):
1417         (WebCore::EditorClientQt::redo):
1418         (WebCore::EditorClientQt::shouldInsertNode):
1419
1420 2008-08-15  Håvard Wall  <hwall@trolltech.com>
1421
1422         Reviewed by Simon.
1423
1424         Fixes: compile with QT_NO_STYLE_STYLESHEET
1425         
1426
1427         * WebCoreSupport/FrameLoaderClientQt.cpp:
1428         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
1429         (WebCore::FrameLoaderClientQt::createPlugin):
1430
1431 2008-08-15  Håvard Wall  <hwall@trolltech.com>
1432
1433         Reviewed by Simon.
1434
1435         Fixes: compile with QT_NO_SHORTCUT
1436         
1437
1438         * Api/qwebpage.cpp:
1439         (QWebPagePrivate::mouseMoveEvent):
1440         (QWebPagePrivate::mouseReleaseEvent):
1441         (QWebPagePrivate::dragMoveEvent):
1442
1443 2008-08-15  Håvard Wall  <hwall@trolltech.com>
1444
1445         Reviewed by Simon.
1446
1447         Fixes:    compile with QT_NO_CONTEXTMENU
1448         
1449
1450         * Api/qwebpage.cpp:
1451         (editorCommandForWebActions):
1452         (QWebPagePrivate::QWebPagePrivate):
1453         (QWebPagePrivate::createMainFrame):
1454         (QWebPagePrivate::updateEditorActions):
1455         (QWebPage::setEditable):
1456         * Api/qwebpage.h:
1457         * Api/qwebpage_p.h:
1458         * Api/qwebview.cpp:
1459         * Api/qwebview.h:
1460
1461 2008-08-15  Håvard Wall  <hwall@trolltech.com>
1462
1463         Reviewed by Simon.
1464
1465         Fixes: compile with QT_NO_WHEELEVENT
1466         
1467
1468         * Api/qwebpage.cpp:
1469         (QWebPagePrivate::updateEditorActions):
1470         (QWebPage::event):
1471         * Api/qwebpage_p.h:
1472         * Api/qwebview.cpp:
1473         * Api/qwebview.h:
1474
1475 2008-08-15  Håvard Wall  <hwall@trolltech.com>
1476
1477         Reviewed by Simon.
1478
1479         Fixes: compile with QT_NO_PRINTER
1480         
1481
1482         * Api/qwebframe.cpp:
1483         (QWebFrame::print):
1484         * Api/qwebframe.h:
1485
1486 2008-08-15  David Boddie  <dboddie@trolltech.com>
1487
1488         Reviewed by Simon.
1489
1490         Doc: Added documentation for default property values.
1491         
1492
1493         * Api/qwebpage.cpp:
1494         (QWebPagePrivate::keyPressEvent):
1495         (QWebPage::triggerAction):
1496         (QWebPage::acceptNavigationRequest):
1497         (QWebPage::action):
1498         * Api/qwebview.cpp:
1499
1500 2008-08-15  David Boddie  <dboddie@trolltech.com>
1501
1502         Reviewed by Simon.
1503
1504         Doc: Renamed snippets that appear in the code directory.
1505         
1506
1507         * Api/qwebview.cpp:
1508         (QWebView::event):
1509         (QWebView::print):
1510
1511 2008-08-12  Timothy Hatcher  <timothy@apple.com>
1512
1513         Add a stub for InspectorClient::setAttachedWindowHeight.
1514
1515         * WebCoreSupport/InspectorClientQt.cpp:
1516         (WebCore::InspectorClientQt::setAttachedWindowHeight):
1517         Call notImplemented().
1518         * WebCoreSupport/InspectorClientQt.h:
1519
1520 2008-08-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1521
1522         Reviewed by Simon.
1523
1524         Use full-page zoom in QtLauncher.
1525
1526         * QtLauncher/main.cpp:
1527         (MainWindow::zoomIn):
1528         (MainWindow::zoomOut):
1529         (MainWindow::resetZoom):
1530         (MainWindow::setupUI):
1531
1532 2008-08-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1533
1534         Reviewed by Simon.
1535
1536         Fix linking with QtWebKit.
1537
1538         * Api/qwebframe.h: remove non-existing function/property.
1539
1540 2008-08-13  Simon Hausmann  <hausmann@webkit.org>
1541
1542         Reviewed by Holger.
1543
1544         Based on patch by Siraj razick <siraj.razick@collabora.co.uk>
1545
1546         https://bugs.webkit.org/show_bug.cgi?id=19125
1547
1548         Added functions to get/set the zoom factor.
1549
1550         Added a QWebFrame/QWebView::zoomFactor as well as a boolean
1551         ZoomTextOnly attribute in QWebSettings.
1552
1553         * Api/qwebframe.cpp:
1554         (QWebFrame::setZoomFactor):
1555         (QWebFrame::zoomFactor):
1556         * Api/qwebframe.h:
1557         * Api/qwebsettings.cpp:
1558         (QWebSettingsPrivate::apply):
1559         (QWebSettings::QWebSettings):
1560         * Api/qwebsettings.h:
1561         * Api/qwebview.cpp:
1562         (QWebView::setZoomFactor):
1563         (QWebView::zoomFactor):
1564         * Api/qwebview.h:
1565
1566 2008-08-13  Simon Hausmann  <hausmann@webkit.org>
1567
1568         Reviewed by Lars.
1569
1570         Fix QWebFrame::setHtml() not setting the new contents immediately.
1571
1572         Added a setter to the DocumentLoader to toggle the deferred loading of the main
1573         resource when it comes from substitute data.
1574
1575         Disable deferred loading of the main resource when we have valid substitute data,
1576         as used by QWebFrame::setHtml.
1577
1578         * WebCoreSupport/FrameLoaderClientQt.cpp:
1579         (WebCore::FrameLoaderClientQt::download):
1580
1581 2008-08-13  Simon Hausmann  <hausmann@webkit.org>
1582
1583         Rubber-stamped by Holger.
1584
1585         Fix QWebPage::isModified().
1586
1587         isModified() would return true after loading a new page or it would continue to
1588         return true after undoing modifications. Fix this by eliminating the
1589         QWebPagePrivate::modified variable and use the undoStack's canUndo() property
1590         instead.
1591
1592         https://bugs.webkit.org/show_bug.cgi?id=19252
1593
1594         * Api/qwebpage.cpp:
1595         (QWebPage::action):
1596         * Api/qwebpage_p.h:
1597         * WebCoreSupport/EditorClientQt.cpp:
1598         (WebCore::EditorClientQt::respondToChangedContents):
1599
1600 2008-08-13  David Boddie  <dboddie@trolltech.com>
1601
1602         Reviewed by Simon.
1603
1604         Updated docs with the signal emission behavior of urlChanged()
1605
1606         * Api/qwebframe.cpp:
1607
1608 2008-08-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1609
1610         Reviewed by Simon.
1611
1612         Fix Ctrl+Y to work again when editing text in contextEditable mode.
1613
1614         This fixes regression in LayoutTests/editing/pasteboard/emacs-cntl-y-001.html
1615
1616         * WebCoreSupport/EditorClientQt.cpp:
1617         (WebCore::EditorClientQt::handleKeyboardEvent):
1618
1619 2008-08-13  Thiago Macieira  <tjmaciei@trolltech.com>
1620
1621         Reviewed by Simon.
1622
1623         Fix encoding of [ and ] in the host part of the URL
1624
1625         Until QUrl is fixed (making QUrl's tolerant parser more tolerant), we have to
1626         add this workaround to the QUrl <> WebCore::KURL conversion operator so that it
1627         doesn't encode [ and ] when they are found in the host part. That is, the
1628         following URL:
1629         http://[::1]/
1630         is valid and should not be reencoded to:
1631         http://%5b::1%5d/
1632
1633         This change adds the automatic test for it.
1634
1635         * tests/qwebframe/tst_qwebframe.cpp:
1636
1637 2008-08-12  Urs Wolfer  <uwolfer@kde.org>
1638
1639         Reviewed by Simon.
1640
1641         https://bugs.webkit.org/show_bug.cgi?id=20357
1642
1643         Fix crash in QWebPage in case contextMenuEvent has been overwritten
1644         because context menu has the view as parent and thus is deleted too early.
1645
1646         Add testcase for this crash.
1647
1648         * Api/qwebpage_p.h:
1649         * tests/qwebpage/tst_qwebpage.cpp:
1650         (tst_QWebPage::contextMenuCrash):
1651
1652 2008-08-07  Simon Hausmann  <hausmann@webkit.org>
1653
1654         Rubber-stamped by Lars.
1655
1656         Added API tests for QWebPage/QWebFrame based on QTestLib.
1657
1658         * tests/qwebframe/qwebframe.pro: Added.
1659         * tests/qwebframe/tst_qwebframe.cpp: Added.
1660         * tests/qwebpage/qwebpage.pro: Added.
1661         * tests/qwebpage/tst_qwebpage.cpp: Added.
1662         * tests/tests.pro: Added.
1663
1664 2008-08-06  Benjamin C Meyer  <ben@meyerhome.net>
1665
1666         Reviewed by Simon.
1667
1668         During the drag operation only accept the event if the action is not ignore action.
1669
1670         * Api/qwebpage.cpp:
1671         (QWebPagePrivate::dragEnterEvent):
1672         (QWebPagePrivate::dragMoveEvent):
1673         (QWebPagePrivate::dropEvent):
1674
1675 2008-08-06  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1676
1677         Fix the Qt build due to recent ScriptController refactoring.
1678
1679         * Api/qwebframe.cpp:
1680         (QWebFrame::addToJavaScriptWindowObject):
1681
1682 2008-08-05  Tor Arne Vestbø  <tavestbo@trolltech.com>
1683
1684         Reviewed by Simon.
1685
1686         Move event handling of the return-key from EditorClientQt to QWebPage.
1687         
1688         https://bugs.webkit.org/show_bug.cgi?id=20191
1689         
1690         This is a first step in refactoring the big switch block
1691         in EditorClientQt::handleKeyboardEvent to using WebActions
1692         instead.
1693         
1694         The new logic uses two new StandardKeys from QKeySequence:
1695         
1696         - InsertParagraphSeparator
1697         - InsertLineSeparator
1698         
1699         Which translate to the commands InsertNewline and InsertLineBreak
1700         respectivly. On Windows/X11 pressing the shift modifier will invoke
1701         the latter action. For Mac this is triggered by pressing the meta
1702         modifier (Ctrl).
1703         
1704         Initial patch by: Erik Bunce
1705
1706         * Api/qwebpage.cpp:
1707         (editorActionForKeyEvent):
1708         * Api/qwebpage.h:
1709         * WebCoreSupport/EditorClientQt.cpp:
1710         (WebCore::EditorClientQt::handleKeyboardEvent):
1711
1712 2008-08-04  Erik Bunce  <elbunce@thehive.com>
1713
1714         Reviewed by Simon.
1715
1716         https://bugs.webkit.org/show_bug.cgi?id=20221
1717
1718         Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline.
1719         Add lookup table for mapping web actions to editor commands.
1720
1721         * Api/qwebpage.cpp:
1722         (editorCommandForWebActions):
1723         (QWebPagePrivate::updateAction):
1724         (QWebPagePrivate::updateEditorActions):
1725         (QWebPage::triggerAction):
1726         (QWebPage::setEditable):
1727
1728 2008-08-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1729
1730         Reviewed by Simon.
1731
1732         A bunch of improvements to the QtLauncher.
1733
1734         Among others:
1735         - Unify and unclutter the toolbar, use menu for addition actions
1736         - Simplify URL edit, just use QLineEdit (no fancy close button etc)
1737         - Guess the URL from the command line so now we can run ./QtLauncher www.google.com
1738         - Shortcut keys for most actions
1739         - Simple autocomplete for the URL edit
1740         - Actions for zooming, New Window and Close Window
1741         - Show Format menu only when the content is set to editable
1742
1743         * QtLauncher/main.cpp:
1744         (MainWindow::MainWindow):
1745         (MainWindow::webPage):
1746         (MainWindow::changeLocation):
1747         (MainWindow::loadFinished):
1748         (MainWindow::showLinkHover):
1749         (MainWindow::newWindow):
1750         (MainWindow::zoomIn):
1751         (MainWindow::zoomOut):
1752         (MainWindow::resetZoom):
1753         (MainWindow::print):
1754         (MainWindow::setEditable):
1755         (MainWindow::dumpHtml):
1756         (MainWindow::setupUI):
1757         (main):
1758
1759 2008-08-04  Erik Bunce  <elbunce@thehive.com>
1760
1761         Reviewed by Simon.
1762
1763         https://bugs.webkit.org/show_bug.cgi?id=20198
1764
1765         Allow Copy key sequence to work in non-editable areas.
1766
1767         * Api/qwebpage.cpp:
1768         (QWebPagePrivate::keyPressEvent):
1769
1770 2008-07-31  Erik Bunce  <elbunce@thehive.com>
1771
1772         Reviewed by Simon.
1773
1774         Make sure edit actions get updated when the contents change.
1775
1776         * WebCoreSupport/EditorClientQt.cpp:
1777         (WebCore::EditorClientQt::respondToChangedContents):
1778
1779 2008-07-31  Erik Bunce  <elbunce@thehive.com>
1780
1781         Reviewed by Simon.
1782
1783         Add simple edit test abilities to QtLauncher.
1784
1785         * QtLauncher/main.cpp:
1786         (MainWindow::MainWindow):
1787         (MainWindow::setEditable):
1788         (MainWindow::dumpHtml):
1789
1790 2008-07-31  Alexey Proskuryakov  <ap@webkit.org>
1791
1792         Rubber-stamped by Maciej.
1793
1794         Eliminate JSLock (it was already disabled, removing the stub implementaion and all
1795         call sites now).
1796
1797         * Api/qwebframe.cpp:
1798         (QWebFrame::addToJavaScriptWindowObject):
1799
1800 2008-07-27  David Kilzer  <ddkilzer@apple.com>
1801
1802         Fix Qt build failure.
1803
1804         * Api/qwebframe.h:
1805         (QWebFrame::setScrollOffset): Make argument const.
1806
1807 2008-07-26  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
1808
1809         Reviewed by Simon Hausmann.
1810
1811         https://bugs.webkit.org/show_bug.cgi?id=20010
1812         [Qt] Add API access to scrolling
1813
1814         * Api/qwebframe.cpp: Added access to a frame scroll offset.
1815         (QWebFrame::scroll):
1816         (QWebFrame::scrollOffset):
1817         (QWebFrame::setScrollOffset):
1818         * Api/qwebframe.h:
1819
1820 2008-07-26  Daniel Jalkut  <jalkut@red-sweater.com>
1821
1822         Build fix.  Adjust to updated WebCore FrameLoader method names & signatures.
1823
1824         * Api/qwebpage.cpp:
1825         (QWebPage::triggerAction):
1826         * WebCoreSupport/FrameLoaderClientQt.cpp:
1827         (WebCore::FrameLoaderClientQt::createFrame):
1828
1829 2008-07-25  Joerg Bornemann  <joerg.bornemann@trolltech.com>
1830
1831         Reviewed by Simon.
1832
1833         Compile with QT_NO_PRINTER.
1834
1835         * QtLauncher/main.cpp:
1836         (MainWindow::MainWindow):
1837
1838 2008-07-24  Tor Arne Vestbø  <tavestbo@trolltech.com>
1839
1840         Reviewed by Simon
1841
1842         Don't insert text on keyDown event in EditorClientQt.
1843
1844         * WebCoreSupport/EditorClientQt.cpp:
1845         (WebCore::EditorClientQt::handleKeyboardEvent):
1846
1847 2008-07-04  Benjamin C Meyer  <ben@meyerhome.net>
1848
1849         Reviewed by Simon.
1850
1851         Update the webkit version in the QtWebKit useragent string to match trunk
1852
1853         * Api/qwebpage.cpp:
1854
1855 2008-07-02  Simon Hausmann  <hausmann@webkit.org>
1856
1857         Build fix.
1858
1859         * Api/qwebpage.cpp:
1860         (QWebPage::triggerAction): The signature of setBaseWritingDirection
1861         changed to take an enum instead of a string.
1862
1863 2008-07-01  Alexey Proskuryakov  <ap@webkit.org>
1864
1865         Reviewed by Darin Adler.
1866
1867         Disable JSLock for per-thread contexts.
1868
1869         * Api/qwebframe.cpp:
1870         (QWebFrame::addToJavaScriptWindowObject):
1871         Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
1872         Include JSLock.h, as it is no longer brought in implicitly.
1873
1874 2008-07-01  Tor Arne Vestbø  <tavestbo@trolltech.com>
1875
1876         Reviewed by Simon.
1877
1878         Don't show the tooltip instantly in the QtLauncher.
1879         
1880         Let the QWebView handle tooltips by itself, so we get
1881         the expected delay as everywhere else.
1882
1883         * QtLauncher/main.cpp:
1884
1885 2008-06-30  Simon Hausmann  <hausmann@webkit.org>
1886
1887         Rubber-stamped by Niko.
1888
1889         Removed the obsolete and unmaintained WebKitPart. The integration of
1890         QtWebKit into KDE is now done in the webkitkde component inside KDE.
1891
1892         * WebKitPart/WebKitFactory.cpp: Removed.
1893         * WebKitPart/WebKitFactory.h: Removed.
1894         * WebKitPart/WebKitPart.cpp: Removed.
1895         * WebKitPart/WebKitPart.desktop: Removed.
1896         * WebKitPart/WebKitPart.h: Removed.
1897         * WebKitPart/WebKitPart.rc: Removed.
1898         * WebKitPart/WebKitPartBrowser.rc: Removed.
1899         * WebKitPart/WebKitPartBrowserExtension.cpp: Removed.
1900         * WebKitPart/WebKitPartBrowserExtension.h: Removed.
1901         * WebKitPart/WebKitPartClient.cpp: Removed.
1902         * WebKitPart/WebKitPartClient.h: Removed.
1903         * WebKitPart/WebKitPartInterface.cpp: Removed.
1904         * WebKitPart/WebKitPartInterface.h: Removed.
1905         * WebKitPart/org.kde.WebKitPart.xml: Removed.
1906
1907 2008-06-24  Simon Hausmann  <hausmann@webkit.org>
1908
1909         Fix the Qt build, added missing include for RuntimeObjectImp.
1910
1911         * Api/qwebframe.cpp:
1912
1913 2008-06-23  Benjamin C Meyer  <ben@meyerhome.net>
1914
1915         Reviewed by Simon.
1916
1917         Add function to retrieve the standard context menu
1918
1919 2008-06-20  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
1920
1921         Reviewed by Simon.
1922
1923         https://bugs.webkit.org/show_bug.cgi?id=19082
1924         [Qt] Full-page plugins not activated
1925
1926         * WebCoreSupport/FrameLoaderClientQt.cpp:
1927         (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a
1928         plugin present, as it can be created during the function.
1929
1930 2008-06-20  Marco Barisione  <marco.barisione@collabora.co.uk>
1931
1932         Reviewed by Simon.
1933
1934         https://bugs.webkit.org/show_bug.cgi?id=19082
1935         [Qt] Full-page plugins not activated
1936
1937         * WebCoreSupport/FrameLoaderClientQt.cpp:
1938         (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the
1939         MIME type is supported by a plugin.
1940
1941 2008-06-18  Alexey Proskuryakov  <ap@webkit.org>
1942
1943         Reviewed by Darin Adler.
1944
1945         Prepare JavaScript heap for being per-thread.
1946
1947         * Api/qwebframe.cpp:
1948         (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build.
1949
1950 2008-06-18  Julien Chaffraix  <jchaffraix@webkit.org>
1951
1952         Qt Build fix after r34627.
1953
1954         * WebCoreSupport/FrameLoaderClientQt.cpp:
1955         (WebCore::FrameLoaderClientQt::createPlugin):
1956
1957 2008-06-15  Darin Adler  <darin@apple.com>
1958
1959         - give Frame object functions shorter names: scriptProxy() -> script(),
1960           selectionController() -> selection(), animationController() -> animation()
1961
1962         * Api/qwebframe.cpp:
1963         (QWebFrame::evaluateJavaScript):
1964         * Api/qwebpage.cpp:
1965         (QWebPagePrivate::focusInEvent):
1966         (QWebPagePrivate::focusOutEvent):
1967         (QWebPage::inputMethodQuery):
1968         * WebCoreSupport/EditorClientQt.cpp:
1969         (WebCore::EditorClientQt::handleKeyboardEvent):
1970
1971 2008-06-15  Darin Adler  <darin@apple.com>
1972
1973         - new names for more JavaScriptCore files
1974
1975         * WebKit_pch.h:
1976
1977 2008-06-15  Darin Adler  <darin@apple.com>
1978
1979         - new names for a few key JavaScriptCore files
1980
1981         * Api/qwebframe.cpp:
1982
1983 2008-06-14  Darin Adler  <darin@apple.com>
1984
1985         Rubber stamped by Sam.
1986
1987         - new names for kjs_binding.h and kjs_proxy.h
1988
1989         * Api/qwebframe.cpp:
1990         (QWebFrame::evaluateJavaScript):
1991         * WebKit_pch.h:
1992
1993 2008-06-14  Darin Adler  <darin@apple.com>
1994
1995         - fix build
1996
1997         * Api/qwebframe.cpp:
1998         (QWebFramePrivate::init): Added a missing semicolon.
1999
2000 2008-06-14  Darin Adler  <darin@apple.com>
2001
2002         Reviewed by Sam.
2003
2004         - more https://bugs.webkit.org/show_bug.cgi?id=17257
2005           start ref counts at 1 instead of 0 for speed
2006
2007         * Api/qwebframe.cpp:
2008         (QWebFramePrivate::init): Use create instead of new.
2009         * WebCoreSupport/FrameLoaderClientQt.cpp:
2010         (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
2011
2012 2008-06-13  Darin Adler  <darin@apple.com>
2013
2014         - try to fix build
2015
2016         * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument.
2017
2018 2008-06-13  Darin Adler  <darin@apple.com>
2019
2020         Reviewed by John Sullivan.
2021
2022         - updated for addition of FormState argument to action policy functions
2023
2024         * WebCoreSupport/FrameLoaderClientQt.cpp:
2025         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2026         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2027
2028 2008-06-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2029
2030         Reviewed by Simon.
2031
2032         Fix left-click and middle-click mouse event are not properly accepted.
2033         
2034         When copying or pasting text using left or middle-click, the event must be
2035         accepted so that it will not be potentially processed further by the parent
2036         and/or sub-classed widget.
2037         
2038
2039         * Api/qwebpage.cpp:
2040         (QWebPagePrivate::mouseReleaseEvent):
2041
2042 2008-06-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2043
2044         Reviewed by Simon.
2045
2046         Fix input element does not accept character typed in using AltGr.
2047
2048         EditorClient is modified to catch AltGr and Ctrl+Alt key combination.
2049         This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry
2050
2051         * WebCoreSupport/EditorClientQt.cpp:
2052         (WebCore::EditorClientQt::handleKeyboardEvent):
2053
2054 2008-05-26  Jonathon Jongsma  <jonathon.jongsma@collabora.co.uk>
2055
2056         Reviewed by Simon.
2057
2058         https://bugs.webkit.org/show_bug.cgi?id=19323
2059
2060         Implemented the QWebPage::editable property.
2061
2062         Small documentation fixes by Simon.
2063
2064         * Api/qwebpage.cpp:
2065         (QWebPagePrivate::QWebPagePrivate):
2066         (QWebPage::setEditable):
2067         (QWebPage::isEditable):
2068         * Api/qwebpage.h:
2069         * Api/qwebpage_p.h: implement the editable property and add API so that
2070         applications can switch edit mode on and off for a particular QWebPage
2071         * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the
2072         QWebPage instead of always returning false
2073
2074 2008-06-09  Tor Arne Vestbø  <tavestbo@trolltech.com>
2075
2076         Reviewed by Simon
2077
2078         Make sure web action in context menus have the right enablement,
2079         while not messing up other web actions not included in the menu.
2080
2081         * Api/qwebpage.cpp:
2082         (QWebPagePrivate::createContextMenu):
2083         (QWebPage::updatePositionDependentActions):
2084         * Api/qwebpage_p.h:
2085
2086 2008-06-09  Benjamin C Meyer  <ben@meyerhome.net>
2087
2088         Reviewed by Simon
2089
2090         Add Shift-Space shortcut to go up one screen, the opposite of Space
2091         which goes down one screen.
2092
2093         * Api/qwebpage.cpp:
2094         (QWebPagePrivate::handleScrolling):
2095
2096 2008-06-04  Tor Arne Vestbø  <tavestbo@trolltech.com>
2097
2098         Reviewed by Simon.
2099
2100         Fix a failing assertion when calling QWebFrame::evaluateJavaScript.
2101
2102         The starting line number has to be 1 instead of 0.
2103
2104         * Api/qwebframe.cpp:
2105         (QWebFrame::evaluateJavaScript):
2106
2107 2008-06-03  Jonathon Jongsma  <jonathon.jongsma@collabora.co.uk>
2108
2109         Reviewed by Darin Adler.
2110
2111         * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains().  This
2112         function is not used anywhere internally and is only a convenience
2113         function that can still be accomplished using
2114         QWebHistoryInterface::historyContains();
2115
2116 2008-05-29  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
2117
2118         Reviewed by Simon.
2119
2120         Doc: Mention the requirement of a QApplication with QtWebKit
2121         
2122
2123         * Api/qwebview.cpp:
2124
2125 2008-05-29  David Boddie  <dboddie@trolltech.com>
2126
2127         Reviewed by Simon.
2128
2129         Some clarifications for the documentation.
2130         
2131
2132         * Api/qwebpage.cpp:
2133         * Api/qwebpluginfactory.cpp:
2134
2135 2008-05-27  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2136
2137         Reviewed by Simon.
2138
2139         Fix web inspector does not returns its state properly after its window is minimized.
2140
2141         As hinted by Holger, InspectorClientView::hideEvent is not needed.
2142         This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967
2143
2144         * WebCoreSupport/InspectorClientQt.cpp:
2145
2146 2008-05-21  Siraj Razick  <siraj.razick@collabora.co.uk>
2147
2148         Reviewed by Simon.
2149
2150         Add <param name="classid"/> support for application/x-qt-object plugins
2151
2152         * WebCoreSupport/FrameLoaderClientQt.cpp:
2153         (WebCore::FrameLoaderClientQt::createPlugin):
2154
2155 2008-05-13  Andy Shaw  <andy@trolltech.com>
2156
2157         Reviewed by Simon.
2158
2159         Fixes: QWebHistory::forward() should go forwards and not back
2160
2161         * Api/qwebhistory.cpp:
2162
2163 2008-05-12  Alexey Proskuryakov  <ap@webkit.org>
2164
2165         Roll out recent  threading changes (r32807, r32810, r32819, r32822) to simplify
2166         SquirrelFish merging.
2167
2168         * Api/qwebframe.cpp:
2169         (QWebFrame::addToJavaScriptWindowObject):
2170
2171 2008-05-09  Thiago Macieira  <tjmaciei@trolltech.com>
2172
2173         Reviewed by Simon.
2174
2175         Fix bad includes in QtWebKit public headers.
2176         
2177         Make sure to include qglobal.h using the QtCore prefix so that an explicit
2178         include/QtCore is not needed in the application's build system. Also make sure
2179         that qwebsettings.h includes the local qwebkitglobal.h.
2180         
2181
2182         * Api/qwebkitglobal.h:
2183         * Api/qwebsettings.h:
2184
2185 2008-05-08  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
2186
2187         Reviewed by Simon.
2188
2189         https://bugs.webkit.org/show_bug.cgi?id=18935
2190
2191         Based on work by Sriram Neelakandan for the Gtk port.
2192
2193         * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize
2194         m_hasSentResponseToPlugin.
2195         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2196         (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
2197
2198 2008-05-08  Warwick Allison  <warwick@trolltech.com>
2199
2200         Reviewed by Simon.
2201
2202         Fixes: WebKit expects initial input method state to be *disabled*.
2203         
2204         At least QWS does not need the initial input method state to be forced to
2205         enabled, but other platforms (esp. X11) do. Until fixed/tested on those
2206         platforms, this is specific to QWS.
2207         
2208
2209         * Api/qwebview.cpp:
2210         (QWebView::QWebView):
2211
2212 2008-05-06  Simon Hausmann  <hausmann@webkit.org>
2213
2214         Reviewed by Holger.
2215
2216         Fix logic error in QWebHitTestResult::isNull().
2217
2218         * Api/qwebframe.cpp:
2219
2220 2008-05-02  Benjamin Meyer  <bmeyer@trolltech.com>
2221
2222         Reviewed by Simon.
2223
2224         Doc: Mention that you have to enable plugins in QWebSettings for them to work.
2225
2226         * Api/qwebpage.cpp:
2227
2228 2008-05-02  Simon Hausmann  <hausmann@webkit.org>
2229
2230         Fix the Qt build, ExecState is required here.
2231
2232         * Api/qwebframe.cpp:
2233         (QWebFrame::addToJavaScriptWindowObject):
2234
2235 2008-05-01  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
2236
2237         Reviewed by Alp Toker.
2238         Qt parts OK'ed by Simon Hausmann.
2239
2240         https://bugs.webkit.org/show_bug.cgi?id=14750
2241         Added support for NPAPI plugins on Gtk and Qt-x11 ports.
2242
2243         * WebCoreSupport/FrameLoaderClientQt.cpp:
2244         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2245         (WebCore::FrameLoaderClientQt::finishedLoading):
2246         (WebCore::FrameLoaderClientQt::setMainDocumentError):
2247         (WebCore::FrameLoaderClientQt::committedLoad):
2248         (WebCore::FrameLoaderClientQt::objectContentType):
2249         (WebCore::FrameLoaderClientQt::createPlugin):
2250         (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
2251         * WebCoreSupport/FrameLoaderClientQt.h:
2252
2253 2008-04-30  Julien Chaffraix  <jchaffraix@webkit.org>
2254
2255         Qt 4.3 build fix.
2256
2257         Fixes a brace error that made Qt 4.4 build but not Qt 4.3.
2258  
2259         * Api/qwebview.cpp:
2260         (QWebView::event):
2261
2262 2008-04-30  Tor Arne Vestbø  <tavestbo@trolltech.com>
2263
2264         Reviewed by Simon.
2265
2266         In focusIn and focusOut event always update the active state of the
2267         focus controller. Fixes ~400 failing layout tests due to missing
2268         editing callbacks that relied on the correct focus.
2269
2270         * Api/qwebpage.cpp:
2271         (QWebPagePrivate::focusInEvent):
2272         (QWebPagePrivate::focusOutEvent):
2273
2274 2008-04-29  Lincoln Ramsay  <lincoln.ramsay@trolltech.com>
2275
2276         Reviewed by Simon.
2277
2278         Fix compilation with QT_NO_PRINTER
2279         
2280
2281         * Api/qwebview.cpp:
2282         (QWebView::print):
2283
2284 2008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2285
2286         Reviewed by Simon.
2287
2288         Ensure that relative URL is converted to absolute URL.
2289         
2290         This is necessary because loading a relative URL is not really supported
2291         (the web page may load, but the subsequent URLs for images and links will
2292         not be resolved properly).
2293         This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484
2294         
2295
2296         * Api/qwebframe.cpp:
2297         (ensureAbsoluteUrl):
2298         (QWebFrame::setUrl):
2299         (QWebFrame::load):
2300
2301 2008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2302
2303         Reviewed by Simon.
2304
2305         Simplification of Qt Launcher (no animation and use standard progress bar widget)
2306         
2307         Status bar shows the hovered link without any animation. Progress bar just uses the standard QProgressBar (no custom widget). The launcher is leaner and faster to use under the debugger and/or valgrind.
2308         
2309
2310         * QtLauncher/main.cpp:
2311         (MainWindow::MainWindow):
2312
2313 2008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2314
2315         Reviewed by Simon.
2316
2317         Update the cursor when the frame/page loading is finished.
2318         
2319         This fixes https://bugs.webkit.org/show_bug.cgi?id=18712
2320         
2321
2322         * WebCoreSupport/FrameLoaderClientQt.cpp:
2323         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
2324         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2325
2326 2008-04-29  Simon Hausmann  <shausman@trolltech.com>
2327
2328         Reviewed by Holger.
2329
2330         Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links.
2331         
2332         Call QWebPage::acceptNavigationRequest when the creation of a new window with
2333         URL is requested. The frame pointer is set to null in this case.
2334         
2335
2336         * Api/qwebpage.cpp:
2337         (QWebPage::setViewportSize):
2338         * WebCoreSupport/FrameLoaderClientQt.cpp:
2339         (WebCore::FrameLoaderClientQt::startDownload):
2340         (WebCore::FrameLoaderClientQt::createFrame):
2341
2342 2008-04-29  Holger Hans Peter Freyther  <zecke@selfish.org>
2343
2344         Reviewed by Simon.
2345
2346         Use the WebCore facility to do the scrolling. Move some code around.
2347
2348         * Api/qwebpage.cpp:
2349         (QWebPagePrivate::keyPressEvent):
2350         (QWebPagePrivate::shortcutOverrideEvent):
2351         (QWebPagePrivate::handleScrolling):
2352         * Api/qwebpage_p.h:
2353
2354 2008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2355
2356         Reviewed by Simon.
2357
2358         fix potential crash when loading image(s)
2359
2360         Crash may occur. If compiled with 4.3, the variable is not initialized.
2361
2362         * Api/qwebpage.cpp:
2363         (QWebPagePrivate::QWebPagePrivate):
2364
2365 2008-04-29  Holger Hans Peter Freyther  <zecke@selfish.org>
2366
2367         Reviewed by Simon.
2368
2369         Calling QWebView::setCursor will override the WebCore Cursor.
2370         Calling QWebView::setCursor will override the WebCore Cursor using
2371         QWidget::unsetCursor will revert to the WebCore Cursor.
2372
2373         For detecting the unset we have to compare the shape of the
2374         cursor to the default arrow. Qt::WA_SetCursor can not be used
2375         as it is set unconditionally but conditionally removed.
2376
2377         Calling QWidget::setCursor will immediately send the CursorChange
2378         event. We listen to this event to decide if we currently use a
2379         WebCore cursor, got a cursor from outside, or revert to the default.
2380
2381         This should be race free and work reliable, the manual test for this
2382         is WebCore/manual-tests/cursor.html
2383
2384         * Api/qwebpage.cpp:
2385         (SetCursorEvent::SetCursorEvent):
2386         * Api/qwebpage_p.h:
2387         * Api/qwebview.cpp:
2388         (QWebViewPrivate::QWebViewPrivate):
2389         (QWebViewPrivate::setCursor):
2390         (QWebView::QWebView):
2391         (QWebView::event):
2392
2393 2008-04-29  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
2394
2395         Reviewed by Simon.
2396
2397         Documentation fixes:
2398
2399         - Fixed a qdoc warning
2400         - Mention that fav icons can be of arbitrary size
2401         - Fix signature of QWebPage::acceptNavigationRequest show in the documentation
2402
2403         * Api/qwebframe.cpp:
2404         * Api/qwebpage.cpp:
2405         * Api/qwebpage.h:
2406         * Api/qwebsettings.cpp:
2407         * Api/qwebview.cpp:
2408
2409 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
2410
2411         Reviewed by Simon.
2412
2413         Fix QWebView::loadFinished isn't always emitted
2414
2415         Replaced loadDone() with loadFinished(bool) and moved the signals for progress
2416         tracking (start, progres, and finish) to the page instead of the frame. This
2417         ensures that we emit loadFinished even when a subframe started the actual load.
2418
2419         This causes a few regressions in the layout tests that we for now accept for
2420         the sake of the correct API. Layout tests we can fix any time though, including
2421         patch release, the API however we can't change anymore in patch releases.
2422
2423         * Api/qwebframe.cpp:
2424         * Api/qwebframe.h:
2425         * Api/qwebpage.cpp:
2426         (QWebPage::totalBytes):
2427         * Api/qwebpage.h:
2428         * Api/qwebview.cpp:
2429         (QWebView::setPage):
2430         * Api/qwebview.h:
2431         * QtLauncher/main.cpp:
2432         (MainWindow::MainWindow):
2433         * WebCoreSupport/FrameLoaderClientQt.cpp:
2434         (drtDescriptionSuitableForTestResult):
2435         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2436         (WebCore::FrameLoaderClientQt::setFrame):
2437         (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
2438         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2439         (WebCore::FrameLoaderClientQt::willChangeTitle):
2440         (WebCore::FrameLoaderClientQt::createDocumentLoader):
2441         (WebCore::FrameLoaderClientQt::download):
2442         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2443         * WebCoreSupport/FrameLoaderClientQt.h:
2444
2445 2008-04-28  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
2446
2447         Reviewed by Simon.
2448
2449         Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame
2450
2451         * Api/qwebframe.cpp:
2452         * Api/qwebpluginfactory.cpp:
2453         * Api/qwebsettings.cpp:
2454         (QWebSettings::QWebSettings):
2455         (QWebSettings::setUserStyleSheetUrl):
2456         (QWebSettings::iconForUrl):
2457         (QWebSettings::webGraphic):
2458         (QWebSettings::maximumPagesInCache):
2459         (QWebSettings::setFontFamily):
2460         (QWebSettings::resetFontFamily):
2461         (QWebSettings::testAttribute):
2462         (QWebSettings::resetAttribute):
2463
2464 2008-04-28  Ariya Hidayat  <ahidayat@trolltech.com>
2465
2466         Reviewed by Simon.
2467
2468         Fix document/frame title not reset when loading a new URI
2469         
2470         We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle()
2471         will be called very soon with the correct title.
2472         This properly resets the title when we navigate to a URI without a title.
2473         
2474
2475         * WebCoreSupport/FrameLoaderClientQt.cpp:
2476
2477 2008-04-28  David Boddie  <dboddie@trolltech.com>
2478
2479         Reviewed by Simon.
2480
2481         Minor documentation changes.
2482
2483         * Api/qwebview.cpp:
2484
2485 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
2486
2487         Reviewed by Simon.
2488
2489         Prevent middle-click from triggering open URL from clipboard when the event has already been accepted.
2490         
2491
2492         * Api/qwebpage.cpp:
2493         (QWebPagePrivate::mouseMoveEvent):
2494         (QWebPagePrivate::mousePressEvent):
2495         (QWebPagePrivate::mouseDoubleClickEvent):
2496         (QWebPagePrivate::mouseTripleClickEvent):
2497         (QWebPagePrivate::mouseReleaseEvent):
2498
2499 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
2500
2501         Reviewed by Simon.
2502
2503         Fix scrollbar behavior in QtWebKit to match QScrollBar.
2504         
2505         Right click context menu is now supported, along with
2506         middle click to center slider thumb over mouse cursor.
2507         
2508
2509         * Api/qwebpage.cpp:
2510         (QWebPage::linkDelegationPolicy):
2511
2512 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
2513
2514         Reviewed by Simon.
2515
2516         Implemented channel-based logging for QtWebKit.
2517
2518         Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable.
2519         Warnings for notImplemented() is still output by default, but can be disabled
2520         by setting DISABLE_NI_WARNINGS=1.
2521
2522         * Api/qwebpage.cpp:
2523         (QWebPagePrivate::QWebPagePrivate):
2524
2525 2008-04-28  Simon Hausmann  <shausman@trolltech.com>
2526
2527         Rubber-stamped by Lars
2528
2529         Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API.
2530
2531         * Api/qwebframe.cpp:
2532         * Api/qwebframe.h:
2533         * Api/qwebview.cpp:
2534         * Api/qwebview.h:
2535
2536 2008-04-28  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
2537
2538         Reviewed by Simon.
2539
2540         Doc - adding more documentation to QWebFrame, QWebPage and QWebView
2541         
2542
2543         * Api/qwebframe.cpp:
2544         * Api/qwebpage.cpp:
2545         * Api/qwebview.cpp:
2546         (QWebView::stop):
2547         (QWebView::back):
2548         (QWebView::changeEvent):
2549
2550 2008-04-28  Simon Hausmann  <shausman@trolltech.com>
2551
2552         Reviewed by Holger.
2553
2554         Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens
2555         
2556         Give the popups the right parent widget and the right coordinates relative within the parent.
2557         
2558
2559         * Api/qwebpage.cpp:
2560
2561 2008-04-28  Benjamin Meyer  <bmeyer@trolltech.com>
2562
2563         Reviewed by Simon.
2564
2565         Doc: Add see also's (and a few minor whitespace/typo corrections)
2566         
2567
2568         * Api/qwebframe.cpp:
2569         (QWebFrame::~QWebFrame):
2570         (QWebFrame::setHtml):
2571         (QWebFrame::setContent):
2572         (QWebFrame::parentFrame):
2573         (QWebFrame::childFrames):
2574         (QWebFrame::setScrollBarValue):
2575         (QWebFrame::scrollBarValue):
2576         (QWebFrame::scrollBarMaximum):
2577         (QWebFrame::scrollBarMinimum):
2578         (QWebFrame::render):
2579         (QWebFrame::pos):
2580         (QWebFrame::geometry):
2581         (QWebFrame::print):
2582         (QWebFrame::evaluateJavaScript):
2583         * Api/qwebpage.cpp:
2584         (QWebPagePrivate::mousePressEvent):
2585         (QWebPagePrivate::mouseDoubleClickEvent):
2586         (QWebPage::~QWebPage):
2587         (QWebPage::javaScriptPrompt):
2588         (openNewWindow):
2589         (QWebPage::setViewportSize):
2590         (QWebPage::acceptNavigationRequest):
2591         (QWebPage::action):
2592         (QWebPage::userAgentForUrl):
2593         (QWebPagePrivate::_q_onLoadProgressChanged):
2594         * Api/qwebview.cpp:
2595         (QWebView::event):
2596
2597 2008-04-28  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
2598
2599         Reviewed by Simon.
2600
2601         Submitting more documentation for QWebPage
2602         
2603
2604         * Api/qwebpage.cpp:
2605
2606 2008-04-28  Lincoln Ramsay  <lincoln.ramsay@trolltech.com>
2607
2608         Reviewed by Simon.
2609
2610         Compile when QT_NO_CLIPBOARD is defined.
2611         
2612
2613         * Api/qwebpage.cpp:
2614         (QWebPage::triggerAction):
2615
2616 2008-04-28  David Boddie  <dboddie@trolltech.com>
2617
2618         Reviewed by Simon.
2619
2620         Minor documentation fix.
2621         
2622
2623         * Api/qwebhistory.cpp:
2624
2625 2008-04-28  Holger Hans Peter Freyther  <zecke@selfish.org>
2626
2627         Reviewed by Simon.
2628
2629         Implement QWebPage::createPlugin
2630         
2631         The code is coming from the demo browser and needed here
2632         for some manual tests.
2633         
2634
2635         * QtLauncher/QtLauncher.pro:
2636         * QtLauncher/main.cpp:
2637         (WebPage::createPlugin):
2638
2639 2008-04-28  Simon Hausmann  <hausmann@webkit.org>
2640
2641         Qt/Win build fix. Include config.h to get the implicit MathExtras.h
2642         inclusion correct with regards to rand_s.
2643
2644         * Api/qwebhistory.cpp:
2645
2646 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
2647
2648         Reviewed by Simon.
2649
2650         https://bugs.webkit.org/show_bug.cgi?id=18713
2651
2652         Fix scrollbar painting issues in QtWebKit.
2653
2654         Hovering and click-draging outside of the scrollbar would
2655         produce unexpected and inconcistent results. We also didn't
2656         pass on leave-events to the underlying WebKit code, which
2657         was nessecary to implement the paint fix.
2658
2659         Note: The event handling of the Leave event should be moved
2660         out of QWebView::event() and into a proper override for 4.5.
2661
2662         * Api/qwebpage.cpp:
2663         (QWebPagePrivate::leaveEvent):
2664         * Api/qwebpage_p.h:
2665         * Api/qwebview.cpp:
2666         (QWebView::event):
2667
2668 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
2669
2670         Reviewed by Simon, Holger.
2671
2672         Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus.
2673
2674         * Correctly de- and reactivate the focused frame in focusOut/focusInEvent
2675         without telling the focus controller. We don't want to change the focused frame
2676         - the controller has to remember it in fact - but instead just deactivate the
2677         frame for correct painting as RenderTheme::isFocused() uses the activation
2678         state of the frame.
2679
2680         * Api/qwebpage.cpp:
2681         (QWebPagePrivate::focusInEvent):
2682         (QWebPagePrivate::focusOutEvent):
2683
2684 2008-04-25  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
2685
2686         Reviewed by Simon.
2687
2688         completed documentation for the Detailed Description section for QWebView
2689         
2690
2691         * Api/qwebview.cpp:
2692
2693 2008-04-25  Denis Dzyubenko  <denis.dzyubenko@trolltech.com>
2694
2695         Reviewed by Simon.
2696
2697         Fixed the way QWebHistory works - when you call back(), forward() or goToItem() functions it changes the current item in history *and* loads the corresponding page.
2698         
2699
2700         * Api/qwebhistory.cpp:
2701         (QWebHistory::back):
2702         (QWebHistory::forward):
2703         (QWebHistory::goToItem):
2704
2705 2008-04-25  Tor Arne Vestbø  <tavestbo@trolltech.com>
2706
2707         Reviewed by Simon.
2708
2709         Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest().
2710         
2711
2712         * WebCoreSupport/FrameLoaderClientQt.cpp:
2713         (WebCore::FrameLoaderClientQt::createFrame):
2714
2715 2008-04-25  Simon Hausmann  <hausmann@webkit.org>
2716
2717         Reviewed by Holger.
2718
2719         When pressing backspace in a line edit in a webpage we should not go back to the previous page.
2720         
2721         The shortcut for back on Windows is backspace. Implemented shortcut override
2722         handling in QWebView/QWebPage to prevent this.
2723         
2724
2725         * Api/qwebpage.cpp:
2726         (QWebPagePrivate::wheelEvent):
2727         (editorActionForKeyEvent):
2728         (QWebPagePrivate::keyPressEvent):
2729         (QWebPagePrivate::inputMethodEvent):
2730         (QWebPagePrivate::shortcutOverrideEvent):
2731         (QWebPage::event):
2732         * Api/qwebpage_p.h:
2733         * Api/qwebview.cpp:
2734         (QWebView::event):
2735
2736 2008-04-25  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2737
2738         Reviewed by Simon.
2739
2740         Fix triple-clicking does not work in a web page
2741         
2742
2743         * Api/qwebpage.cpp:
2744         (QWebPagePrivate::updateEditorActions):
2745         (QWebPagePrivate::timerEvent):
2746         (QWebPagePrivate::mousePressEvent):
2747         (QWebPagePrivate::mouseDoubleClickEvent):
2748         (QWebPage::undoStack):
2749         * Api/qwebpage_p.h:
2750
2751 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
2752
2753         Reviewed by Simon.
2754
2755         When pressing Ctrl-Up the keyboard modifiers could include other modifiers
2756         
2757
2758         * Api/qwebpage.cpp:
2759         (QWebPagePrivate::keyPressEvent):
2760
2761 2008-04-25  Tor Arne Vestbø  <tavestbo@trolltech.com>
2762
2763         Reviewed by Simon.
2764
2765         Fix handling of Javascript's confirm() function in QtWebKit.
2766         
2767
2768         * Api/qwebpage.cpp:
2769
2770 2008-04-25  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
2771
2772         Reviewed by Simon.
2773
2774         Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity
2775         
2776
2777         * Api/qwebview.cpp:
2778
2779 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
2780
2781         Reviewed by Simon.
2782
2783         QWebPage: missing signal when window.print() is requested from javascript
2784         
2785
2786         * Api/qwebpage.cpp:
2787         * Api/qwebpage.h:
2788         * WebCoreSupport/ChromeClientQt.cpp:
2789
2790 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
2791
2792         Reviewed by Simon.
2793
2794         Fixes: "Save Image" action wasn't doing anything.
2795         
2796
2797         * Api/qwebpage.cpp:
2798         (QWebPage::triggerAction):
2799
2800 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
2801
2802         Reviewed by Simon.
2803
2804         Apply key event changes to the current frame, not the main frame.
2805         
2806         Example: hitting space bar should scroll current frame, not the main frame
2807         which doesn't even have a scrollbar.
2808         
2809
2810         * Api/qwebpage.cpp:
2811         (QWebPagePrivate::keyPressEvent):
2812
2813 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
2814
2815         Reviewed by Simon.
2816
2817         Fixes: QWebFrame crash when fetching the icon
2818
2819         Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock.
2820
2821         * Api/qwebframe.cpp:
2822
2823 2008-04-25  Warwick Allison  <warwick@trolltech.com>
2824
2825         Reviewed by Simon.
2826
2827         Fixes: Scrollbars did not report correct maximum.
2828
2829         * Api/qwebframe.cpp:
2830
2831 2008-04-25  David Boddie <dboddie@trolltech.com>
2832
2833         Reviewed by Simon.
2834
2835         Documentation updates for some of the QWeb classes
2836
2837         * Api/qwebframe.cpp:
2838         * Api/qwebhistory.cpp:
2839         * Api/qwebsettings.cpp:
2840         * Api/qwebview.cpp:
2841
2842 2008-04-25  Holger Hans Peter Freyther  <zecke@selfish.org>
2843
2844         Reviewed by Simon.
2845
2846         Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html
2847         
2848         Similar to Editing and Frameloading we do the dumping within WebCore
2849         
2850
2851         * WebCoreSupport/FrameLoaderClientQt.cpp:
2852         (qt_dump_frame_loader):
2853         (qt_dump_resource_load_callbacks):
2854         (drtDescriptionSuitableForTestResult):
2855         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2856         (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
2857         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2858
2859 2008-04-24  Anders Carlsson  <andersca@apple.com>
2860
2861         Reviewed by Sam.
2862
2863         Change some String arguments to be const references instead.
2864
2865         * WebCoreSupport/EditorClientQt.cpp:
2866         (WebCore::EditorClientQt::shouldInsertText):
2867         * WebCoreSupport/EditorClientQt.h:
2868
2869 2008-04-24  Holger Hans Peter Freyther  <zecke@selfish.org>
2870
2871         Reviewed by Simon.
2872
2873         Cosmetic changes to make the code more readable.
2874         -Early exit if we don't have a webview
2875         -handle the empty tooltip and non-empty tooltip case separately
2876         
2877
2878         * WebCoreSupport/ChromeClientQt.cpp:
2879         (WebCore::ChromeClientQt::setToolTip):
2880         (WebCore::ChromeClientQt::print):
2881
2882 2008-04-24  Paul Olav Tvete  <paul@trolltech.com>
2883
2884         Reviewed by Simon.
2885
2886         Automatically wrap tooltip text and hide a shown tooltip when it is empty.
2887
2888         QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds.
2889         Workaround as discussed with Matthias.
2890
2891         * WebCoreSupport/ChromeClientQt.cpp:
2892         (WebCore::ChromeClientQt::setToolTip):
2893
2894 2008-04-24  Holger Hans Peter Freyther  <zecke@selfish.org>
2895
2896         Reviewed by Simon.
2897
2898         Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0)
2899
2900         * Api/qwebsettings.cpp:
2901         (QWebSettings::setObjectCacheCapacities):
2902
2903 2008-04-24  Benjamin Meyer  <bmeyer@trolltech.com>
2904
2905         Reviewed by Simon.
2906
2907         Improve keyboard scrolling
2908         
2909         Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom.
2910         
2911
2912         * Api/qwebpage.cpp:
2913         (QWebPagePrivate::keyPressEvent):
2914
2915 2008-04-24  Olivier Goffart  <ogoffart@trolltech.com>
2916
2917         Reviewed by Simon.
2918
2919         Fix various compiler warnings in the Qt port.
2920
2921         * Api/qwebframe.cpp:
2922         (QWebFrame::print):
2923         * Api/qwebsettings.cpp:
2924         (graphics):
2925         * WebCoreSupport/FrameLoaderClientQt.cpp:
2926         (WebCore::FrameLoaderClientQt::createPlugin):
2927
2928 2008-04-24  Tor Arne Vestbø  <tavestbo@trolltech.com>
2929
2930         Reviewed by Simon.
2931
2932         Cleaned up copyright headers (removed misplaced class descriptions and
2933         fixed inconsistent whitespace and indentation).
2934
2935         * Api/qwebframe.cpp:
2936         * Api/qwebframe.h:
2937         * Api/qwebframe_p.h:
2938         * Api/qwebhistory.cpp:
2939         * Api/qwebhistory.h:
2940         * Api/qwebhistory_p.h:
2941         * Api/qwebhistoryinterface.cpp:
2942         * Api/qwebhistoryinterface.h:
2943         * Api/qwebkitglobal.h:
2944         * Api/qwebnetworkinterface.cpp:
2945         * Api/qwebnetworkinterface.h:
2946         * Api/qwebnetworkinterface_p.h:
2947         * Api/qwebpage.cpp:
2948         * Api/qwebpage.h:
2949         * Api/qwebpage_p.h:
2950         * Api/qwebpluginfactory.cpp:
2951         * Api/qwebpluginfactory.h:
2952         * Api/qwebsettings.cpp:
2953         * Api/qwebsettings.h:
2954         * Api/qwebview.h:
2955         * QtLauncher/main.cpp:
2956
2957 2008-04-24  Tor Arne Vestbø  <tavestbo@trolltech.com>
2958
2959         Reviewed by Simon.
2960
2961         Added basic URL guessing to QtLauncher (same as in the demo browser).
2962         
2963
2964         * QtLauncher/main.cpp:
2965         (MainWindow::changeLocation):
2966         (MainWindow::guessUrlFromString):
2967
2968 2008-04-24  Benjamin Meyer  <bmeyer@trolltech.com>
2969
2970         Reviewed by Simon Hausmann <hausmann@webkit.org>.
2971
2972         Prevent double deletions of the default web interface.
2973         
2974
2975         * Api/qwebhistoryinterface.cpp:
2976         (gCleanupInterface):
2977         (QWebHistoryInterface::QWebHistoryInterface):
2978
2979 2008-04-23  Simon Hausmann  <hausmann@webkit.org>
2980
2981         Fix compilation against Qt 4.3
2982
2983         * Api/qwebpage.cpp:
2984         (QWebPage::userAgentForUrl):
2985         * QtLauncher/main.cpp:
2986         (main):
2987
2988 2008-04-23  Holger Hans Peter Freyther  <zecke@selfish.org>
2989
2990         Reviewed by Simon.
2991
2992         * Make sure the "Inspect Element" item gets added to the ContextMenu, a call
2993         to ContextMenu::populate() is not adding it, the ContextMenuController does
2994         add it after the call to populate(). Do that as well.
2995         
2996
2997         * Api/qwebpage.cpp:
2998         (QWebPage::updatePositionDependentActions):
2999
3000 2008-04-23  Simon Hausmann  <hausmann@webkit.org>
3001
3002         Reviewed by Holger.
3003
3004         Fix crashes on window.close().
3005
3006         We should not delete the QWebPage object in the ChromeClient but leave it up to
3007         the application when and whether to delete a browser window. For this we now
3008         emit the windowCloseRequested() signal.
3009
3010         Done with Tor Arne.
3011
3012         * Api/qwebpage.cpp:
3013         * Api/qwebpage.h:
3014         * QtLauncher/main.cpp:
3015         (MainWindow::MainWindow):
3016         * WebCoreSupport/ChromeClientQt.cpp:
3017
3018 2008-04-23  Simon Hausmann  <hausmann@webkit.org>
3019
3020         Reviewed by Holger.
3021
3022         Fix parsing of external scripts/stylesheets when using setHtml(const QString &html).
3023
3024         We used to pass the html string to the frameloader in utf-16, which also meant that the default
3025         encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8
3026         by default. This is now also documented.
3027
3028         * Api/qwebframe.cpp:
3029         (QWebFrame::setHtml):
3030         * Api/qwebview.cpp:
3031
3032 2008-04-23  Benjamin Meyer  <bmeyer@trolltech.com>
3033
3034         Reviewed by Simon.
3035
3036         Fixes background color propagation when using a custom QWebPage
3037         
3038         Set the palette in setPage(), not during the creation on-demand.
3039         
3040
3041         * Api/qwebview.cpp:
3042         (QWebView::page):
3043         (QWebView::setPage):
3044
3045 2008-04-23  Benjamin Meyer  <bmeyer@trolltech.com>
3046
3047         Reviewed by Simon.
3048
3049         Fix the user agent on the mac to be BSD4
3050         
3051         Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac
3052         
3053
3054         * Api/qwebpage.cpp:
3055         (QWebPage::userAgentForUrl):
3056
3057 2008-04-23  Simon Hausmann  <shausman@trolltech.com>
3058
3059         Reviewed by Holger.
3060
3061         Added missing copyright notice.
3062         Small fixes to the documentation.
3063
3064         * Api/qwebpluginfactory.cpp:
3065
3066 2008-04-23  Zack Rusin  <zack@tungstengraphics.com>
3067
3068         Reviewed by Simon.
3069
3070         Added a contentsSize() property.
3071
3072         * Api/qwebframe.cpp:
3073         (QWebFrame::contentsSize):
3074         (QWebFrame::hitTestContent):
3075         * Api/qwebframe.h:
3076
3077 2008-04-22  Benjamin Meyer  <bmeyer@trolltech.com>
3078
3079         Reviewed by Simon.
3080
3081         Fixes: QWebPage's QNetworkManager's can be shared among webpages.
3082
3083         Don't force the deletion of the object, but let QObject take care of it.
3084
3085         * Api/qwebpage.cpp:
3086
3087 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
3088
3089         Reviewed by Holger.
3090
3091         Documentation for QWebPluginFactory and documentation updates for QWebPage.
3092
3093         * Api/qwebpage.cpp:
3094         (QWebPage::setLinkDelegationPolicy):
3095         (QWebPage::linkDelegationPolicy):
3096         (QWebPage::swallowContextMenuEvent):
3097         (QWebPage::updatePositionDependentActions):
3098         (QWebPage::extension):
3099         (QWebPage::networkAccessManager):
3100         * Api/qwebpluginfactory.cpp:
3101         (QWebPluginFactory::QWebPluginFactory):
3102         (QWebPluginFactory::~QWebPluginFactory):
3103         (QWebPluginFactory::refreshPlugins):
3104
3105 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
3106
3107         Reviewed by Holger.
3108
3109         Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions.
3110         
3111
3112         * Api/qwebpage.cpp:
3113         (QWebPagePrivate::QWebPagePrivate):
3114         (QWebPagePrivate::mouseReleaseEvent):
3115         (QWebPage::setLinkDelegationPolicy):
3116         (QWebPage::linkDelegationPolicy):
3117         (QWebPage::swallowContextMenuEvent):
3118         (QWebPage::updatePositionDependentActions):
3119         * Api/qwebpage.h:
3120         * Api/qwebpage_p.h:
3121         * Api/qwebview.cpp:
3122         (QWebView::event):
3123
3124 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
3125
3126         Reviewed by Holger.
3127
3128         Added Extension APIs for QWebPage.
3129
3130         * Api/qwebpage.cpp:
3131         (QWebPage::setLinkDelegationPolicy):
3132         (QWebPage::linkDelegationPolicy):
3133         (QWebPage::extension):
3134         * Api/qwebpage.h:
3135         * Api/qwebpluginfactory.cpp:
3136         (QWebPluginFactory::extension):
3137
3138 2008-04-22  Tor Arne Vestbø  <tavestbo@trolltech.com>
3139
3140         Reviewed by Simon.
3141
3142         Emit loadProgress() signal on loadStarted().
3143         
3144
3145         * WebCoreSupport/FrameLoaderClientQt.cpp:
3146         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
3147
3148 2008-04-22  Zack Rusin  <zack@kde.org>
3149
3150         Reviewed by Simon.
3151
3152         Fix background propagation from the QWebView's palette.
3153
3154         The background brush of the palette needs to be propagated to the WebCore::FrameView.
3155
3156         * Api/qwebframe.cpp:
3157         (QWebFramePrivate::updateBackground):
3158         * Api/qwebframe_p.h:
3159         * Api/qwebpage.cpp:
3160         (QWebPagePrivate::dropEvent):
3161         (QWebPage::setPalette):
3162         * Api/qwebpage.h:
3163         * Api/qwebpage_p.h:
3164         * Api/qwebview.cpp:
3165         (QWebView::page):
3166         (QWebView::changeEvent):
3167         * Api/qwebview.h:
3168         * WebCoreSupport/FrameLoaderClientQt.cpp:
3169
3170 2008-04-22  Benjamin Meyer  <bmeyer@trolltech.com>
3171
3172         Reviewed by Simon.
3173
3174         Fix maps.google.com
3175
3176         We have to include a version in the Safari tag in the user-agent.
3177
3178         * Api/qwebpage.cpp:
3179         (QWebPage::userAgentForUrl):
3180
3181 2008-04-22  Tor Arne Vestbø  <tavestbo@trolltech.com>
3182
3183         Reviewed by Simon.
3184
3185         Add visual focusing hint for clear button and
3186         change focus to web page after user enters new URL.
3187
3188         * QtLauncher/main.cpp:
3189         (ClearButton::paintEvent):
3190         (MainWindow::changeLocation):
3191
3192 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
3193
3194         Reviewed by Holger.
3195
3196         Added QWebFrame::hitTestContent() and QWebHitTestResult.
3197
3198         * Api/qwebframe.cpp:
3199         (QWebFrame::hitTestContent):
3200         (QWebFrame::event):
3201         (QWebHitTestResult::QWebHitTestResult):
3202         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
3203         (QWebHitTestResult::operator=):
3204         (QWebHitTestResult::~QWebHitTestResult):
3205         (QWebHitTestResult::isNull):
3206         (QWebHitTestResult::pos):
3207         (QWebHitTestResult::title):
3208         (QWebHitTestResult::linkText):
3209         (QWebHitTestResult::linkUrl):
3210         (QWebHitTestResult::linkTitle):
3211         (QWebHitTestResult::linkTargetFrame):
3212         (QWebHitTestResult::alternateText):
3213         (QWebHitTestResult::imageUrl):
3214         (QWebHitTestResult::pixmap):
3215         (QWebHitTestResult::isContentEditable):
3216         (QWebHitTestResult::isContentSelected):
3217         (QWebHitTestResult::frame):
3218         * Api/qwebframe.h:
3219         * Api/qwebframe_p.h:
3220         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
3221         * Api/qwebpage.cpp:
3222         (QWebPagePrivate::contextMenuEvent):
3223         (QWebPage::triggerAction):
3224         * Api/qwebpage.h:
3225         * Api/qwebpage_p.h:
3226
3227 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
3228
3229         Reviewed by Holger.
3230
3231         Don't crash if an input method query is done without a page.
3232         
3233
3234         * Api/qwebview.cpp:
3235         (QWebView::inputMethodQuery):
3236
3237 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
3238
3239         Reviewed by Holger.
3240
3241         Added re-implementations of QObject::event for future safety.
3242         
3243         This makes it easier to fix bugs with the event handling even in patch releases
3244         and is a general style we follow in Qt.
3245         
3246
3247         * Api/qwebframe.cpp:
3248         * Api/qwebframe.h:
3249         * Api/qwebview.cpp:
3250         (QWebView::event):
3251         * Api/qwebview.h:
3252
3253 2008-04-22  Benjamin Meyer  <bmeyer@trolltech.com>
3254
3255         Reviewed by Simon.
3256
3257         Fix construction of the user agent.
3258         
3259         The user-agent is now composed of
3260         * the platform and subplatform
3261         * the Qt version or application name and version (if set)
3262         * the locale
3263         * the SSL settings
3264         
3265
3266         * Api/qwebpage.cpp:
3267         (QWebPage::networkAccessManager):
3268         (QWebPage::setPluginFactory):
3269         (QWebPage::pluginFactory):
3270         (QWebPage::userAgentForUrl):
3271         * QtLauncher/main.cpp:
3272
3273 2008-04-22  Thiago Macieira  <tjmaciei@trolltech.com>
3274
3275         Reviewed by Simon.
3276
3277         Fixes: Pedantic compilation fix
3278
3279         Don't put semi-colons after braces closing namespaces.
3280
3281         * Api/qwebsettings.h:
3282
3283 2008-04-21  Simon Hausmann  <hausmann@webkit.org>
3284
3285         Reviewed by Lars.
3286
3287         Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant.
3288
3289         * Api/qwebframe.cpp:
3290         (QWebFrame::evaluateJavaScript):
3291         * Api/qwebframe.h:
3292
3293 2008-04-21  Simon Hausmann  <hausmann@webkit.org>
3294
3295         Reviewed by Holger.
3296
3297         Fixes redundant "Fonts" submenu in default lineedits that has only disabled items.
3298
3299         Don't show sub-menus that have only actions that are disabled.
3300
3301         * Api/qwebpage.cpp:
3302         (QWebPagePrivate::createContextMenu):
3303
3304 2008-04-21  Kavindra Devi Palaraja <kdpalara@trolltech.com>.
3305
3306         Reviewed by Simon.
3307
3308         Lots of documentation fixes, fixed all qdoc warnings.
3309
3310         * Api/qwebframe.cpp:
3311         (QWebFrame::setTextSizeMultiplier):
3312         * Api/qwebhistoryinterface.cpp:
3313         (gCleanupInterface):
3314         (QWebHistoryInterface::QWebHistoryInterface):
3315         (QWebHistoryInterface::~QWebHistoryInterface):
3316         * Api/qwebpage.cpp:
3317         (QWebPage::inputMethodQuery):
3318         (QWebPage::view):
3319         (QWebPage::javaScriptConsoleMessage):
3320         (QWebPage::javaScriptAlert):
3321         (QWebPage::javaScriptConfirm):
3322         (QWebPage::javaScriptPrompt):
3323         (QWebPage::viewportSize):
3324         (QWebPage::acceptNavigationRequest):
3325         (QWebPage::action):
3326         (QWebPage::event):
3327         (QWebPage::focusNextPrevChild):
3328         (QWebPage::setForwardUnsupportedContent):
3329         (QWebPage::setLinkDelegationPolicy):
3330         (QWebPage::findText):
3331         (QWebPage::settings):
3332         (QWebPage::networkProxy):
3333         (QWebPage::setNetworkAccessManager):
3334         * Api/qwebpage.h:
3335         * Api/qwebsettings.cpp:
3336         (QWebSettings::QWebSettings):
3337         (QWebSettings::setIconDatabasePath):
3338         (QWebSettings::iconForUrl):
3339         (QWebSettings::fontFamily):
3340         * Api/qwebview.cpp:
3341         (QWebView::load):
3342         * Api/qwebview.h:
3343
3344 2008-04-21  Marius Bugge Monsen  <mmonsen@trolltech.com>
3345
3346         Reviewed by Simon.
3347
3348         Fix compile failure on solaris-cc
3349
3350         * Api/qwebpage.h: Removed trailing semicolons and moved the private
3351         d-pointer to not confuse the compiler
3352
3353 2008-04-21  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3354
3355         Reviewed by Simon.
3356
3357         Build fix for Qt 4.3
3358
3359         * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is
3360         always defined. Do this by adding defines to the compiler line
3361         * For users of our API this is not feasible. Every public header file should
3362         include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE
3363         when we are building everything < 4.4.0 and don't have them defined.
3364
3365         * Api/qwebkitglobal.h:
3366
3367 2008-04-21  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3368
3369         Reviewed by Simon.
3370
3371         * Initialize the WebGraphics with the one found in WebCore
3372         
3373
3374         * Api/qwebsettings.cpp:
3375         (QWebSettingsPrivate::apply):
3376
3377 2008-04-21  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3378
3379         Reviewed by Simon.
3380
3381         * Allow TextAreas to be resized.
3382         * No QWebSettings for this is introduced.
3383         
3384
3385         * Api/qwebsettings.cpp:
3386         (QWebSettingsPrivate::apply):
3387
3388 2008-04-21  Simon Hausmann  <shausman@trolltech.com>
3389
3390         Reviewed by Holger.
3391
3392         Fixes: QWebView::url property behaviour strange in designer
3393
3394         Added QWebView/QWebFrame::setUrl, which unlike load() clears the view immediately, schedules a load of the url but also makes sure url() returns the set url. This setter is now also used for the url property.
3395
3396         * Api/qwebframe.cpp:
3397         (QWebFrame::setUrl):
3398         * Api/qwebframe.h:
3399         * Api/qwebview.cpp:
3400         (QWebView::setUrl):
3401         * Api/qwebview.h:
3402
3403 2008-04-21  Andre Poenitz  <andre.poenitz@trolltech.com>
3404
3405         Reviewed by Simon Hausmann <hausmann@webkit.org>.
3406
3407         Fix compilation with Qt namespaces
3408
3409         * Api/qwebframe.cpp:
3410         (QWebFrame::print):
3411         * Api/qwebview.h:
3412
3413 2008-04-21  Simon Hausmann  <hausmann@webkit.org>
3414
3415         Reviewed by Holger.
3416
3417         When printing on high resolution printers we need to scale the painter accordingly (for now).
3418
3419         * Api/qwebframe.cpp:
3420         (QWebFrame::print):
3421
3422 2008-04-21  Simon Hausmann  <hausmann@webkit.org>
3423
3424         Reviewed by Holger.
3425
3426         Provide a print preview in the QtLauncher
3427
3428         * QtLauncher/main.cpp:
3429         (MainWindow::MainWindow):
3430         (MainWindow::showLinkHover):
3431         (MainWindow::print):
3432
3433 2008-04-20  Simon Hausmann  <hausmann@webkit.org>
3434
3435         Reviewed by Alp Toker.
3436
3437         Share the printing code between the Gtk and the Qt port
3438         and added printing to the Qt WebKit API.
3439
3440         * Api/qwebframe.cpp:
3441         (QWebFrame::print):
3442         * Api/qwebframe.h:
3443         * Api/qwebview.cpp:
3444         (QWebView::print):
3445         * Api/qwebview.h:
3446
3447 2008-04-19  Julien Chaffraix  <jchaffraix@webkit.org>
3448
3449         Qt build fix (renderer() -> contentRenderer()).
3450
3451         * Api/qwebframe.cpp:
3452         (QWebFrame::renderTreeDump):
3453         (QWebFrame::render):
3454
3455 2008-04-18  Simon Hausmann  <hausmann@webkit.org>
3456
3457         Reviewed by Holger.
3458
3459         Many API changes and additions after a full review with Jasmin Blanchette <jasmin@trolltech.com>
3460
3461         The diff is too big to mention the changes individually, but most of the changes were of cosmetic
3462         nature where methods or enums have been renamed or prefixed/suffixed according to the consistency
3463         rules of the Qt API.
3464
3465         * Api/qwebframe.cpp:
3466         (QWebFrame::addToJavaScriptWindowObject):
3467         (QWebFrame::toHtml):
3468         (QWebFrame::toPlainText):
3469         (QWebFrame::icon):
3470         (QWebFrame::setContent):
3471         (QWebFrame::setScrollBarPolicy):
3472         (QWebFrame::render):
3473         (QWebFrame::setTextSizeMultiplier):
3474         (QWebFrame::textSizeMultiplier):
3475         (QWebFrame::pos):
3476         * Api/qwebframe.h:
3477         * Api/qwebhistory.cpp:
3478         * Api/qwebhistory.h:
3479         * Api/qwebpage.cpp:
3480         (QWebPagePrivate::QWebPagePrivate):
3481         (QWebPagePrivate::~QWebPagePrivate):
3482         (QWebPagePrivate::acceptNavigationRequest):
3483         (webActionForContextMenuAction):
3484         (QWebPagePrivate::updateAction):
3485         (QWebPagePrivate::keyPressEvent):
3486         (QWebPage::view):
3487         (QWebPage::javaScriptPrompt):
3488         (QWebPage::createWindow):
3489         (QWebPage::triggerAction):
3490         (QWebPage::setViewportSize):
3491         (QWebPage::acceptNavigationRequest):
3492         (QWebPage::action):
3493         (QWebPage::focusNextPrevChild):
3494         (QWebPage::setForwardUnsupportedContent):
3495         (QWebPage::forwardUnsupportedContent):
3496         (QWebPage::setLinkDelegationPolicy):
3497         (QWebPage::findText):
3498         (QWebPage::networkAccessManager):
3499         (QWebPageContext::imageUrl):
3500         (QWebPageContext::image):
3501         * Api/qwebpage.h:
3502         * Api/qwebpage_p.h:
3503         * Api/qwebsettings.cpp:
3504         (QWebSettingsPrivate::apply):
3505         (QWebSettings::QWebSettings):
3506         (QWebSettings::setIconDatabasePath):
3507         (QWebSettings::iconDatabasePath):
3508         (QWebSettings::clearIconDatabase):
3509         (QWebSettings::iconForUrl):
3510         (QWebSettings::setWebGraphic):
3511         (QWebSettings::fontFamily):
3512         (QWebSettings::setAttribute):
3513         (QWebSettings::testAttribute):
3514         (QWebSettings::resetAttribute):
3515         * Api/qwebsettings.h:
3516         * Api/qwebview.cpp:
3517         (QWebView::setPage):
3518         (QWebView::icon):
3519         (QWebView::setTextSizeMultiplier):
3520         (QWebView::textSizeMultiplier):
3521         (QWebView::findText):
3522         (QWebView::reload):
3523         (QWebView::mouseMoveEvent):
3524         * Api/qwebview.h:
3525         * QtLauncher/main.cpp:
3526         (MainWindow::MainWindow):
3527         (main):
3528         * WebCoreSupport/ChromeClientQt.cpp:
3529         (WebCore::ChromeClientQt::ChromeClientQt):
3530         (WebCore::ChromeClientQt::setWindowRect):
3531         (WebCore::ChromeClientQt::toolbarsVisible):
3532         (WebCore::ChromeClientQt::setStatusbarVisible):
3533         (WebCore::ChromeClientQt::statusbarVisible):
3534         (WebCore::ChromeClientQt::setScrollbarsVisible):
3535         (WebCore::ChromeClientQt::setResizable):
3536         (WebCore::ChromeClientQt::scrollBackingStore):
3537         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3538         (WebCore::ChromeClientQt::setToolTip):
3539         * WebCoreSupport/ChromeClientQt.h:
3540         * WebCoreSupport/FrameLoaderClientQt.cpp:
3541         (WebCore::FrameLoaderClientQt::setFrame):
3542         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
3543         (WebCore::FrameLoaderClientQt::setMainDocumentError):
3544         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
3545         (WebCore::FrameLoaderClientQt::createFrame):
3546         (WebCore::FrameLoaderClientQt::objectContentType):
3547         * WebCoreSupport/FrameLoaderClientQt.h:
3548         * WebCoreSupport/InspectorClientQt.cpp:
3549
3550 2008-04-18  Simon Hausmann  <hausmann@webkit.org>
3551
3552         Reviewed by Holger.
3553
3554         Added QWebView::find/QWebFrame::find.
3555
3556         * Api/qwebpage.cpp:
3557         (QWebPage::focusNextPrevChild):
3558         (QWebPage::find):
3559         * Api/qwebpage.h:
3560         * Api/qwebview.cpp:
3561         (QWebView::find):
3562         * Api/qwebview.h:
3563
3564 2008-04-15  Ariya Hidayat  <ariya.hidayat@trolltech.com>
3565
3566         Reviewed by Simon.
3567
3568         fix potential crash when loading image(s)
3569
3570         Crash may occur. If compiled with 4.3, the variable is not initialized.
3571         This fix solves https://bugs.webkit.org/show_bug.cgi?id=17174
3572
3573         * Api/qwebpage.cpp:
3574         (QWebPagePrivate::QWebPagePrivate):
3575
3576 2008-04-15  Simon Hausmann  <hausmann@webkit.org>
3577
3578         Reviewed by Holger.
3579
3580         Update the micro focus for input methods as soon as the composition mode changes
3581         or the caret/selection changes.
3582         
3583
3584         * Api/qwebpage.cpp:
3585         * Api/qwebpage.h:
3586         * Api/qwebview.cpp:
3587         (QWebView::setPage):
3588         * WebCoreSupport/EditorClientQt.cpp:
3589         (WebCore::EditorClientQt::respondToChangedSelection):
3590         (WebCore::EditorClientQt::setInputMethodState):
3591
3592 2008-04-15  Simon Hausmann  <hausmann@webkit.org>
3593
3594         Reviewed by Holger.
3595
3596         Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application,
3597         it yields undefined behaviour or wrong default codec initialization.
3598         
3599
3600         * QtLauncher/main.cpp:
3601         (WebPage::createWindow):
3602
3603 2008-04-15  Olivier Goffart  <ogoffart@trolltech.com>
3604
3605         Reviewed by Simon.
3606
3607         Fixes: copy to clipboard when selecting, and paste when clicking with the middle button
3608
3609         * Api/qwebpage.cpp:
3610         (QWebPagePrivate::mouseReleaseEvent): If the clipboard supports
3611         selections then we support copy & paste into the selection.
3612
3613 2008-04-15  Michael Brasser  <michael.brasser@trolltech.com>
3614
3615         Reviewed by Simon.
3616
3617         Add basic input method support.
3618         
3619
3620         * Api/qwebpage.cpp:
3621         (QWebPagePrivate::dropEvent):
3622         (QWebPagePrivate::inputMethodEvent):
3623         (QWebPage::inputMethodQuery):
3624         (QWebPage::event):
3625         * Api/qwebpage.h:
3626         * Api/qwebpage_p.h:
3627         * Api/qwebview.cpp:
3628         (QWebView::QWebView):
3629         (QWebView::inputMethodQuery):
3630         (QWebView::inputMethodEvent):
3631         * Api/qwebview.h:
3632         * WebCoreSupport/EditorClientQt.cpp:
3633         (WebCore::EditorClientQt::setInputMethodState):
3634
3635 2008-04-15  Simon Hausmann  <hausmann@webkit.org>
3636
3637         Reviewed by Holger.
3638
3639         Added (QWebFrame|QWebView)::textZoomFactor.
3640         
3641
3642         * Api/qwebframe.cpp:
3643         (QWebFrame::setTextZoomFactor):
3644         (QWebFrame::textZoomFactor):
3645         * Api/qwebframe.h:
3646         * Api/qwebview.cpp:
3647         (QWebView::setTextZoomFactor):
3648         (QWebView::textZoomFactor):
3649         * Api/qwebview.h:
3650
3651 2008-04-15  Michael Brasser  <michael.brasser@trolltech.com>
3652
3653         Reviewed by Simon.
3654
3655         Added simple scrolling API to QWebFrame.
3656         
3657         The intent is that it works similar to QAbstractScrollArea.
3658         
3659
3660         * Api/qwebframe.cpp:
3661         (QWebFrame::setScrollBarValue):
3662         (QWebFrame::scrollBarValue):
3663         (QWebFrame::scrollBarMaximum):
3664         (QWebFrame::scrollBarMinimum):
3665         * Api/qwebframe.h:
3666
3667 2008-04-15  Olivier Goffart  <ogoffart@trolltech.com>
3668
3669         Reviewed by Holger.
3670
3671         Fixes: implement the OpenFrameInNewWindow action.
3672         
3673
3674         * Api/qwebpage.cpp:
3675         (QWebPage::triggerAction):
3676
3677 2008-04-15  Andre Poenitz  <andre.poenitz@trolltech.com>
3678
3679         Reviewed by Simon.
3680
3681         Fix compilation with Qt namespaces
3682
3683         Qt can be configured to have all of its classes inside a specified namespaces.
3684         This is for example used in plugin/component environments like Eclipse.
3685
3686         This change makes it possible to let the Qt port compile against a namespaced
3687         Qt by the use of macros Qt provides to properly forward declare Qt classes in
3688         the namespace.
3689
3690         * Api/qwebframe.h:
3691         * Api/qwebpage.h:
3692         * Api/qwebpage_p.h:
3693         * Api/qwebpluginfactory.h:
3694         * Api/qwebsettings.h:
3695         * Api/qwebview.h:
3696
3697 2008-04-05  Olivier Goffart  <ogoffart@trolltech.com>
3698
3699         Reviewed by Holger.
3700
3701         Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard.
3702         
3703
3704         * Api/qwebpage.cpp:
3705         (QWebPage::triggerAction):
3706
3707 2008-04-05  Olivier Goffart  <ogoffart@trolltech.com>
3708
3709         Reviewed by Simon.
3710
3711         Fixes: Right click, and "Open image" open the link instead of the image.
3712         
3713
3714         * Api/qwebpage.cpp:
3715
3716 2008-04-05  Benjamin Meyer  <bmeyer@trolltech.com>
3717
3718         Reviewed by Simon.
3719
3720         Added doc stub for QWebSettings so class docs are generated
3721         
3722
3723         * Api/qwebsettings.cpp:
3724         (QWebSettings::QWebSettings):
3725
3726 2008-04-05  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3727
3728         Reviewed by Simon.
3729
3730         * Propose the addition of updateRequest and scrollRequest to the QWebPage.
3731         
3732         * The question is if these signals belong to QWebPage or  QWebFrame.
3733         -It is more easy to have them in QWebPage because ScrollView is invoking
3734         the ChromeClient with the right coordinates
3735         -On the other hand someone wants to render frames separately. But this is partly
3736         doomed as you can have overlapping frames and what you paint would not relate to
3737         what you normally see on webpages.
3738         
3739
3740         * Api/qwebpage.cpp:
3741         * Api/qwebpage.h:
3742         * WebCoreSupport/ChromeClientQt.cpp:
3743         (WebCore::ChromeClientQt::scrollBackingStore):
3744         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3745
3746 2008-04-03  Simon Hausmann  <hausmann@webkit.org>
3747
3748         Reviewed by Mark Rowe.
3749
3750         Roll out r31599 and r31605 again after discussion with Mark Rowe.
3751
3752         * Api/qwebframe.cpp:
3753         (QWebFrame::icon):
3754         * Api/qwebsettings.cpp:
3755         (QWebSettings::iconForUrl):
3756
3757 2008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3758
3759         Reviewed by Simon.
3760
3761         * Change IconDatabase::iconForPageURL to return more information. E.g. if
3762         an image has been found, or if the loading of an image has been scheduled.
3763         * Update FrameLoader to use another method to trigger reading from disk
3764         * Update the QWebFrame and QWebSettings
3765
3766         * Api/qwebframe.cpp:
3767         (QWebFrame::icon):
3768         * Api/qwebsettings.cpp:
3769         (QWebSettings::iconForUrl):
3770
3771 2008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3772
3773         Reviewed by Simon.
3774
3775         * Safari is using the IconDatabase the following way (assumption). Before they
3776         call iconDatabase()->open they "retain" all URLs they are interested in, these
3777         could come from the history.
3778         * When opening the iconDatabase() a thread will be started that is going to import
3779         the URLs, all none manually retained URLs are scheduled for removal. The removal
3780         is going to happen when the next icon gets stored in the database.
3781         * We do not have any IconDatabase code, we can not retain the URLs before opening the
3782         database. To disable the automatic pruning of the icons we will ask the IconDatabase
3783         to delay this operation. This means our IconDatabase, when used, will grow, so we should
3784         try to have a IconDatabase class in 4.4.
3785         * The only way to counter the growth is a call to QWebSettings::clearIconDatabase
3786         
3787
3788         * Api/qwebsettings.cpp:
3789         (QWebSettings::clearIconDatabase):
3790         * Api/qwebsettings.h:
3791
3792 2008-04-03  Benjamin Meyer  <bmeyer@trolltech.com>
3793
3794         Reviewed by Simon.
3795
3796         Add a way to get the site icon for a url
3797         static QPixmap iconForUrl(const QUrl &url);
3798         
3799
3800         * Api/qwebsettings.cpp:
3801         (QWebSettings::iconForUrl):
3802         * Api/qwebsettings.h:
3803
3804 2008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3805
3806         Reviewed by Simon.
3807
3808         * Update the Copyright info in QWebSettings
3809         
3810
3811         * Api/qwebsettings.cpp:
3812         * Api/qwebsettings.h:
3813
3814 2008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3815
3816         Reviewed by Simon.
3817
3818         * The isEmpty check is not needed anymore with the earlier backport
3819         
3820
3821         * Api/qwebframe.cpp:
3822         (QWebFrame::icon):
3823
3824 2008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3825
3826         Reviewed by Simon.
3827
3828         * For the http tests we need the output of the FrameLoaderClient. The QtWebKit API
3829         is not exporting enough to create the output in DRT itself. Settle with the approach
3830         Lars has taken for the Editing support and add branches to our FrameLoaderClient code.
3831         * run-webkit-tests http/tests(/loading) can now be executed.
3832         * For tests in loading/ directories we are going to throw away the dirty
3833         QWebPage to start with something clean.
3834         
3835
3836         * WebCoreSupport/FrameLoaderClientQt.cpp:
3837         (qt_dump_frame_loader):
3838         (drtDescriptionSuitableForTestResult):
3839         (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
3840         (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
3841         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
3842         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
3843         (WebCore::FrameLoaderClientQt::dispatchWillClose):
3844         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
3845         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
3846         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
3847         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
3848         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3849         (WebCore::FrameLoaderClientQt::registerForIconNotification):
3850         (WebCore::FrameLoaderClientQt::setMainDocumentError):
3851         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3852
3853 2008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3854
3855         Reviewed by Simon.
3856
3857         * Export the PageCache and Cache capacity call one to one. This is only there
3858         to allow the QtLauncher to play with caching.
3859         * TODO: make API decisions and consider following the windows Api to set a WebCacheModel
3860         and determine certain values automatically.
3861         
3862
3863         * Api/qwebsettings.cpp:
3864         (QWebSettings::setPageCacheCapacity):
3865         (QWebSettings::setObjectCacheCapacities):
3866         * Api/qwebsettings.h:
3867         * QtLauncher/main.cpp:
3868
3869 2008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3870
3871         Reviewed by Simon.
3872
3873         Prepapre everything for enabling the PageCache for the Qt Platform:
3874         * Claim that we can cache pages
3875         * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using
3876         the initial size of the viewport and stop creating it in the QWebFramePrivate::init
3877         
3878         Differences to the Windows port:
3879         * attachToWindow/detachFromWindow is not called and is not (yet) part
3880         of Widget/ScrollView of the Qt platform. We might need that for plugin
3881         support in the future.
3882         * We store the margin's and scrolling flag inside QWebFrame and use it when
3883         creating the FrameView.
3884         
3885         What is missing:
3886         * API to call pageCache()->setCapacity(XYZ);
3887         
3888
3889         * Api/qwebframe.cpp:
3890         (QWebFramePrivate::init):
3891         * Api/qwebframe_p.h:
3892         (QWebFramePrivate::QWebFramePrivate):
3893         * Api/qwebpage.cpp:
3894         (QWebPagePrivate::createMainFrame):
3895         * WebCoreSupport/FrameLoaderClientQt.cpp:
3896         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
3897         (WebCore::FrameLoaderClientQt::blockedError):
3898
3899 2008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3900
3901         Reviewed by Simon.
3902
3903         * For the PageCache support we do not want to create a FrameView in the constructor
3904         of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will
3905         create a QWebFrame if no mainFrame is present and this gets called when we try to
3906         create a FrameView...
3907         * Keep a copy of the initial viewportSize around and use it if we do not have a Frame
3908         or FrameView.
3909         
3910
3911         * Api/qwebpage.cpp:
3912         (QWebPagePrivate::QWebPagePrivate):
3913         (QWebPage::triggerAction):
3914         * Api/qwebpage_p.h:
3915
3916 2008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3917
3918         Reviewed by Simon.
3919
3920         * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port
3921
3922         * WebCoreSupport/FrameLoaderClientQt.cpp:
3923         (WebCore::):
3924
3925 2008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3926
3927         Reviewed by Simon.
3928
3929         * Attempt to make the m_webFrame null pointer checking consistent. Always check for
3930         m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame
3931         call and should stay valid until the destruction of the QWebFrame.
3932         * Currently the same checking is not needed for m_frame as it will only set to 0 in
3933         FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame
3934         initialisation.
3935         
3936
3937         * WebCoreSupport/FrameLoaderClientQt.cpp:
3938         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
3939         (WebCore::FrameLoaderClientQt::setMainDocumentError):
3940         (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
3941         (WebCore::FrameLoaderClientQt::objectContentType):
3942         (WebCore::FrameLoaderClientQt::createPlugin):
3943
3944 2008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3945
3946         Reviewed by Simon.
3947
3948         * Get the RefCounting of WebCore::Frame right and make sure that both QWebFrame
3949         and WebCore::Frame get destroyed if we leave site with subframes and on the
3950         end of the application.
3951         * Use adoptRef in FrameLoaderClientQt::createFrame to get the refs right for subframes. We
3952         do not want to add an extra reference. Without this we are leaking subframes.
3953         * Assume that the lifetime of a Frame and FrameLoader are the same, when the Frame is gone
3954         we want to destroy the QWebFrame (e.g. on a page with subframes). Add delete m_webFrame
3955         in the frameLoaderDestroyed method to do that.
3956         * If we happen to delete the QWebFrame before the FrameLoaderClientQt we set m_webFrame to
3957         zero in the FrameLoaderClientQt to avoid bad things.
3958         
3959
3960         * Api/qwebframe.cpp:
3961         (QWebFrame::~QWebFrame):
3962         * WebCoreSupport/FrameLoaderClientQt.cpp:
3963         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
3964         (WebCore::FrameLoaderClientQt::objectContentType):
3965         * WebCoreSupport/FrameLoaderClientQt.h:
3966
3967 2008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3968
3969         Reviewed by Simon.
3970
3971         * Do not save a RefPtr to the frame. The FrameLoaderClient, Frame and
3972         QWebFrame should have the same lifetime everything else is a leak
3973         or issue.
3974
3975         * Api/qwebframe.cpp:
3976         (QWebFramePrivate::init):
3977         * Api/qwebframe_p.h:
3978         * WebCoreSupport/FrameLoaderClientQt.cpp:
3979
3980 2008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3981
3982         Reviewed by Simon.
3983
3984         * Do not store the QWebFrame associated with a ScrollView/FrameView
3985         in the WebCore::Widget.
3986         * Instead of asking the Widget for the QWebFrame use the QWebFramePrivate::core
3987         and QWebFramePrivate::kit function to convert from and to QWebFrame.
3988         
3989
3990         * Api/qwebframe.cpp:
3991         (QWebFramePrivate::init):
3992         * Api/qwebpage.cpp:
3993         (QWebPagePrivate::createMainFrame):
3994
3995 2008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
3996
3997         Reviewed by Simon.
3998
3999         * Do not store the FrameView in the QWebFrame and cope with the situation when
4000         a WebCore::Frame has no WebCore::FrameView.
4001         
4002
4003         * Api/qwebframe.cpp:
4004         (QWebFramePrivate::init):
4005         (QWebFramePrivate::horizontalScrollBar):
4006         (QWebFramePrivate::verticalScrollBar):
4007         (QWebFrame::innerText):
4008         (QWebFrame::renderTreeDump):
4009         (QWebFrame::setVerticalScrollBarPolicy):
4010         (QWebFrame::setHorizontalScrollBarPolicy):
4011         (QWebFrame::render):
4012         (QWebFrame::layout):
4013         (QWebFrame::pos):
4014         * Api/qwebframe_p.h:
4015         (QWebFramePrivate::QWebFramePrivate):
4016         * Api/qwebpage.cpp:
4017         (QWebPagePrivate::updateEditorActions):
4018         (QWebPagePrivate::mouseMoveEvent):
4019         (QWebPagePrivate::mousePressEvent):
4020         (QWebPagePrivate::mouseDoubleClickEvent):
4021         (QWebPagePrivate::contextMenuEvent):
4022         (QWebPagePrivate::wheelEvent):
4023         (QWebPage::triggerAction):
4024         * WebCoreSupport/FrameLoaderClientQt.cpp:
4025
4026 2008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
4027
4028         Reviewed by Simon.
4029
4030         * Change the order of the methods to match with the FrameLoaderClient.h to ease
4031         removing methods in the future.
4032
4033         * WebCoreSupport/FrameLoaderClientQt.h:
4034
4035 2008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
4036
4037         Reviewed by Simon.
4038
4039         * Remove virtuals in the FrameLoaderClientQt that don't exist in the base class.
4040
4041         * WebCoreSupport/FrameLoaderClientQt.cpp:
4042         (WebCore::FrameLoaderClientQt::detachedFromParent4):
4043         * WebCoreSupport/FrameLoaderClientQt.h:
4044
4045 2008-03-25  Brady Eidson  <beidson@apple.com>
4046
4047         Reviewed by Darin
4048
4049         Remove newly obsolete FrameLoaderClient methods
4050
4051         * WebCoreSupport/FrameLoaderClientQt.cpp:
4052         * WebCoreSupport/FrameLoaderClientQt.h:
4053
4054 2008-03-22  Mark Rowe  <mrowe@apple.com>
4055
4056         Qt build fix.
4057
4058         * WebCoreSupport/FrameLoaderClientQt.cpp:
4059         (WebCore::):
4060
4061 2008-03-18  Simon Hausmann  <hausmann@webkit.org>
4062
4063         Reviewed by Holger.
4064
4065         Fix the Qt build. Don't return void in non-void functions.
4066
4067         * Api/qwebpluginfactory.cpp:
4068         (QWebPluginFactory::extension):
4069
4070 2008-03-16  Thiago Macieira  <thiago.macieira@trolltech.com>
4071
4072         Reviewed by Simon.
4073
4074         Don't use RefPtr in classes you haven't seen the implementation of.
4075         
4076         Forward-declaration and declaration of RefPtr<Foo> is ok. But you
4077         cannot *use* said objects until Foo is defined. This is true even for
4078         initialisation with a 0.
4079         
4080         Seems the HP aCC compiler is more strict here than gcc.
4081
4082         * Api/qwebframe_p.h:
4083
4084 2008-03-14  Simon Hausmann  <hausmann@webkit.org>
4085
4086         Fix the Qt build.
4087
4088         * Api/qwebframe.cpp:
4089         (QWebFrame::setHtml):
4090         (QWebFrame::setContent):
4091
4092 2008-03-13  Simon Hausmann  <hausmann@webkit.org>
4093
4094         Fix the Qt build.
4095
4096         * Api/qwebframe.cpp:
4097         (QWebFrame::addToJSWindowObject):
4098
4099 2008-03-12  Simon Hausmann  <hausmann@webkit.org>
4100
4101         Fix compilation against Qt 4.3
4102
4103         * Api/qwebpage.cpp:
4104         * Api/qwebpage.h:
4105         * Api/qwebpage_p.h:
4106
4107 2008-03-11  Rodney Dawes  <dobey@wayofthemonkey.com>
4108
4109         Fix the Qt build.
4110
4111         * WebCoreSupport/FrameLoaderClientQt.cpp:
4112         (FrameLoaderClientQt::CreatePlugin):
4113
4114 2008-03-11  Simon Hausmann  <hausmann@webkit.org>
4115
4116         Fix the Qt build (silly typo).
4117
4118         * QtLauncher/main.cpp:
4119         (MainWindow::MainWindow):
4120
4121 2008-03-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
4122
4123         Reviewed by Simon.
4124
4125         Moved obscuring progress bar to the lower right corner.
4126
4127         * QtLauncher/main.cpp:
4128         (MainWindow::MainWindow):
4129         (MainWindow::resizeEvent):
4130
4131 2008-03-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
4132
4133         Reviewed by Simon.
4134
4135         Added reload action and grouped stop and reload actions together.
4136
4137         * QtLauncher/main.cpp:
4138         (MainWindow::MainWindow):
4139
4140 2008-03-11  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
4141
4142         Reviewed by Simon.
4143
4144         * Set a Icon on the QAction if we have one.
4145
4146         * Api/qwebpage.cpp:
4147         (QWebPage::action):
4148
4149 2008-03-11  Simon Hausmann  <hausmann@webkit.org>
4150
4151         Fix the Qt build.
4152
4153         * Api/qwebframe.cpp:
4154         (QWebFrame::addToJSWindowObject):
4155
4156 2008-03-07  Simon Hausmann  <hausmann@webkit.org>
4157
4158         Reviewed by Darin Adler.
4159
4160         Done with Lars.
4161
4162         Replaced the QWebObjectPlugin interfaces with QWebPluginFactory.
4163
4164         * Api/qwebnetworkinterface.cpp:
4165         (QWebNetworkManager::add):
4166         (QWebNetworkManager::cancel):
4167         (QWebNetworkManager::started):
4168         (QWebNetworkManager::data):
4169         (QWebNetworkManager::finished):
4170         * Api/qwebnetworkinterface_p.h:
4171         (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
4172         * Api/qwebobjectplugin.cpp: Removed.
4173         * Api/qwebobjectplugin.h: Removed.
4174         * Api/qwebobjectplugin_p.h: Removed.
4175         * Api/qwebobjectpluginconnector.cpp: Removed.
4176         * Api/qwebobjectpluginconnector.h: Removed.
4177         * Api/qwebpage.cpp:
4178         (QWebPagePrivate::QWebPagePrivate):
4179         (QWebPage::setPluginFactory):
4180         (QWebPage::pluginFactory):
4181         * Api/qwebpage.h:
4182         * Api/qwebpage_p.h:
4183         * Api/qwebpluginfactory.cpp: Added.
4184         (QWebPluginFactory::QWebPluginFactory):
4185         (QWebPluginFactory::~QWebPluginFactory):
4186         (QWebPluginFactory::refreshPlugins):
4187         (QWebPluginFactory::extension):
4188         * Api/qwebpluginfactory.h: Added.
4189         (MimeType::):
4190         * WebCoreSupport/FrameLoaderClientQt.cpp:
4191         (WebCore::FrameLoaderClientQt::objectContentType):
4192         (WebCore::FrameLoaderClientQt::createPlugin):
4193
4194 2008-03-07  Simon Hausmann  <hausmann@webkit.org>
4195
4196         Fix the Qt build.
4197
4198         * Api/qwebframe.cpp:
4199
4200 2008-03-04  Sam Weinig  <sam@webkit.org>
4201
4202         Reviewed by Mark Rowe.
4203
4204         - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
4205           JSDOMWindow.h
4206
4207         * Api/qwebframe.cpp:
4208         (QWebFrame::addToJSWindowObject):
4209
4210 2008-03-04  Mark Rowe  <mrowe@apple.com>
4211
4212         Another go at fixing the Qt build.
4213
4214         * Api/qwebframe.cpp:
4215         (QWebFrame::addToJSWindowObject):
4216
4217 2008-02-24  Darin Adler  <darin@apple.com>
4218
4219         Reviewed by Sam.
4220
4221         - remove separate client calls for "standard" and "reload' history
4222
4223         * WebCoreSupport/FrameLoaderClientQt.cpp:
4224         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
4225         * WebCoreSupport/FrameLoaderClientQt.h:
4226
4227 2008-02-24  Darin Adler  <darin@apple.com>
4228
4229         - another try at fixing the build
4230
4231         * Api/qwebframe.cpp:
4232         (QWebFrame::load): Replace new FormData with FormData::create.
4233
4234 2008-02-22  Sam Weinig  <sam@webkit.org>
4235
4236         Fix Qt build.
4237
4238         * Api/qwebhistoryinterface.cpp:
4239
4240 2008-02-22  Sam Weinig  <sam@webkit.org>
4241
4242         Rubber-stamped by Adam Roben.
4243
4244         Rid the project of the Devil known as DeprecatedString!
4245
4246         * Api/qwebhistory.cpp:
4247         * Api/qwebhistoryinterface.cpp:
4248
4249 2008-02-18  Darin Adler  <darin@apple.com>
4250
4251         Reviewed by Sam.
4252
4253         * Api/qwebnetworkinterface.cpp:
4254         (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString.
4255
4256 2008-01-24  David Boddie  <dboddie@trolltech.com>
4257
4258         Reviewed by Simon.
4259
4260         Documentation tidying.
4261         
4262
4263         * Api/qwebframe.cpp:
4264         * Api/qwebhistoryinterface.cpp:
4265         * Api/qwebview.cpp:
4266
4267 2008-01-24  Jarek Kobus  <jkobus@trolltech.com>
4268
4269         Reviewed by Simon.
4270
4271         Text for translations were used wrongly as comments
4272         
4273
4274         * WebCoreSupport/FrameLoaderClientQt.cpp:
4275         (WebCore::):
4276         (WebCore::FrameLoaderClientQt::cannotShowURLError):
4277         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
4278         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
4279         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
4280         (WebCore::FrameLoaderClientQt::shouldFallBack):
4281
4282 2008-01-24  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
4283
4284         Reviewed by Simon.
4285
4286         * We have a KURL->QUrl conversion on KURL itself, make use of it.
4287         * This conversion is supposed to be loss-free
4288         
4289
4290         * Api/qwebframe.cpp:
4291
4292 2008-01-23  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
4293
4294         * Rubber stamped by Simon
4295
4296         * Fix leaking of sub frames (WebCore::Frame). We keep one reference too many.
4297         This was found while working on the page-cache, other ports are not affected.
4298
4299         * WebCoreSupport/FrameLoaderClientQt.cpp:
4300         (WebCore::FrameLoaderClientQt::createFrame):
4301
4302 2008-01-23  Rohan McGovern  <rohan.mcgovern@trolltech.com>
4303
4304         Reviewed by Simon Hausmann <hausmann@webkit.org>.
4305
4306         Fix Qtopia compilation with QT_NO_TOOLTIP
4307         
4308
4309         * WebCoreSupport/ChromeClientQt.cpp:
4310         (WebCore::ChromeClientQt::print):
4311
4312 2008-01-23  Geir Vattekar  <gvatteka@trolltech.com>
4313
4314         Reviewed by Simon.
4315
4316         Doc: Replaced \code with snippets in the docs
4317         
4318
4319         * Api/qwebview.cpp:
4320
4321 2008-01-23  Benjamin Meyer  <bmeyer@trolltech.com>
4322
4323         Reviewed by Simon.
4324
4325         Tweak key presses even to match commonly expected behavior
4326         - space key == page down
4327         - page down moved down not a page, but slightly less then a page so you don't loose your spot when reading.
4328         - Use font height rather then a hard coded "10" for left, right, up, down
4329         - Ctrl-Up moves to the top of the page
4330         - Ctrl-Down move to the bottom of the page
4331         - Backspace == GoBack
4332         - Shift-Backspace == GoForward
4333         
4334
4335         * Api/qwebpage.cpp:
4336         (dropActionToDragOp):
4337         (dragOpToDropAction):
4338         (QWebPagePrivate::keyPressEvent):
4339
4340 2008-01-23  Simon Hausmann  <hausmann@webkit.org>
4341
4342         Reviewed by Lars.
4343
4344         Implemented FrameLoaderClient::startDownload() and FrameLoaderClient::download().
4345         
4346         Added two signals to QWebPage to handle downloading of links and handling of
4347         unsupported content.
4348         
4349
4350         * Api/qwebpage.cpp:
4351         (QWebPage::triggerAction):
4352         * Api/qwebpage.h:
4353         * WebCoreSupport/FrameLoaderClientQt.cpp:
4354         (WebCore::FrameLoaderClientQt::download):
4355         (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
4356         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
4357         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
4358         (WebCore::FrameLoaderClientQt::willUseArchive):
4359
4360 2008-01-22  Lars Knoll  <lars@trolltech.com>
4361
4362         Reviewed by Simon.
4363
4364         setup a family for cursive and fantasy fonts as well.
4365         
4366
4367         * Api/qwebsettings.cpp:
4368         (QWebSettings::QWebSettings):
4369
4370 2008-01-22  Benjamin Meyer  <bmeyer@trolltech.com>
4371
4372         Reviewed by Simon.
4373
4374         Implement ChromeClientQt::setToolTip
4375         Implement ChromeClientQt::mouseDidMoveOverElement
4376         
4377
4378         * Api/qwebpage.cpp:
4379         * Api/qwebpage_p.h:
4380         * WebCoreSupport/ChromeClientQt.cpp:
4381         (WebCore::ChromeClientQt::ChromeClientQt):
4382         (WebCore::ChromeClientQt::focus):
4383         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
4384         (WebCore::ChromeClientQt::setToolTip):
4385         (WebCore::ChromeClientQt::print):
4386         * WebCoreSupport/ChromeClientQt.h:
4387
4388 2008-01-21  Darin Adler  <darin@apple.com>
4389
4390         Reviewed by John Sullivan.
4391
4392         - updated for changes to ChromeClient database functions
4393
4394         * WebCoreSupport/ChromeClientQt.cpp:
4395         (WebCore::ChromeClientQt::exceededDatabaseQuota):
4396         * WebCoreSupport/ChromeClientQt.h:
4397
4398 2008-01-21  Benjamin Meyer  <bmeyer@trolltech.com>
4399
4400         Reviewed by Simon.
4401
4402         Change QWebHistoryInterface::addHistoryEntry() from const to non-const
4403         
4404
4405         * Api/qwebhistoryinterface.h:
4406
4407 2008-01-21  Adam Treat  <treat@kde.org>
4408
4409         Reviewed by Simon.
4410
4411         * Don't leak the d-pointer in QWebSettings.
4412         
4413
4414         * Api/qwebsettings.cpp:
4415         (QWebSettings::~QWebSettings):
4416
4417 2008-01-21  Simon Hausmann  <hausmann@webkit.org>
4418
4419         Reviewed by Holger.
4420
4421         Update the WebKit version number from WebKit/win/WebKit.vcproj/VERSION.
4422         
4423         This has the fortunate side-effect that gmail sends us sensible HTML/JS again :)
4424         
4425
4426         * Api/qwebpage.cpp:
4427
4428 2008-01-21  Simon Hausmann  <hausmann@webkit.org>
4429
4430         Reviewed by Holger.
4431
4432         Fix focus chain handling and cycling through focusable objects (links) using tab/backtab.
4433         
4434         * Fix GraphicsContext::drawFocusRing to also draw single focus rects.
4435         * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events
4436         and make the return value depend on whether we successfully determined a focusable
4437         node or not.
4438         * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly
4439         if we could not handle the focus chain ourselves.
4440         * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus.
4441         * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only
4442         used to control the situation of stepping out of the focus chain inside the page.
4443         * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain.
4444         The layout tests expect this to be disabled but for the user it seems sensible to have it
4445         on by default, hence the default in qwebsettings.cpp
4446         
4447
4448         * Api/qwebpage.cpp:
4449         (QWebPage::focusNextPrevChild):
4450         * Api/qwebsettings.cpp:
4451         (QWebSettings::QWebSettings):
4452         * Api/qwebsettings.h:
4453         * Api/qwebview.cpp:
4454         (QWebView::QWebView):
4455         (QWebView::focusNextPrevChild):
4456         * WebCoreSupport/ChromeClientQt.cpp:
4457         (WebCore::ChromeClientQt::canTakeFocus):
4458         (WebCore::ChromeClientQt::takeFocus):
4459
4460 2008-01-18  Simon Hausmann  <hausmann@webkit.org>
4461
4462         Reviewed by Holger.
4463
4464         Coding style fixes and added a comment about the include order.
4465
4466         * WebKit_pch.h:
4467
4468 2008-01-18  Marius Storm-Olsen  <marius@trolltech.com>
4469
4470         Reviewed by Simon Hausmann <hausmann@webkit.org>.
4471
4472         Add use of precompiled header, when building inside Qt.
4473         
4474         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.
4475         
4476
4477         * WebKit_pch.h: Added.
4478
4479 2008-01-18  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
4480
4481         Reviewed by Simon.
4482