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