1 2008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
5 Re-enable support for user stylesheets in QtWebKit
7 QtWebKit now follows the FRAME_LOADS_USER_STYLESHEET
8 code path, which allows us to keep API support for
9 loading user style sheets from remote URLs.
11 As part of the change UserStyleSheetLoader.cpp/h was
12 moved from WebCore/loader/mac to WebCore/loader.
14 * tests/qwebpage/tst_qwebpage.cpp:
15 (tst_QWebPage::userStyleSheet):
17 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
19 Reviewed by Eric Seidel.
21 [janitor/qt] Start replacing port specific getters with the generic native getter
22 To get the native presentation of an image we currently have platform
23 specific #ifdef's and a generic getter using NativeImagePtr. This patch
24 extends this to the ImageBuffer and updates the Qt platform to get rid
25 of the special #ifdefs.
27 https://bugs.webkit.org/attachment.cgi?id=22861
30 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
31 * Api/qwebhistory.cpp:
32 * Api/qwebsettings.cpp:
33 (QWebSettings::iconForUrl):
35 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
39 Catch up with the introduction of PageGroup in r30840. Enable tracking of
40 visited links, enable this in QWebPage next to the other WebCore init call.
41 Calling this more than once is no issue and a cheap operation, we also do not
42 reset the state. When clearing the history of a page, clear the link state.
44 * Api/qwebhistory.cpp:
46 * Api/qwebhistoryinterface.cpp:
47 (QWebHistoryInterface::setDefaultInterface):
49 (QWebPagePrivate::QWebPagePrivate):
51 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
55 Revert revision 34348 which removed the global historyContains() function.
57 This function was needed to implement the public API of QWebHistoryInterface
58 and will be used again in the near future.
60 * Api/qwebhistoryinterface.cpp:
61 (WebCore::historyContains):
63 2008-08-27 Erik Bunce <elbunce@thehive.com>
65 Reviewed by Eric Seidel.
67 https://bugs.webkit.org/show_bug.cgi?id=20223
69 Add QWebPage::contentsChanged() signal to notify of content changes.
73 * WebCoreSupport/EditorClientQt.cpp:
74 (WebCore::EditorClientQt::respondToChangedContents):
76 2008-08-27 Brady Eidson <beidson@apple.com>
80 <rdar://problem/6134133> - Crash when loading large movie as a standalone document
82 * WebCoreSupport/FrameLoaderClientQt.cpp:
83 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError): Stubbed for now
84 * WebCoreSupport/FrameLoaderClientQt.h:
86 2008-08-25 Holger Hans Peter Freyther <zecke@selfish.org>
90 [inspector] Emit signals from attachWindow and detachWindow in the Qt platform
91 Allow the user of the API to honor the attachWindow and detachWindow
92 requests and attach the QWebPage/QWebView wherever it is wanted. This needs
93 some more API in QWebPage to be properly exposed.
95 * WebCoreSupport/InspectorClientQt.cpp:
96 (WebCore::InspectorClientQt::createPage):
97 (WebCore::InspectorClientQt::attachWindow):
98 (WebCore::InspectorClientQt::detachWindow):
99 * WebCoreSupport/InspectorClientQt.h:
101 2008-08-19 Alexey Proskuryakov <ap@webkit.org>
103 Reviewed by Geoff Garen.
105 Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.
108 (QWebFrame::addToJavaScriptWindowObject):
110 2008-08-15 Håvard Wall <hwall@trolltech.com>
114 Fixes: compile with QT_NO_UNDOCOMMAND/STACK
118 (SetCursorEvent::SetCursorEvent):
119 (QWebPagePrivate::createContextMenu):
123 * WebCoreSupport/EditCommandQt.cpp:
124 (EditCommandQt::EditCommandQt):
125 * WebCoreSupport/EditCommandQt.h:
126 * WebCoreSupport/EditorClientQt.cpp:
128 (WebCore::EditorClientQt::shouldInsertText):
129 (WebCore::EditorClientQt::shouldChangeSelectedRange):
130 (WebCore::EditorClientQt::isEditable):
131 (WebCore::EditorClientQt::registerCommandForUndo):
132 (WebCore::EditorClientQt::clearUndoRedoOperations):
133 (WebCore::EditorClientQt::canUndo):
134 (WebCore::EditorClientQt::canRedo):
135 (WebCore::EditorClientQt::undo):
136 (WebCore::EditorClientQt::redo):
137 (WebCore::EditorClientQt::shouldInsertNode):
139 2008-08-15 Håvard Wall <hwall@trolltech.com>
143 Fixes: compile with QT_NO_STYLE_STYLESHEET
146 * WebCoreSupport/FrameLoaderClientQt.cpp:
147 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
148 (WebCore::FrameLoaderClientQt::createPlugin):
150 2008-08-15 Håvard Wall <hwall@trolltech.com>
154 Fixes: compile with QT_NO_SHORTCUT
158 (QWebPagePrivate::mouseMoveEvent):
159 (QWebPagePrivate::mouseReleaseEvent):
160 (QWebPagePrivate::dragMoveEvent):
162 2008-08-15 Håvard Wall <hwall@trolltech.com>
166 Fixes: compile with QT_NO_CONTEXTMENU
170 (editorCommandForWebActions):
171 (QWebPagePrivate::QWebPagePrivate):
172 (QWebPagePrivate::createMainFrame):
173 (QWebPagePrivate::updateEditorActions):
174 (QWebPage::setEditable):
180 2008-08-15 Håvard Wall <hwall@trolltech.com>
184 Fixes: compile with QT_NO_WHEELEVENT
188 (QWebPagePrivate::updateEditorActions):
194 2008-08-15 Håvard Wall <hwall@trolltech.com>
198 Fixes: compile with QT_NO_PRINTER
205 2008-08-15 David Boddie <dboddie@trolltech.com>
209 Doc: Added documentation for default property values.
213 (QWebPagePrivate::keyPressEvent):
214 (QWebPage::triggerAction):
215 (QWebPage::acceptNavigationRequest):
219 2008-08-15 David Boddie <dboddie@trolltech.com>
223 Doc: Renamed snippets that appear in the code directory.
230 2008-08-12 Timothy Hatcher <timothy@apple.com>
232 Add a stub for InspectorClient::setAttachedWindowHeight.
234 * WebCoreSupport/InspectorClientQt.cpp:
235 (WebCore::InspectorClientQt::setAttachedWindowHeight):
236 Call notImplemented().
237 * WebCoreSupport/InspectorClientQt.h:
239 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
243 Use full-page zoom in QtLauncher.
245 * QtLauncher/main.cpp:
246 (MainWindow::zoomIn):
247 (MainWindow::zoomOut):
248 (MainWindow::resetZoom):
249 (MainWindow::setupUI):
251 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
255 Fix linking with QtWebKit.
257 * Api/qwebframe.h: remove non-existing function/property.
259 2008-08-13 Simon Hausmann <hausmann@webkit.org>
263 Based on patch by Siraj razick <siraj.razick@collabora.co.uk>
265 https://bugs.webkit.org/show_bug.cgi?id=19125
267 Added functions to get/set the zoom factor.
269 Added a QWebFrame/QWebView::zoomFactor as well as a boolean
270 ZoomTextOnly attribute in QWebSettings.
273 (QWebFrame::setZoomFactor):
274 (QWebFrame::zoomFactor):
276 * Api/qwebsettings.cpp:
277 (QWebSettingsPrivate::apply):
278 (QWebSettings::QWebSettings):
279 * Api/qwebsettings.h:
281 (QWebView::setZoomFactor):
282 (QWebView::zoomFactor):
285 2008-08-13 Simon Hausmann <hausmann@webkit.org>
289 Fix QWebFrame::setHtml() not setting the new contents immediately.
291 Added a setter to the DocumentLoader to toggle the deferred loading of the main
292 resource when it comes from substitute data.
294 Disable deferred loading of the main resource when we have valid substitute data,
295 as used by QWebFrame::setHtml.
297 * WebCoreSupport/FrameLoaderClientQt.cpp:
298 (WebCore::FrameLoaderClientQt::download):
300 2008-08-13 Simon Hausmann <hausmann@webkit.org>
302 Rubber-stamped by Holger.
304 Fix QWebPage::isModified().
306 isModified() would return true after loading a new page or it would continue to
307 return true after undoing modifications. Fix this by eliminating the
308 QWebPagePrivate::modified variable and use the undoStack's canUndo() property
311 https://bugs.webkit.org/show_bug.cgi?id=19252
316 * WebCoreSupport/EditorClientQt.cpp:
317 (WebCore::EditorClientQt::respondToChangedContents):
319 2008-08-13 David Boddie <dboddie@trolltech.com>
323 Updated docs with the signal emission behavior of urlChanged()
327 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
331 Fix Ctrl+Y to work again when editing text in contextEditable mode.
333 This fixes regression in LayoutTests/editing/pasteboard/emacs-cntl-y-001.html
335 * WebCoreSupport/EditorClientQt.cpp:
336 (WebCore::EditorClientQt::handleKeyboardEvent):
338 2008-08-13 Thiago Macieira <tjmaciei@trolltech.com>
342 Fix encoding of [ and ] in the host part of the URL
344 Until QUrl is fixed (making QUrl's tolerant parser more tolerant), we have to
345 add this workaround to the QUrl <> WebCore::KURL conversion operator so that it
346 doesn't encode [ and ] when they are found in the host part. That is, the
349 is valid and should not be reencoded to:
352 This change adds the automatic test for it.
354 * tests/qwebframe/tst_qwebframe.cpp:
356 2008-08-12 Urs Wolfer <uwolfer@kde.org>
360 https://bugs.webkit.org/show_bug.cgi?id=20357
362 Fix crash in QWebPage in case contextMenuEvent has been overwritten
363 because context menu has the view as parent and thus is deleted too early.
365 Add testcase for this crash.
368 * tests/qwebpage/tst_qwebpage.cpp:
369 (tst_QWebPage::contextMenuCrash):
371 2008-08-07 Simon Hausmann <hausmann@webkit.org>
373 Rubber-stamped by Lars.
375 Added API tests for QWebPage/QWebFrame based on QTestLib.
377 * tests/qwebframe/qwebframe.pro: Added.
378 * tests/qwebframe/tst_qwebframe.cpp: Added.
379 * tests/qwebpage/qwebpage.pro: Added.
380 * tests/qwebpage/tst_qwebpage.cpp: Added.
381 * tests/tests.pro: Added.
383 2008-08-06 Benjamin C Meyer <ben@meyerhome.net>
387 During the drag operation only accept the event if the action is not ignore action.
390 (QWebPagePrivate::dragEnterEvent):
391 (QWebPagePrivate::dragMoveEvent):
392 (QWebPagePrivate::dropEvent):
394 2008-08-06 Ariya Hidayat <ariya.hidayat@trolltech.com>
396 Fix the Qt build due to recent ScriptController refactoring.
399 (QWebFrame::addToJavaScriptWindowObject):
401 2008-08-05 Tor Arne Vestbø <tavestbo@trolltech.com>
405 Move event handling of the return-key from EditorClientQt to QWebPage.
407 https://bugs.webkit.org/show_bug.cgi?id=20191
409 This is a first step in refactoring the big switch block
410 in EditorClientQt::handleKeyboardEvent to using WebActions
413 The new logic uses two new StandardKeys from QKeySequence:
415 - InsertParagraphSeparator
416 - InsertLineSeparator
418 Which translate to the commands InsertNewline and InsertLineBreak
419 respectivly. On Windows/X11 pressing the shift modifier will invoke
420 the latter action. For Mac this is triggered by pressing the meta
423 Initial patch by: Erik Bunce
426 (editorActionForKeyEvent):
428 * WebCoreSupport/EditorClientQt.cpp:
429 (WebCore::EditorClientQt::handleKeyboardEvent):
431 2008-08-04 Erik Bunce <elbunce@thehive.com>
435 https://bugs.webkit.org/show_bug.cgi?id=20221
437 Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline.
438 Add lookup table for mapping web actions to editor commands.
441 (editorCommandForWebActions):
442 (QWebPagePrivate::updateAction):
443 (QWebPagePrivate::updateEditorActions):
444 (QWebPage::triggerAction):
445 (QWebPage::setEditable):
447 2008-08-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
451 A bunch of improvements to the QtLauncher.
454 - Unify and unclutter the toolbar, use menu for addition actions
455 - Simplify URL edit, just use QLineEdit (no fancy close button etc)
456 - Guess the URL from the command line so now we can run ./QtLauncher www.google.com
457 - Shortcut keys for most actions
458 - Simple autocomplete for the URL edit
459 - Actions for zooming, New Window and Close Window
460 - Show Format menu only when the content is set to editable
462 * QtLauncher/main.cpp:
463 (MainWindow::MainWindow):
464 (MainWindow::webPage):
465 (MainWindow::changeLocation):
466 (MainWindow::loadFinished):
467 (MainWindow::showLinkHover):
468 (MainWindow::newWindow):
469 (MainWindow::zoomIn):
470 (MainWindow::zoomOut):
471 (MainWindow::resetZoom):
473 (MainWindow::setEditable):
474 (MainWindow::dumpHtml):
475 (MainWindow::setupUI):
478 2008-08-04 Erik Bunce <elbunce@thehive.com>
482 https://bugs.webkit.org/show_bug.cgi?id=20198
484 Allow Copy key sequence to work in non-editable areas.
487 (QWebPagePrivate::keyPressEvent):
489 2008-07-31 Erik Bunce <elbunce@thehive.com>
493 Make sure edit actions get updated when the contents change.
495 * WebCoreSupport/EditorClientQt.cpp:
496 (WebCore::EditorClientQt::respondToChangedContents):
498 2008-07-31 Erik Bunce <elbunce@thehive.com>
502 Add simple edit test abilities to QtLauncher.
504 * QtLauncher/main.cpp:
505 (MainWindow::MainWindow):
506 (MainWindow::setEditable):
507 (MainWindow::dumpHtml):
509 2008-07-31 Alexey Proskuryakov <ap@webkit.org>
511 Rubber-stamped by Maciej.
513 Eliminate JSLock (it was already disabled, removing the stub implementaion and all
517 (QWebFrame::addToJavaScriptWindowObject):
519 2008-07-27 David Kilzer <ddkilzer@apple.com>
521 Fix Qt build failure.
524 (QWebFrame::setScrollOffset): Make argument const.
526 2008-07-26 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
528 Reviewed by Simon Hausmann.
530 https://bugs.webkit.org/show_bug.cgi?id=20010
531 [Qt] Add API access to scrolling
533 * Api/qwebframe.cpp: Added access to a frame scroll offset.
535 (QWebFrame::scrollOffset):
536 (QWebFrame::setScrollOffset):
539 2008-07-26 Daniel Jalkut <jalkut@red-sweater.com>
541 Build fix. Adjust to updated WebCore FrameLoader method names & signatures.
544 (QWebPage::triggerAction):
545 * WebCoreSupport/FrameLoaderClientQt.cpp:
546 (WebCore::FrameLoaderClientQt::createFrame):
548 2008-07-25 Joerg Bornemann <joerg.bornemann@trolltech.com>
552 Compile with QT_NO_PRINTER.
554 * QtLauncher/main.cpp:
555 (MainWindow::MainWindow):
557 2008-07-24 Tor Arne Vestbø <tavestbo@trolltech.com>
561 Don't insert text on keyDown event in EditorClientQt.
563 * WebCoreSupport/EditorClientQt.cpp:
564 (WebCore::EditorClientQt::handleKeyboardEvent):
566 2008-07-04 Benjamin C Meyer <ben@meyerhome.net>
570 Update the webkit version in the QtWebKit useragent string to match trunk
574 2008-07-02 Simon Hausmann <hausmann@webkit.org>
579 (QWebPage::triggerAction): The signature of setBaseWritingDirection
580 changed to take an enum instead of a string.
582 2008-07-01 Alexey Proskuryakov <ap@webkit.org>
586 Disable JSLock for per-thread contexts.
589 (QWebFrame::addToJavaScriptWindowObject):
590 Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
591 Include JSLock.h, as it is no longer brought in implicitly.
593 2008-07-01 Tor Arne Vestbø <tavestbo@trolltech.com>
597 Don't show the tooltip instantly in the QtLauncher.
599 Let the QWebView handle tooltips by itself, so we get
600 the expected delay as everywhere else.
602 * QtLauncher/main.cpp:
604 2008-06-30 Simon Hausmann <hausmann@webkit.org>
606 Rubber-stamped by Niko.
608 Removed the obsolete and unmaintained WebKitPart. The integration of
609 QtWebKit into KDE is now done in the webkitkde component inside KDE.
611 * WebKitPart/WebKitFactory.cpp: Removed.
612 * WebKitPart/WebKitFactory.h: Removed.
613 * WebKitPart/WebKitPart.cpp: Removed.
614 * WebKitPart/WebKitPart.desktop: Removed.
615 * WebKitPart/WebKitPart.h: Removed.
616 * WebKitPart/WebKitPart.rc: Removed.
617 * WebKitPart/WebKitPartBrowser.rc: Removed.
618 * WebKitPart/WebKitPartBrowserExtension.cpp: Removed.
619 * WebKitPart/WebKitPartBrowserExtension.h: Removed.
620 * WebKitPart/WebKitPartClient.cpp: Removed.
621 * WebKitPart/WebKitPartClient.h: Removed.
622 * WebKitPart/WebKitPartInterface.cpp: Removed.
623 * WebKitPart/WebKitPartInterface.h: Removed.
624 * WebKitPart/org.kde.WebKitPart.xml: Removed.
626 2008-06-24 Simon Hausmann <hausmann@webkit.org>
628 Fix the Qt build, added missing include for RuntimeObjectImp.
632 2008-06-23 Benjamin C Meyer <ben@meyerhome.net>
636 Add function to retrieve the standard context menu
638 2008-06-20 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
642 https://bugs.webkit.org/show_bug.cgi?id=19082
643 [Qt] Full-page plugins not activated
645 * WebCoreSupport/FrameLoaderClientQt.cpp:
646 (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a
647 plugin present, as it can be created during the function.
649 2008-06-20 Marco Barisione <marco.barisione@collabora.co.uk>
653 https://bugs.webkit.org/show_bug.cgi?id=19082
654 [Qt] Full-page plugins not activated
656 * WebCoreSupport/FrameLoaderClientQt.cpp:
657 (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the
658 MIME type is supported by a plugin.
660 2008-06-18 Alexey Proskuryakov <ap@webkit.org>
664 Prepare JavaScript heap for being per-thread.
667 (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build.
669 2008-06-18 Julien Chaffraix <jchaffraix@webkit.org>
671 Qt Build fix after r34627.
673 * WebCoreSupport/FrameLoaderClientQt.cpp:
674 (WebCore::FrameLoaderClientQt::createPlugin):
676 2008-06-15 Darin Adler <darin@apple.com>
678 - give Frame object functions shorter names: scriptProxy() -> script(),
679 selectionController() -> selection(), animationController() -> animation()
682 (QWebFrame::evaluateJavaScript):
684 (QWebPagePrivate::focusInEvent):
685 (QWebPagePrivate::focusOutEvent):
686 (QWebPage::inputMethodQuery):
687 * WebCoreSupport/EditorClientQt.cpp:
688 (WebCore::EditorClientQt::handleKeyboardEvent):
690 2008-06-15 Darin Adler <darin@apple.com>
692 - new names for more JavaScriptCore files
696 2008-06-15 Darin Adler <darin@apple.com>
698 - new names for a few key JavaScriptCore files
702 2008-06-14 Darin Adler <darin@apple.com>
704 Rubber stamped by Sam.
706 - new names for kjs_binding.h and kjs_proxy.h
709 (QWebFrame::evaluateJavaScript):
712 2008-06-14 Darin Adler <darin@apple.com>
717 (QWebFramePrivate::init): Added a missing semicolon.
719 2008-06-14 Darin Adler <darin@apple.com>
723 - more https://bugs.webkit.org/show_bug.cgi?id=17257
724 start ref counts at 1 instead of 0 for speed
727 (QWebFramePrivate::init): Use create instead of new.
728 * WebCoreSupport/FrameLoaderClientQt.cpp:
729 (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
731 2008-06-13 Darin Adler <darin@apple.com>
735 * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument.
737 2008-06-13 Darin Adler <darin@apple.com>
739 Reviewed by John Sullivan.
741 - updated for addition of FormState argument to action policy functions
743 * WebCoreSupport/FrameLoaderClientQt.cpp:
744 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
745 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
747 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
751 Fix left-click and middle-click mouse event are not properly accepted.
753 When copying or pasting text using left or middle-click, the event must be
754 accepted so that it will not be potentially processed further by the parent
755 and/or sub-classed widget.
759 (QWebPagePrivate::mouseReleaseEvent):
761 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
765 Fix input element does not accept character typed in using AltGr.
767 EditorClient is modified to catch AltGr and Ctrl+Alt key combination.
768 This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry
770 * WebCoreSupport/EditorClientQt.cpp:
771 (WebCore::EditorClientQt::handleKeyboardEvent):
773 2008-05-26 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
777 https://bugs.webkit.org/show_bug.cgi?id=19323
779 Implemented the QWebPage::editable property.
781 Small documentation fixes by Simon.
784 (QWebPagePrivate::QWebPagePrivate):
785 (QWebPage::setEditable):
786 (QWebPage::isEditable):
788 * Api/qwebpage_p.h: implement the editable property and add API so that
789 applications can switch edit mode on and off for a particular QWebPage
790 * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the
791 QWebPage instead of always returning false
793 2008-06-09 Tor Arne Vestbø <tavestbo@trolltech.com>
797 Make sure web action in context menus have the right enablement,
798 while not messing up other web actions not included in the menu.
801 (QWebPagePrivate::createContextMenu):
802 (QWebPage::updatePositionDependentActions):
805 2008-06-09 Benjamin C Meyer <ben@meyerhome.net>
809 Add Shift-Space shortcut to go up one screen, the opposite of Space
810 which goes down one screen.
813 (QWebPagePrivate::handleScrolling):
815 2008-06-04 Tor Arne Vestbø <tavestbo@trolltech.com>
819 Fix a failing assertion when calling QWebFrame::evaluateJavaScript.
821 The starting line number has to be 1 instead of 0.
824 (QWebFrame::evaluateJavaScript):
826 2008-06-03 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
830 * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains(). This
831 function is not used anywhere internally and is only a convenience
832 function that can still be accomplished using
833 QWebHistoryInterface::historyContains();
835 2008-05-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
839 Doc: Mention the requirement of a QApplication with QtWebKit
844 2008-05-29 David Boddie <dboddie@trolltech.com>
848 Some clarifications for the documentation.
852 * Api/qwebpluginfactory.cpp:
854 2008-05-27 Ariya Hidayat <ariya.hidayat@trolltech.com>
858 Fix web inspector does not returns its state properly after its window is minimized.
860 As hinted by Holger, InspectorClientView::hideEvent is not needed.
861 This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967
863 * WebCoreSupport/InspectorClientQt.cpp:
865 2008-05-21 Siraj Razick <siraj.razick@collabora.co.uk>
869 Add <param name="classid"/> support for application/x-qt-object plugins
871 * WebCoreSupport/FrameLoaderClientQt.cpp:
872 (WebCore::FrameLoaderClientQt::createPlugin):
874 2008-05-13 Andy Shaw <andy@trolltech.com>
878 Fixes: QWebHistory::forward() should go forwards and not back
880 * Api/qwebhistory.cpp:
882 2008-05-12 Alexey Proskuryakov <ap@webkit.org>
884 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify
885 SquirrelFish merging.
888 (QWebFrame::addToJavaScriptWindowObject):
890 2008-05-09 Thiago Macieira <tjmaciei@trolltech.com>
894 Fix bad includes in QtWebKit public headers.
896 Make sure to include qglobal.h using the QtCore prefix so that an explicit
897 include/QtCore is not needed in the application's build system. Also make sure
898 that qwebsettings.h includes the local qwebkitglobal.h.
901 * Api/qwebkitglobal.h:
902 * Api/qwebsettings.h:
904 2008-05-08 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
908 https://bugs.webkit.org/show_bug.cgi?id=18935
910 Based on work by Sriram Neelakandan for the Gtk port.
912 * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize
913 m_hasSentResponseToPlugin.
914 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
915 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
917 2008-05-08 Warwick Allison <warwick@trolltech.com>
921 Fixes: WebKit expects initial input method state to be *disabled*.
923 At least QWS does not need the initial input method state to be forced to
924 enabled, but other platforms (esp. X11) do. Until fixed/tested on those
925 platforms, this is specific to QWS.
929 (QWebView::QWebView):
931 2008-05-06 Simon Hausmann <hausmann@webkit.org>
935 Fix logic error in QWebHitTestResult::isNull().
939 2008-05-02 Benjamin Meyer <bmeyer@trolltech.com>
943 Doc: Mention that you have to enable plugins in QWebSettings for them to work.
947 2008-05-02 Simon Hausmann <hausmann@webkit.org>
949 Fix the Qt build, ExecState is required here.
952 (QWebFrame::addToJavaScriptWindowObject):
954 2008-05-01 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
956 Reviewed by Alp Toker.
957 Qt parts OK'ed by Simon Hausmann.
959 https://bugs.webkit.org/show_bug.cgi?id=14750
960 Added support for NPAPI plugins on Gtk and Qt-x11 ports.
962 * WebCoreSupport/FrameLoaderClientQt.cpp:
963 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
964 (WebCore::FrameLoaderClientQt::finishedLoading):
965 (WebCore::FrameLoaderClientQt::setMainDocumentError):
966 (WebCore::FrameLoaderClientQt::committedLoad):
967 (WebCore::FrameLoaderClientQt::objectContentType):
968 (WebCore::FrameLoaderClientQt::createPlugin):
969 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
970 * WebCoreSupport/FrameLoaderClientQt.h:
972 2008-04-30 Julien Chaffraix <jchaffraix@webkit.org>
976 Fixes a brace error that made Qt 4.4 build but not Qt 4.3.
981 2008-04-30 Tor Arne Vestbø <tavestbo@trolltech.com>
985 In focusIn and focusOut event always update the active state of the
986 focus controller. Fixes ~400 failing layout tests due to missing
987 editing callbacks that relied on the correct focus.
990 (QWebPagePrivate::focusInEvent):
991 (QWebPagePrivate::focusOutEvent):
993 2008-04-29 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
997 Fix compilation with QT_NO_PRINTER
1003 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
1007 Ensure that relative URL is converted to absolute URL.
1009 This is necessary because loading a relative URL is not really supported
1010 (the web page may load, but the subsequent URLs for images and links will
1011 not be resolved properly).
1012 This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484
1015 * Api/qwebframe.cpp:
1016 (ensureAbsoluteUrl):
1017 (QWebFrame::setUrl):
1020 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
1024 Simplification of Qt Launcher (no animation and use standard progress bar widget)
1026 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.
1029 * QtLauncher/main.cpp:
1030 (MainWindow::MainWindow):
1032 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
1036 Update the cursor when the frame/page loading is finished.
1038 This fixes https://bugs.webkit.org/show_bug.cgi?id=18712
1041 * WebCoreSupport/FrameLoaderClientQt.cpp:
1042 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
1043 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
1045 2008-04-29 Simon Hausmann <shausman@trolltech.com>
1049 Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links.
1051 Call QWebPage::acceptNavigationRequest when the creation of a new window with
1052 URL is requested. The frame pointer is set to null in this case.
1056 (QWebPage::setViewportSize):
1057 * WebCoreSupport/FrameLoaderClientQt.cpp:
1058 (WebCore::FrameLoaderClientQt::startDownload):
1059 (WebCore::FrameLoaderClientQt::createFrame):
1061 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
1065 Use the WebCore facility to do the scrolling. Move some code around.
1068 (QWebPagePrivate::keyPressEvent):
1069 (QWebPagePrivate::shortcutOverrideEvent):
1070 (QWebPagePrivate::handleScrolling):
1073 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
1077 fix potential crash when loading image(s)
1079 Crash may occur. If compiled with 4.3, the variable is not initialized.
1082 (QWebPagePrivate::QWebPagePrivate):
1084 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
1088 Calling QWebView::setCursor will override the WebCore Cursor.
1089 Calling QWebView::setCursor will override the WebCore Cursor using
1090 QWidget::unsetCursor will revert to the WebCore Cursor.
1092 For detecting the unset we have to compare the shape of the
1093 cursor to the default arrow. Qt::WA_SetCursor can not be used
1094 as it is set unconditionally but conditionally removed.
1096 Calling QWidget::setCursor will immediately send the CursorChange
1097 event. We listen to this event to decide if we currently use a
1098 WebCore cursor, got a cursor from outside, or revert to the default.
1100 This should be race free and work reliable, the manual test for this
1101 is WebCore/manual-tests/cursor.html
1104 (SetCursorEvent::SetCursorEvent):
1107 (QWebViewPrivate::QWebViewPrivate):
1108 (QWebViewPrivate::setCursor):
1109 (QWebView::QWebView):
1112 2008-04-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
1116 Documentation fixes:
1118 - Fixed a qdoc warning
1119 - Mention that fav icons can be of arbitrary size
1120 - Fix signature of QWebPage::acceptNavigationRequest show in the documentation
1122 * Api/qwebframe.cpp:
1125 * Api/qwebsettings.cpp:
1128 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
1132 Fix QWebView::loadFinished isn't always emitted
1134 Replaced loadDone() with loadFinished(bool) and moved the signals for progress
1135 tracking (start, progres, and finish) to the page instead of the frame. This
1136 ensures that we emit loadFinished even when a subframe started the actual load.
1138 This causes a few regressions in the layout tests that we for now accept for
1139 the sake of the correct API. Layout tests we can fix any time though, including
1140 patch release, the API however we can't change anymore in patch releases.
1142 * Api/qwebframe.cpp:
1145 (QWebPage::totalBytes):
1148 (QWebView::setPage):
1150 * QtLauncher/main.cpp:
1151 (MainWindow::MainWindow):
1152 * WebCoreSupport/FrameLoaderClientQt.cpp:
1153 (drtDescriptionSuitableForTestResult):
1154 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
1155 (WebCore::FrameLoaderClientQt::setFrame):
1156 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
1157 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1158 (WebCore::FrameLoaderClientQt::willChangeTitle):
1159 (WebCore::FrameLoaderClientQt::createDocumentLoader):
1160 (WebCore::FrameLoaderClientQt::download):
1161 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1162 * WebCoreSupport/FrameLoaderClientQt.h:
1164 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
1168 Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame
1170 * Api/qwebframe.cpp:
1171 * Api/qwebpluginfactory.cpp:
1172 * Api/qwebsettings.cpp:
1173 (QWebSettings::QWebSettings):
1174 (QWebSettings::setUserStyleSheetUrl):
1175 (QWebSettings::iconForUrl):
1176 (QWebSettings::webGraphic):
1177 (QWebSettings::maximumPagesInCache):
1178 (QWebSettings::setFontFamily):
1179 (QWebSettings::resetFontFamily):
1180 (QWebSettings::testAttribute):
1181 (QWebSettings::resetAttribute):
1183 2008-04-28 Ariya Hidayat <ahidayat@trolltech.com>
1187 Fix document/frame title not reset when loading a new URI
1189 We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle()
1190 will be called very soon with the correct title.
1191 This properly resets the title when we navigate to a URI without a title.
1194 * WebCoreSupport/FrameLoaderClientQt.cpp:
1196 2008-04-28 David Boddie <dboddie@trolltech.com>
1200 Minor documentation changes.
1204 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
1208 Prevent middle-click from triggering open URL from clipboard when the event has already been accepted.
1212 (QWebPagePrivate::mouseMoveEvent):
1213 (QWebPagePrivate::mousePressEvent):
1214 (QWebPagePrivate::mouseDoubleClickEvent):
1215 (QWebPagePrivate::mouseTripleClickEvent):
1216 (QWebPagePrivate::mouseReleaseEvent):
1218 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
1222 Fix scrollbar behavior in QtWebKit to match QScrollBar.
1224 Right click context menu is now supported, along with
1225 middle click to center slider thumb over mouse cursor.
1229 (QWebPage::linkDelegationPolicy):
1231 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
1235 Implemented channel-based logging for QtWebKit.
1237 Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable.
1238 Warnings for notImplemented() is still output by default, but can be disabled
1239 by setting DISABLE_NI_WARNINGS=1.
1242 (QWebPagePrivate::QWebPagePrivate):
1244 2008-04-28 Simon Hausmann <shausman@trolltech.com>
1246 Rubber-stamped by Lars
1248 Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API.
1250 * Api/qwebframe.cpp:
1255 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
1259 Doc - adding more documentation to QWebFrame, QWebPage and QWebView
1262 * Api/qwebframe.cpp:
1267 (QWebView::changeEvent):
1269 2008-04-28 Simon Hausmann <shausman@trolltech.com>
1273 Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens
1275 Give the popups the right parent widget and the right coordinates relative within the parent.
1280 2008-04-28 Benjamin Meyer <bmeyer@trolltech.com>
1284 Doc: Add see also's (and a few minor whitespace/typo corrections)
1287 * Api/qwebframe.cpp:
1288 (QWebFrame::~QWebFrame):
1289 (QWebFrame::setHtml):
1290 (QWebFrame::setContent):
1291 (QWebFrame::parentFrame):
1292 (QWebFrame::childFrames):
1293 (QWebFrame::setScrollBarValue):
1294 (QWebFrame::scrollBarValue):
1295 (QWebFrame::scrollBarMaximum):
1296 (QWebFrame::scrollBarMinimum):
1297 (QWebFrame::render):
1299 (QWebFrame::geometry):
1301 (QWebFrame::evaluateJavaScript):
1303 (QWebPagePrivate::mousePressEvent):
1304 (QWebPagePrivate::mouseDoubleClickEvent):
1305 (QWebPage::~QWebPage):
1306 (QWebPage::javaScriptPrompt):
1308 (QWebPage::setViewportSize):
1309 (QWebPage::acceptNavigationRequest):
1311 (QWebPage::userAgentForUrl):
1312 (QWebPagePrivate::_q_onLoadProgressChanged):
1316 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
1320 Submitting more documentation for QWebPage
1325 2008-04-28 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
1329 Compile when QT_NO_CLIPBOARD is defined.
1333 (QWebPage::triggerAction):
1335 2008-04-28 David Boddie <dboddie@trolltech.com>
1339 Minor documentation fix.
1342 * Api/qwebhistory.cpp:
1344 2008-04-28 Holger Hans Peter Freyther <zecke@selfish.org>
1348 Implement QWebPage::createPlugin
1350 The code is coming from the demo browser and needed here
1351 for some manual tests.
1354 * QtLauncher/QtLauncher.pro:
1355 * QtLauncher/main.cpp:
1356 (WebPage::createPlugin):
1358 2008-04-28 Simon Hausmann <hausmann@webkit.org>
1360 Qt/Win build fix. Include config.h to get the implicit MathExtras.h
1361 inclusion correct with regards to rand_s.
1363 * Api/qwebhistory.cpp:
1365 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
1369 https://bugs.webkit.org/show_bug.cgi?id=18713
1371 Fix scrollbar painting issues in QtWebKit.
1373 Hovering and click-draging outside of the scrollbar would
1374 produce unexpected and inconcistent results. We also didn't
1375 pass on leave-events to the underlying WebKit code, which
1376 was nessecary to implement the paint fix.
1378 Note: The event handling of the Leave event should be moved
1379 out of QWebView::event() and into a proper override for 4.5.
1382 (QWebPagePrivate::leaveEvent):
1387 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1389 Reviewed by Simon, Holger.
1391 Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus.
1393 * Correctly de- and reactivate the focused frame in focusOut/focusInEvent
1394 without telling the focus controller. We don't want to change the focused frame
1395 - the controller has to remember it in fact - but instead just deactivate the
1396 frame for correct painting as RenderTheme::isFocused() uses the activation
1400 (QWebPagePrivate::focusInEvent):
1401 (QWebPagePrivate::focusOutEvent):
1403 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
1407 completed documentation for the Detailed Description section for QWebView
1412 2008-04-25 Denis Dzyubenko <denis.dzyubenko@trolltech.com>
1416 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.
1419 * Api/qwebhistory.cpp:
1420 (QWebHistory::back):
1421 (QWebHistory::forward):
1422 (QWebHistory::goToItem):
1424 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
1428 Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest().
1431 * WebCoreSupport/FrameLoaderClientQt.cpp:
1432 (WebCore::FrameLoaderClientQt::createFrame):
1434 2008-04-25 Simon Hausmann <hausmann@webkit.org>
1438 When pressing backspace in a line edit in a webpage we should not go back to the previous page.
1440 The shortcut for back on Windows is backspace. Implemented shortcut override
1441 handling in QWebView/QWebPage to prevent this.
1445 (QWebPagePrivate::wheelEvent):
1446 (editorActionForKeyEvent):
1447 (QWebPagePrivate::keyPressEvent):
1448 (QWebPagePrivate::inputMethodEvent):
1449 (QWebPagePrivate::shortcutOverrideEvent):
1455 2008-04-25 Ariya Hidayat <ariya.hidayat@trolltech.com>
1459 Fix triple-clicking does not work in a web page
1463 (QWebPagePrivate::updateEditorActions):
1464 (QWebPagePrivate::timerEvent):
1465 (QWebPagePrivate::mousePressEvent):
1466 (QWebPagePrivate::mouseDoubleClickEvent):
1467 (QWebPage::undoStack):
1470 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1474 When pressing Ctrl-Up the keyboard modifiers could include other modifiers
1478 (QWebPagePrivate::keyPressEvent):
1480 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
1484 Fix handling of Javascript's confirm() function in QtWebKit.
1489 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
1493 Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity
1498 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1502 QWebPage: missing signal when window.print() is requested from javascript
1507 * WebCoreSupport/ChromeClientQt.cpp:
1509 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1513 Fixes: "Save Image" action wasn't doing anything.
1517 (QWebPage::triggerAction):
1519 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1523 Apply key event changes to the current frame, not the main frame.
1525 Example: hitting space bar should scroll current frame, not the main frame
1526 which doesn't even have a scrollbar.
1530 (QWebPagePrivate::keyPressEvent):
1532 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1536 Fixes: QWebFrame crash when fetching the icon
1538 Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock.
1540 * Api/qwebframe.cpp:
1542 2008-04-25 Warwick Allison <warwick@trolltech.com>
1546 Fixes: Scrollbars did not report correct maximum.
1548 * Api/qwebframe.cpp:
1550 2008-04-25 David Boddie <dboddie@trolltech.com>
1554 Documentation updates for some of the QWeb classes
1556 * Api/qwebframe.cpp:
1557 * Api/qwebhistory.cpp:
1558 * Api/qwebsettings.cpp:
1561 2008-04-25 Holger Hans Peter Freyther <zecke@selfish.org>
1565 Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html
1567 Similar to Editing and Frameloading we do the dumping within WebCore
1570 * WebCoreSupport/FrameLoaderClientQt.cpp:
1571 (qt_dump_frame_loader):
1572 (qt_dump_resource_load_callbacks):
1573 (drtDescriptionSuitableForTestResult):
1574 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
1575 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
1576 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
1578 2008-04-24 Anders Carlsson <andersca@apple.com>
1582 Change some String arguments to be const references instead.
1584 * WebCoreSupport/EditorClientQt.cpp:
1585 (WebCore::EditorClientQt::shouldInsertText):
1586 * WebCoreSupport/EditorClientQt.h:
1588 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
1592 Cosmetic changes to make the code more readable.
1593 -Early exit if we don't have a webview
1594 -handle the empty tooltip and non-empty tooltip case separately
1597 * WebCoreSupport/ChromeClientQt.cpp:
1598 (WebCore::ChromeClientQt::setToolTip):
1599 (WebCore::ChromeClientQt::print):
1601 2008-04-24 Paul Olav Tvete <paul@trolltech.com>
1605 Automatically wrap tooltip text and hide a shown tooltip when it is empty.
1607 QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds.
1608 Workaround as discussed with Matthias.
1610 * WebCoreSupport/ChromeClientQt.cpp:
1611 (WebCore::ChromeClientQt::setToolTip):
1613 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
1617 Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0)
1619 * Api/qwebsettings.cpp:
1620 (QWebSettings::setObjectCacheCapacities):
1622 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
1626 Improve keyboard scrolling
1628 Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom.
1632 (QWebPagePrivate::keyPressEvent):
1634 2008-04-24 Olivier Goffart <ogoffart@trolltech.com>
1638 Fix various compiler warnings in the Qt port.
1640 * Api/qwebframe.cpp:
1642 * Api/qwebsettings.cpp:
1644 * WebCoreSupport/FrameLoaderClientQt.cpp:
1645 (WebCore::FrameLoaderClientQt::createPlugin):
1647 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
1651 Cleaned up copyright headers (removed misplaced class descriptions and
1652 fixed inconsistent whitespace and indentation).
1654 * Api/qwebframe.cpp:
1656 * Api/qwebframe_p.h:
1657 * Api/qwebhistory.cpp:
1658 * Api/qwebhistory.h:
1659 * Api/qwebhistory_p.h:
1660 * Api/qwebhistoryinterface.cpp:
1661 * Api/qwebhistoryinterface.h:
1662 * Api/qwebkitglobal.h:
1663 * Api/qwebnetworkinterface.cpp:
1664 * Api/qwebnetworkinterface.h:
1665 * Api/qwebnetworkinterface_p.h:
1669 * Api/qwebpluginfactory.cpp:
1670 * Api/qwebpluginfactory.h:
1671 * Api/qwebsettings.cpp:
1672 * Api/qwebsettings.h:
1674 * QtLauncher/main.cpp:
1676 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
1680 Added basic URL guessing to QtLauncher (same as in the demo browser).
1683 * QtLauncher/main.cpp:
1684 (MainWindow::changeLocation):
1685 (MainWindow::guessUrlFromString):
1687 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
1689 Reviewed by Simon Hausmann <hausmann@webkit.org>.
1691 Prevent double deletions of the default web interface.
1694 * Api/qwebhistoryinterface.cpp:
1695 (gCleanupInterface):
1696 (QWebHistoryInterface::QWebHistoryInterface):
1698 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1700 Fix compilation against Qt 4.3
1703 (QWebPage::userAgentForUrl):
1704 * QtLauncher/main.cpp:
1707 2008-04-23 Holger Hans Peter Freyther <zecke@selfish.org>
1711 * Make sure the "Inspect Element" item gets added to the ContextMenu, a call
1712 to ContextMenu::populate() is not adding it, the ContextMenuController does
1713 add it after the call to populate(). Do that as well.
1717 (QWebPage::updatePositionDependentActions):
1719 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1723 Fix crashes on window.close().
1725 We should not delete the QWebPage object in the ChromeClient but leave it up to
1726 the application when and whether to delete a browser window. For this we now
1727 emit the windowCloseRequested() signal.
1733 * QtLauncher/main.cpp:
1734 (MainWindow::MainWindow):
1735 * WebCoreSupport/ChromeClientQt.cpp:
1737 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1741 Fix parsing of external scripts/stylesheets when using setHtml(const QString &html).
1743 We used to pass the html string to the frameloader in utf-16, which also meant that the default
1744 encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8
1745 by default. This is now also documented.
1747 * Api/qwebframe.cpp:
1748 (QWebFrame::setHtml):
1751 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
1755 Fixes background color propagation when using a custom QWebPage
1757 Set the palette in setPage(), not during the creation on-demand.
1762 (QWebView::setPage):
1764 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
1768 Fix the user agent on the mac to be BSD4
1770 Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac
1774 (QWebPage::userAgentForUrl):
1776 2008-04-23 Simon Hausmann <shausman@trolltech.com>
1780 Added missing copyright notice.
1781 Small fixes to the documentation.
1783 * Api/qwebpluginfactory.cpp:
1785 2008-04-23 Zack Rusin <zack@tungstengraphics.com>
1789 Added a contentsSize() property.
1791 * Api/qwebframe.cpp:
1792 (QWebFrame::contentsSize):
1793 (QWebFrame::hitTestContent):
1796 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1800 Fixes: QWebPage's QNetworkManager's can be shared among webpages.
1802 Don't force the deletion of the object, but let QObject take care of it.
1806 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1810 Documentation for QWebPluginFactory and documentation updates for QWebPage.
1813 (QWebPage::setLinkDelegationPolicy):
1814 (QWebPage::linkDelegationPolicy):
1815 (QWebPage::swallowContextMenuEvent):
1816 (QWebPage::updatePositionDependentActions):
1817 (QWebPage::extension):
1818 (QWebPage::networkAccessManager):
1819 * Api/qwebpluginfactory.cpp:
1820 (QWebPluginFactory::QWebPluginFactory):
1821 (QWebPluginFactory::~QWebPluginFactory):
1822 (QWebPluginFactory::refreshPlugins):
1824 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1828 Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions.
1832 (QWebPagePrivate::QWebPagePrivate):
1833 (QWebPagePrivate::mouseReleaseEvent):
1834 (QWebPage::setLinkDelegationPolicy):
1835 (QWebPage::linkDelegationPolicy):
1836 (QWebPage::swallowContextMenuEvent):
1837 (QWebPage::updatePositionDependentActions):
1843 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1847 Added Extension APIs for QWebPage.
1850 (QWebPage::setLinkDelegationPolicy):
1851 (QWebPage::linkDelegationPolicy):
1852 (QWebPage::extension):
1854 * Api/qwebpluginfactory.cpp:
1855 (QWebPluginFactory::extension):
1857 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
1861 Emit loadProgress() signal on loadStarted().
1864 * WebCoreSupport/FrameLoaderClientQt.cpp:
1865 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
1867 2008-04-22 Zack Rusin <zack@kde.org>
1871 Fix background propagation from the QWebView's palette.
1873 The background brush of the palette needs to be propagated to the WebCore::FrameView.
1875 * Api/qwebframe.cpp:
1876 (QWebFramePrivate::updateBackground):
1877 * Api/qwebframe_p.h:
1879 (QWebPagePrivate::dropEvent):
1880 (QWebPage::setPalette):
1885 (QWebView::changeEvent):
1887 * WebCoreSupport/FrameLoaderClientQt.cpp:
1889 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1895 We have to include a version in the Safari tag in the user-agent.
1898 (QWebPage::userAgentForUrl):
1900 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
1904 Add visual focusing hint for clear button and
1905 change focus to web page after user enters new URL.
1907 * QtLauncher/main.cpp:
1908 (ClearButton::paintEvent):
1909 (MainWindow::changeLocation):
1911 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1915 Added QWebFrame::hitTestContent() and QWebHitTestResult.
1917 * Api/qwebframe.cpp:
1918 (QWebFrame::hitTestContent):
1920 (QWebHitTestResult::QWebHitTestResult):
1921 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1922 (QWebHitTestResult::operator=):
1923 (QWebHitTestResult::~QWebHitTestResult):
1924 (QWebHitTestResult::isNull):
1925 (QWebHitTestResult::pos):
1926 (QWebHitTestResult::title):
1927 (QWebHitTestResult::linkText):
1928 (QWebHitTestResult::linkUrl):
1929 (QWebHitTestResult::linkTitle):
1930 (QWebHitTestResult::linkTargetFrame):
1931 (QWebHitTestResult::alternateText):
1932 (QWebHitTestResult::imageUrl):
1933 (QWebHitTestResult::pixmap):
1934 (QWebHitTestResult::isContentEditable):
1935 (QWebHitTestResult::isContentSelected):
1936 (QWebHitTestResult::frame):
1938 * Api/qwebframe_p.h:
1939 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1941 (QWebPagePrivate::contextMenuEvent):
1942 (QWebPage::triggerAction):
1946 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1950 Don't crash if an input method query is done without a page.
1954 (QWebView::inputMethodQuery):
1956 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1960 Added re-implementations of QObject::event for future safety.
1962 This makes it easier to fix bugs with the event handling even in patch releases
1963 and is a general style we follow in Qt.
1966 * Api/qwebframe.cpp:
1972 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1976 Fix construction of the user agent.
1978 The user-agent is now composed of
1979 * the platform and subplatform
1980 * the Qt version or application name and version (if set)
1986 (QWebPage::networkAccessManager):
1987 (QWebPage::setPluginFactory):
1988 (QWebPage::pluginFactory):
1989 (QWebPage::userAgentForUrl):
1990 * QtLauncher/main.cpp:
1992 2008-04-22 Thiago Macieira <tjmaciei@trolltech.com>
1996 Fixes: Pedantic compilation fix
1998 Don't put semi-colons after braces closing namespaces.
2000 * Api/qwebsettings.h:
2002 2008-04-21 Simon Hausmann <hausmann@webkit.org>
2006 Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant.
2008 * Api/qwebframe.cpp:
2009 (QWebFrame::evaluateJavaScript):
2012 2008-04-21 Simon Hausmann <hausmann@webkit.org>
2016 Fixes redundant "Fonts" submenu in default lineedits that has only disabled items.
2018 Don't show sub-menus that have only actions that are disabled.
2021 (QWebPagePrivate::createContextMenu):
2023 2008-04-21 Kavindra Devi Palaraja <kdpalara@trolltech.com>.
2027 Lots of documentation fixes, fixed all qdoc warnings.
2029 * Api/qwebframe.cpp:
2030 (QWebFrame::setTextSizeMultiplier):
2031 * Api/qwebhistoryinterface.cpp:
2032 (gCleanupInterface):
2033 (QWebHistoryInterface::QWebHistoryInterface):
2034 (QWebHistoryInterface::~QWebHistoryInterface):
2036 (QWebPage::inputMethodQuery):
2038 (QWebPage::javaScriptConsoleMessage):
2039 (QWebPage::javaScriptAlert):
2040 (QWebPage::javaScriptConfirm):
2041 (QWebPage::javaScriptPrompt):
2042 (QWebPage::viewportSize):
2043 (QWebPage::acceptNavigationRequest):
2046 (QWebPage::focusNextPrevChild):
2047 (QWebPage::setForwardUnsupportedContent):
2048 (QWebPage::setLinkDelegationPolicy):
2049 (QWebPage::findText):
2050 (QWebPage::settings):
2051 (QWebPage::networkProxy):
2052 (QWebPage::setNetworkAccessManager):
2054 * Api/qwebsettings.cpp:
2055 (QWebSettings::QWebSettings):
2056 (QWebSettings::setIconDatabasePath):
2057 (QWebSettings::iconForUrl):
2058 (QWebSettings::fontFamily):
2063 2008-04-21 Marius Bugge Monsen <mmonsen@trolltech.com>
2067 Fix compile failure on solaris-cc
2069 * Api/qwebpage.h: Removed trailing semicolons and moved the private
2070 d-pointer to not confuse the compiler
2072 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2076 Build fix for Qt 4.3
2078 * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is
2079 always defined. Do this by adding defines to the compiler line
2080 * For users of our API this is not feasible. Every public header file should
2081 include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE
2082 when we are building everything < 4.4.0 and don't have them defined.
2084 * Api/qwebkitglobal.h:
2086 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2090 * Initialize the WebGraphics with the one found in WebCore
2093 * Api/qwebsettings.cpp:
2094 (QWebSettingsPrivate::apply):
2096 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2100 * Allow TextAreas to be resized.
2101 * No QWebSettings for this is introduced.
2104 * Api/qwebsettings.cpp:
2105 (QWebSettingsPrivate::apply):
2107 2008-04-21 Simon Hausmann <shausman@trolltech.com>
2111 Fixes: QWebView::url property behaviour strange in designer
2113 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.
2115 * Api/qwebframe.cpp:
2116 (QWebFrame::setUrl):
2122 2008-04-21 Andre Poenitz <andre.poenitz@trolltech.com>
2124 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2126 Fix compilation with Qt namespaces
2128 * Api/qwebframe.cpp:
2132 2008-04-21 Simon Hausmann <hausmann@webkit.org>
2136 When printing on high resolution printers we need to scale the painter accordingly (for now).
2138 * Api/qwebframe.cpp:
2141 2008-04-21 Simon Hausmann <hausmann@webkit.org>
2145 Provide a print preview in the QtLauncher
2147 * QtLauncher/main.cpp:
2148 (MainWindow::MainWindow):
2149 (MainWindow::showLinkHover):
2150 (MainWindow::print):
2152 2008-04-20 Simon Hausmann <hausmann@webkit.org>
2154 Reviewed by Alp Toker.
2156 Share the printing code between the Gtk and the Qt port
2157 and added printing to the Qt WebKit API.
2159 * Api/qwebframe.cpp:
2166 2008-04-19 Julien Chaffraix <jchaffraix@webkit.org>
2168 Qt build fix (renderer() -> contentRenderer()).
2170 * Api/qwebframe.cpp:
2171 (QWebFrame::renderTreeDump):
2172 (QWebFrame::render):
2174 2008-04-18 Simon Hausmann <hausmann@webkit.org>
2178 Many API changes and additions after a full review with Jasmin Blanchette <jasmin@trolltech.com>
2180 The diff is too big to mention the changes individually, but most of the changes were of cosmetic
2181 nature where methods or enums have been renamed or prefixed/suffixed according to the consistency
2182 rules of the Qt API.
2184 * Api/qwebframe.cpp:
2185 (QWebFrame::addToJavaScriptWindowObject):
2186 (QWebFrame::toHtml):
2187 (QWebFrame::toPlainText):
2189 (QWebFrame::setContent):
2190 (QWebFrame::setScrollBarPolicy):
2191 (QWebFrame::render):
2192 (QWebFrame::setTextSizeMultiplier):
2193 (QWebFrame::textSizeMultiplier):
2196 * Api/qwebhistory.cpp:
2197 * Api/qwebhistory.h:
2199 (QWebPagePrivate::QWebPagePrivate):
2200 (QWebPagePrivate::~QWebPagePrivate):
2201 (QWebPagePrivate::acceptNavigationRequest):
2202 (webActionForContextMenuAction):
2203 (QWebPagePrivate::updateAction):
2204 (QWebPagePrivate::keyPressEvent):
2206 (QWebPage::javaScriptPrompt):
2207 (QWebPage::createWindow):
2208 (QWebPage::triggerAction):
2209 (QWebPage::setViewportSize):
2210 (QWebPage::acceptNavigationRequest):
2212 (QWebPage::focusNextPrevChild):
2213 (QWebPage::setForwardUnsupportedContent):
2214 (QWebPage::forwardUnsupportedContent):
2215 (QWebPage::setLinkDelegationPolicy):
2216 (QWebPage::findText):
2217 (QWebPage::networkAccessManager):
2218 (QWebPageContext::imageUrl):
2219 (QWebPageContext::image):
2222 * Api/qwebsettings.cpp:
2223 (QWebSettingsPrivate::apply):
2224 (QWebSettings::QWebSettings):
2225 (QWebSettings::setIconDatabasePath):
2226 (QWebSettings::iconDatabasePath):
2227 (QWebSettings::clearIconDatabase):
2228 (QWebSettings::iconForUrl):
2229 (QWebSettings::setWebGraphic):
2230 (QWebSettings::fontFamily):
2231 (QWebSettings::setAttribute):
2232 (QWebSettings::testAttribute):
2233 (QWebSettings::resetAttribute):
2234 * Api/qwebsettings.h:
2236 (QWebView::setPage):
2238 (QWebView::setTextSizeMultiplier):
2239 (QWebView::textSizeMultiplier):
2240 (QWebView::findText):
2242 (QWebView::mouseMoveEvent):
2244 * QtLauncher/main.cpp:
2245 (MainWindow::MainWindow):
2247 * WebCoreSupport/ChromeClientQt.cpp:
2248 (WebCore::ChromeClientQt::ChromeClientQt):
2249 (WebCore::ChromeClientQt::setWindowRect):
2250 (WebCore::ChromeClientQt::toolbarsVisible):
2251 (WebCore::ChromeClientQt::setStatusbarVisible):
2252 (WebCore::ChromeClientQt::statusbarVisible):
2253 (WebCore::ChromeClientQt::setScrollbarsVisible):
2254 (WebCore::ChromeClientQt::setResizable):
2255 (WebCore::ChromeClientQt::scrollBackingStore):
2256 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2257 (WebCore::ChromeClientQt::setToolTip):
2258 * WebCoreSupport/ChromeClientQt.h:
2259 * WebCoreSupport/FrameLoaderClientQt.cpp:
2260 (WebCore::FrameLoaderClientQt::setFrame):
2261 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
2262 (WebCore::FrameLoaderClientQt::setMainDocumentError):
2263 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2264 (WebCore::FrameLoaderClientQt::createFrame):
2265 (WebCore::FrameLoaderClientQt::objectContentType):
2266 * WebCoreSupport/FrameLoaderClientQt.h:
2267 * WebCoreSupport/InspectorClientQt.cpp:
2269 2008-04-18 Simon Hausmann <hausmann@webkit.org>
2273 Added QWebView::find/QWebFrame::find.
2276 (QWebPage::focusNextPrevChild):
2283 2008-04-15 Ariya Hidayat <ariya.hidayat@trolltech.com>
2287 fix potential crash when loading image(s)
2289 Crash may occur. If compiled with 4.3, the variable is not initialized.
2290 This fix solves https://bugs.webkit.org/show_bug.cgi?id=17174
2293 (QWebPagePrivate::QWebPagePrivate):
2295 2008-04-15 Simon Hausmann <hausmann@webkit.org>
2299 Update the micro focus for input methods as soon as the composition mode changes
2300 or the caret/selection changes.
2306 (QWebView::setPage):
2307 * WebCoreSupport/EditorClientQt.cpp:
2308 (WebCore::EditorClientQt::respondToChangedSelection):
2309 (WebCore::EditorClientQt::setInputMethodState):
2311 2008-04-15 Simon Hausmann <hausmann@webkit.org>
2315 Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application,
2316 it yields undefined behaviour or wrong default codec initialization.
2319 * QtLauncher/main.cpp:
2320 (WebPage::createWindow):
2322 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
2326 Fixes: copy to clipboard when selecting, and paste when clicking with the middle button
2329 (QWebPagePrivate::mouseReleaseEvent): If the clipboard supports
2330 selections then we support copy & paste into the selection.
2332 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
2336 Add basic input method support.
2340 (QWebPagePrivate::dropEvent):
2341 (QWebPagePrivate::inputMethodEvent):
2342 (QWebPage::inputMethodQuery):
2347 (QWebView::QWebView):
2348 (QWebView::inputMethodQuery):
2349 (QWebView::inputMethodEvent):
2351 * WebCoreSupport/EditorClientQt.cpp:
2352 (WebCore::EditorClientQt::setInputMethodState):
2354 2008-04-15 Simon Hausmann <hausmann@webkit.org>
2358 Added (QWebFrame|QWebView)::textZoomFactor.
2361 * Api/qwebframe.cpp:
2362 (QWebFrame::setTextZoomFactor):
2363 (QWebFrame::textZoomFactor):
2366 (QWebView::setTextZoomFactor):
2367 (QWebView::textZoomFactor):
2370 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
2374 Added simple scrolling API to QWebFrame.
2376 The intent is that it works similar to QAbstractScrollArea.
2379 * Api/qwebframe.cpp:
2380 (QWebFrame::setScrollBarValue):
2381 (QWebFrame::scrollBarValue):
2382 (QWebFrame::scrollBarMaximum):
2383 (QWebFrame::scrollBarMinimum):
2386 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
2390 Fixes: implement the OpenFrameInNewWindow action.
2394 (QWebPage::triggerAction):
2396 2008-04-15 Andre Poenitz <andre.poenitz@trolltech.com>
2400 Fix compilation with Qt namespaces
2402 Qt can be configured to have all of its classes inside a specified namespaces.
2403 This is for example used in plugin/component environments like Eclipse.
2405 This change makes it possible to let the Qt port compile against a namespaced
2406 Qt by the use of macros Qt provides to properly forward declare Qt classes in
2412 * Api/qwebpluginfactory.h:
2413 * Api/qwebsettings.h:
2416 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
2420 Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard.
2424 (QWebPage::triggerAction):
2426 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
2430 Fixes: Right click, and "Open image" open the link instead of the image.
2435 2008-04-05 Benjamin Meyer <bmeyer@trolltech.com>
2439 Added doc stub for QWebSettings so class docs are generated
2442 * Api/qwebsettings.cpp:
2443 (QWebSettings::QWebSettings):
2445 2008-04-05 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2449 * Propose the addition of updateRequest and scrollRequest to the QWebPage.
2451 * The question is if these signals belong to QWebPage or QWebFrame.
2452 -It is more easy to have them in QWebPage because ScrollView is invoking
2453 the ChromeClient with the right coordinates
2454 -On the other hand someone wants to render frames separately. But this is partly
2455 doomed as you can have overlapping frames and what you paint would not relate to
2456 what you normally see on webpages.
2461 * WebCoreSupport/ChromeClientQt.cpp:
2462 (WebCore::ChromeClientQt::scrollBackingStore):
2463 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2465 2008-04-03 Simon Hausmann <hausmann@webkit.org>
2467 Reviewed by Mark Rowe.
2469 Roll out r31599 and r31605 again after discussion with Mark Rowe.
2471 * Api/qwebframe.cpp:
2473 * Api/qwebsettings.cpp:
2474 (QWebSettings::iconForUrl):
2476 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2480 * Change IconDatabase::iconForPageURL to return more information. E.g. if
2481 an image has been found, or if the loading of an image has been scheduled.
2482 * Update FrameLoader to use another method to trigger reading from disk
2483 * Update the QWebFrame and QWebSettings
2485 * Api/qwebframe.cpp:
2487 * Api/qwebsettings.cpp:
2488 (QWebSettings::iconForUrl):
2490 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2494 * Safari is using the IconDatabase the following way (assumption). Before they
2495 call iconDatabase()->open they "retain" all URLs they are interested in, these
2496 could come from the history.
2497 * When opening the iconDatabase() a thread will be started that is going to import
2498 the URLs, all none manually retained URLs are scheduled for removal. The removal
2499 is going to happen when the next icon gets stored in the database.
2500 * We do not have any IconDatabase code, we can not retain the URLs before opening the
2501 database. To disable the automatic pruning of the icons we will ask the IconDatabase
2502 to delay this operation. This means our IconDatabase, when used, will grow, so we should
2503 try to have a IconDatabase class in 4.4.
2504 * The only way to counter the growth is a call to QWebSettings::clearIconDatabase
2507 * Api/qwebsettings.cpp:
2508 (QWebSettings::clearIconDatabase):
2509 * Api/qwebsettings.h:
2511 2008-04-03 Benjamin Meyer <bmeyer@trolltech.com>
2515 Add a way to get the site icon for a url
2516 static QPixmap iconForUrl(const QUrl &url);
2519 * Api/qwebsettings.cpp:
2520 (QWebSettings::iconForUrl):
2521 * Api/qwebsettings.h:
2523 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2527 * Update the Copyright info in QWebSettings
2530 * Api/qwebsettings.cpp:
2531 * Api/qwebsettings.h:
2533 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2537 * The isEmpty check is not needed anymore with the earlier backport
2540 * Api/qwebframe.cpp:
2543 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2547 * For the http tests we need the output of the FrameLoaderClient. The QtWebKit API
2548 is not exporting enough to create the output in DRT itself. Settle with the approach
2549 Lars has taken for the Editing support and add branches to our FrameLoaderClient code.
2550 * run-webkit-tests http/tests(/loading) can now be executed.
2551 * For tests in loading/ directories we are going to throw away the dirty
2552 QWebPage to start with something clean.
2555 * WebCoreSupport/FrameLoaderClientQt.cpp:
2556 (qt_dump_frame_loader):
2557 (drtDescriptionSuitableForTestResult):
2558 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
2559 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
2560 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2561 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
2562 (WebCore::FrameLoaderClientQt::dispatchWillClose):
2563 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2564 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2565 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2566 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
2567 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2568 (WebCore::FrameLoaderClientQt::registerForIconNotification):
2569 (WebCore::FrameLoaderClientQt::setMainDocumentError):
2570 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2572 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2576 * Export the PageCache and Cache capacity call one to one. This is only there
2577 to allow the QtLauncher to play with caching.
2578 * TODO: make API decisions and consider following the windows Api to set a WebCacheModel
2579 and determine certain values automatically.
2582 * Api/qwebsettings.cpp:
2583 (QWebSettings::setPageCacheCapacity):
2584 (QWebSettings::setObjectCacheCapacities):
2585 * Api/qwebsettings.h:
2586 * QtLauncher/main.cpp:
2588 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2592 Prepapre everything for enabling the PageCache for the Qt Platform:
2593 * Claim that we can cache pages
2594 * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using
2595 the initial size of the viewport and stop creating it in the QWebFramePrivate::init
2597 Differences to the Windows port:
2598 * attachToWindow/detachFromWindow is not called and is not (yet) part
2599 of Widget/ScrollView of the Qt platform. We might need that for plugin
2600 support in the future.
2601 * We store the margin's and scrolling flag inside QWebFrame and use it when
2602 creating the FrameView.
2605 * API to call pageCache()->setCapacity(XYZ);
2608 * Api/qwebframe.cpp:
2609 (QWebFramePrivate::init):
2610 * Api/qwebframe_p.h:
2611 (QWebFramePrivate::QWebFramePrivate):
2613 (QWebPagePrivate::createMainFrame):
2614 * WebCoreSupport/FrameLoaderClientQt.cpp:
2615 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2616 (WebCore::FrameLoaderClientQt::blockedError):
2618 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2622 * For the PageCache support we do not want to create a FrameView in the constructor
2623 of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will
2624 create a QWebFrame if no mainFrame is present and this gets called when we try to
2625 create a FrameView...
2626 * Keep a copy of the initial viewportSize around and use it if we do not have a Frame
2631 (QWebPagePrivate::QWebPagePrivate):
2632 (QWebPage::triggerAction):
2635 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2639 * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port
2641 * WebCoreSupport/FrameLoaderClientQt.cpp:
2644 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2648 * Attempt to make the m_webFrame null pointer checking consistent. Always check for
2649 m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame
2650 call and should stay valid until the destruction of the QWebFrame.
2651 * Currently the same checking is not needed for m_frame as it will only set to 0 in
2652 FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame
2656 * WebCoreSupport/FrameLoaderClientQt.cpp:
2657 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2658 (WebCore::FrameLoaderClientQt::setMainDocumentError):
2659 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
2660 (WebCore::FrameLoaderClientQt::objectContentType):
2661 (WebCore::FrameLoaderClientQt::createPlugin):
2663 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2667 * Get the RefCounting of WebCore::Frame right and make sure that both QWebFrame
2668 and WebCore::Frame get destroyed if we leave site with subframes and on the
2669 end of the application.
2670 * Use adoptRef in FrameLoaderClientQt::createFrame to get the refs right for subframes. We
2671 do not want to add an extra reference. Without this we are leaking subframes.
2672 * Assume that the lifetime of a Frame and FrameLoader are the same, when the Frame is gone
2673 we want to destroy the QWebFrame (e.g. on a page with subframes). Add delete m_webFrame
2674 in the frameLoaderDestroyed method to do that.
2675 * If we happen to delete the QWebFrame before the FrameLoaderClientQt we set m_webFrame to
2676 zero in the FrameLoaderClientQt to avoid bad things.
2679 * Api/qwebframe.cpp:
2680 (QWebFrame::~QWebFrame):
2681 * WebCoreSupport/FrameLoaderClientQt.cpp:
2682 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2683 (WebCore::FrameLoaderClientQt::objectContentType):
2684 * WebCoreSupport/FrameLoaderClientQt.h:
2686 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2690 * Do not save a RefPtr to the frame. The FrameLoaderClient, Frame and
2691 QWebFrame should have the same lifetime everything else is a leak
2694 * Api/qwebframe.cpp:
2695 (QWebFramePrivate::init):
2696 * Api/qwebframe_p.h:
2697 * WebCoreSupport/FrameLoaderClientQt.cpp:
2699 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2703 * Do not store the QWebFrame associated with a ScrollView/FrameView
2704 in the WebCore::Widget.
2705 * Instead of asking the Widget for the QWebFrame use the QWebFramePrivate::core
2706 and QWebFramePrivate::kit function to convert from and to QWebFrame.
2709 * Api/qwebframe.cpp:
2710 (QWebFramePrivate::init):
2712 (QWebPagePrivate::createMainFrame):
2714 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2718 * Do not store the FrameView in the QWebFrame and cope with the situation when
2719 a WebCore::Frame has no WebCore::FrameView.
2722 * Api/qwebframe.cpp:
2723 (QWebFramePrivate::init):
2724 (QWebFramePrivate::horizontalScrollBar):
2725 (QWebFramePrivate::verticalScrollBar):
2726 (QWebFrame::innerText):
2727 (QWebFrame::renderTreeDump):
2728 (QWebFrame::setVerticalScrollBarPolicy):
2729 (QWebFrame::setHorizontalScrollBarPolicy):
2730 (QWebFrame::render):
2731 (QWebFrame::layout):
2733 * Api/qwebframe_p.h:
2734 (QWebFramePrivate::QWebFramePrivate):
2736 (QWebPagePrivate::updateEditorActions):
2737 (QWebPagePrivate::mouseMoveEvent):
2738 (QWebPagePrivate::mousePressEvent):
2739 (QWebPagePrivate::mouseDoubleClickEvent):
2740 (QWebPagePrivate::contextMenuEvent):
2741 (QWebPagePrivate::wheelEvent):
2742 (QWebPage::triggerAction):
2743 * WebCoreSupport/FrameLoaderClientQt.cpp:
2745 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2749 * Change the order of the methods to match with the FrameLoaderClient.h to ease
2750 removing methods in the future.
2752 * WebCoreSupport/FrameLoaderClientQt.h:
2754 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2758 * Remove virtuals in the FrameLoaderClientQt that don't exist in the base class.
2760 * WebCoreSupport/FrameLoaderClientQt.cpp:
2761 (WebCore::FrameLoaderClientQt::detachedFromParent4):
2762 * WebCoreSupport/FrameLoaderClientQt.h:
2764 2008-03-25 Brady Eidson <beidson@apple.com>
2768 Remove newly obsolete FrameLoaderClient methods
2770 * WebCoreSupport/FrameLoaderClientQt.cpp:
2771 * WebCoreSupport/FrameLoaderClientQt.h:
2773 2008-03-22 Mark Rowe <mrowe@apple.com>
2777 * WebCoreSupport/FrameLoaderClientQt.cpp:
2780 2008-03-18 Simon Hausmann <hausmann@webkit.org>
2784 Fix the Qt build. Don't return void in non-void functions.
2786 * Api/qwebpluginfactory.cpp:
2787 (QWebPluginFactory::extension):
2789 2008-03-16 Thiago Macieira <thiago.macieira@trolltech.com>
2793 Don't use RefPtr in classes you haven't seen the implementation of.
2795 Forward-declaration and declaration of RefPtr<Foo> is ok. But you
2796 cannot *use* said objects until Foo is defined. This is true even for
2797 initialisation with a 0.
2799 Seems the HP aCC compiler is more strict here than gcc.
2801 * Api/qwebframe_p.h:
2803 2008-03-14 Simon Hausmann <hausmann@webkit.org>
2807 * Api/qwebframe.cpp:
2808 (QWebFrame::setHtml):
2809 (QWebFrame::setContent):
2811 2008-03-13 Simon Hausmann <hausmann@webkit.org>
2815 * Api/qwebframe.cpp:
2816 (QWebFrame::addToJSWindowObject):
2818 2008-03-12 Simon Hausmann <hausmann@webkit.org>
2820 Fix compilation against Qt 4.3
2826 2008-03-11 Rodney Dawes <dobey@wayofthemonkey.com>
2830 * WebCoreSupport/FrameLoaderClientQt.cpp:
2831 (FrameLoaderClientQt::CreatePlugin):
2833 2008-03-11 Simon Hausmann <hausmann@webkit.org>
2835 Fix the Qt build (silly typo).
2837 * QtLauncher/main.cpp:
2838 (MainWindow::MainWindow):
2840 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
2844 Moved obscuring progress bar to the lower right corner.
2846 * QtLauncher/main.cpp:
2847 (MainWindow::MainWindow):
2848 (MainWindow::resizeEvent):
2850 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
2854 Added reload action and grouped stop and reload actions together.
2856 * QtLauncher/main.cpp:
2857 (MainWindow::MainWindow):
2859 2008-03-11 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2863 * Set a Icon on the QAction if we have one.
2868 2008-03-11 Simon Hausmann <hausmann@webkit.org>
2872 * Api/qwebframe.cpp:
2873 (QWebFrame::addToJSWindowObject):
2875 2008-03-07 Simon Hausmann <hausmann@webkit.org>
2881 Replaced the QWebObjectPlugin interfaces with QWebPluginFactory.
2883 * Api/qwebnetworkinterface.cpp:
2884 (QWebNetworkManager::add):
2885 (QWebNetworkManager::cancel):
2886 (QWebNetworkManager::started):
2887 (QWebNetworkManager::data):
2888 (QWebNetworkManager::finished):
2889 * Api/qwebnetworkinterface_p.h:
2890 (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
2891 * Api/qwebobjectplugin.cpp: Removed.
2892 * Api/qwebobjectplugin.h: Removed.
2893 * Api/qwebobjectplugin_p.h: Removed.
2894 * Api/qwebobjectpluginconnector.cpp: Removed.
2895 * Api/qwebobjectpluginconnector.h: Removed.
2897 (QWebPagePrivate::QWebPagePrivate):
2898 (QWebPage::setPluginFactory):
2899 (QWebPage::pluginFactory):
2902 * Api/qwebpluginfactory.cpp: Added.
2903 (QWebPluginFactory::QWebPluginFactory):
2904 (QWebPluginFactory::~QWebPluginFactory):
2905 (QWebPluginFactory::refreshPlugins):
2906 (QWebPluginFactory::extension):
2907 * Api/qwebpluginfactory.h: Added.
2909 * WebCoreSupport/FrameLoaderClientQt.cpp:
2910 (WebCore::FrameLoaderClientQt::objectContentType):
2911 (WebCore::FrameLoaderClientQt::createPlugin):
2913 2008-03-07 Simon Hausmann <hausmann@webkit.org>
2917 * Api/qwebframe.cpp:
2919 2008-03-04 Sam Weinig <sam@webkit.org>
2921 Reviewed by Mark Rowe.
2923 - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
2926 * Api/qwebframe.cpp:
2927 (QWebFrame::addToJSWindowObject):
2929 2008-03-04 Mark Rowe <mrowe@apple.com>
2931 Another go at fixing the Qt build.
2933 * Api/qwebframe.cpp:
2934 (QWebFrame::addToJSWindowObject):
2936 2008-02-24 Darin Adler <darin@apple.com>
2940 - remove separate client calls for "standard" and "reload' history
2942 * WebCoreSupport/FrameLoaderClientQt.cpp:
2943 (WebCore::FrameLoaderClientQt::updateGlobalHistory):
2944 * WebCoreSupport/FrameLoaderClientQt.h:
2946 2008-02-24 Darin Adler <darin@apple.com>
2948 - another try at fixing the build
2950 * Api/qwebframe.cpp:
2951 (QWebFrame::load): Replace new FormData with FormData::create.
2953 2008-02-22 Sam Weinig <sam@webkit.org>
2957 * Api/qwebhistoryinterface.cpp:
2959 2008-02-22 Sam Weinig <sam@webkit.org>
2961 Rubber-stamped by Adam Roben.
2963 Rid the project of the Devil known as DeprecatedString!
2965 * Api/qwebhistory.cpp:
2966 * Api/qwebhistoryinterface.cpp:
2968 2008-02-18 Darin Adler <darin@apple.com>
2972 * Api/qwebnetworkinterface.cpp:
2973 (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString.
2975 2008-01-24 David Boddie <dboddie@trolltech.com>
2979 Documentation tidying.
2982 * Api/qwebframe.cpp:
2983 * Api/qwebhistoryinterface.cpp:
2986 2008-01-24 Jarek Kobus <jkobus@trolltech.com>
2990 Text for translations were used wrongly as comments
2993 * WebCoreSupport/FrameLoaderClientQt.cpp:
2995 (WebCore::FrameLoaderClientQt::cannotShowURLError):
2996 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2997 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2998 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2999 (WebCore::FrameLoaderClientQt::shouldFallBack):
3001 2008-01-24 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3005 * We have a KURL->QUrl conversion on KURL itself, make use of it.
3006 * This conversion is supposed to be loss-free
3009 * Api/qwebframe.cpp:
3011 2008-01-23 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3013 * Rubber stamped by Simon
3015 * Fix leaking of sub frames (WebCore::Frame). We keep one reference too many.
3016 This was found while working on the page-cache, other ports are not affected.
3018 * WebCoreSupport/FrameLoaderClientQt.cpp:
3019 (WebCore::FrameLoaderClientQt::createFrame):
3021 2008-01-23 Rohan McGovern <rohan.mcgovern@trolltech.com>
3023 Reviewed by Simon Hausmann <hausmann@webkit.org>.
3025 Fix Qtopia compilation with QT_NO_TOOLTIP
3028 * WebCoreSupport/ChromeClientQt.cpp:
3029 (WebCore::ChromeClientQt::print):
3031 2008-01-23 Geir Vattekar <gvatteka@trolltech.com>
3035 Doc: Replaced \code with snippets in the docs
3040 2008-01-23 Benjamin Meyer <bmeyer@trolltech.com>
3044 Tweak key presses even to match commonly expected behavior
3045 - space key == page down
3046 - page down moved down not a page, but slightly less then a page so you don't loose your spot when reading.
3047 - Use font height rather then a hard coded "10" for left, right, up, down
3048 - Ctrl-Up moves to the top of the page
3049 - Ctrl-Down move to the bottom of the page
3050 - Backspace == GoBack
3051 - Shift-Backspace == GoForward
3055 (dropActionToDragOp):
3056 (dragOpToDropAction):
3057 (QWebPagePrivate::keyPressEvent):
3059 2008-01-23 Simon Hausmann <hausmann@webkit.org>
3063 Implemented FrameLoaderClient::startDownload() and FrameLoaderClient::download().
3065 Added two signals to QWebPage to handle downloading of links and handling of
3066 unsupported content.
3070 (QWebPage::triggerAction):
3072 * WebCoreSupport/FrameLoaderClientQt.cpp:
3073 (WebCore::FrameLoaderClientQt::download):
3074 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
3075 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
3076 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
3077 (WebCore::FrameLoaderClientQt::willUseArchive):
3079 2008-01-22 Lars Knoll <lars@trolltech.com>
3083 setup a family for cursive and fantasy fonts as well.
3086 * Api/qwebsettings.cpp:
3087 (QWebSettings::QWebSettings):
3089 2008-01-22 Benjamin Meyer <bmeyer@trolltech.com>
3093 Implement ChromeClientQt::setToolTip
3094 Implement ChromeClientQt::mouseDidMoveOverElement
3099 * WebCoreSupport/ChromeClientQt.cpp:
3100 (WebCore::ChromeClientQt::ChromeClientQt):
3101 (WebCore::ChromeClientQt::focus):
3102 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3103 (WebCore::ChromeClientQt::setToolTip):
3104 (WebCore::ChromeClientQt::print):
3105 * WebCoreSupport/ChromeClientQt.h:
3107 2008-01-21 Darin Adler <darin@apple.com>
3109 Reviewed by John Sullivan.
3111 - updated for changes to ChromeClient database functions
3113 * WebCoreSupport/ChromeClientQt.cpp:
3114 (WebCore::ChromeClientQt::exceededDatabaseQuota):
3115 * WebCoreSupport/ChromeClientQt.h:
3117 2008-01-21 Benjamin Meyer <bmeyer@trolltech.com>
3121 Change QWebHistoryInterface::addHistoryEntry() from const to non-const
3124 * Api/qwebhistoryinterface.h:
3126 2008-01-21 Adam Treat <treat@kde.org>
3130 * Don't leak the d-pointer in QWebSettings.
3133 * Api/qwebsettings.cpp:
3134 (QWebSettings::~QWebSettings):
3136 2008-01-21 Simon Hausmann <hausmann@webkit.org>
3140 Update the WebKit version number from WebKit/win/WebKit.vcproj/VERSION.
3142 This has the fortunate side-effect that gmail sends us sensible HTML/JS again :)
3147 2008-01-21 Simon Hausmann <hausmann@webkit.org>
3151 Fix focus chain handling and cycling through focusable objects (links) using tab/backtab.
3153 * Fix GraphicsContext::drawFocusRing to also draw single focus rects.
3154 * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events
3155 and make the return value depend on whether we successfully determined a focusable
3157 * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly
3158 if we could not handle the focus chain ourselves.
3159 * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus.
3160 * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only
3161 used to control the situation of stepping out of the focus chain inside the page.
3162 * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain.
3163 The layout tests expect this to be disabled but for the user it seems sensible to have it
3164 on by default, hence the default in qwebsettings.cpp
3168 (QWebPage::focusNextPrevChild):
3169 * Api/qwebsettings.cpp:
3170 (QWebSettings::QWebSettings):
3171 * Api/qwebsettings.h:
3173 (QWebView::QWebView):
3174 (QWebView::focusNextPrevChild):
3175 * WebCoreSupport/ChromeClientQt.cpp:
3176 (WebCore::ChromeClientQt::canTakeFocus):
3177 (WebCore::ChromeClientQt::takeFocus):
3179 2008-01-18 Simon Hausmann <hausmann@webkit.org>
3183 Coding style fixes and added a comment about the include order.
3187 2008-01-18 Marius Storm-Olsen <marius@trolltech.com>
3189 Reviewed by Simon Hausmann <hausmann@webkit.org>.
3191 Add use of precompiled header, when building inside Qt.
3193 Compiling WebKit was taking forever; 17 minutes on my machine for _one_ build! Adding the PCH at least brings it down to 12 minutes for one build, for me.
3196 * WebKit_pch.h: Added.
3198 2008-01-18 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3202 * Ask the WebCore::IconDatabase only if our URL is not empty. Otherwise
3203 we will see a crash in a HashSet.
3204 * It is crashing there because the StringImpl of an empty String is 0.
3205 * We avoid this crash by checking for isEmpty() in WebKit as there is no
3206 use to ask the iconDatabase for an empty string. We will fallback to the
3210 * Api/qwebframe.cpp:
3213 2008-01-17 Simon Hausmann <hausmann@webkit.org>
3217 Minor documentation fixes
3220 * Api/qwebframe.cpp:
3223 2008-01-17 Simon Hausmann <shausman@trolltech.com>
3227 Fix form elements not focusing correctly after the qt widget lost its focus.
3229 When receiving a focus out event notify the focus controller. Otherwise its
3230 m_focusedFrame variable remains unchanged and setFocusedFrame on a focusIn
3231 event shortcuts and doesn't call setActive(true).
3236 2008-01-17 Simon Hausmann <shausman@trolltech.com>
3240 Lots of updates to the documentation.
3243 * Api/qwebframe.cpp:
3244 * Api/qwebhistory.cpp:
3246 (QWebPagePrivate::dropEvent):
3247 (QWebPage::history):
3249 (QWebPage::triggerAction):
3250 (QWebPage::viewportSize):
3251 (QWebPage::navigationRequested):
3254 (QWebPageContext::targetFrame):
3258 2008-01-17 Simon Hausmann <shausman@trolltech.com>
3262 Added a urlChanged signals to QWebFrame and QWebView.
3265 * Api/qwebframe.cpp:
3268 (QWebView::setPage):
3270 * WebCoreSupport/FrameLoaderClientQt.cpp:
3272 2008-01-17 Simon Hausmann <shausman@trolltech.com>
3276 Fixed docs and sanity checks in QWebSettings::setIconDatabaseEnabled
3279 * Api/qwebsettings.cpp:
3280 (QWebSettings::setIconDatabaseEnabled):
3282 2008-01-17 Simon Hausmann <shausman@trolltech.com>
3286 Added QWebView::createWindow() which is forwarded from QWebPage::createWindow() for convenience.
3290 (QWebPage::createWindow):
3292 (QWebView::createWindow):
3295 2008-01-17 Lars Knoll <lars@trolltech.com>
3299 add a 0 pointer check.
3301 Fixes a crash in the demo web browser.
3303 * WebCoreSupport/FrameLoaderClientQt.cpp:
3304 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
3306 2008-01-17 Simon Hausmann <hausmann@webkit.org>
3310 Fix QWebFrame::title().
3312 For the titleChanged() signal we use the documentloader's title. For the property we have to use the same
3313 instead of Document::title() as the latter is not trimmed and not suited for a window caption.
3316 * Api/qwebframe.cpp:
3319 2008-01-17 Simon Hausmann <hausmann@webkit.org>
3321 Reviewed by Maciej, Lars, Holger.
3323 http://bugs.webkit.org/show_bug.cgi?id=16589
3325 Add a document parameter to WebCore::cookies, setCookies and cookiesEnabled.
3327 * Api/qwebnetworkinterface.cpp:
3328 (QWebNetworkRequestPrivate::init):
3329 (QWebNetworkManager::started):
3331 2008-01-17 Warwick Allison <warwick@trolltech.com>
3333 Reviewed by Simon Hausmann <hausmann@webkit.org>.
3335 Follow QWidget::keyPressEvent advice and call parents.
3337 Without this, Back does not work in Qtopia, for example.
3341 (QWebView::keyPressEvent):
3342 (QWebView::keyReleaseEvent):
3344 2008-01-17 Simon Hausmann <hausmann@webkit.org>
3348 Fix compilation against Qt 4.3 after the recent KURL <> QUrl conversion fixes.
3350 * Api/qwebnetworkinterface.cpp:
3351 (QWebNetworkManager::started):
3353 2008-01-17 Simon Hausmann <shausman@trolltech.com>
3357 Fix compilation against Qt 4.4 without files that are specific for the Qt 4.3 build.
3360 * Api/qwebframe.cpp:
3362 * WebCoreSupport/FrameLoaderClientQt.cpp:
3364 2008-01-17 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
3366 Reviewed by Simon Hausmann <hausmann@webkit.org>.
3368 Fixes compilation with QT_NO_DRAGANDDROP
3374 (QWebView::dragEnterEvent):
3375 (QWebView::dragLeaveEvent):
3376 (QWebView::dragMoveEvent):
3377 (QWebView::dropEvent):
3379 2008-01-17 Simon Hausmann <hausmann@webkit.org>
3383 Fix compilation, removed obsolete privateBrowsingEnabled() method.
3385 * WebCoreSupport/FrameLoaderClientQt.cpp:
3387 2008-01-16 Lars Knoll <lars@trolltech.com>
3389 Reviewed by Simon Hausmann <simon.hausmann@trolltech.com>.
3391 Removed a whole bunch of notImplemented() warnings.
3393 I don't want to hide the real warnings in lots of things that
3394 I am by now pretty certain we won't need.
3397 * WebCoreSupport/FrameLoaderClientQt.cpp:
3398 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
3399 (WebCore::FrameLoaderClientQt::canShowMIMEType):
3401 2008-01-16 Simon Hausmann <hausmann@webkit.org>
3405 Fix crash when bringing up the context menu on maps.google.com.
3407 If the website provides its own context menu then we don't have a ContextMenu pointer.
3411 (QWebPagePrivate::contextMenuEvent):
3413 2008-01-16 Simon Hausmann <hausmann@webkit.org>
3417 Don't crash when receiving all sorts of events on a default constructed QWebView without a page.
3420 (QWebView::mouseMoveEvent):
3421 (QWebView::mousePressEvent):
3422 (QWebView::mouseDoubleClickEvent):
3423 (QWebView::mouseReleaseEvent):
3424 (QWebView::contextMenuEvent):
3425 (QWebView::wheelEvent):
3426 (QWebView::keyPressEvent):
3427 (QWebView::keyReleaseEvent):
3428 (QWebView::focusInEvent):
3429 (QWebView::focusOutEvent):
3430 (QWebView::dragEnterEvent):
3431 (QWebView::dragLeaveEvent):
3432 (QWebView::dragMoveEvent):
3433 (QWebView::dropEvent):
3434 (QWebView::focusNextPrevChild):
3436 2008-01-16 Simon Hausmann <hausmann@webkit.org>
3440 Made the url property read-write.
3444 2008-01-16 Simon Hausmann <hausmann@webkit.org>
3448 Don't crash when showing a default initialized QWebView that has no page/frame yet.
3451 (QWebView::paintEvent):
3453 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
3457 Change hoveringOverLink implementation to have less issues.
3459 * Currently we only compare a pointer. In the worst case we
3460 could delete the Element we have pointed to and a new one
3461 gets the same address. But even if that doesn't happen the
3462 WebCore::Element is mutable and JavaScript could change the
3463 URL, Title or Content. So we have to compare all these three
3465 * This does not seem to be a performance impact.
3469 (QWebPagePrivate::mouseMoveEvent):
3472 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
3476 * Move the hoverElement from QWebFrame to QWebPage. As it is
3480 * Api/qwebframe_p.h:
3481 (QWebFramePrivate::QWebFramePrivate):
3483 (QWebPagePrivate::mouseMoveEvent):
3486 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
3490 EventHandler changes/fixes in QWebPage:
3491 -mouse{Press,Move,Release}Event:
3492 Send the event always to the mainFrame of the QWebPage.
3494 -contextMenuEvent, key{Press,Release}Event:
3495 Send the event to the focused frame.
3497 This is following the Windows port and fixes a issue with the
3498 Web Inspector where we were sending the events to a wrong frame.
3500 It is guaranteed that the mainFrame will always have an eventHandler
3501 and frameView set. There is no need to check for this in QWebPage.
3504 * Api/qwebframe.cpp:
3505 (QWebFramePrivate::init):
3506 * Api/qwebframe_p.h:
3507 (QWebFramePrivate::QWebFramePrivate):
3509 (QWebPagePrivate::updateEditorActions):
3510 (QWebPagePrivate::mouseMoveEvent):
3511 (QWebPagePrivate::mousePressEvent):
3512 (QWebPagePrivate::mouseDoubleClickEvent):
3513 (QWebPagePrivate::mouseReleaseEvent):
3514 (QWebPagePrivate::contextMenuEvent):
3515 (QWebPagePrivate::wheelEvent):
3516 (QWebPagePrivate::keyPressEvent):
3517 (QWebPagePrivate::keyReleaseEvent):
3518 (QWebPagePrivate::focusInEvent):
3521 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
3525 * Add core and kit functions to QWebFramePrivate to convert from
3526 QWebFrame to WebCore::Frame and vice versa.
3529 * Api/qwebframe.cpp:
3530 (QWebFramePrivate::core):
3531 (QWebFramePrivate::kit):
3533 * Api/qwebframe_p.h:
3535 2008-01-16 Lars Knoll <lars@trolltech.com>
3539 add conversion methods from and to QUrl to KURL.
3541 Use them in the places I found at the moment. Fixes a bug
3542 where form data was encoded twice.
3543 Also fix QWebSettings to take a QUrl for the user style sheet
3547 * Api/qwebframe.cpp:
3550 (QWebPage::createPlugin):
3552 (QWebPage::triggerAction):
3553 * Api/qwebsettings.cpp:
3554 (QWebSettingsPrivate::apply):
3555 * Api/qwebsettings.h:
3556 * WebCoreSupport/ChromeClientQt.cpp:
3557 (WebCore::ChromeClientQt::createWindow):
3558 (WebCore::ChromeClientQt::show):
3560 2008-01-16 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3564 * Make the InspectorClientView inherit from QWebView instead of QWidget. This
3565 way paintEvent, mouse{Press,Release}Event and other events get forwarded to
3566 the QWebPage/WebInspector automatically.
3569 * WebCoreSupport/InspectorClientQt.cpp:
3570 (WebCore::InspectorClientWebPage::createWindow):
3571 (WebCore::InspectorClientView::InspectorClientView):
3573 2008-01-10 Maciej Stachowiak <mjs@apple.com>
3577 - remove SecurityOriginData and fold its functionality into SecurityOrigin
3579 * WebCoreSupport/ChromeClientQt.cpp:
3580 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
3581 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
3582 * WebCoreSupport/ChromeClientQt.h:
3584 2008-01-10 Lars Knoll <lars@trolltech.com>
3588 document QWebHistory
3591 * Api/qwebhistory.cpp:
3592 (QWebHistoryItem::QWebHistoryItem):
3593 (QWebHistoryItem::operator=):
3594 (QWebHistoryItem::~QWebHistoryItem):
3595 (QWebHistoryItem::originalUrl):
3596 (QWebHistoryItem::currentUrl):
3597 (QWebHistoryItem::title):
3598 (QWebHistoryItem::icon):
3599 (QWebHistory::canGoBack):
3600 (QWebHistory::canGoForward):
3601 (QWebHistory::goBack):
3602 (QWebHistory::goForward):
3603 (QWebHistory::goToItem):
3604 * Api/qwebhistory.h:
3606 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3610 Make the reset() functions not do anything on the default QWebSettings object.
3613 * Api/qwebsettings.cpp:
3614 (QWebSettings::resetFontSize):
3615 (QWebSettings::resetFontFamily):
3616 (QWebSettings::clearAttribute):
3618 2008-01-10 Lars Knoll <lars@trolltech.com>
3622 rename QWebPageHistory to QWebHistory.
3625 * Api/qwebhistory.cpp: Added.
3626 (QWebHistoryItem::QWebHistoryItem):
3627 (QWebHistoryItem::operator=):
3628 (QWebHistoryItem::~QWebHistoryItem):
3629 (QWebHistoryItem::originalUrl):
3630 (QWebHistoryItem::currentUrl):
3631 (QWebHistoryItem::title):
3632 (QWebHistoryItem::lastVisited):
3633 (QWebHistoryItem::icon):
3634 (QWebHistory::QWebHistory):
3635 (QWebHistory::~QWebHistory):
3636 (QWebHistory::clear):
3637 (QWebHistory::items):
3638 (QWebHistory::backItems):
3639 (QWebHistory::forwardItems):
3640 (QWebHistory::canGoBack):
3641 (QWebHistory::canGoForward):
3642 (QWebHistory::goBack):
3643 (QWebHistory::goForward):
3644 (QWebHistory::goToItem):
3645 (QWebHistory::backItem):
3646 (QWebHistory::currentItem):
3647 (QWebHistory::forwardItem):
3648 (QWebHistory::itemAtIndex):
3649 * Api/qwebhistory.h: Added.
3650 * Api/qwebhistory_p.h: Added.
3651 (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
3652 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
3653 (QWebHistoryPrivate::QWebHistoryPrivate):
3654 (QWebHistoryPrivate::~QWebHistoryPrivate):
3656 (QWebPagePrivate::QWebPagePrivate):
3659 * Api/qwebpagehistory.cpp: Removed.
3660 * Api/qwebpagehistory.h: Removed.
3661 * Api/qwebpagehistory_p.h: Removed.
3665 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3669 Documentation for QWebSettings
3672 * Api/qwebsettings.cpp:
3673 (QWebSettings::~QWebSettings):
3674 (QWebSettings::setFontSize):
3675 (QWebSettings::resetFontSize):
3676 (QWebSettings::setUserStyleSheetLocation):
3677 (QWebSettings::userStyleSheetLocation):
3678 (QWebSettings::iconDatabaseEnabled):
3679 (QWebSettings::webGraphic):
3680 (QWebSettings::setFontFamily):
3681 (QWebSettings::resetFontFamily):
3682 (QWebSettings::setAttribute):
3684 2008-01-10 Lars Knoll <lars@trolltech.com>
3688 Document QWebHistoryInterface.
3691 * Api/qwebhistoryinterface.cpp:
3692 (QWebHistoryInterface::defaultInterface):
3693 (QWebHistoryInterface::~QWebHistoryInterface):
3695 2008-01-10 Lars Knoll <lars@trolltech.com>
3699 Documentation for QWebFrame.
3702 * Api/qwebframe.cpp:
3706 (QWebFrame::setHtml):
3707 (QWebFrame::parentFrame):
3708 (QWebFrame::render):
3710 (QWebFrame::geometry):
3712 * Api/qwebframe_p.h:
3714 2008-01-10 Lars Knoll <lars@trolltech.com>
3718 fix the drawing errors that where introduced due to refactoring.
3720 Correctly clip to the rectangle we want to draw in ScrollView::paint().
3723 * Api/qwebframe.cpp:
3724 (QWebFrame::render):
3727 (QWebView::paintEvent):
3728 * WebCoreSupport/ChromeClientQt.cpp:
3729 (WebCore::ChromeClientQt::scrollBackingStore):
3731 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3735 Added a whole bunch of docs for QWebPage and fixed some minor doc glitches in QWebView.
3739 (QWebPagePrivate::dropEvent):
3740 (QWebPage::QWebPage):
3741 (QWebPage::~QWebPage):
3742 (QWebPage::mainFrame):
3743 (QWebPage::currentFrame):
3744 (QWebPage::history):
3745 (QWebPage::setView):
3747 (QWebPage::javaScriptConsoleMessage):
3748 (QWebPage::javaScriptAlert):
3749 (QWebPage::javaScriptConfirm):
3750 (QWebPage::javaScriptPrompt):
3751 (QWebPage::createWindow):
3752 (QWebPage::createModalDialog):
3754 (QWebPage::triggerAction):
3755 (QWebPage::viewportSize):
3756 (QWebPage::navigationRequested):
3757 (QWebPage::selectedText):
3758 (QWebPage::isModified):
3759 (QWebPage::focusNextPrevChild):
3760 (QWebPage::settings):
3761 (QWebPage::networkProxy):
3762 (QWebPage::setNetworkAccessManager):