1 2008-08-05 Tor Arne Vestbø <tavestbo@trolltech.com>
5 Move event handling of the return-key from EditorClientQt to QWebPage.
7 https://bugs.webkit.org/show_bug.cgi?id=20191
9 This is a first step in refactoring the big switch block
10 in EditorClientQt::handleKeyboardEvent to using WebActions
13 The new logic uses two new StandardKeys from QKeySequence:
15 - InsertParagraphSeparator
18 Which translate to the commands InsertNewline and InsertLineBreak
19 respectivly. On Windows/X11 pressing the shift modifier will invoke
20 the latter action. For Mac this is triggered by pressing the meta
23 Initial patch by: Erik Bunce
26 (editorActionForKeyEvent):
28 * WebCoreSupport/EditorClientQt.cpp:
29 (WebCore::EditorClientQt::handleKeyboardEvent):
31 2008-08-04 Erik Bunce <elbunce@thehive.com>
35 https://bugs.webkit.org/show_bug.cgi?id=20221
37 Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline.
38 Add lookup table for mapping web actions to editor commands.
41 (editorCommandForWebActions):
42 (QWebPagePrivate::updateAction):
43 (QWebPagePrivate::updateEditorActions):
44 (QWebPage::triggerAction):
45 (QWebPage::setEditable):
47 2008-08-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
51 A bunch of improvements to the QtLauncher.
54 - Unify and unclutter the toolbar, use menu for addition actions
55 - Simplify URL edit, just use QLineEdit (no fancy close button etc)
56 - Guess the URL from the command line so now we can run ./QtLauncher www.google.com
57 - Shortcut keys for most actions
58 - Simple autocomplete for the URL edit
59 - Actions for zooming, New Window and Close Window
60 - Show Format menu only when the content is set to editable
62 * QtLauncher/main.cpp:
63 (MainWindow::MainWindow):
64 (MainWindow::webPage):
65 (MainWindow::changeLocation):
66 (MainWindow::loadFinished):
67 (MainWindow::showLinkHover):
68 (MainWindow::newWindow):
70 (MainWindow::zoomOut):
71 (MainWindow::resetZoom):
73 (MainWindow::setEditable):
74 (MainWindow::dumpHtml):
75 (MainWindow::setupUI):
78 2008-08-04 Erik Bunce <elbunce@thehive.com>
82 https://bugs.webkit.org/show_bug.cgi?id=20198
84 Allow Copy key sequence to work in non-editable areas.
87 (QWebPagePrivate::keyPressEvent):
89 2008-07-31 Erik Bunce <elbunce@thehive.com>
93 Make sure edit actions get updated when the contents change.
95 * WebCoreSupport/EditorClientQt.cpp:
96 (WebCore::EditorClientQt::respondToChangedContents):
98 2008-07-31 Erik Bunce <elbunce@thehive.com>
102 Add simple edit test abilities to QtLauncher.
104 * QtLauncher/main.cpp:
105 (MainWindow::MainWindow):
106 (MainWindow::setEditable):
107 (MainWindow::dumpHtml):
109 2008-07-31 Alexey Proskuryakov <ap@webkit.org>
111 Rubber-stamped by Maciej.
113 Eliminate JSLock (it was already disabled, removing the stub implementaion and all
117 (QWebFrame::addToJavaScriptWindowObject):
119 2008-07-27 David Kilzer <ddkilzer@apple.com>
121 Fix Qt build failure.
124 (QWebFrame::setScrollOffset): Make argument const.
126 2008-07-26 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
128 Reviewed by Simon Hausmann.
130 https://bugs.webkit.org/show_bug.cgi?id=20010
131 [Qt] Add API access to scrolling
133 * Api/qwebframe.cpp: Added access to a frame scroll offset.
135 (QWebFrame::scrollOffset):
136 (QWebFrame::setScrollOffset):
139 2008-07-26 Daniel Jalkut <jalkut@red-sweater.com>
141 Build fix. Adjust to updated WebCore FrameLoader method names & signatures.
144 (QWebPage::triggerAction):
145 * WebCoreSupport/FrameLoaderClientQt.cpp:
146 (WebCore::FrameLoaderClientQt::createFrame):
148 2008-07-25 Joerg Bornemann <joerg.bornemann@trolltech.com>
152 Compile with QT_NO_PRINTER.
154 * QtLauncher/main.cpp:
155 (MainWindow::MainWindow):
157 2008-07-24 Tor Arne Vestbø <tavestbo@trolltech.com>
161 Don't insert text on keyDown event in EditorClientQt.
163 * WebCoreSupport/EditorClientQt.cpp:
164 (WebCore::EditorClientQt::handleKeyboardEvent):
166 2008-07-04 Benjamin C Meyer <ben@meyerhome.net>
170 Update the webkit version in the QtWebKit useragent string to match trunk
174 2008-07-02 Simon Hausmann <hausmann@webkit.org>
179 (QWebPage::triggerAction): The signature of setBaseWritingDirection
180 changed to take an enum instead of a string.
182 2008-07-01 Alexey Proskuryakov <ap@webkit.org>
186 Disable JSLock for per-thread contexts.
189 (QWebFrame::addToJavaScriptWindowObject):
190 Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
191 Include JSLock.h, as it is no longer brought in implicitly.
193 2008-07-01 Tor Arne Vestbø <tavestbo@trolltech.com>
197 Don't show the tooltip instantly in the QtLauncher.
199 Let the QWebView handle tooltips by itself, so we get
200 the expected delay as everywhere else.
202 * QtLauncher/main.cpp:
204 2008-06-30 Simon Hausmann <hausmann@webkit.org>
206 Rubber-stamped by Niko.
208 Removed the obsolete and unmaintained WebKitPart. The integration of
209 QtWebKit into KDE is now done in the webkitkde component inside KDE.
211 * WebKitPart/WebKitFactory.cpp: Removed.
212 * WebKitPart/WebKitFactory.h: Removed.
213 * WebKitPart/WebKitPart.cpp: Removed.
214 * WebKitPart/WebKitPart.desktop: Removed.
215 * WebKitPart/WebKitPart.h: Removed.
216 * WebKitPart/WebKitPart.rc: Removed.
217 * WebKitPart/WebKitPartBrowser.rc: Removed.
218 * WebKitPart/WebKitPartBrowserExtension.cpp: Removed.
219 * WebKitPart/WebKitPartBrowserExtension.h: Removed.
220 * WebKitPart/WebKitPartClient.cpp: Removed.
221 * WebKitPart/WebKitPartClient.h: Removed.
222 * WebKitPart/WebKitPartInterface.cpp: Removed.
223 * WebKitPart/WebKitPartInterface.h: Removed.
224 * WebKitPart/org.kde.WebKitPart.xml: Removed.
226 2008-06-24 Simon Hausmann <hausmann@webkit.org>
228 Fix the Qt build, added missing include for RuntimeObjectImp.
232 2008-06-23 Benjamin C Meyer <ben@meyerhome.net>
236 Add function to retrieve the standard context menu
238 2008-06-20 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
242 https://bugs.webkit.org/show_bug.cgi?id=19082
243 [Qt] Full-page plugins not activated
245 * WebCoreSupport/FrameLoaderClientQt.cpp:
246 (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a
247 plugin present, as it can be created during the function.
249 2008-06-20 Marco Barisione <marco.barisione@collabora.co.uk>
253 https://bugs.webkit.org/show_bug.cgi?id=19082
254 [Qt] Full-page plugins not activated
256 * WebCoreSupport/FrameLoaderClientQt.cpp:
257 (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the
258 MIME type is supported by a plugin.
260 2008-06-18 Alexey Proskuryakov <ap@webkit.org>
264 Prepare JavaScript heap for being per-thread.
267 (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build.
269 2008-06-18 Julien Chaffraix <jchaffraix@webkit.org>
271 Qt Build fix after r34627.
273 * WebCoreSupport/FrameLoaderClientQt.cpp:
274 (WebCore::FrameLoaderClientQt::createPlugin):
276 2008-06-15 Darin Adler <darin@apple.com>
278 - give Frame object functions shorter names: scriptProxy() -> script(),
279 selectionController() -> selection(), animationController() -> animation()
282 (QWebFrame::evaluateJavaScript):
284 (QWebPagePrivate::focusInEvent):
285 (QWebPagePrivate::focusOutEvent):
286 (QWebPage::inputMethodQuery):
287 * WebCoreSupport/EditorClientQt.cpp:
288 (WebCore::EditorClientQt::handleKeyboardEvent):
290 2008-06-15 Darin Adler <darin@apple.com>
292 - new names for more JavaScriptCore files
296 2008-06-15 Darin Adler <darin@apple.com>
298 - new names for a few key JavaScriptCore files
302 2008-06-14 Darin Adler <darin@apple.com>
304 Rubber stamped by Sam.
306 - new names for kjs_binding.h and kjs_proxy.h
309 (QWebFrame::evaluateJavaScript):
312 2008-06-14 Darin Adler <darin@apple.com>
317 (QWebFramePrivate::init): Added a missing semicolon.
319 2008-06-14 Darin Adler <darin@apple.com>
323 - more https://bugs.webkit.org/show_bug.cgi?id=17257
324 start ref counts at 1 instead of 0 for speed
327 (QWebFramePrivate::init): Use create instead of new.
328 * WebCoreSupport/FrameLoaderClientQt.cpp:
329 (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
331 2008-06-13 Darin Adler <darin@apple.com>
335 * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument.
337 2008-06-13 Darin Adler <darin@apple.com>
339 Reviewed by John Sullivan.
341 - updated for addition of FormState argument to action policy functions
343 * WebCoreSupport/FrameLoaderClientQt.cpp:
344 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
345 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
347 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
351 Fix left-click and middle-click mouse event are not properly accepted.
353 When copying or pasting text using left or middle-click, the event must be
354 accepted so that it will not be potentially processed further by the parent
355 and/or sub-classed widget.
359 (QWebPagePrivate::mouseReleaseEvent):
361 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
365 Fix input element does not accept character typed in using AltGr.
367 EditorClient is modified to catch AltGr and Ctrl+Alt key combination.
368 This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry
370 * WebCoreSupport/EditorClientQt.cpp:
371 (WebCore::EditorClientQt::handleKeyboardEvent):
373 2008-05-26 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
377 https://bugs.webkit.org/show_bug.cgi?id=19323
379 Implemented the QWebPage::editable property.
381 Small documentation fixes by Simon.
384 (QWebPagePrivate::QWebPagePrivate):
385 (QWebPage::setEditable):
386 (QWebPage::isEditable):
388 * Api/qwebpage_p.h: implement the editable property and add API so that
389 applications can switch edit mode on and off for a particular QWebPage
390 * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the
391 QWebPage instead of always returning false
393 2008-06-09 Tor Arne Vestbø <tavestbo@trolltech.com>
397 Make sure web action in context menus have the right enablement,
398 while not messing up other web actions not included in the menu.
401 (QWebPagePrivate::createContextMenu):
402 (QWebPage::updatePositionDependentActions):
405 2008-06-09 Benjamin C Meyer <ben@meyerhome.net>
409 Add Shift-Space shortcut to go up one screen, the opposite of Space
410 which goes down one screen.
413 (QWebPagePrivate::handleScrolling):
415 2008-06-04 Tor Arne Vestbø <tavestbo@trolltech.com>
419 Fix a failing assertion when calling QWebFrame::evaluateJavaScript.
421 The starting line number has to be 1 instead of 0.
424 (QWebFrame::evaluateJavaScript):
426 2008-06-03 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
430 * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains(). This
431 function is not used anywhere internally and is only a convenience
432 function that can still be accomplished using
433 QWebHistoryInterface::historyContains();
435 2008-05-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
439 Doc: Mention the requirement of a QApplication with QtWebKit
444 2008-05-29 David Boddie <dboddie@trolltech.com>
448 Some clarifications for the documentation.
452 * Api/qwebpluginfactory.cpp:
454 2008-05-27 Ariya Hidayat <ariya.hidayat@trolltech.com>
458 Fix web inspector does not returns its state properly after its window is minimized.
460 As hinted by Holger, InspectorClientView::hideEvent is not needed.
461 This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967
463 * WebCoreSupport/InspectorClientQt.cpp:
465 2008-05-21 Siraj Razick <siraj.razick@collabora.co.uk>
469 Add <param name="classid"/> support for application/x-qt-object plugins
471 * WebCoreSupport/FrameLoaderClientQt.cpp:
472 (WebCore::FrameLoaderClientQt::createPlugin):
474 2008-05-13 Andy Shaw <andy@trolltech.com>
478 Fixes: QWebHistory::forward() should go forwards and not back
480 * Api/qwebhistory.cpp:
482 2008-05-12 Alexey Proskuryakov <ap@webkit.org>
484 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify
485 SquirrelFish merging.
488 (QWebFrame::addToJavaScriptWindowObject):
490 2008-05-09 Thiago Macieira <tjmaciei@trolltech.com>
494 Fix bad includes in QtWebKit public headers.
496 Make sure to include qglobal.h using the QtCore prefix so that an explicit
497 include/QtCore is not needed in the application's build system. Also make sure
498 that qwebsettings.h includes the local qwebkitglobal.h.
501 * Api/qwebkitglobal.h:
502 * Api/qwebsettings.h:
504 2008-05-08 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
508 https://bugs.webkit.org/show_bug.cgi?id=18935
510 Based on work by Sriram Neelakandan for the Gtk port.
512 * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize
513 m_hasSentResponseToPlugin.
514 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
515 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
517 2008-05-08 Warwick Allison <warwick@trolltech.com>
521 Fixes: WebKit expects initial input method state to be *disabled*.
523 At least QWS does not need the initial input method state to be forced to
524 enabled, but other platforms (esp. X11) do. Until fixed/tested on those
525 platforms, this is specific to QWS.
529 (QWebView::QWebView):
531 2008-05-06 Simon Hausmann <hausmann@webkit.org>
535 Fix logic error in QWebHitTestResult::isNull().
539 2008-05-02 Benjamin Meyer <bmeyer@trolltech.com>
543 Doc: Mention that you have to enable plugins in QWebSettings for them to work.
547 2008-05-02 Simon Hausmann <hausmann@webkit.org>
549 Fix the Qt build, ExecState is required here.
552 (QWebFrame::addToJavaScriptWindowObject):
554 2008-05-01 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
556 Reviewed by Alp Toker.
557 Qt parts OK'ed by Simon Hausmann.
559 https://bugs.webkit.org/show_bug.cgi?id=14750
560 Added support for NPAPI plugins on Gtk and Qt-x11 ports.
562 * WebCoreSupport/FrameLoaderClientQt.cpp:
563 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
564 (WebCore::FrameLoaderClientQt::finishedLoading):
565 (WebCore::FrameLoaderClientQt::setMainDocumentError):
566 (WebCore::FrameLoaderClientQt::committedLoad):
567 (WebCore::FrameLoaderClientQt::objectContentType):
568 (WebCore::FrameLoaderClientQt::createPlugin):
569 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
570 * WebCoreSupport/FrameLoaderClientQt.h:
572 2008-04-30 Julien Chaffraix <jchaffraix@webkit.org>
576 Fixes a brace error that made Qt 4.4 build but not Qt 4.3.
581 2008-04-30 Tor Arne Vestbø <tavestbo@trolltech.com>
585 In focusIn and focusOut event always update the active state of the
586 focus controller. Fixes ~400 failing layout tests due to missing
587 editing callbacks that relied on the correct focus.
590 (QWebPagePrivate::focusInEvent):
591 (QWebPagePrivate::focusOutEvent):
593 2008-04-29 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
597 Fix compilation with QT_NO_PRINTER
603 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
607 Ensure that relative URL is converted to absolute URL.
609 This is necessary because loading a relative URL is not really supported
610 (the web page may load, but the subsequent URLs for images and links will
611 not be resolved properly).
612 This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484
620 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
624 Simplification of Qt Launcher (no animation and use standard progress bar widget)
626 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.
629 * QtLauncher/main.cpp:
630 (MainWindow::MainWindow):
632 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
636 Update the cursor when the frame/page loading is finished.
638 This fixes https://bugs.webkit.org/show_bug.cgi?id=18712
641 * WebCoreSupport/FrameLoaderClientQt.cpp:
642 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
643 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
645 2008-04-29 Simon Hausmann <shausman@trolltech.com>
649 Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links.
651 Call QWebPage::acceptNavigationRequest when the creation of a new window with
652 URL is requested. The frame pointer is set to null in this case.
656 (QWebPage::setViewportSize):
657 * WebCoreSupport/FrameLoaderClientQt.cpp:
658 (WebCore::FrameLoaderClientQt::startDownload):
659 (WebCore::FrameLoaderClientQt::createFrame):
661 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
665 Use the WebCore facility to do the scrolling. Move some code around.
668 (QWebPagePrivate::keyPressEvent):
669 (QWebPagePrivate::shortcutOverrideEvent):
670 (QWebPagePrivate::handleScrolling):
673 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
677 fix potential crash when loading image(s)
679 Crash may occur. If compiled with 4.3, the variable is not initialized.
682 (QWebPagePrivate::QWebPagePrivate):
684 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
688 Calling QWebView::setCursor will override the WebCore Cursor.
689 Calling QWebView::setCursor will override the WebCore Cursor using
690 QWidget::unsetCursor will revert to the WebCore Cursor.
692 For detecting the unset we have to compare the shape of the
693 cursor to the default arrow. Qt::WA_SetCursor can not be used
694 as it is set unconditionally but conditionally removed.
696 Calling QWidget::setCursor will immediately send the CursorChange
697 event. We listen to this event to decide if we currently use a
698 WebCore cursor, got a cursor from outside, or revert to the default.
700 This should be race free and work reliable, the manual test for this
701 is WebCore/manual-tests/cursor.html
704 (SetCursorEvent::SetCursorEvent):
707 (QWebViewPrivate::QWebViewPrivate):
708 (QWebViewPrivate::setCursor):
709 (QWebView::QWebView):
712 2008-04-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
718 - Fixed a qdoc warning
719 - Mention that fav icons can be of arbitrary size
720 - Fix signature of QWebPage::acceptNavigationRequest show in the documentation
725 * Api/qwebsettings.cpp:
728 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
732 Fix QWebView::loadFinished isn't always emitted
734 Replaced loadDone() with loadFinished(bool) and moved the signals for progress
735 tracking (start, progres, and finish) to the page instead of the frame. This
736 ensures that we emit loadFinished even when a subframe started the actual load.
738 This causes a few regressions in the layout tests that we for now accept for
739 the sake of the correct API. Layout tests we can fix any time though, including
740 patch release, the API however we can't change anymore in patch releases.
745 (QWebPage::totalBytes):
750 * QtLauncher/main.cpp:
751 (MainWindow::MainWindow):
752 * WebCoreSupport/FrameLoaderClientQt.cpp:
753 (drtDescriptionSuitableForTestResult):
754 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
755 (WebCore::FrameLoaderClientQt::setFrame):
756 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
757 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
758 (WebCore::FrameLoaderClientQt::willChangeTitle):
759 (WebCore::FrameLoaderClientQt::createDocumentLoader):
760 (WebCore::FrameLoaderClientQt::download):
761 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
762 * WebCoreSupport/FrameLoaderClientQt.h:
764 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
768 Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame
771 * Api/qwebpluginfactory.cpp:
772 * Api/qwebsettings.cpp:
773 (QWebSettings::QWebSettings):
774 (QWebSettings::setUserStyleSheetUrl):
775 (QWebSettings::iconForUrl):
776 (QWebSettings::webGraphic):
777 (QWebSettings::maximumPagesInCache):
778 (QWebSettings::setFontFamily):
779 (QWebSettings::resetFontFamily):
780 (QWebSettings::testAttribute):
781 (QWebSettings::resetAttribute):
783 2008-04-28 Ariya Hidayat <ahidayat@trolltech.com>
787 Fix document/frame title not reset when loading a new URI
789 We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle()
790 will be called very soon with the correct title.
791 This properly resets the title when we navigate to a URI without a title.
794 * WebCoreSupport/FrameLoaderClientQt.cpp:
796 2008-04-28 David Boddie <dboddie@trolltech.com>
800 Minor documentation changes.
804 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
808 Prevent middle-click from triggering open URL from clipboard when the event has already been accepted.
812 (QWebPagePrivate::mouseMoveEvent):
813 (QWebPagePrivate::mousePressEvent):
814 (QWebPagePrivate::mouseDoubleClickEvent):
815 (QWebPagePrivate::mouseTripleClickEvent):
816 (QWebPagePrivate::mouseReleaseEvent):
818 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
822 Fix scrollbar behavior in QtWebKit to match QScrollBar.
824 Right click context menu is now supported, along with
825 middle click to center slider thumb over mouse cursor.
829 (QWebPage::linkDelegationPolicy):
831 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
835 Implemented channel-based logging for QtWebKit.
837 Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable.
838 Warnings for notImplemented() is still output by default, but can be disabled
839 by setting DISABLE_NI_WARNINGS=1.
842 (QWebPagePrivate::QWebPagePrivate):
844 2008-04-28 Simon Hausmann <shausman@trolltech.com>
846 Rubber-stamped by Lars
848 Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API.
855 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
859 Doc - adding more documentation to QWebFrame, QWebPage and QWebView
867 (QWebView::changeEvent):
869 2008-04-28 Simon Hausmann <shausman@trolltech.com>
873 Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens
875 Give the popups the right parent widget and the right coordinates relative within the parent.
880 2008-04-28 Benjamin Meyer <bmeyer@trolltech.com>
884 Doc: Add see also's (and a few minor whitespace/typo corrections)
888 (QWebFrame::~QWebFrame):
889 (QWebFrame::setHtml):
890 (QWebFrame::setContent):
891 (QWebFrame::parentFrame):
892 (QWebFrame::childFrames):
893 (QWebFrame::setScrollBarValue):
894 (QWebFrame::scrollBarValue):
895 (QWebFrame::scrollBarMaximum):
896 (QWebFrame::scrollBarMinimum):
899 (QWebFrame::geometry):
901 (QWebFrame::evaluateJavaScript):
903 (QWebPagePrivate::mousePressEvent):
904 (QWebPagePrivate::mouseDoubleClickEvent):
905 (QWebPage::~QWebPage):
906 (QWebPage::javaScriptPrompt):
908 (QWebPage::setViewportSize):
909 (QWebPage::acceptNavigationRequest):
911 (QWebPage::userAgentForUrl):
912 (QWebPagePrivate::_q_onLoadProgressChanged):
916 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
920 Submitting more documentation for QWebPage
925 2008-04-28 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
929 Compile when QT_NO_CLIPBOARD is defined.
933 (QWebPage::triggerAction):
935 2008-04-28 David Boddie <dboddie@trolltech.com>
939 Minor documentation fix.
942 * Api/qwebhistory.cpp:
944 2008-04-28 Holger Hans Peter Freyther <zecke@selfish.org>
948 Implement QWebPage::createPlugin
950 The code is coming from the demo browser and needed here
951 for some manual tests.
954 * QtLauncher/QtLauncher.pro:
955 * QtLauncher/main.cpp:
956 (WebPage::createPlugin):
958 2008-04-28 Simon Hausmann <hausmann@webkit.org>
960 Qt/Win build fix. Include config.h to get the implicit MathExtras.h
961 inclusion correct with regards to rand_s.
963 * Api/qwebhistory.cpp:
965 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
969 https://bugs.webkit.org/show_bug.cgi?id=18713
971 Fix scrollbar painting issues in QtWebKit.
973 Hovering and click-draging outside of the scrollbar would
974 produce unexpected and inconcistent results. We also didn't
975 pass on leave-events to the underlying WebKit code, which
976 was nessecary to implement the paint fix.
978 Note: The event handling of the Leave event should be moved
979 out of QWebView::event() and into a proper override for 4.5.
982 (QWebPagePrivate::leaveEvent):
987 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
989 Reviewed by Simon, Holger.
991 Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus.
993 * Correctly de- and reactivate the focused frame in focusOut/focusInEvent
994 without telling the focus controller. We don't want to change the focused frame
995 - the controller has to remember it in fact - but instead just deactivate the
996 frame for correct painting as RenderTheme::isFocused() uses the activation
1000 (QWebPagePrivate::focusInEvent):
1001 (QWebPagePrivate::focusOutEvent):
1003 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
1007 completed documentation for the Detailed Description section for QWebView
1012 2008-04-25 Denis Dzyubenko <denis.dzyubenko@trolltech.com>
1016 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.
1019 * Api/qwebhistory.cpp:
1020 (QWebHistory::back):
1021 (QWebHistory::forward):
1022 (QWebHistory::goToItem):
1024 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
1028 Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest().
1031 * WebCoreSupport/FrameLoaderClientQt.cpp:
1032 (WebCore::FrameLoaderClientQt::createFrame):
1034 2008-04-25 Simon Hausmann <hausmann@webkit.org>
1038 When pressing backspace in a line edit in a webpage we should not go back to the previous page.
1040 The shortcut for back on Windows is backspace. Implemented shortcut override
1041 handling in QWebView/QWebPage to prevent this.
1045 (QWebPagePrivate::wheelEvent):
1046 (editorActionForKeyEvent):
1047 (QWebPagePrivate::keyPressEvent):
1048 (QWebPagePrivate::inputMethodEvent):
1049 (QWebPagePrivate::shortcutOverrideEvent):
1055 2008-04-25 Ariya Hidayat <ariya.hidayat@trolltech.com>
1059 Fix triple-clicking does not work in a web page
1063 (QWebPagePrivate::updateEditorActions):
1064 (QWebPagePrivate::timerEvent):
1065 (QWebPagePrivate::mousePressEvent):
1066 (QWebPagePrivate::mouseDoubleClickEvent):
1067 (QWebPage::undoStack):
1070 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1074 When pressing Ctrl-Up the keyboard modifiers could include other modifiers
1078 (QWebPagePrivate::keyPressEvent):
1080 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
1084 Fix handling of Javascript's confirm() function in QtWebKit.
1089 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
1093 Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity
1098 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1102 QWebPage: missing signal when window.print() is requested from javascript
1107 * WebCoreSupport/ChromeClientQt.cpp:
1109 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1113 Fixes: "Save Image" action wasn't doing anything.
1117 (QWebPage::triggerAction):
1119 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1123 Apply key event changes to the current frame, not the main frame.
1125 Example: hitting space bar should scroll current frame, not the main frame
1126 which doesn't even have a scrollbar.
1130 (QWebPagePrivate::keyPressEvent):
1132 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1136 Fixes: QWebFrame crash when fetching the icon
1138 Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock.
1140 * Api/qwebframe.cpp:
1142 2008-04-25 Warwick Allison <warwick@trolltech.com>
1146 Fixes: Scrollbars did not report correct maximum.
1148 * Api/qwebframe.cpp:
1150 2008-04-25 David Boddie <dboddie@trolltech.com>
1154 Documentation updates for some of the QWeb classes
1156 * Api/qwebframe.cpp:
1157 * Api/qwebhistory.cpp:
1158 * Api/qwebsettings.cpp:
1161 2008-04-25 Holger Hans Peter Freyther <zecke@selfish.org>
1165 Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html
1167 Similar to Editing and Frameloading we do the dumping within WebCore
1170 * WebCoreSupport/FrameLoaderClientQt.cpp:
1171 (qt_dump_frame_loader):
1172 (qt_dump_resource_load_callbacks):
1173 (drtDescriptionSuitableForTestResult):
1174 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
1175 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
1176 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
1178 2008-04-24 Anders Carlsson <andersca@apple.com>
1182 Change some String arguments to be const references instead.
1184 * WebCoreSupport/EditorClientQt.cpp:
1185 (WebCore::EditorClientQt::shouldInsertText):
1186 * WebCoreSupport/EditorClientQt.h:
1188 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
1192 Cosmetic changes to make the code more readable.
1193 -Early exit if we don't have a webview
1194 -handle the empty tooltip and non-empty tooltip case separately
1197 * WebCoreSupport/ChromeClientQt.cpp:
1198 (WebCore::ChromeClientQt::setToolTip):
1199 (WebCore::ChromeClientQt::print):
1201 2008-04-24 Paul Olav Tvete <paul@trolltech.com>
1205 Automatically wrap tooltip text and hide a shown tooltip when it is empty.
1207 QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds.
1208 Workaround as discussed with Matthias.
1210 * WebCoreSupport/ChromeClientQt.cpp:
1211 (WebCore::ChromeClientQt::setToolTip):
1213 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
1217 Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0)
1219 * Api/qwebsettings.cpp:
1220 (QWebSettings::setObjectCacheCapacities):
1222 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
1226 Improve keyboard scrolling
1228 Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom.
1232 (QWebPagePrivate::keyPressEvent):
1234 2008-04-24 Olivier Goffart <ogoffart@trolltech.com>
1238 Fix various compiler warnings in the Qt port.
1240 * Api/qwebframe.cpp:
1242 * Api/qwebsettings.cpp:
1244 * WebCoreSupport/FrameLoaderClientQt.cpp:
1245 (WebCore::FrameLoaderClientQt::createPlugin):
1247 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
1251 Cleaned up copyright headers (removed misplaced class descriptions and
1252 fixed inconsistent whitespace and indentation).
1254 * Api/qwebframe.cpp:
1256 * Api/qwebframe_p.h:
1257 * Api/qwebhistory.cpp:
1258 * Api/qwebhistory.h:
1259 * Api/qwebhistory_p.h:
1260 * Api/qwebhistoryinterface.cpp:
1261 * Api/qwebhistoryinterface.h:
1262 * Api/qwebkitglobal.h:
1263 * Api/qwebnetworkinterface.cpp:
1264 * Api/qwebnetworkinterface.h:
1265 * Api/qwebnetworkinterface_p.h:
1269 * Api/qwebpluginfactory.cpp:
1270 * Api/qwebpluginfactory.h:
1271 * Api/qwebsettings.cpp:
1272 * Api/qwebsettings.h:
1274 * QtLauncher/main.cpp:
1276 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
1280 Added basic URL guessing to QtLauncher (same as in the demo browser).
1283 * QtLauncher/main.cpp:
1284 (MainWindow::changeLocation):
1285 (MainWindow::guessUrlFromString):
1287 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
1289 Reviewed by Simon Hausmann <hausmann@webkit.org>.
1291 Prevent double deletions of the default web interface.
1294 * Api/qwebhistoryinterface.cpp:
1295 (gCleanupInterface):
1296 (QWebHistoryInterface::QWebHistoryInterface):
1298 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1300 Fix compilation against Qt 4.3
1303 (QWebPage::userAgentForUrl):
1304 * QtLauncher/main.cpp:
1307 2008-04-23 Holger Hans Peter Freyther <zecke@selfish.org>
1311 * Make sure the "Inspect Element" item gets added to the ContextMenu, a call
1312 to ContextMenu::populate() is not adding it, the ContextMenuController does
1313 add it after the call to populate(). Do that as well.
1317 (QWebPage::updatePositionDependentActions):
1319 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1323 Fix crashes on window.close().
1325 We should not delete the QWebPage object in the ChromeClient but leave it up to
1326 the application when and whether to delete a browser window. For this we now
1327 emit the windowCloseRequested() signal.
1333 * QtLauncher/main.cpp:
1334 (MainWindow::MainWindow):
1335 * WebCoreSupport/ChromeClientQt.cpp:
1337 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1341 Fix parsing of external scripts/stylesheets when using setHtml(const QString &html).
1343 We used to pass the html string to the frameloader in utf-16, which also meant that the default
1344 encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8
1345 by default. This is now also documented.
1347 * Api/qwebframe.cpp:
1348 (QWebFrame::setHtml):
1351 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
1355 Fixes background color propagation when using a custom QWebPage
1357 Set the palette in setPage(), not during the creation on-demand.
1362 (QWebView::setPage):
1364 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
1368 Fix the user agent on the mac to be BSD4
1370 Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac
1374 (QWebPage::userAgentForUrl):
1376 2008-04-23 Simon Hausmann <shausman@trolltech.com>
1380 Added missing copyright notice.
1381 Small fixes to the documentation.
1383 * Api/qwebpluginfactory.cpp:
1385 2008-04-23 Zack Rusin <zack@tungstengraphics.com>
1389 Added a contentsSize() property.
1391 * Api/qwebframe.cpp:
1392 (QWebFrame::contentsSize):
1393 (QWebFrame::hitTestContent):
1396 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1400 Fixes: QWebPage's QNetworkManager's can be shared among webpages.
1402 Don't force the deletion of the object, but let QObject take care of it.
1406 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1410 Documentation for QWebPluginFactory and documentation updates for QWebPage.
1413 (QWebPage::setLinkDelegationPolicy):
1414 (QWebPage::linkDelegationPolicy):
1415 (QWebPage::swallowContextMenuEvent):
1416 (QWebPage::updatePositionDependentActions):
1417 (QWebPage::extension):
1418 (QWebPage::networkAccessManager):
1419 * Api/qwebpluginfactory.cpp:
1420 (QWebPluginFactory::QWebPluginFactory):
1421 (QWebPluginFactory::~QWebPluginFactory):
1422 (QWebPluginFactory::refreshPlugins):
1424 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1428 Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions.
1432 (QWebPagePrivate::QWebPagePrivate):
1433 (QWebPagePrivate::mouseReleaseEvent):
1434 (QWebPage::setLinkDelegationPolicy):
1435 (QWebPage::linkDelegationPolicy):
1436 (QWebPage::swallowContextMenuEvent):
1437 (QWebPage::updatePositionDependentActions):
1443 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1447 Added Extension APIs for QWebPage.
1450 (QWebPage::setLinkDelegationPolicy):
1451 (QWebPage::linkDelegationPolicy):
1452 (QWebPage::extension):
1454 * Api/qwebpluginfactory.cpp:
1455 (QWebPluginFactory::extension):
1457 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
1461 Emit loadProgress() signal on loadStarted().
1464 * WebCoreSupport/FrameLoaderClientQt.cpp:
1465 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
1467 2008-04-22 Zack Rusin <zack@kde.org>
1471 Fix background propagation from the QWebView's palette.
1473 The background brush of the palette needs to be propagated to the WebCore::FrameView.
1475 * Api/qwebframe.cpp:
1476 (QWebFramePrivate::updateBackground):
1477 * Api/qwebframe_p.h:
1479 (QWebPagePrivate::dropEvent):
1480 (QWebPage::setPalette):
1485 (QWebView::changeEvent):
1487 * WebCoreSupport/FrameLoaderClientQt.cpp:
1489 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1495 We have to include a version in the Safari tag in the user-agent.
1498 (QWebPage::userAgentForUrl):
1500 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
1504 Add visual focusing hint for clear button and
1505 change focus to web page after user enters new URL.
1507 * QtLauncher/main.cpp:
1508 (ClearButton::paintEvent):
1509 (MainWindow::changeLocation):
1511 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1515 Added QWebFrame::hitTestContent() and QWebHitTestResult.
1517 * Api/qwebframe.cpp:
1518 (QWebFrame::hitTestContent):
1520 (QWebHitTestResult::QWebHitTestResult):
1521 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1522 (QWebHitTestResult::operator=):
1523 (QWebHitTestResult::~QWebHitTestResult):
1524 (QWebHitTestResult::isNull):
1525 (QWebHitTestResult::pos):
1526 (QWebHitTestResult::title):
1527 (QWebHitTestResult::linkText):
1528 (QWebHitTestResult::linkUrl):
1529 (QWebHitTestResult::linkTitle):
1530 (QWebHitTestResult::linkTargetFrame):
1531 (QWebHitTestResult::alternateText):
1532 (QWebHitTestResult::imageUrl):
1533 (QWebHitTestResult::pixmap):
1534 (QWebHitTestResult::isContentEditable):
1535 (QWebHitTestResult::isContentSelected):
1536 (QWebHitTestResult::frame):
1538 * Api/qwebframe_p.h:
1539 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1541 (QWebPagePrivate::contextMenuEvent):
1542 (QWebPage::triggerAction):
1546 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1550 Don't crash if an input method query is done without a page.
1554 (QWebView::inputMethodQuery):
1556 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1560 Added re-implementations of QObject::event for future safety.
1562 This makes it easier to fix bugs with the event handling even in patch releases
1563 and is a general style we follow in Qt.
1566 * Api/qwebframe.cpp:
1572 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1576 Fix construction of the user agent.
1578 The user-agent is now composed of
1579 * the platform and subplatform
1580 * the Qt version or application name and version (if set)
1586 (QWebPage::networkAccessManager):
1587 (QWebPage::setPluginFactory):
1588 (QWebPage::pluginFactory):
1589 (QWebPage::userAgentForUrl):
1590 * QtLauncher/main.cpp:
1592 2008-04-22 Thiago Macieira <tjmaciei@trolltech.com>
1596 Fixes: Pedantic compilation fix
1598 Don't put semi-colons after braces closing namespaces.
1600 * Api/qwebsettings.h:
1602 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1606 Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant.
1608 * Api/qwebframe.cpp:
1609 (QWebFrame::evaluateJavaScript):
1612 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1616 Fixes redundant "Fonts" submenu in default lineedits that has only disabled items.
1618 Don't show sub-menus that have only actions that are disabled.
1621 (QWebPagePrivate::createContextMenu):
1623 2008-04-21 Kavindra Devi Palaraja <kdpalara@trolltech.com>.
1627 Lots of documentation fixes, fixed all qdoc warnings.
1629 * Api/qwebframe.cpp:
1630 (QWebFrame::setTextSizeMultiplier):
1631 * Api/qwebhistoryinterface.cpp:
1632 (gCleanupInterface):
1633 (QWebHistoryInterface::QWebHistoryInterface):
1634 (QWebHistoryInterface::~QWebHistoryInterface):
1636 (QWebPage::inputMethodQuery):
1638 (QWebPage::javaScriptConsoleMessage):
1639 (QWebPage::javaScriptAlert):
1640 (QWebPage::javaScriptConfirm):
1641 (QWebPage::javaScriptPrompt):
1642 (QWebPage::viewportSize):
1643 (QWebPage::acceptNavigationRequest):
1646 (QWebPage::focusNextPrevChild):
1647 (QWebPage::setForwardUnsupportedContent):
1648 (QWebPage::setLinkDelegationPolicy):
1649 (QWebPage::findText):
1650 (QWebPage::settings):
1651 (QWebPage::networkProxy):
1652 (QWebPage::setNetworkAccessManager):
1654 * Api/qwebsettings.cpp:
1655 (QWebSettings::QWebSettings):
1656 (QWebSettings::setIconDatabasePath):
1657 (QWebSettings::iconForUrl):
1658 (QWebSettings::fontFamily):
1663 2008-04-21 Marius Bugge Monsen <mmonsen@trolltech.com>
1667 Fix compile failure on solaris-cc
1669 * Api/qwebpage.h: Removed trailing semicolons and moved the private
1670 d-pointer to not confuse the compiler
1672 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1676 Build fix for Qt 4.3
1678 * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is
1679 always defined. Do this by adding defines to the compiler line
1680 * For users of our API this is not feasible. Every public header file should
1681 include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE
1682 when we are building everything < 4.4.0 and don't have them defined.
1684 * Api/qwebkitglobal.h:
1686 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1690 * Initialize the WebGraphics with the one found in WebCore
1693 * Api/qwebsettings.cpp:
1694 (QWebSettingsPrivate::apply):
1696 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1700 * Allow TextAreas to be resized.
1701 * No QWebSettings for this is introduced.
1704 * Api/qwebsettings.cpp:
1705 (QWebSettingsPrivate::apply):
1707 2008-04-21 Simon Hausmann <shausman@trolltech.com>
1711 Fixes: QWebView::url property behaviour strange in designer
1713 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.
1715 * Api/qwebframe.cpp:
1716 (QWebFrame::setUrl):
1722 2008-04-21 Andre Poenitz <andre.poenitz@trolltech.com>
1724 Reviewed by Simon Hausmann <hausmann@webkit.org>.
1726 Fix compilation with Qt namespaces
1728 * Api/qwebframe.cpp:
1732 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1736 When printing on high resolution printers we need to scale the painter accordingly (for now).
1738 * Api/qwebframe.cpp:
1741 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1745 Provide a print preview in the QtLauncher
1747 * QtLauncher/main.cpp:
1748 (MainWindow::MainWindow):
1749 (MainWindow::showLinkHover):
1750 (MainWindow::print):
1752 2008-04-20 Simon Hausmann <hausmann@webkit.org>
1754 Reviewed by Alp Toker.
1756 Share the printing code between the Gtk and the Qt port
1757 and added printing to the Qt WebKit API.
1759 * Api/qwebframe.cpp:
1766 2008-04-19 Julien Chaffraix <jchaffraix@webkit.org>
1768 Qt build fix (renderer() -> contentRenderer()).
1770 * Api/qwebframe.cpp:
1771 (QWebFrame::renderTreeDump):
1772 (QWebFrame::render):
1774 2008-04-18 Simon Hausmann <hausmann@webkit.org>
1778 Many API changes and additions after a full review with Jasmin Blanchette <jasmin@trolltech.com>
1780 The diff is too big to mention the changes individually, but most of the changes were of cosmetic
1781 nature where methods or enums have been renamed or prefixed/suffixed according to the consistency
1782 rules of the Qt API.
1784 * Api/qwebframe.cpp:
1785 (QWebFrame::addToJavaScriptWindowObject):
1786 (QWebFrame::toHtml):
1787 (QWebFrame::toPlainText):
1789 (QWebFrame::setContent):
1790 (QWebFrame::setScrollBarPolicy):
1791 (QWebFrame::render):
1792 (QWebFrame::setTextSizeMultiplier):
1793 (QWebFrame::textSizeMultiplier):
1796 * Api/qwebhistory.cpp:
1797 * Api/qwebhistory.h:
1799 (QWebPagePrivate::QWebPagePrivate):
1800 (QWebPagePrivate::~QWebPagePrivate):
1801 (QWebPagePrivate::acceptNavigationRequest):
1802 (webActionForContextMenuAction):
1803 (QWebPagePrivate::updateAction):
1804 (QWebPagePrivate::keyPressEvent):
1806 (QWebPage::javaScriptPrompt):
1807 (QWebPage::createWindow):
1808 (QWebPage::triggerAction):
1809 (QWebPage::setViewportSize):
1810 (QWebPage::acceptNavigationRequest):
1812 (QWebPage::focusNextPrevChild):
1813 (QWebPage::setForwardUnsupportedContent):
1814 (QWebPage::forwardUnsupportedContent):
1815 (QWebPage::setLinkDelegationPolicy):
1816 (QWebPage::findText):
1817 (QWebPage::networkAccessManager):
1818 (QWebPageContext::imageUrl):
1819 (QWebPageContext::image):
1822 * Api/qwebsettings.cpp:
1823 (QWebSettingsPrivate::apply):
1824 (QWebSettings::QWebSettings):
1825 (QWebSettings::setIconDatabasePath):
1826 (QWebSettings::iconDatabasePath):
1827 (QWebSettings::clearIconDatabase):
1828 (QWebSettings::iconForUrl):
1829 (QWebSettings::setWebGraphic):
1830 (QWebSettings::fontFamily):
1831 (QWebSettings::setAttribute):
1832 (QWebSettings::testAttribute):
1833 (QWebSettings::resetAttribute):
1834 * Api/qwebsettings.h:
1836 (QWebView::setPage):
1838 (QWebView::setTextSizeMultiplier):
1839 (QWebView::textSizeMultiplier):
1840 (QWebView::findText):
1842 (QWebView::mouseMoveEvent):
1844 * QtLauncher/main.cpp:
1845 (MainWindow::MainWindow):
1847 * WebCoreSupport/ChromeClientQt.cpp:
1848 (WebCore::ChromeClientQt::ChromeClientQt):
1849 (WebCore::ChromeClientQt::setWindowRect):
1850 (WebCore::ChromeClientQt::toolbarsVisible):
1851 (WebCore::ChromeClientQt::setStatusbarVisible):
1852 (WebCore::ChromeClientQt::statusbarVisible):
1853 (WebCore::ChromeClientQt::setScrollbarsVisible):
1854 (WebCore::ChromeClientQt::setResizable):
1855 (WebCore::ChromeClientQt::scrollBackingStore):
1856 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
1857 (WebCore::ChromeClientQt::setToolTip):
1858 * WebCoreSupport/ChromeClientQt.h:
1859 * WebCoreSupport/FrameLoaderClientQt.cpp:
1860 (WebCore::FrameLoaderClientQt::setFrame):
1861 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
1862 (WebCore::FrameLoaderClientQt::setMainDocumentError):
1863 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
1864 (WebCore::FrameLoaderClientQt::createFrame):
1865 (WebCore::FrameLoaderClientQt::objectContentType):
1866 * WebCoreSupport/FrameLoaderClientQt.h:
1867 * WebCoreSupport/InspectorClientQt.cpp:
1869 2008-04-18 Simon Hausmann <hausmann@webkit.org>
1873 Added QWebView::find/QWebFrame::find.
1876 (QWebPage::focusNextPrevChild):
1883 2008-04-15 Ariya Hidayat <ariya.hidayat@trolltech.com>
1887 fix potential crash when loading image(s)
1889 Crash may occur. If compiled with 4.3, the variable is not initialized.
1890 This fix solves https://bugs.webkit.org/show_bug.cgi?id=17174
1893 (QWebPagePrivate::QWebPagePrivate):
1895 2008-04-15 Simon Hausmann <hausmann@webkit.org>
1899 Update the micro focus for input methods as soon as the composition mode changes
1900 or the caret/selection changes.
1906 (QWebView::setPage):
1907 * WebCoreSupport/EditorClientQt.cpp:
1908 (WebCore::EditorClientQt::respondToChangedSelection):
1909 (WebCore::EditorClientQt::setInputMethodState):
1911 2008-04-15 Simon Hausmann <hausmann@webkit.org>
1915 Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application,
1916 it yields undefined behaviour or wrong default codec initialization.
1919 * QtLauncher/main.cpp:
1920 (WebPage::createWindow):
1922 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
1926 Fixes: copy to clipboard when selecting, and paste when clicking with the middle button
1929 (QWebPagePrivate::mouseReleaseEvent): If the clipboard supports
1930 selections then we support copy & paste into the selection.
1932 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
1936 Add basic input method support.
1940 (QWebPagePrivate::dropEvent):
1941 (QWebPagePrivate::inputMethodEvent):
1942 (QWebPage::inputMethodQuery):
1947 (QWebView::QWebView):
1948 (QWebView::inputMethodQuery):
1949 (QWebView::inputMethodEvent):
1951 * WebCoreSupport/EditorClientQt.cpp:
1952 (WebCore::EditorClientQt::setInputMethodState):
1954 2008-04-15 Simon Hausmann <hausmann@webkit.org>
1958 Added (QWebFrame|QWebView)::textZoomFactor.
1961 * Api/qwebframe.cpp:
1962 (QWebFrame::setTextZoomFactor):
1963 (QWebFrame::textZoomFactor):
1966 (QWebView::setTextZoomFactor):
1967 (QWebView::textZoomFactor):
1970 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
1974 Added simple scrolling API to QWebFrame.
1976 The intent is that it works similar to QAbstractScrollArea.
1979 * Api/qwebframe.cpp:
1980 (QWebFrame::setScrollBarValue):
1981 (QWebFrame::scrollBarValue):
1982 (QWebFrame::scrollBarMaximum):
1983 (QWebFrame::scrollBarMinimum):
1986 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
1990 Fixes: implement the OpenFrameInNewWindow action.
1994 (QWebPage::triggerAction):
1996 2008-04-15 Andre Poenitz <andre.poenitz@trolltech.com>
2000 Fix compilation with Qt namespaces
2002 Qt can be configured to have all of its classes inside a specified namespaces.
2003 This is for example used in plugin/component environments like Eclipse.
2005 This change makes it possible to let the Qt port compile against a namespaced
2006 Qt by the use of macros Qt provides to properly forward declare Qt classes in
2012 * Api/qwebpluginfactory.h:
2013 * Api/qwebsettings.h:
2016 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
2020 Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard.
2024 (QWebPage::triggerAction):
2026 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
2030 Fixes: Right click, and "Open image" open the link instead of the image.
2035 2008-04-05 Benjamin Meyer <bmeyer@trolltech.com>
2039 Added doc stub for QWebSettings so class docs are generated
2042 * Api/qwebsettings.cpp:
2043 (QWebSettings::QWebSettings):
2045 2008-04-05 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2049 * Propose the addition of updateRequest and scrollRequest to the QWebPage.
2051 * The question is if these signals belong to QWebPage or QWebFrame.
2052 -It is more easy to have them in QWebPage because ScrollView is invoking
2053 the ChromeClient with the right coordinates
2054 -On the other hand someone wants to render frames separately. But this is partly
2055 doomed as you can have overlapping frames and what you paint would not relate to
2056 what you normally see on webpages.
2061 * WebCoreSupport/ChromeClientQt.cpp:
2062 (WebCore::ChromeClientQt::scrollBackingStore):
2063 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2065 2008-04-03 Simon Hausmann <hausmann@webkit.org>
2067 Reviewed by Mark Rowe.
2069 Roll out r31599 and r31605 again after discussion with Mark Rowe.
2071 * Api/qwebframe.cpp:
2073 * Api/qwebsettings.cpp:
2074 (QWebSettings::iconForUrl):
2076 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2080 * Change IconDatabase::iconForPageURL to return more information. E.g. if
2081 an image has been found, or if the loading of an image has been scheduled.
2082 * Update FrameLoader to use another method to trigger reading from disk
2083 * Update the QWebFrame and QWebSettings
2085 * Api/qwebframe.cpp:
2087 * Api/qwebsettings.cpp:
2088 (QWebSettings::iconForUrl):
2090 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2094 * Safari is using the IconDatabase the following way (assumption). Before they
2095 call iconDatabase()->open they "retain" all URLs they are interested in, these
2096 could come from the history.
2097 * When opening the iconDatabase() a thread will be started that is going to import
2098 the URLs, all none manually retained URLs are scheduled for removal. The removal
2099 is going to happen when the next icon gets stored in the database.
2100 * We do not have any IconDatabase code, we can not retain the URLs before opening the
2101 database. To disable the automatic pruning of the icons we will ask the IconDatabase
2102 to delay this operation. This means our IconDatabase, when used, will grow, so we should
2103 try to have a IconDatabase class in 4.4.
2104 * The only way to counter the growth is a call to QWebSettings::clearIconDatabase
2107 * Api/qwebsettings.cpp:
2108 (QWebSettings::clearIconDatabase):
2109 * Api/qwebsettings.h:
2111 2008-04-03 Benjamin Meyer <bmeyer@trolltech.com>
2115 Add a way to get the site icon for a url
2116 static QPixmap iconForUrl(const QUrl &url);
2119 * Api/qwebsettings.cpp:
2120 (QWebSettings::iconForUrl):
2121 * Api/qwebsettings.h:
2123 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2127 * Update the Copyright info in QWebSettings
2130 * Api/qwebsettings.cpp:
2131 * Api/qwebsettings.h:
2133 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2137 * The isEmpty check is not needed anymore with the earlier backport
2140 * Api/qwebframe.cpp:
2143 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2147 * For the http tests we need the output of the FrameLoaderClient. The QtWebKit API
2148 is not exporting enough to create the output in DRT itself. Settle with the approach
2149 Lars has taken for the Editing support and add branches to our FrameLoaderClient code.
2150 * run-webkit-tests http/tests(/loading) can now be executed.
2151 * For tests in loading/ directories we are going to throw away the dirty
2152 QWebPage to start with something clean.
2155 * WebCoreSupport/FrameLoaderClientQt.cpp:
2156 (qt_dump_frame_loader):
2157 (drtDescriptionSuitableForTestResult):
2158 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
2159 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
2160 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2161 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
2162 (WebCore::FrameLoaderClientQt::dispatchWillClose):
2163 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2164 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2165 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2166 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
2167 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2168 (WebCore::FrameLoaderClientQt::registerForIconNotification):
2169 (WebCore::FrameLoaderClientQt::setMainDocumentError):
2170 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2172 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2176 * Export the PageCache and Cache capacity call one to one. This is only there
2177 to allow the QtLauncher to play with caching.
2178 * TODO: make API decisions and consider following the windows Api to set a WebCacheModel
2179 and determine certain values automatically.
2182 * Api/qwebsettings.cpp:
2183 (QWebSettings::setPageCacheCapacity):
2184 (QWebSettings::setObjectCacheCapacities):
2185 * Api/qwebsettings.h:
2186 * QtLauncher/main.cpp:
2188 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2192 Prepapre everything for enabling the PageCache for the Qt Platform:
2193 * Claim that we can cache pages
2194 * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using
2195 the initial size of the viewport and stop creating it in the QWebFramePrivate::init
2197 Differences to the Windows port:
2198 * attachToWindow/detachFromWindow is not called and is not (yet) part
2199 of Widget/ScrollView of the Qt platform. We might need that for plugin
2200 support in the future.
2201 * We store the margin's and scrolling flag inside QWebFrame and use it when
2202 creating the FrameView.
2205 * API to call pageCache()->setCapacity(XYZ);
2208 * Api/qwebframe.cpp:
2209 (QWebFramePrivate::init):
2210 * Api/qwebframe_p.h:
2211 (QWebFramePrivate::QWebFramePrivate):
2213 (QWebPagePrivate::createMainFrame):
2214 * WebCoreSupport/FrameLoaderClientQt.cpp:
2215 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2216 (WebCore::FrameLoaderClientQt::blockedError):
2218 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2222 * For the PageCache support we do not want to create a FrameView in the constructor
2223 of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will
2224 create a QWebFrame if no mainFrame is present and this gets called when we try to
2225 create a FrameView...
2226 * Keep a copy of the initial viewportSize around and use it if we do not have a Frame
2231 (QWebPagePrivate::QWebPagePrivate):
2232 (QWebPage::triggerAction):
2235 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2239 * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port
2241 * WebCoreSupport/FrameLoaderClientQt.cpp:
2244 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2248 * Attempt to make the m_webFrame null pointer checking consistent. Always check for
2249 m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame
2250 call and should stay valid until the destruction of the QWebFrame.
2251 * Currently the same checking is not needed for m_frame as it will only set to 0 in
2252 FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame
2256 * WebCoreSupport/FrameLoaderClientQt.cpp:
2257 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2258 (WebCore::FrameLoaderClientQt::setMainDocumentError):
2259 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
2260 (WebCore::FrameLoaderClientQt::objectContentType):
2261 (WebCore::FrameLoaderClientQt::createPlugin):
2263 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2267 * Get the RefCounting of WebCore::Frame right and make sure that both QWebFrame
2268 and WebCore::Frame get destroyed if we leave site with subframes and on the
2269 end of the application.
2270 * Use adoptRef in FrameLoaderClientQt::createFrame to get the refs right for subframes. We
2271 do not want to add an extra reference. Without this we are leaking subframes.
2272 * Assume that the lifetime of a Frame and FrameLoader are the same, when the Frame is gone
2273 we want to destroy the QWebFrame (e.g. on a page with subframes). Add delete m_webFrame
2274 in the frameLoaderDestroyed method to do that.
2275 * If we happen to delete the QWebFrame before the FrameLoaderClientQt we set m_webFrame to
2276 zero in the FrameLoaderClientQt to avoid bad things.
2279 * Api/qwebframe.cpp:
2280 (QWebFrame::~QWebFrame):
2281 * WebCoreSupport/FrameLoaderClientQt.cpp:
2282 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2283 (WebCore::FrameLoaderClientQt::objectContentType):
2284 * WebCoreSupport/FrameLoaderClientQt.h:
2286 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2290 * Do not save a RefPtr to the frame. The FrameLoaderClient, Frame and
2291 QWebFrame should have the same lifetime everything else is a leak
2294 * Api/qwebframe.cpp:
2295 (QWebFramePrivate::init):
2296 * Api/qwebframe_p.h:
2297 * WebCoreSupport/FrameLoaderClientQt.cpp:
2299 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2303 * Do not store the QWebFrame associated with a ScrollView/FrameView
2304 in the WebCore::Widget.
2305 * Instead of asking the Widget for the QWebFrame use the QWebFramePrivate::core
2306 and QWebFramePrivate::kit function to convert from and to QWebFrame.
2309 * Api/qwebframe.cpp:
2310 (QWebFramePrivate::init):
2312 (QWebPagePrivate::createMainFrame):
2314 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2318 * Do not store the FrameView in the QWebFrame and cope with the situation when
2319 a WebCore::Frame has no WebCore::FrameView.
2322 * Api/qwebframe.cpp:
2323 (QWebFramePrivate::init):
2324 (QWebFramePrivate::horizontalScrollBar):
2325 (QWebFramePrivate::verticalScrollBar):
2326 (QWebFrame::innerText):
2327 (QWebFrame::renderTreeDump):
2328 (QWebFrame::setVerticalScrollBarPolicy):
2329 (QWebFrame::setHorizontalScrollBarPolicy):
2330 (QWebFrame::render):
2331 (QWebFrame::layout):
2333 * Api/qwebframe_p.h:
2334 (QWebFramePrivate::QWebFramePrivate):
2336 (QWebPagePrivate::updateEditorActions):
2337 (QWebPagePrivate::mouseMoveEvent):
2338 (QWebPagePrivate::mousePressEvent):
2339 (QWebPagePrivate::mouseDoubleClickEvent):
2340 (QWebPagePrivate::contextMenuEvent):
2341 (QWebPagePrivate::wheelEvent):
2342 (QWebPage::triggerAction):
2343 * WebCoreSupport/FrameLoaderClientQt.cpp:
2345 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2349 * Change the order of the methods to match with the FrameLoaderClient.h to ease
2350 removing methods in the future.
2352 * WebCoreSupport/FrameLoaderClientQt.h:
2354 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2358 * Remove virtuals in the FrameLoaderClientQt that don't exist in the base class.
2360 * WebCoreSupport/FrameLoaderClientQt.cpp:
2361 (WebCore::FrameLoaderClientQt::detachedFromParent4):
2362 * WebCoreSupport/FrameLoaderClientQt.h:
2364 2008-03-25 Brady Eidson <beidson@apple.com>
2368 Remove newly obsolete FrameLoaderClient methods
2370 * WebCoreSupport/FrameLoaderClientQt.cpp:
2371 * WebCoreSupport/FrameLoaderClientQt.h:
2373 2008-03-22 Mark Rowe <mrowe@apple.com>
2377 * WebCoreSupport/FrameLoaderClientQt.cpp:
2380 2008-03-18 Simon Hausmann <hausmann@webkit.org>
2384 Fix the Qt build. Don't return void in non-void functions.
2386 * Api/qwebpluginfactory.cpp:
2387 (QWebPluginFactory::extension):
2389 2008-03-16 Thiago Macieira <thiago.macieira@trolltech.com>
2393 Don't use RefPtr in classes you haven't seen the implementation of.
2395 Forward-declaration and declaration of RefPtr<Foo> is ok. But you
2396 cannot *use* said objects until Foo is defined. This is true even for
2397 initialisation with a 0.
2399 Seems the HP aCC compiler is more strict here than gcc.
2401 * Api/qwebframe_p.h:
2403 2008-03-14 Simon Hausmann <hausmann@webkit.org>
2407 * Api/qwebframe.cpp:
2408 (QWebFrame::setHtml):
2409 (QWebFrame::setContent):
2411 2008-03-13 Simon Hausmann <hausmann@webkit.org>
2415 * Api/qwebframe.cpp:
2416 (QWebFrame::addToJSWindowObject):
2418 2008-03-12 Simon Hausmann <hausmann@webkit.org>
2420 Fix compilation against Qt 4.3
2426 2008-03-11 Rodney Dawes <dobey@wayofthemonkey.com>
2430 * WebCoreSupport/FrameLoaderClientQt.cpp:
2431 (FrameLoaderClientQt::CreatePlugin):
2433 2008-03-11 Simon Hausmann <hausmann@webkit.org>
2435 Fix the Qt build (silly typo).
2437 * QtLauncher/main.cpp:
2438 (MainWindow::MainWindow):
2440 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
2444 Moved obscuring progress bar to the lower right corner.
2446 * QtLauncher/main.cpp:
2447 (MainWindow::MainWindow):
2448 (MainWindow::resizeEvent):
2450 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
2454 Added reload action and grouped stop and reload actions together.
2456 * QtLauncher/main.cpp:
2457 (MainWindow::MainWindow):
2459 2008-03-11 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2463 * Set a Icon on the QAction if we have one.
2468 2008-03-11 Simon Hausmann <hausmann@webkit.org>
2472 * Api/qwebframe.cpp:
2473 (QWebFrame::addToJSWindowObject):
2475 2008-03-07 Simon Hausmann <hausmann@webkit.org>
2481 Replaced the QWebObjectPlugin interfaces with QWebPluginFactory.
2483 * Api/qwebnetworkinterface.cpp:
2484 (QWebNetworkManager::add):
2485 (QWebNetworkManager::cancel):
2486 (QWebNetworkManager::started):
2487 (QWebNetworkManager::data):
2488 (QWebNetworkManager::finished):
2489 * Api/qwebnetworkinterface_p.h:
2490 (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
2491 * Api/qwebobjectplugin.cpp: Removed.
2492 * Api/qwebobjectplugin.h: Removed.
2493 * Api/qwebobjectplugin_p.h: Removed.
2494 * Api/qwebobjectpluginconnector.cpp: Removed.
2495 * Api/qwebobjectpluginconnector.h: Removed.
2497 (QWebPagePrivate::QWebPagePrivate):
2498 (QWebPage::setPluginFactory):
2499 (QWebPage::pluginFactory):
2502 * Api/qwebpluginfactory.cpp: Added.
2503 (QWebPluginFactory::QWebPluginFactory):
2504 (QWebPluginFactory::~QWebPluginFactory):
2505 (QWebPluginFactory::refreshPlugins):
2506 (QWebPluginFactory::extension):
2507 * Api/qwebpluginfactory.h: Added.
2509 * WebCoreSupport/FrameLoaderClientQt.cpp:
2510 (WebCore::FrameLoaderClientQt::objectContentType):
2511 (WebCore::FrameLoaderClientQt::createPlugin):
2513 2008-03-07 Simon Hausmann <hausmann@webkit.org>
2517 * Api/qwebframe.cpp:
2519 2008-03-04 Sam Weinig <sam@webkit.org>
2521 Reviewed by Mark Rowe.
2523 - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
2526 * Api/qwebframe.cpp:
2527 (QWebFrame::addToJSWindowObject):
2529 2008-03-04 Mark Rowe <mrowe@apple.com>
2531 Another go at fixing the Qt build.
2533 * Api/qwebframe.cpp:
2534 (QWebFrame::addToJSWindowObject):
2536 2008-02-24 Darin Adler <darin@apple.com>
2540 - remove separate client calls for "standard" and "reload' history
2542 * WebCoreSupport/FrameLoaderClientQt.cpp:
2543 (WebCore::FrameLoaderClientQt::updateGlobalHistory):
2544 * WebCoreSupport/FrameLoaderClientQt.h:
2546 2008-02-24 Darin Adler <darin@apple.com>
2548 - another try at fixing the build
2550 * Api/qwebframe.cpp:
2551 (QWebFrame::load): Replace new FormData with FormData::create.
2553 2008-02-22 Sam Weinig <sam@webkit.org>
2557 * Api/qwebhistoryinterface.cpp:
2559 2008-02-22 Sam Weinig <sam@webkit.org>
2561 Rubber-stamped by Adam Roben.
2563 Rid the project of the Devil known as DeprecatedString!
2565 * Api/qwebhistory.cpp:
2566 * Api/qwebhistoryinterface.cpp:
2568 2008-02-18 Darin Adler <darin@apple.com>
2572 * Api/qwebnetworkinterface.cpp:
2573 (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString.
2575 2008-01-24 David Boddie <dboddie@trolltech.com>
2579 Documentation tidying.
2582 * Api/qwebframe.cpp:
2583 * Api/qwebhistoryinterface.cpp:
2586 2008-01-24 Jarek Kobus <jkobus@trolltech.com>
2590 Text for translations were used wrongly as comments
2593 * WebCoreSupport/FrameLoaderClientQt.cpp:
2595 (WebCore::FrameLoaderClientQt::cannotShowURLError):
2596 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2597 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2598 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2599 (WebCore::FrameLoaderClientQt::shouldFallBack):
2601 2008-01-24 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2605 * We have a KURL->QUrl conversion on KURL itself, make use of it.
2606 * This conversion is supposed to be loss-free
2609 * Api/qwebframe.cpp:
2611 2008-01-23 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2613 * Rubber stamped by Simon
2615 * Fix leaking of sub frames (WebCore::Frame). We keep one reference too many.
2616 This was found while working on the page-cache, other ports are not affected.
2618 * WebCoreSupport/FrameLoaderClientQt.cpp:
2619 (WebCore::FrameLoaderClientQt::createFrame):
2621 2008-01-23 Rohan McGovern <rohan.mcgovern@trolltech.com>
2623 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2625 Fix Qtopia compilation with QT_NO_TOOLTIP
2628 * WebCoreSupport/ChromeClientQt.cpp:
2629 (WebCore::ChromeClientQt::print):
2631 2008-01-23 Geir Vattekar <gvatteka@trolltech.com>
2635 Doc: Replaced \code with snippets in the docs
2640 2008-01-23 Benjamin Meyer <bmeyer@trolltech.com>
2644 Tweak key presses even to match commonly expected behavior
2645 - space key == page down
2646 - page down moved down not a page, but slightly less then a page so you don't loose your spot when reading.
2647 - Use font height rather then a hard coded "10" for left, right, up, down
2648 - Ctrl-Up moves to the top of the page
2649 - Ctrl-Down move to the bottom of the page
2650 - Backspace == GoBack
2651 - Shift-Backspace == GoForward
2655 (dropActionToDragOp):
2656 (dragOpToDropAction):
2657 (QWebPagePrivate::keyPressEvent):
2659 2008-01-23 Simon Hausmann <hausmann@webkit.org>
2663 Implemented FrameLoaderClient::startDownload() and FrameLoaderClient::download().
2665 Added two signals to QWebPage to handle downloading of links and handling of
2666 unsupported content.
2670 (QWebPage::triggerAction):
2672 * WebCoreSupport/FrameLoaderClientQt.cpp:
2673 (WebCore::FrameLoaderClientQt::download):
2674 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2675 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2676 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2677 (WebCore::FrameLoaderClientQt::willUseArchive):
2679 2008-01-22 Lars Knoll <lars@trolltech.com>
2683 setup a family for cursive and fantasy fonts as well.
2686 * Api/qwebsettings.cpp:
2687 (QWebSettings::QWebSettings):
2689 2008-01-22 Benjamin Meyer <bmeyer@trolltech.com>
2693 Implement ChromeClientQt::setToolTip
2694 Implement ChromeClientQt::mouseDidMoveOverElement
2699 * WebCoreSupport/ChromeClientQt.cpp:
2700 (WebCore::ChromeClientQt::ChromeClientQt):
2701 (WebCore::ChromeClientQt::focus):
2702 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2703 (WebCore::ChromeClientQt::setToolTip):
2704 (WebCore::ChromeClientQt::print):
2705 * WebCoreSupport/ChromeClientQt.h:
2707 2008-01-21 Darin Adler <darin@apple.com>
2709 Reviewed by John Sullivan.
2711 - updated for changes to ChromeClient database functions
2713 * WebCoreSupport/ChromeClientQt.cpp:
2714 (WebCore::ChromeClientQt::exceededDatabaseQuota):
2715 * WebCoreSupport/ChromeClientQt.h:
2717 2008-01-21 Benjamin Meyer <bmeyer@trolltech.com>
2721 Change QWebHistoryInterface::addHistoryEntry() from const to non-const
2724 * Api/qwebhistoryinterface.h:
2726 2008-01-21 Adam Treat <treat@kde.org>
2730 * Don't leak the d-pointer in QWebSettings.
2733 * Api/qwebsettings.cpp:
2734 (QWebSettings::~QWebSettings):
2736 2008-01-21 Simon Hausmann <hausmann@webkit.org>
2740 Update the WebKit version number from WebKit/win/WebKit.vcproj/VERSION.
2742 This has the fortunate side-effect that gmail sends us sensible HTML/JS again :)
2747 2008-01-21 Simon Hausmann <hausmann@webkit.org>
2751 Fix focus chain handling and cycling through focusable objects (links) using tab/backtab.
2753 * Fix GraphicsContext::drawFocusRing to also draw single focus rects.
2754 * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events
2755 and make the return value depend on whether we successfully determined a focusable
2757 * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly
2758 if we could not handle the focus chain ourselves.
2759 * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus.
2760 * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only
2761 used to control the situation of stepping out of the focus chain inside the page.
2762 * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain.
2763 The layout tests expect this to be disabled but for the user it seems sensible to have it
2764 on by default, hence the default in qwebsettings.cpp
2768 (QWebPage::focusNextPrevChild):
2769 * Api/qwebsettings.cpp:
2770 (QWebSettings::QWebSettings):
2771 * Api/qwebsettings.h:
2773 (QWebView::QWebView):
2774 (QWebView::focusNextPrevChild):
2775 * WebCoreSupport/ChromeClientQt.cpp:
2776 (WebCore::ChromeClientQt::canTakeFocus):
2777 (WebCore::ChromeClientQt::takeFocus):
2779 2008-01-18 Simon Hausmann <hausmann@webkit.org>
2783 Coding style fixes and added a comment about the include order.
2787 2008-01-18 Marius Storm-Olsen <marius@trolltech.com>
2789 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2791 Add use of precompiled header, when building inside Qt.
2793 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.
2796 * WebKit_pch.h: Added.
2798 2008-01-18 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2802 * Ask the WebCore::IconDatabase only if our URL is not empty. Otherwise
2803 we will see a crash in a HashSet.
2804 * It is crashing there because the StringImpl of an empty String is 0.
2805 * We avoid this crash by checking for isEmpty() in WebKit as there is no
2806 use to ask the iconDatabase for an empty string. We will fallback to the
2810 * Api/qwebframe.cpp:
2813 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2817 Minor documentation fixes
2820 * Api/qwebframe.cpp:
2823 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2827 Fix form elements not focusing correctly after the qt widget lost its focus.
2829 When receiving a focus out event notify the focus controller. Otherwise its
2830 m_focusedFrame variable remains unchanged and setFocusedFrame on a focusIn
2831 event shortcuts and doesn't call setActive(true).
2836 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2840 Lots of updates to the documentation.
2843 * Api/qwebframe.cpp:
2844 * Api/qwebhistory.cpp:
2846 (QWebPagePrivate::dropEvent):
2847 (QWebPage::history):
2849 (QWebPage::triggerAction):
2850 (QWebPage::viewportSize):
2851 (QWebPage::navigationRequested):
2854 (QWebPageContext::targetFrame):
2858 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2862 Added a urlChanged signals to QWebFrame and QWebView.
2865 * Api/qwebframe.cpp:
2868 (QWebView::setPage):
2870 * WebCoreSupport/FrameLoaderClientQt.cpp:
2872 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2876 Fixed docs and sanity checks in QWebSettings::setIconDatabaseEnabled
2879 * Api/qwebsettings.cpp:
2880 (QWebSettings::setIconDatabaseEnabled):
2882 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2886 Added QWebView::createWindow() which is forwarded from QWebPage::createWindow() for convenience.
2890 (QWebPage::createWindow):
2892 (QWebView::createWindow):
2895 2008-01-17 Lars Knoll <lars@trolltech.com>
2899 add a 0 pointer check.
2901 Fixes a crash in the demo web browser.
2903 * WebCoreSupport/FrameLoaderClientQt.cpp:
2904 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2906 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2910 Fix QWebFrame::title().
2912 For the titleChanged() signal we use the documentloader's title. For the property we have to use the same
2913 instead of Document::title() as the latter is not trimmed and not suited for a window caption.
2916 * Api/qwebframe.cpp:
2919 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2921 Reviewed by Maciej, Lars, Holger.
2923 http://bugs.webkit.org/show_bug.cgi?id=16589
2925 Add a document parameter to WebCore::cookies, setCookies and cookiesEnabled.
2927 * Api/qwebnetworkinterface.cpp:
2928 (QWebNetworkRequestPrivate::init):
2929 (QWebNetworkManager::started):
2931 2008-01-17 Warwick Allison <warwick@trolltech.com>
2933 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2935 Follow QWidget::keyPressEvent advice and call parents.
2937 Without this, Back does not work in Qtopia, for example.
2941 (QWebView::keyPressEvent):
2942 (QWebView::keyReleaseEvent):
2944 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2948 Fix compilation against Qt 4.3 after the recent KURL <> QUrl conversion fixes.
2950 * Api/qwebnetworkinterface.cpp:
2951 (QWebNetworkManager::started):
2953 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2957 Fix compilation against Qt 4.4 without files that are specific for the Qt 4.3 build.
2960 * Api/qwebframe.cpp:
2962 * WebCoreSupport/FrameLoaderClientQt.cpp:
2964 2008-01-17 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
2966 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2968 Fixes compilation with QT_NO_DRAGANDDROP
2974 (QWebView::dragEnterEvent):
2975 (QWebView::dragLeaveEvent):
2976 (QWebView::dragMoveEvent):
2977 (QWebView::dropEvent):
2979 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2983 Fix compilation, removed obsolete privateBrowsingEnabled() method.
2985 * WebCoreSupport/FrameLoaderClientQt.cpp:
2987 2008-01-16 Lars Knoll <lars@trolltech.com>
2989 Reviewed by Simon Hausmann <simon.hausmann@trolltech.com>.
2991 Removed a whole bunch of notImplemented() warnings.
2993 I don't want to hide the real warnings in lots of things that
2994 I am by now pretty certain we won't need.
2997 * WebCoreSupport/FrameLoaderClientQt.cpp:
2998 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
2999 (WebCore::FrameLoaderClientQt::canShowMIMEType):
3001 2008-01-16 Simon Hausmann <hausmann@webkit.org>
3005 Fix crash when bringing up the context menu on maps.google.com.
3007 If the website provides its own context menu then we don't have a ContextMenu pointer.
3011 (QWebPagePrivate::contextMenuEvent):
3013 2008-01-16 Simon Hausmann <hausmann@webkit.org>
3017 Don't crash when receiving all sorts of events on a default constructed QWebView without a page.
3020 (QWebView::mouseMoveEvent):
3021 (QWebView::mousePressEvent):
3022 (QWebView::mouseDoubleClickEvent):
3023 (QWebView::mouseReleaseEvent):
3024 (QWebView::contextMenuEvent):
3025 (QWebView::wheelEvent):
3026 (QWebView::keyPressEvent):
3027 (QWebView::keyReleaseEvent):
3028 (QWebView::focusInEvent):
3029 (QWebView::focusOutEvent):
3030 (QWebView::dragEnterEvent):
3031 (QWebView::dragLeaveEvent):
3032 (QWebView::dragMoveEvent):
3033 (QWebView::dropEvent):
3034 (QWebView::focusNextPrevChild):
3036 2008-01-16 Simon Hausmann <hausmann@webkit.org>
3040 Made the url property read-write.
3044 2008-01-16 Simon Hausmann <hausmann@webkit.org>
3048 Don't crash when showing a default initialized QWebView that has no page/frame yet.
3051 (QWebView::paintEvent):
3053 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
3057 Change hoveringOverLink implementation to have less issues.
3059 * Currently we only compare a pointer. In the worst case we
3060 could delete the Element we have pointed to and a new one
3061 gets the same address. But even if that doesn't happen the
3062 WebCore::Element is mutable and JavaScript could change the
3063 URL, Title or Content. So we have to compare all these three
3065 * This does not seem to be a performance impact.
3069 (QWebPagePrivate::mouseMoveEvent):
3072 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
3076 * Move the hoverElement from QWebFrame to QWebPage. As it is
3080 * Api/qwebframe_p.h:
3081 (QWebFramePrivate::QWebFramePrivate):
3083 (QWebPagePrivate::mouseMoveEvent):
3086 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
3090 EventHandler changes/fixes in QWebPage:
3091 -mouse{Press,Move,Release}Event:
3092 Send the event always to the mainFrame of the QWebPage.
3094 -contextMenuEvent, key{Press,Release}Event:
3095 Send the event to the focused frame.
3097 This is following the Windows port and fixes a issue with the
3098 Web Inspector where we were sending the events to a wrong frame.
3100 It is guaranteed that the mainFrame will always have an eventHandler
3101 and frameView set. There is no need to check for this in QWebPage.
3104 * Api/qwebframe.cpp:
3105 (QWebFramePrivate::init):
3106 * Api/qwebframe_p.h:
3107 (QWebFramePrivate::QWebFramePrivate):
3109 (QWebPagePrivate::updateEditorActions):
3110 (QWebPagePrivate::mouseMoveEvent):
3111 (QWebPagePrivate::mousePressEvent):
3112 (QWebPagePrivate::mouseDoubleClickEvent):
3113 (QWebPagePrivate::mouseReleaseEvent):
3114 (QWebPagePrivate::contextMenuEvent):
3115 (QWebPagePrivate::wheelEvent):
3116 (QWebPagePrivate::keyPressEvent):
3117 (QWebPagePrivate::keyReleaseEvent):
3118 (QWebPagePrivate::focusInEvent):
3121 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
3125 * Add core and kit functions to QWebFramePrivate to convert from
3126 QWebFrame to WebCore::Frame and vice versa.
3129 * Api/qwebframe.cpp:
3130 (QWebFramePrivate::core):
3131 (QWebFramePrivate::kit):
3133 * Api/qwebframe_p.h:
3135 2008-01-16 Lars Knoll <lars@trolltech.com>
3139 add conversion methods from and to QUrl to KURL.
3141 Use them in the places I found at the moment. Fixes a bug
3142 where form data was encoded twice.
3143 Also fix QWebSettings to take a QUrl for the user style sheet
3147 * Api/qwebframe.cpp:
3150 (QWebPage::createPlugin):
3152 (QWebPage::triggerAction):
3153 * Api/qwebsettings.cpp:
3154 (QWebSettingsPrivate::apply):
3155 * Api/qwebsettings.h:
3156 * WebCoreSupport/ChromeClientQt.cpp:
3157 (WebCore::ChromeClientQt::createWindow):
3158 (WebCore::ChromeClientQt::show):
3160 2008-01-16 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3164 * Make the InspectorClientView inherit from QWebView instead of QWidget. This
3165 way paintEvent, mouse{Press,Release}Event and other events get forwarded to
3166 the QWebPage/WebInspector automatically.
3169 * WebCoreSupport/InspectorClientQt.cpp:
3170 (WebCore::InspectorClientWebPage::createWindow):
3171 (WebCore::InspectorClientView::InspectorClientView):
3173 2008-01-10 Maciej Stachowiak <mjs@apple.com>
3177 - remove SecurityOriginData and fold its functionality into SecurityOrigin
3179 * WebCoreSupport/ChromeClientQt.cpp:
3180 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
3181 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
3182 * WebCoreSupport/ChromeClientQt.h:
3184 2008-01-10 Lars Knoll <lars@trolltech.com>
3188 document QWebHistory
3191 * Api/qwebhistory.cpp:
3192 (QWebHistoryItem::QWebHistoryItem):
3193 (QWebHistoryItem::operator=):
3194 (QWebHistoryItem::~QWebHistoryItem):
3195 (QWebHistoryItem::originalUrl):
3196 (QWebHistoryItem::currentUrl):
3197 (QWebHistoryItem::title):
3198 (QWebHistoryItem::icon):
3199 (QWebHistory::canGoBack):
3200 (QWebHistory::canGoForward):
3201 (QWebHistory::goBack):
3202 (QWebHistory::goForward):
3203 (QWebHistory::goToItem):
3204 * Api/qwebhistory.h:
3206 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3210 Make the reset() functions not do anything on the default QWebSettings object.
3213 * Api/qwebsettings.cpp:
3214 (QWebSettings::resetFontSize):
3215 (QWebSettings::resetFontFamily):
3216 (QWebSettings::clearAttribute):
3218 2008-01-10 Lars Knoll <lars@trolltech.com>
3222 rename QWebPageHistory to QWebHistory.
3225 * Api/qwebhistory.cpp: Added.
3226 (QWebHistoryItem::QWebHistoryItem):
3227 (QWebHistoryItem::operator=):
3228 (QWebHistoryItem::~QWebHistoryItem):
3229 (QWebHistoryItem::originalUrl):
3230 (QWebHistoryItem::currentUrl):
3231 (QWebHistoryItem::title):
3232 (QWebHistoryItem::lastVisited):
3233 (QWebHistoryItem::icon):
3234 (QWebHistory::QWebHistory):
3235 (QWebHistory::~QWebHistory):
3236 (QWebHistory::clear):
3237 (QWebHistory::items):
3238 (QWebHistory::backItems):
3239 (QWebHistory::forwardItems):
3240 (QWebHistory::canGoBack):
3241 (QWebHistory::canGoForward):
3242 (QWebHistory::goBack):
3243 (QWebHistory::goForward):
3244 (QWebHistory::goToItem):
3245 (QWebHistory::backItem):
3246 (QWebHistory::currentItem):
3247 (QWebHistory::forwardItem):
3248 (QWebHistory::itemAtIndex):
3249 * Api/qwebhistory.h: Added.
3250 * Api/qwebhistory_p.h: Added.
3251 (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
3252 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
3253 (QWebHistoryPrivate::QWebHistoryPrivate):
3254 (QWebHistoryPrivate::~QWebHistoryPrivate):
3256 (QWebPagePrivate::QWebPagePrivate):
3259 * Api/qwebpagehistory.cpp: Removed.
3260 * Api/qwebpagehistory.h: Removed.
3261 * Api/qwebpagehistory_p.h: Removed.
3265 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3269 Documentation for QWebSettings
3272 * Api/qwebsettings.cpp:
3273 (QWebSettings::~QWebSettings):
3274 (QWebSettings::setFontSize):
3275 (QWebSettings::resetFontSize):
3276 (QWebSettings::setUserStyleSheetLocation):
3277 (QWebSettings::userStyleSheetLocation):
3278 (QWebSettings::iconDatabaseEnabled):
3279 (QWebSettings::webGraphic):
3280 (QWebSettings::setFontFamily):
3281 (QWebSettings::resetFontFamily):
3282 (QWebSettings::setAttribute):
3284 2008-01-10 Lars Knoll <lars@trolltech.com>
3288 Document QWebHistoryInterface.
3291 * Api/qwebhistoryinterface.cpp:
3292 (QWebHistoryInterface::defaultInterface):
3293 (QWebHistoryInterface::~QWebHistoryInterface):
3295 2008-01-10 Lars Knoll <lars@trolltech.com>
3299 Documentation for QWebFrame.
3302 * Api/qwebframe.cpp:
3306 (QWebFrame::setHtml):
3307 (QWebFrame::parentFrame):
3308 (QWebFrame::render):
3310 (QWebFrame::geometry):
3312 * Api/qwebframe_p.h:
3314 2008-01-10 Lars Knoll <lars@trolltech.com>
3318 fix the drawing errors that where introduced due to refactoring.
3320 Correctly clip to the rectangle we want to draw in ScrollView::paint().
3323 * Api/qwebframe.cpp:
3324 (QWebFrame::render):
3327 (QWebView::paintEvent):
3328 * WebCoreSupport/ChromeClientQt.cpp:
3329 (WebCore::ChromeClientQt::scrollBackingStore):
3331 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3335 Added a whole bunch of docs for QWebPage and fixed some minor doc glitches in QWebView.
3339 (QWebPagePrivate::dropEvent):
3340 (QWebPage::QWebPage):
3341 (QWebPage::~QWebPage):
3342 (QWebPage::mainFrame):
3343 (QWebPage::currentFrame):
3344 (QWebPage::history):
3345 (QWebPage::setView):
3347 (QWebPage::javaScriptConsoleMessage):
3348 (QWebPage::javaScriptAlert):
3349 (QWebPage::javaScriptConfirm):
3350 (QWebPage::javaScriptPrompt):
3351 (QWebPage::createWindow):
3352 (QWebPage::createModalDialog):
3354 (QWebPage::triggerAction):
3355 (QWebPage::viewportSize):
3356 (QWebPage::navigationRequested):
3357 (QWebPage::selectedText):
3358 (QWebPage::isModified):
3359 (QWebPage::focusNextPrevChild):
3360 (QWebPage::settings):
3361 (QWebPage::networkProxy):
3362 (QWebPage::setNetworkAccessManager):
3363 (QWebPage::networkAccessManager):
3364 (QWebPagePrivate::_q_onLoadProgressChanged):
3367 2008-01-07 Holger Freyther <zecke@selfish.org>
3369 Reviewed by Alp Toker.
3371 * Qt and Gtk must know if a ContextMenuItem is checkable. Add a new ContextMenuItemType for checkable
3373 * Use this information in the Gtk platform to create a GtkCheckMenuItem when needed.
3374 * Update the ContextMenuController to accept CheckableActionTypes as well.
3375 * Change ContextMenu.cpp to use the CheckableActionType. The information if a item is checkable
3376 was extracted from ContextMenu::checkOrEnableIfNeeded.
3377 * Update the Qt and Windows port.
3380 (QWebPagePrivate::createContextMenu):
3382 2008-01-07 Simon Hausmann <hausmann@webkit.org>
3384 Build fix for the Windows build. MSVC wants to see the full
3385 declaration of arguments even when just passing them through.
3389 2008-01-07 Simon Hausmann <hausmann@webkit.org>
3393 Added the missing parameters to make it possible to do POST operations from the public API.
3395 This is ugly though as it also requires including qnetworkaccessmanager.h. It would be nicer if the
3396 two extra arguments were in QNetworkRequest :-/
3399 * Api/qwebframe.cpp:
3406 2008-01-07 Simon Hausmann <hausmann@webkit.org>
3410 Ported of the network backend of the Qt platform to Qt 4.4's new networking API.
3413 * Api/qwebframe.cpp:
3416 * Api/qwebnetworkinterface.cpp:
3417 * Api/qwebnetworkinterface.h:
3418 * Api/qwebnetworkinterface_p.h:
3419 * Api/qwebobjectplugin.cpp:
3420 * Api/qwebobjectplugin.h:
3421 * Api/qwebobjectplugin_p.h:
3422 * Api/qwebobjectpluginconnector.cpp:
3423 * Api/qwebobjectpluginconnector.h:
3425 (QWebPagePrivate::QWebPagePrivate):
3426 (QWebPagePrivate::~QWebPagePrivate):
3427 (QWebPagePrivate::navigationRequested):
3428 (QWebPage::setNetworkInterface):
3429 (QWebPage::networkInterface):
3430 (QWebPage::setNetworkAccessManager):
3431 (QWebPage::networkAccessManager):
3436 * WebCoreSupport/FrameLoaderClientQt.cpp:
3437 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3438 (WebCore::FrameLoaderClientQt::objectContentType):
3439 (WebCore::FrameLoaderClientQt::createPlugin):
3441 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3445 * Move the QWebPagePrivate methods up to the other private ones
3448 (dropActionToDragOp):
3449 (dragOpToDropAction):
3450 (QWebPagePrivate::mouseMoveEvent):
3451 (QWebPagePrivate::mousePressEvent):
3452 (QWebPagePrivate::mouseDoubleClickEvent):
3453 (QWebPagePrivate::mouseReleaseEvent):
3454 (QWebPagePrivate::contextMenuEvent):
3455 (QWebPagePrivate::wheelEvent):
3456 (QWebPagePrivate::keyPressEvent):
3457 (QWebPagePrivate::keyReleaseEvent):
3458 (QWebPagePrivate::focusInEvent):
3459 (QWebPagePrivate::focusOutEvent):
3460 (QWebPagePrivate::dragEnterEvent):
3461 (QWebPagePrivate::dragLeaveEvent):
3462 (QWebPagePrivate::dragMoveEvent):
3463 (QWebPagePrivate::dropEvent):
3464 (QWebPage::focusNextPrevChild):
3466 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3470 * Add reimplemented comments for the methods reimplemented in QWebView and QWebPage.
3474 (dragOpToDropAction):
3476 (QWebView::mouseMoveEvent):
3477 (QWebView::mousePressEvent):
3478 (QWebView::mouseDoubleClickEvent):
3479 (QWebView::mouseReleaseEvent):
3480 (QWebView::contextMenuEvent):
3481 (QWebView::keyPressEvent):
3482 (QWebView::keyReleaseEvent):
3483 (QWebView::focusInEvent):
3484 (QWebView::focusOutEvent):
3485 (QWebView::dragEnterEvent):
3486 (QWebView::dragLeaveEvent):
3487 (QWebView::dragMoveEvent):
3488 (QWebView::dropEvent):
3490 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3494 * This layout is not needed anymore as Widget::invalidateRect will not
3499 (QWebView::paintEvent):
3501 2008-01-04 Lars Knoll <lars@trolltech.com>
3505 Remove most dependencies of Widget/ScrollView onto native QWidgets.
3507 This also brings the code closer in line with the Windows code. Seems
3508 to work nicely on first try :)
3511 * WebCoreSupport/ChromeClientQt.cpp:
3512 (WebCore::ChromeClientQt::updateBackingStore):
3513 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3514 (WebCore::ChromeClientQt::setToolTip):
3515 * WebCoreSupport/FrameLoaderClientQt.cpp:
3516 (WebCore::FrameLoaderClientQt::createPlugin):
3518 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3522 * Remove the todo from QWebPage and move the code to QWebView.
3526 (QWebPagePrivate::wheelEvent):
3527 (QWebPagePrivate::focusInEvent):
3529 (QWebView::wheelEvent):
3530 (QWebView::focusInEvent):
3532 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3536 * Move the various event methods to QWebPagePrivate. This is similar to
3537 QTextControl as well.
3542 (QWebPagePrivate::mouseMoveEvent):
3543 (QWebPagePrivate::mousePressEvent):
3544 (QWebPagePrivate::mouseDoubleClickEvent):
3545 (QWebPagePrivate::mouseReleaseEvent):
3546 (QWebPagePrivate::contextMenuEvent):
3547 (QWebPagePrivate::wheelEvent):
3548 (QWebPagePrivate::keyPressEvent):
3549 (QWebPagePrivate::keyReleaseEvent):
3550 (QWebPagePrivate::focusInEvent):
3551 (QWebPagePrivate::focusOutEvent):
3552 (QWebPage::focusNextPrevChild):
3553 (QWebPagePrivate::dragEnterEvent):
3554 (QWebPagePrivate::dragLeaveEvent):
3555 (QWebPagePrivate::dragMoveEvent):
3556 (QWebPagePrivate::dropEvent):
3560 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3564 * Forward the event from QWebView to QWebPage through QObject::event. This
3565 is similar to the way QTextControl is working.
3569 (dragOpToDropAction):
3573 (QWebView::mouseMoveEvent):
3574 (QWebView::mousePressEvent):
3575 (QWebView::mouseDoubleClickEvent):
3576 (QWebView::mouseReleaseEvent):
3577 (QWebView::contextMenuEvent):
3578 (QWebView::wheelEvent):
3579 (QWebView::keyPressEvent):
3580 (QWebView::keyReleaseEvent):
3581 (QWebView::focusInEvent):
3582 (QWebView::focusOutEvent):
3583 (QWebView::dragEnterEvent):
3584 (QWebView::dragLeaveEvent):
3585 (QWebView::dragMoveEvent):
3586 (QWebView::dropEvent):
3589 2008-01-04 Lars Knoll <lars@trolltech.com>
3593 make QWebPage a QObject and get things to compile.
3595 Nothing works currently though.
3598 * Api/qwebobjectpluginconnector.cpp:
3600 (QWebPagePrivate::QWebPagePrivate):
3601 (QWebPagePrivate::createMainFrame):
3602 (QWebPage::QWebPage):
3603 (QWebPage::setView):
3605 (QWebPage::javaScriptAlert):
3606 (QWebPage::javaScriptPrompt):
3607 (dragOpToDropAction):
3608 (QWebPage::mousePressEvent):
3609 (QWebPage::mouseDoubleClickEvent):
3610 (QWebPage::mouseReleaseEvent):
3611 (QWebPage::wheelEvent):
3612 (QWebPage::keyPressEvent):
3613 (QWebPage::focusInEvent):
3617 (QWebView::QWebView):
3618 (QWebView::setPage):
3619 (QWebView::resizeEvent):
3620 (QWebView::paintEvent):
3622 * WebCoreSupport/ChromeClientQt.cpp:
3623 (WebCore::ChromeClientQt::windowRect):
3624 (WebCore::ChromeClientQt::pageRect):
3625 (WebCore::ChromeClientQt::focus):
3626 (WebCore::ChromeClientQt::unfocus):
3627 (WebCore::ChromeClientQt::canTakeFocus):
3628 (WebCore::ChromeClientQt::takeFocus):
3629 (WebCore::ChromeClientQt::canRunModal):
3630 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3631 * WebCoreSupport/DragClientQt.cpp:
3632 (WebCore::DragClientQt::startDrag):
3633 * WebCoreSupport/FrameLoaderClientQt.cpp:
3634 (WebCore::FrameLoaderClientQt::createPlugin):
3635 * WebCoreSupport/InspectorClientQt.cpp:
3636 (WebCore::InspectorClientWebPage::createWindow):
3637 (WebCore::InspectorClientView::InspectorClientView):
3638 (WebCore::InspectorClientView::page):
3639 (WebCore::InspectorClientView::hideEvent):
3640 (WebCore::InspectorClientView::closeEvent):
3641 (WebCore::InspectorClientQt::createPage):
3642 (WebCore::InspectorClientQt::closeWindow):
3644 2008-01-04 Simon Hausmann <hausmann@webkit.org>
3648 Added some preliminary class documentation for QWebView, fixed a missing const() and some missing Q_PROPERTYs
3652 (QWebView::setHtml):
3653 (QWebView::setContent):
3654 (QWebView::history):
3655 (QWebView::settings):
3657 (QWebView::triggerAction):
3659 (QWebView::backward):
3660 (QWebView::forward):
3664 2008-01-04 Lars Knoll <lars@trolltech.com>
3668 add a viewportSize to QWebPage.
3670 This is required to eventually make it a QObject only.
3674 (QWebPage::triggerAction):
3675 (QWebPage::viewportSize):
3676 (QWebPage::setViewportSize):
3679 2008-01-04 Lars Knoll <lars@trolltech.com>
3683 take a QString as identifier in QWebFrame::addToJSWindowObject.
3685 * Api/qwebframe.cpp:
3686 (QWebFrame::addToJSWindowObject):
3689 2008-01-04 Simon Hausmann <hausmann@webkit.org>
3693 Call the frame arguments for the javascript callbacks "originatingFrame"
3698 2008-01-04 Simon Hausmann <hausmann@webkit.org>
3702 Moved the QWebPage::addToHistory signal into QWebHistoryInterface
3705 * Api/qwebhistoryinterface.h:
3707 * WebCoreSupport/FrameLoaderClientQt.cpp:
3708 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
3710 2008-01-04 Lars Knoll <lars@trolltech.com>
3714 moved title(), url(), icon() and initialLayoutComplete() from QWebPage to QWebFrame
3716 * Api/qwebframe.cpp:
3719 (QWebFrame::setVerticalScrollBarPolicy):
3722 (QWebPage::javaScriptAlert):
3723 (QWebPage::javaScriptPrompt):
3724 (QWebPage::networkInterface):
3730 * WebCoreSupport/FrameLoaderClientQt.cpp:
3732 2008-01-03 Simon Hausmann <hausmann@webkit.org>
3736 Moved QWebPage::open to QWebFrame::load and added setHtml.
3739 * Api/qwebframe.cpp:
3741 (QWebFrame::setHtml):
3742 (QWebFrame::setContent):
3748 (QWebView::setHtml):
3750 * WebCoreSupport/ChromeClientQt.cpp:
3751 (WebCore::ChromeClientQt::createWindow):
3752 * WebCoreSupport/InspectorClientQt.cpp:
3753 (WebCore::InspectorClientQt::createPage):
3755 2008-01-03 Simon Hausmann <hausmann@webkit.org>