1 2008-07-24 Tor Arne Vestbø <tavestbo@trolltech.com>
5 Don't insert text on keyDown event in EditorClientQt.
7 * WebCoreSupport/EditorClientQt.cpp:
8 (WebCore::EditorClientQt::handleKeyboardEvent):
10 2008-07-04 Benjamin C Meyer <ben@meyerhome.net>
14 Update the webkit version in the QtWebKit useragent string to match trunk
18 2008-07-02 Simon Hausmann <hausmann@webkit.org>
23 (QWebPage::triggerAction): The signature of setBaseWritingDirection
24 changed to take an enum instead of a string.
26 2008-07-01 Alexey Proskuryakov <ap@webkit.org>
30 Disable JSLock for per-thread contexts.
33 (QWebFrame::addToJavaScriptWindowObject):
34 Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
35 Include JSLock.h, as it is no longer brought in implicitly.
37 2008-07-01 Tor Arne Vestbø <tavestbo@trolltech.com>
41 Don't show the tooltip instantly in the QtLauncher.
43 Let the QWebView handle tooltips by itself, so we get
44 the expected delay as everywhere else.
46 * QtLauncher/main.cpp:
48 2008-06-30 Simon Hausmann <hausmann@webkit.org>
50 Rubber-stamped by Niko.
52 Removed the obsolete and unmaintained WebKitPart. The integration of
53 QtWebKit into KDE is now done in the webkitkde component inside KDE.
55 * WebKitPart/WebKitFactory.cpp: Removed.
56 * WebKitPart/WebKitFactory.h: Removed.
57 * WebKitPart/WebKitPart.cpp: Removed.
58 * WebKitPart/WebKitPart.desktop: Removed.
59 * WebKitPart/WebKitPart.h: Removed.
60 * WebKitPart/WebKitPart.rc: Removed.
61 * WebKitPart/WebKitPartBrowser.rc: Removed.
62 * WebKitPart/WebKitPartBrowserExtension.cpp: Removed.
63 * WebKitPart/WebKitPartBrowserExtension.h: Removed.
64 * WebKitPart/WebKitPartClient.cpp: Removed.
65 * WebKitPart/WebKitPartClient.h: Removed.
66 * WebKitPart/WebKitPartInterface.cpp: Removed.
67 * WebKitPart/WebKitPartInterface.h: Removed.
68 * WebKitPart/org.kde.WebKitPart.xml: Removed.
70 2008-06-24 Simon Hausmann <hausmann@webkit.org>
72 Fix the Qt build, added missing include for RuntimeObjectImp.
76 2008-06-23 Benjamin C Meyer <ben@meyerhome.net>
80 Add function to retrieve the standard context menu
82 2008-06-20 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
86 https://bugs.webkit.org/show_bug.cgi?id=19082
87 [Qt] Full-page plugins not activated
89 * WebCoreSupport/FrameLoaderClientQt.cpp:
90 (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a
91 plugin present, as it can be created during the function.
93 2008-06-20 Marco Barisione <marco.barisione@collabora.co.uk>
97 https://bugs.webkit.org/show_bug.cgi?id=19082
98 [Qt] Full-page plugins not activated
100 * WebCoreSupport/FrameLoaderClientQt.cpp:
101 (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the
102 MIME type is supported by a plugin.
104 2008-06-18 Alexey Proskuryakov <ap@webkit.org>
108 Prepare JavaScript heap for being per-thread.
111 (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build.
113 2008-06-18 Julien Chaffraix <jchaffraix@webkit.org>
115 Qt Build fix after r34627.
117 * WebCoreSupport/FrameLoaderClientQt.cpp:
118 (WebCore::FrameLoaderClientQt::createPlugin):
120 2008-06-15 Darin Adler <darin@apple.com>
122 - give Frame object functions shorter names: scriptProxy() -> script(),
123 selectionController() -> selection(), animationController() -> animation()
126 (QWebFrame::evaluateJavaScript):
128 (QWebPagePrivate::focusInEvent):
129 (QWebPagePrivate::focusOutEvent):
130 (QWebPage::inputMethodQuery):
131 * WebCoreSupport/EditorClientQt.cpp:
132 (WebCore::EditorClientQt::handleKeyboardEvent):
134 2008-06-15 Darin Adler <darin@apple.com>
136 - new names for more JavaScriptCore files
140 2008-06-15 Darin Adler <darin@apple.com>
142 - new names for a few key JavaScriptCore files
146 2008-06-14 Darin Adler <darin@apple.com>
148 Rubber stamped by Sam.
150 - new names for kjs_binding.h and kjs_proxy.h
153 (QWebFrame::evaluateJavaScript):
156 2008-06-14 Darin Adler <darin@apple.com>
161 (QWebFramePrivate::init): Added a missing semicolon.
163 2008-06-14 Darin Adler <darin@apple.com>
167 - more https://bugs.webkit.org/show_bug.cgi?id=17257
168 start ref counts at 1 instead of 0 for speed
171 (QWebFramePrivate::init): Use create instead of new.
172 * WebCoreSupport/FrameLoaderClientQt.cpp:
173 (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
175 2008-06-13 Darin Adler <darin@apple.com>
179 * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument.
181 2008-06-13 Darin Adler <darin@apple.com>
183 Reviewed by John Sullivan.
185 - updated for addition of FormState argument to action policy functions
187 * WebCoreSupport/FrameLoaderClientQt.cpp:
188 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
189 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
191 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
195 Fix left-click and middle-click mouse event are not properly accepted.
197 When copying or pasting text using left or middle-click, the event must be
198 accepted so that it will not be potentially processed further by the parent
199 and/or sub-classed widget.
203 (QWebPagePrivate::mouseReleaseEvent):
205 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
209 Fix input element does not accept character typed in using AltGr.
211 EditorClient is modified to catch AltGr and Ctrl+Alt key combination.
212 This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry
214 * WebCoreSupport/EditorClientQt.cpp:
215 (WebCore::EditorClientQt::handleKeyboardEvent):
217 2008-05-26 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
221 https://bugs.webkit.org/show_bug.cgi?id=19323
223 Implemented the QWebPage::editable property.
225 Small documentation fixes by Simon.
228 (QWebPagePrivate::QWebPagePrivate):
229 (QWebPage::setEditable):
230 (QWebPage::isEditable):
232 * Api/qwebpage_p.h: implement the editable property and add API so that
233 applications can switch edit mode on and off for a particular QWebPage
234 * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the
235 QWebPage instead of always returning false
237 2008-06-09 Tor Arne Vestbø <tavestbo@trolltech.com>
241 Make sure web action in context menus have the right enablement,
242 while not messing up other web actions not included in the menu.
245 (QWebPagePrivate::createContextMenu):
246 (QWebPage::updatePositionDependentActions):
249 2008-06-09 Benjamin C Meyer <ben@meyerhome.net>
253 Add Shift-Space shortcut to go up one screen, the opposite of Space
254 which goes down one screen.
257 (QWebPagePrivate::handleScrolling):
259 2008-06-04 Tor Arne Vestbø <tavestbo@trolltech.com>
263 Fix a failing assertion when calling QWebFrame::evaluateJavaScript.
265 The starting line number has to be 1 instead of 0.
268 (QWebFrame::evaluateJavaScript):
270 2008-06-03 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
274 * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains(). This
275 function is not used anywhere internally and is only a convenience
276 function that can still be accomplished using
277 QWebHistoryInterface::historyContains();
279 2008-05-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
283 Doc: Mention the requirement of a QApplication with QtWebKit
288 2008-05-29 David Boddie <dboddie@trolltech.com>
292 Some clarifications for the documentation.
296 * Api/qwebpluginfactory.cpp:
298 2008-05-27 Ariya Hidayat <ariya.hidayat@trolltech.com>
302 Fix web inspector does not returns its state properly after its window is minimized.
304 As hinted by Holger, InspectorClientView::hideEvent is not needed.
305 This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967
307 * WebCoreSupport/InspectorClientQt.cpp:
309 2008-05-21 Siraj Razick <siraj.razick@collabora.co.uk>
313 Add <param name="classid"/> support for application/x-qt-object plugins
315 * WebCoreSupport/FrameLoaderClientQt.cpp:
316 (WebCore::FrameLoaderClientQt::createPlugin):
318 2008-05-13 Andy Shaw <andy@trolltech.com>
322 Fixes: QWebHistory::forward() should go forwards and not back
324 * Api/qwebhistory.cpp:
326 2008-05-12 Alexey Proskuryakov <ap@webkit.org>
328 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify
329 SquirrelFish merging.
332 (QWebFrame::addToJavaScriptWindowObject):
334 2008-05-09 Thiago Macieira <tjmaciei@trolltech.com>
338 Fix bad includes in QtWebKit public headers.
340 Make sure to include qglobal.h using the QtCore prefix so that an explicit
341 include/QtCore is not needed in the application's build system. Also make sure
342 that qwebsettings.h includes the local qwebkitglobal.h.
345 * Api/qwebkitglobal.h:
346 * Api/qwebsettings.h:
348 2008-05-08 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
352 https://bugs.webkit.org/show_bug.cgi?id=18935
354 Based on work by Sriram Neelakandan for the Gtk port.
356 * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize
357 m_hasSentResponseToPlugin.
358 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
359 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
361 2008-05-08 Warwick Allison <warwick@trolltech.com>
365 Fixes: WebKit expects initial input method state to be *disabled*.
367 At least QWS does not need the initial input method state to be forced to
368 enabled, but other platforms (esp. X11) do. Until fixed/tested on those
369 platforms, this is specific to QWS.
373 (QWebView::QWebView):
375 2008-05-06 Simon Hausmann <hausmann@webkit.org>
379 Fix logic error in QWebHitTestResult::isNull().
383 2008-05-02 Benjamin Meyer <bmeyer@trolltech.com>
387 Doc: Mention that you have to enable plugins in QWebSettings for them to work.
391 2008-05-02 Simon Hausmann <hausmann@webkit.org>
393 Fix the Qt build, ExecState is required here.
396 (QWebFrame::addToJavaScriptWindowObject):
398 2008-05-01 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
400 Reviewed by Alp Toker.
401 Qt parts OK'ed by Simon Hausmann.
403 https://bugs.webkit.org/show_bug.cgi?id=14750
404 Added support for NPAPI plugins on Gtk and Qt-x11 ports.
406 * WebCoreSupport/FrameLoaderClientQt.cpp:
407 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
408 (WebCore::FrameLoaderClientQt::finishedLoading):
409 (WebCore::FrameLoaderClientQt::setMainDocumentError):
410 (WebCore::FrameLoaderClientQt::committedLoad):
411 (WebCore::FrameLoaderClientQt::objectContentType):
412 (WebCore::FrameLoaderClientQt::createPlugin):
413 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
414 * WebCoreSupport/FrameLoaderClientQt.h:
416 2008-04-30 Julien Chaffraix <jchaffraix@webkit.org>
420 Fixes a brace error that made Qt 4.4 build but not Qt 4.3.
425 2008-04-30 Tor Arne Vestbø <tavestbo@trolltech.com>
429 In focusIn and focusOut event always update the active state of the
430 focus controller. Fixes ~400 failing layout tests due to missing
431 editing callbacks that relied on the correct focus.
434 (QWebPagePrivate::focusInEvent):
435 (QWebPagePrivate::focusOutEvent):
437 2008-04-29 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
441 Fix compilation with QT_NO_PRINTER
447 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
451 Ensure that relative URL is converted to absolute URL.
453 This is necessary because loading a relative URL is not really supported
454 (the web page may load, but the subsequent URLs for images and links will
455 not be resolved properly).
456 This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484
464 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
468 Simplification of Qt Launcher (no animation and use standard progress bar widget)
470 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.
473 * QtLauncher/main.cpp:
474 (MainWindow::MainWindow):
476 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
480 Update the cursor when the frame/page loading is finished.
482 This fixes https://bugs.webkit.org/show_bug.cgi?id=18712
485 * WebCoreSupport/FrameLoaderClientQt.cpp:
486 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
487 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
489 2008-04-29 Simon Hausmann <shausman@trolltech.com>
493 Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links.
495 Call QWebPage::acceptNavigationRequest when the creation of a new window with
496 URL is requested. The frame pointer is set to null in this case.
500 (QWebPage::setViewportSize):
501 * WebCoreSupport/FrameLoaderClientQt.cpp:
502 (WebCore::FrameLoaderClientQt::startDownload):
503 (WebCore::FrameLoaderClientQt::createFrame):
505 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
509 Use the WebCore facility to do the scrolling. Move some code around.
512 (QWebPagePrivate::keyPressEvent):
513 (QWebPagePrivate::shortcutOverrideEvent):
514 (QWebPagePrivate::handleScrolling):
517 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
521 fix potential crash when loading image(s)
523 Crash may occur. If compiled with 4.3, the variable is not initialized.
526 (QWebPagePrivate::QWebPagePrivate):
528 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
532 Calling QWebView::setCursor will override the WebCore Cursor.
533 Calling QWebView::setCursor will override the WebCore Cursor using
534 QWidget::unsetCursor will revert to the WebCore Cursor.
536 For detecting the unset we have to compare the shape of the
537 cursor to the default arrow. Qt::WA_SetCursor can not be used
538 as it is set unconditionally but conditionally removed.
540 Calling QWidget::setCursor will immediately send the CursorChange
541 event. We listen to this event to decide if we currently use a
542 WebCore cursor, got a cursor from outside, or revert to the default.
544 This should be race free and work reliable, the manual test for this
545 is WebCore/manual-tests/cursor.html
548 (SetCursorEvent::SetCursorEvent):
551 (QWebViewPrivate::QWebViewPrivate):
552 (QWebViewPrivate::setCursor):
553 (QWebView::QWebView):
556 2008-04-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
562 - Fixed a qdoc warning
563 - Mention that fav icons can be of arbitrary size
564 - Fix signature of QWebPage::acceptNavigationRequest show in the documentation
569 * Api/qwebsettings.cpp:
572 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
576 Fix QWebView::loadFinished isn't always emitted
578 Replaced loadDone() with loadFinished(bool) and moved the signals for progress
579 tracking (start, progres, and finish) to the page instead of the frame. This
580 ensures that we emit loadFinished even when a subframe started the actual load.
582 This causes a few regressions in the layout tests that we for now accept for
583 the sake of the correct API. Layout tests we can fix any time though, including
584 patch release, the API however we can't change anymore in patch releases.
589 (QWebPage::totalBytes):
594 * QtLauncher/main.cpp:
595 (MainWindow::MainWindow):
596 * WebCoreSupport/FrameLoaderClientQt.cpp:
597 (drtDescriptionSuitableForTestResult):
598 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
599 (WebCore::FrameLoaderClientQt::setFrame):
600 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
601 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
602 (WebCore::FrameLoaderClientQt::willChangeTitle):
603 (WebCore::FrameLoaderClientQt::createDocumentLoader):
604 (WebCore::FrameLoaderClientQt::download):
605 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
606 * WebCoreSupport/FrameLoaderClientQt.h:
608 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
612 Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame
615 * Api/qwebpluginfactory.cpp:
616 * Api/qwebsettings.cpp:
617 (QWebSettings::QWebSettings):
618 (QWebSettings::setUserStyleSheetUrl):
619 (QWebSettings::iconForUrl):
620 (QWebSettings::webGraphic):
621 (QWebSettings::maximumPagesInCache):
622 (QWebSettings::setFontFamily):
623 (QWebSettings::resetFontFamily):
624 (QWebSettings::testAttribute):
625 (QWebSettings::resetAttribute):
627 2008-04-28 Ariya Hidayat <ahidayat@trolltech.com>
631 Fix document/frame title not reset when loading a new URI
633 We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle()
634 will be called very soon with the correct title.
635 This properly resets the title when we navigate to a URI without a title.
638 * WebCoreSupport/FrameLoaderClientQt.cpp:
640 2008-04-28 David Boddie <dboddie@trolltech.com>
644 Minor documentation changes.
648 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
652 Prevent middle-click from triggering open URL from clipboard when the event has already been accepted.
656 (QWebPagePrivate::mouseMoveEvent):
657 (QWebPagePrivate::mousePressEvent):
658 (QWebPagePrivate::mouseDoubleClickEvent):
659 (QWebPagePrivate::mouseTripleClickEvent):
660 (QWebPagePrivate::mouseReleaseEvent):
662 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
666 Fix scrollbar behavior in QtWebKit to match QScrollBar.
668 Right click context menu is now supported, along with
669 middle click to center slider thumb over mouse cursor.
673 (QWebPage::linkDelegationPolicy):
675 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
679 Implemented channel-based logging for QtWebKit.
681 Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable.
682 Warnings for notImplemented() is still output by default, but can be disabled
683 by setting DISABLE_NI_WARNINGS=1.
686 (QWebPagePrivate::QWebPagePrivate):
688 2008-04-28 Simon Hausmann <shausman@trolltech.com>
690 Rubber-stamped by Lars
692 Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API.
699 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
703 Doc - adding more documentation to QWebFrame, QWebPage and QWebView
711 (QWebView::changeEvent):
713 2008-04-28 Simon Hausmann <shausman@trolltech.com>
717 Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens
719 Give the popups the right parent widget and the right coordinates relative within the parent.
724 2008-04-28 Benjamin Meyer <bmeyer@trolltech.com>
728 Doc: Add see also's (and a few minor whitespace/typo corrections)
732 (QWebFrame::~QWebFrame):
733 (QWebFrame::setHtml):
734 (QWebFrame::setContent):
735 (QWebFrame::parentFrame):
736 (QWebFrame::childFrames):
737 (QWebFrame::setScrollBarValue):
738 (QWebFrame::scrollBarValue):
739 (QWebFrame::scrollBarMaximum):
740 (QWebFrame::scrollBarMinimum):
743 (QWebFrame::geometry):
745 (QWebFrame::evaluateJavaScript):
747 (QWebPagePrivate::mousePressEvent):
748 (QWebPagePrivate::mouseDoubleClickEvent):
749 (QWebPage::~QWebPage):
750 (QWebPage::javaScriptPrompt):
752 (QWebPage::setViewportSize):
753 (QWebPage::acceptNavigationRequest):
755 (QWebPage::userAgentForUrl):
756 (QWebPagePrivate::_q_onLoadProgressChanged):
760 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
764 Submitting more documentation for QWebPage
769 2008-04-28 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
773 Compile when QT_NO_CLIPBOARD is defined.
777 (QWebPage::triggerAction):
779 2008-04-28 David Boddie <dboddie@trolltech.com>
783 Minor documentation fix.
786 * Api/qwebhistory.cpp:
788 2008-04-28 Holger Hans Peter Freyther <zecke@selfish.org>
792 Implement QWebPage::createPlugin
794 The code is coming from the demo browser and needed here
795 for some manual tests.
798 * QtLauncher/QtLauncher.pro:
799 * QtLauncher/main.cpp:
800 (WebPage::createPlugin):
802 2008-04-28 Simon Hausmann <hausmann@webkit.org>
804 Qt/Win build fix. Include config.h to get the implicit MathExtras.h
805 inclusion correct with regards to rand_s.
807 * Api/qwebhistory.cpp:
809 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
813 https://bugs.webkit.org/show_bug.cgi?id=18713
815 Fix scrollbar painting issues in QtWebKit.
817 Hovering and click-draging outside of the scrollbar would
818 produce unexpected and inconcistent results. We also didn't
819 pass on leave-events to the underlying WebKit code, which
820 was nessecary to implement the paint fix.
822 Note: The event handling of the Leave event should be moved
823 out of QWebView::event() and into a proper override for 4.5.
826 (QWebPagePrivate::leaveEvent):
831 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
833 Reviewed by Simon, Holger.
835 Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus.
837 * Correctly de- and reactivate the focused frame in focusOut/focusInEvent
838 without telling the focus controller. We don't want to change the focused frame
839 - the controller has to remember it in fact - but instead just deactivate the
840 frame for correct painting as RenderTheme::isFocused() uses the activation
844 (QWebPagePrivate::focusInEvent):
845 (QWebPagePrivate::focusOutEvent):
847 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
851 completed documentation for the Detailed Description section for QWebView
856 2008-04-25 Denis Dzyubenko <denis.dzyubenko@trolltech.com>
860 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.
863 * Api/qwebhistory.cpp:
865 (QWebHistory::forward):
866 (QWebHistory::goToItem):
868 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
872 Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest().
875 * WebCoreSupport/FrameLoaderClientQt.cpp:
876 (WebCore::FrameLoaderClientQt::createFrame):
878 2008-04-25 Simon Hausmann <hausmann@webkit.org>
882 When pressing backspace in a line edit in a webpage we should not go back to the previous page.
884 The shortcut for back on Windows is backspace. Implemented shortcut override
885 handling in QWebView/QWebPage to prevent this.
889 (QWebPagePrivate::wheelEvent):
890 (editorActionForKeyEvent):
891 (QWebPagePrivate::keyPressEvent):
892 (QWebPagePrivate::inputMethodEvent):
893 (QWebPagePrivate::shortcutOverrideEvent):
899 2008-04-25 Ariya Hidayat <ariya.hidayat@trolltech.com>
903 Fix triple-clicking does not work in a web page
907 (QWebPagePrivate::updateEditorActions):
908 (QWebPagePrivate::timerEvent):
909 (QWebPagePrivate::mousePressEvent):
910 (QWebPagePrivate::mouseDoubleClickEvent):
911 (QWebPage::undoStack):
914 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
918 When pressing Ctrl-Up the keyboard modifiers could include other modifiers
922 (QWebPagePrivate::keyPressEvent):
924 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
928 Fix handling of Javascript's confirm() function in QtWebKit.
933 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
937 Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity
942 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
946 QWebPage: missing signal when window.print() is requested from javascript
951 * WebCoreSupport/ChromeClientQt.cpp:
953 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
957 Fixes: "Save Image" action wasn't doing anything.
961 (QWebPage::triggerAction):
963 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
967 Apply key event changes to the current frame, not the main frame.
969 Example: hitting space bar should scroll current frame, not the main frame
970 which doesn't even have a scrollbar.
974 (QWebPagePrivate::keyPressEvent):
976 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
980 Fixes: QWebFrame crash when fetching the icon
982 Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock.
986 2008-04-25 Warwick Allison <warwick@trolltech.com>
990 Fixes: Scrollbars did not report correct maximum.
994 2008-04-25 David Boddie <dboddie@trolltech.com>
998 Documentation updates for some of the QWeb classes
1000 * Api/qwebframe.cpp:
1001 * Api/qwebhistory.cpp:
1002 * Api/qwebsettings.cpp:
1005 2008-04-25 Holger Hans Peter Freyther <zecke@selfish.org>
1009 Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html
1011 Similar to Editing and Frameloading we do the dumping within WebCore
1014 * WebCoreSupport/FrameLoaderClientQt.cpp:
1015 (qt_dump_frame_loader):
1016 (qt_dump_resource_load_callbacks):
1017 (drtDescriptionSuitableForTestResult):
1018 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
1019 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
1020 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
1022 2008-04-24 Anders Carlsson <andersca@apple.com>
1026 Change some String arguments to be const references instead.
1028 * WebCoreSupport/EditorClientQt.cpp:
1029 (WebCore::EditorClientQt::shouldInsertText):
1030 * WebCoreSupport/EditorClientQt.h:
1032 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
1036 Cosmetic changes to make the code more readable.
1037 -Early exit if we don't have a webview
1038 -handle the empty tooltip and non-empty tooltip case separately
1041 * WebCoreSupport/ChromeClientQt.cpp:
1042 (WebCore::ChromeClientQt::setToolTip):
1043 (WebCore::ChromeClientQt::print):
1045 2008-04-24 Paul Olav Tvete <paul@trolltech.com>
1049 Automatically wrap tooltip text and hide a shown tooltip when it is empty.
1051 QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds.
1052 Workaround as discussed with Matthias.
1054 * WebCoreSupport/ChromeClientQt.cpp:
1055 (WebCore::ChromeClientQt::setToolTip):
1057 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
1061 Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0)
1063 * Api/qwebsettings.cpp:
1064 (QWebSettings::setObjectCacheCapacities):
1066 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
1070 Improve keyboard scrolling
1072 Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom.
1076 (QWebPagePrivate::keyPressEvent):
1078 2008-04-24 Olivier Goffart <ogoffart@trolltech.com>
1082 Fix various compiler warnings in the Qt port.
1084 * Api/qwebframe.cpp:
1086 * Api/qwebsettings.cpp:
1088 * WebCoreSupport/FrameLoaderClientQt.cpp:
1089 (WebCore::FrameLoaderClientQt::createPlugin):
1091 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
1095 Cleaned up copyright headers (removed misplaced class descriptions and
1096 fixed inconsistent whitespace and indentation).
1098 * Api/qwebframe.cpp:
1100 * Api/qwebframe_p.h:
1101 * Api/qwebhistory.cpp:
1102 * Api/qwebhistory.h:
1103 * Api/qwebhistory_p.h:
1104 * Api/qwebhistoryinterface.cpp:
1105 * Api/qwebhistoryinterface.h:
1106 * Api/qwebkitglobal.h:
1107 * Api/qwebnetworkinterface.cpp:
1108 * Api/qwebnetworkinterface.h:
1109 * Api/qwebnetworkinterface_p.h:
1113 * Api/qwebpluginfactory.cpp:
1114 * Api/qwebpluginfactory.h:
1115 * Api/qwebsettings.cpp:
1116 * Api/qwebsettings.h:
1118 * QtLauncher/main.cpp:
1120 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
1124 Added basic URL guessing to QtLauncher (same as in the demo browser).
1127 * QtLauncher/main.cpp:
1128 (MainWindow::changeLocation):
1129 (MainWindow::guessUrlFromString):
1131 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
1133 Reviewed by Simon Hausmann <hausmann@webkit.org>.
1135 Prevent double deletions of the default web interface.
1138 * Api/qwebhistoryinterface.cpp:
1139 (gCleanupInterface):
1140 (QWebHistoryInterface::QWebHistoryInterface):
1142 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1144 Fix compilation against Qt 4.3
1147 (QWebPage::userAgentForUrl):
1148 * QtLauncher/main.cpp:
1151 2008-04-23 Holger Hans Peter Freyther <zecke@selfish.org>
1155 * Make sure the "Inspect Element" item gets added to the ContextMenu, a call
1156 to ContextMenu::populate() is not adding it, the ContextMenuController does
1157 add it after the call to populate(). Do that as well.
1161 (QWebPage::updatePositionDependentActions):
1163 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1167 Fix crashes on window.close().
1169 We should not delete the QWebPage object in the ChromeClient but leave it up to
1170 the application when and whether to delete a browser window. For this we now
1171 emit the windowCloseRequested() signal.
1177 * QtLauncher/main.cpp:
1178 (MainWindow::MainWindow):
1179 * WebCoreSupport/ChromeClientQt.cpp:
1181 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1185 Fix parsing of external scripts/stylesheets when using setHtml(const QString &html).
1187 We used to pass the html string to the frameloader in utf-16, which also meant that the default
1188 encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8
1189 by default. This is now also documented.
1191 * Api/qwebframe.cpp:
1192 (QWebFrame::setHtml):
1195 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
1199 Fixes background color propagation when using a custom QWebPage
1201 Set the palette in setPage(), not during the creation on-demand.
1206 (QWebView::setPage):
1208 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
1212 Fix the user agent on the mac to be BSD4
1214 Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac
1218 (QWebPage::userAgentForUrl):
1220 2008-04-23 Simon Hausmann <shausman@trolltech.com>
1224 Added missing copyright notice.
1225 Small fixes to the documentation.
1227 * Api/qwebpluginfactory.cpp:
1229 2008-04-23 Zack Rusin <zack@tungstengraphics.com>
1233 Added a contentsSize() property.
1235 * Api/qwebframe.cpp:
1236 (QWebFrame::contentsSize):
1237 (QWebFrame::hitTestContent):
1240 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1244 Fixes: QWebPage's QNetworkManager's can be shared among webpages.
1246 Don't force the deletion of the object, but let QObject take care of it.
1250 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1254 Documentation for QWebPluginFactory and documentation updates for QWebPage.
1257 (QWebPage::setLinkDelegationPolicy):
1258 (QWebPage::linkDelegationPolicy):
1259 (QWebPage::swallowContextMenuEvent):
1260 (QWebPage::updatePositionDependentActions):
1261 (QWebPage::extension):
1262 (QWebPage::networkAccessManager):
1263 * Api/qwebpluginfactory.cpp:
1264 (QWebPluginFactory::QWebPluginFactory):
1265 (QWebPluginFactory::~QWebPluginFactory):
1266 (QWebPluginFactory::refreshPlugins):
1268 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1272 Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions.
1276 (QWebPagePrivate::QWebPagePrivate):
1277 (QWebPagePrivate::mouseReleaseEvent):
1278 (QWebPage::setLinkDelegationPolicy):
1279 (QWebPage::linkDelegationPolicy):
1280 (QWebPage::swallowContextMenuEvent):
1281 (QWebPage::updatePositionDependentActions):
1287 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1291 Added Extension APIs for QWebPage.
1294 (QWebPage::setLinkDelegationPolicy):
1295 (QWebPage::linkDelegationPolicy):
1296 (QWebPage::extension):
1298 * Api/qwebpluginfactory.cpp:
1299 (QWebPluginFactory::extension):
1301 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
1305 Emit loadProgress() signal on loadStarted().
1308 * WebCoreSupport/FrameLoaderClientQt.cpp:
1309 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
1311 2008-04-22 Zack Rusin <zack@kde.org>
1315 Fix background propagation from the QWebView's palette.
1317 The background brush of the palette needs to be propagated to the WebCore::FrameView.
1319 * Api/qwebframe.cpp:
1320 (QWebFramePrivate::updateBackground):
1321 * Api/qwebframe_p.h:
1323 (QWebPagePrivate::dropEvent):
1324 (QWebPage::setPalette):
1329 (QWebView::changeEvent):
1331 * WebCoreSupport/FrameLoaderClientQt.cpp:
1333 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1339 We have to include a version in the Safari tag in the user-agent.
1342 (QWebPage::userAgentForUrl):
1344 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
1348 Add visual focusing hint for clear button and
1349 change focus to web page after user enters new URL.
1351 * QtLauncher/main.cpp:
1352 (ClearButton::paintEvent):
1353 (MainWindow::changeLocation):
1355 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1359 Added QWebFrame::hitTestContent() and QWebHitTestResult.
1361 * Api/qwebframe.cpp:
1362 (QWebFrame::hitTestContent):
1364 (QWebHitTestResult::QWebHitTestResult):
1365 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1366 (QWebHitTestResult::operator=):
1367 (QWebHitTestResult::~QWebHitTestResult):
1368 (QWebHitTestResult::isNull):
1369 (QWebHitTestResult::pos):
1370 (QWebHitTestResult::title):
1371 (QWebHitTestResult::linkText):
1372 (QWebHitTestResult::linkUrl):
1373 (QWebHitTestResult::linkTitle):
1374 (QWebHitTestResult::linkTargetFrame):
1375 (QWebHitTestResult::alternateText):
1376 (QWebHitTestResult::imageUrl):
1377 (QWebHitTestResult::pixmap):
1378 (QWebHitTestResult::isContentEditable):
1379 (QWebHitTestResult::isContentSelected):
1380 (QWebHitTestResult::frame):
1382 * Api/qwebframe_p.h:
1383 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1385 (QWebPagePrivate::contextMenuEvent):
1386 (QWebPage::triggerAction):
1390 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1394 Don't crash if an input method query is done without a page.
1398 (QWebView::inputMethodQuery):
1400 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1404 Added re-implementations of QObject::event for future safety.
1406 This makes it easier to fix bugs with the event handling even in patch releases
1407 and is a general style we follow in Qt.
1410 * Api/qwebframe.cpp:
1416 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1420 Fix construction of the user agent.
1422 The user-agent is now composed of
1423 * the platform and subplatform
1424 * the Qt version or application name and version (if set)
1430 (QWebPage::networkAccessManager):
1431 (QWebPage::setPluginFactory):
1432 (QWebPage::pluginFactory):
1433 (QWebPage::userAgentForUrl):
1434 * QtLauncher/main.cpp:
1436 2008-04-22 Thiago Macieira <tjmaciei@trolltech.com>
1440 Fixes: Pedantic compilation fix
1442 Don't put semi-colons after braces closing namespaces.
1444 * Api/qwebsettings.h:
1446 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1450 Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant.
1452 * Api/qwebframe.cpp:
1453 (QWebFrame::evaluateJavaScript):
1456 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1460 Fixes redundant "Fonts" submenu in default lineedits that has only disabled items.
1462 Don't show sub-menus that have only actions that are disabled.
1465 (QWebPagePrivate::createContextMenu):
1467 2008-04-21 Kavindra Devi Palaraja <kdpalara@trolltech.com>.
1471 Lots of documentation fixes, fixed all qdoc warnings.
1473 * Api/qwebframe.cpp:
1474 (QWebFrame::setTextSizeMultiplier):
1475 * Api/qwebhistoryinterface.cpp:
1476 (gCleanupInterface):
1477 (QWebHistoryInterface::QWebHistoryInterface):
1478 (QWebHistoryInterface::~QWebHistoryInterface):
1480 (QWebPage::inputMethodQuery):
1482 (QWebPage::javaScriptConsoleMessage):
1483 (QWebPage::javaScriptAlert):
1484 (QWebPage::javaScriptConfirm):
1485 (QWebPage::javaScriptPrompt):
1486 (QWebPage::viewportSize):
1487 (QWebPage::acceptNavigationRequest):
1490 (QWebPage::focusNextPrevChild):
1491 (QWebPage::setForwardUnsupportedContent):
1492 (QWebPage::setLinkDelegationPolicy):
1493 (QWebPage::findText):
1494 (QWebPage::settings):
1495 (QWebPage::networkProxy):
1496 (QWebPage::setNetworkAccessManager):
1498 * Api/qwebsettings.cpp:
1499 (QWebSettings::QWebSettings):
1500 (QWebSettings::setIconDatabasePath):
1501 (QWebSettings::iconForUrl):
1502 (QWebSettings::fontFamily):
1507 2008-04-21 Marius Bugge Monsen <mmonsen@trolltech.com>
1511 Fix compile failure on solaris-cc
1513 * Api/qwebpage.h: Removed trailing semicolons and moved the private
1514 d-pointer to not confuse the compiler
1516 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1520 Build fix for Qt 4.3
1522 * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is
1523 always defined. Do this by adding defines to the compiler line
1524 * For users of our API this is not feasible. Every public header file should
1525 include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE
1526 when we are building everything < 4.4.0 and don't have them defined.
1528 * Api/qwebkitglobal.h:
1530 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1534 * Initialize the WebGraphics with the one found in WebCore
1537 * Api/qwebsettings.cpp:
1538 (QWebSettingsPrivate::apply):
1540 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1544 * Allow TextAreas to be resized.
1545 * No QWebSettings for this is introduced.
1548 * Api/qwebsettings.cpp:
1549 (QWebSettingsPrivate::apply):
1551 2008-04-21 Simon Hausmann <shausman@trolltech.com>
1555 Fixes: QWebView::url property behaviour strange in designer
1557 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.
1559 * Api/qwebframe.cpp:
1560 (QWebFrame::setUrl):
1566 2008-04-21 Andre Poenitz <andre.poenitz@trolltech.com>
1568 Reviewed by Simon Hausmann <hausmann@webkit.org>.
1570 Fix compilation with Qt namespaces
1572 * Api/qwebframe.cpp:
1576 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1580 When printing on high resolution printers we need to scale the painter accordingly (for now).
1582 * Api/qwebframe.cpp:
1585 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1589 Provide a print preview in the QtLauncher
1591 * QtLauncher/main.cpp:
1592 (MainWindow::MainWindow):
1593 (MainWindow::showLinkHover):
1594 (MainWindow::print):
1596 2008-04-20 Simon Hausmann <hausmann@webkit.org>
1598 Reviewed by Alp Toker.
1600 Share the printing code between the Gtk and the Qt port
1601 and added printing to the Qt WebKit API.
1603 * Api/qwebframe.cpp:
1610 2008-04-19 Julien Chaffraix <jchaffraix@webkit.org>
1612 Qt build fix (renderer() -> contentRenderer()).
1614 * Api/qwebframe.cpp:
1615 (QWebFrame::renderTreeDump):
1616 (QWebFrame::render):
1618 2008-04-18 Simon Hausmann <hausmann@webkit.org>
1622 Many API changes and additions after a full review with Jasmin Blanchette <jasmin@trolltech.com>
1624 The diff is too big to mention the changes individually, but most of the changes were of cosmetic
1625 nature where methods or enums have been renamed or prefixed/suffixed according to the consistency
1626 rules of the Qt API.
1628 * Api/qwebframe.cpp:
1629 (QWebFrame::addToJavaScriptWindowObject):
1630 (QWebFrame::toHtml):
1631 (QWebFrame::toPlainText):
1633 (QWebFrame::setContent):
1634 (QWebFrame::setScrollBarPolicy):
1635 (QWebFrame::render):
1636 (QWebFrame::setTextSizeMultiplier):
1637 (QWebFrame::textSizeMultiplier):
1640 * Api/qwebhistory.cpp:
1641 * Api/qwebhistory.h:
1643 (QWebPagePrivate::QWebPagePrivate):
1644 (QWebPagePrivate::~QWebPagePrivate):
1645 (QWebPagePrivate::acceptNavigationRequest):
1646 (webActionForContextMenuAction):
1647 (QWebPagePrivate::updateAction):
1648 (QWebPagePrivate::keyPressEvent):
1650 (QWebPage::javaScriptPrompt):
1651 (QWebPage::createWindow):
1652 (QWebPage::triggerAction):
1653 (QWebPage::setViewportSize):
1654 (QWebPage::acceptNavigationRequest):
1656 (QWebPage::focusNextPrevChild):
1657 (QWebPage::setForwardUnsupportedContent):
1658 (QWebPage::forwardUnsupportedContent):
1659 (QWebPage::setLinkDelegationPolicy):
1660 (QWebPage::findText):
1661 (QWebPage::networkAccessManager):
1662 (QWebPageContext::imageUrl):
1663 (QWebPageContext::image):
1666 * Api/qwebsettings.cpp:
1667 (QWebSettingsPrivate::apply):
1668 (QWebSettings::QWebSettings):
1669 (QWebSettings::setIconDatabasePath):
1670 (QWebSettings::iconDatabasePath):
1671 (QWebSettings::clearIconDatabase):
1672 (QWebSettings::iconForUrl):
1673 (QWebSettings::setWebGraphic):
1674 (QWebSettings::fontFamily):
1675 (QWebSettings::setAttribute):
1676 (QWebSettings::testAttribute):
1677 (QWebSettings::resetAttribute):
1678 * Api/qwebsettings.h:
1680 (QWebView::setPage):
1682 (QWebView::setTextSizeMultiplier):
1683 (QWebView::textSizeMultiplier):
1684 (QWebView::findText):
1686 (QWebView::mouseMoveEvent):
1688 * QtLauncher/main.cpp:
1689 (MainWindow::MainWindow):
1691 * WebCoreSupport/ChromeClientQt.cpp:
1692 (WebCore::ChromeClientQt::ChromeClientQt):
1693 (WebCore::ChromeClientQt::setWindowRect):
1694 (WebCore::ChromeClientQt::toolbarsVisible):
1695 (WebCore::ChromeClientQt::setStatusbarVisible):
1696 (WebCore::ChromeClientQt::statusbarVisible):
1697 (WebCore::ChromeClientQt::setScrollbarsVisible):
1698 (WebCore::ChromeClientQt::setResizable):
1699 (WebCore::ChromeClientQt::scrollBackingStore):
1700 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
1701 (WebCore::ChromeClientQt::setToolTip):
1702 * WebCoreSupport/ChromeClientQt.h:
1703 * WebCoreSupport/FrameLoaderClientQt.cpp:
1704 (WebCore::FrameLoaderClientQt::setFrame):
1705 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
1706 (WebCore::FrameLoaderClientQt::setMainDocumentError):
1707 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
1708 (WebCore::FrameLoaderClientQt::createFrame):
1709 (WebCore::FrameLoaderClientQt::objectContentType):
1710 * WebCoreSupport/FrameLoaderClientQt.h:
1711 * WebCoreSupport/InspectorClientQt.cpp:
1713 2008-04-18 Simon Hausmann <hausmann@webkit.org>
1717 Added QWebView::find/QWebFrame::find.
1720 (QWebPage::focusNextPrevChild):
1727 2008-04-15 Ariya Hidayat <ariya.hidayat@trolltech.com>
1731 fix potential crash when loading image(s)
1733 Crash may occur. If compiled with 4.3, the variable is not initialized.
1734 This fix solves https://bugs.webkit.org/show_bug.cgi?id=17174
1737 (QWebPagePrivate::QWebPagePrivate):
1739 2008-04-15 Simon Hausmann <hausmann@webkit.org>
1743 Update the micro focus for input methods as soon as the composition mode changes
1744 or the caret/selection changes.
1750 (QWebView::setPage):
1751 * WebCoreSupport/EditorClientQt.cpp:
1752 (WebCore::EditorClientQt::respondToChangedSelection):
1753 (WebCore::EditorClientQt::setInputMethodState):
1755 2008-04-15 Simon Hausmann <hausmann@webkit.org>
1759 Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application,
1760 it yields undefined behaviour or wrong default codec initialization.
1763 * QtLauncher/main.cpp:
1764 (WebPage::createWindow):
1766 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
1770 Fixes: copy to clipboard when selecting, and paste when clicking with the middle button
1773 (QWebPagePrivate::mouseReleaseEvent): If the clipboard supports
1774 selections then we support copy & paste into the selection.
1776 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
1780 Add basic input method support.
1784 (QWebPagePrivate::dropEvent):
1785 (QWebPagePrivate::inputMethodEvent):
1786 (QWebPage::inputMethodQuery):
1791 (QWebView::QWebView):
1792 (QWebView::inputMethodQuery):
1793 (QWebView::inputMethodEvent):
1795 * WebCoreSupport/EditorClientQt.cpp:
1796 (WebCore::EditorClientQt::setInputMethodState):
1798 2008-04-15 Simon Hausmann <hausmann@webkit.org>
1802 Added (QWebFrame|QWebView)::textZoomFactor.
1805 * Api/qwebframe.cpp:
1806 (QWebFrame::setTextZoomFactor):
1807 (QWebFrame::textZoomFactor):
1810 (QWebView::setTextZoomFactor):
1811 (QWebView::textZoomFactor):
1814 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
1818 Added simple scrolling API to QWebFrame.
1820 The intent is that it works similar to QAbstractScrollArea.
1823 * Api/qwebframe.cpp:
1824 (QWebFrame::setScrollBarValue):
1825 (QWebFrame::scrollBarValue):
1826 (QWebFrame::scrollBarMaximum):
1827 (QWebFrame::scrollBarMinimum):
1830 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
1834 Fixes: implement the OpenFrameInNewWindow action.
1838 (QWebPage::triggerAction):
1840 2008-04-15 Andre Poenitz <andre.poenitz@trolltech.com>
1844 Fix compilation with Qt namespaces
1846 Qt can be configured to have all of its classes inside a specified namespaces.
1847 This is for example used in plugin/component environments like Eclipse.
1849 This change makes it possible to let the Qt port compile against a namespaced
1850 Qt by the use of macros Qt provides to properly forward declare Qt classes in
1856 * Api/qwebpluginfactory.h:
1857 * Api/qwebsettings.h:
1860 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
1864 Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard.
1868 (QWebPage::triggerAction):
1870 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
1874 Fixes: Right click, and "Open image" open the link instead of the image.
1879 2008-04-05 Benjamin Meyer <bmeyer@trolltech.com>
1883 Added doc stub for QWebSettings so class docs are generated
1886 * Api/qwebsettings.cpp:
1887 (QWebSettings::QWebSettings):
1889 2008-04-05 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1893 * Propose the addition of updateRequest and scrollRequest to the QWebPage.
1895 * The question is if these signals belong to QWebPage or QWebFrame.
1896 -It is more easy to have them in QWebPage because ScrollView is invoking
1897 the ChromeClient with the right coordinates
1898 -On the other hand someone wants to render frames separately. But this is partly
1899 doomed as you can have overlapping frames and what you paint would not relate to
1900 what you normally see on webpages.
1905 * WebCoreSupport/ChromeClientQt.cpp:
1906 (WebCore::ChromeClientQt::scrollBackingStore):
1907 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
1909 2008-04-03 Simon Hausmann <hausmann@webkit.org>
1911 Reviewed by Mark Rowe.
1913 Roll out r31599 and r31605 again after discussion with Mark Rowe.
1915 * Api/qwebframe.cpp:
1917 * Api/qwebsettings.cpp:
1918 (QWebSettings::iconForUrl):
1920 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1924 * Change IconDatabase::iconForPageURL to return more information. E.g. if
1925 an image has been found, or if the loading of an image has been scheduled.
1926 * Update FrameLoader to use another method to trigger reading from disk
1927 * Update the QWebFrame and QWebSettings
1929 * Api/qwebframe.cpp:
1931 * Api/qwebsettings.cpp:
1932 (QWebSettings::iconForUrl):
1934 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1938 * Safari is using the IconDatabase the following way (assumption). Before they
1939 call iconDatabase()->open they "retain" all URLs they are interested in, these
1940 could come from the history.
1941 * When opening the iconDatabase() a thread will be started that is going to import
1942 the URLs, all none manually retained URLs are scheduled for removal. The removal
1943 is going to happen when the next icon gets stored in the database.
1944 * We do not have any IconDatabase code, we can not retain the URLs before opening the
1945 database. To disable the automatic pruning of the icons we will ask the IconDatabase
1946 to delay this operation. This means our IconDatabase, when used, will grow, so we should
1947 try to have a IconDatabase class in 4.4.
1948 * The only way to counter the growth is a call to QWebSettings::clearIconDatabase
1951 * Api/qwebsettings.cpp:
1952 (QWebSettings::clearIconDatabase):
1953 * Api/qwebsettings.h:
1955 2008-04-03 Benjamin Meyer <bmeyer@trolltech.com>
1959 Add a way to get the site icon for a url
1960 static QPixmap iconForUrl(const QUrl &url);
1963 * Api/qwebsettings.cpp:
1964 (QWebSettings::iconForUrl):
1965 * Api/qwebsettings.h:
1967 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1971 * Update the Copyright info in QWebSettings
1974 * Api/qwebsettings.cpp:
1975 * Api/qwebsettings.h:
1977 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1981 * The isEmpty check is not needed anymore with the earlier backport
1984 * Api/qwebframe.cpp:
1987 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1991 * For the http tests we need the output of the FrameLoaderClient. The QtWebKit API
1992 is not exporting enough to create the output in DRT itself. Settle with the approach
1993 Lars has taken for the Editing support and add branches to our FrameLoaderClient code.
1994 * run-webkit-tests http/tests(/loading) can now be executed.
1995 * For tests in loading/ directories we are going to throw away the dirty
1996 QWebPage to start with something clean.
1999 * WebCoreSupport/FrameLoaderClientQt.cpp:
2000 (qt_dump_frame_loader):
2001 (drtDescriptionSuitableForTestResult):
2002 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
2003 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
2004 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2005 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
2006 (WebCore::FrameLoaderClientQt::dispatchWillClose):
2007 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2008 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2009 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2010 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
2011 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2012 (WebCore::FrameLoaderClientQt::registerForIconNotification):
2013 (WebCore::FrameLoaderClientQt::setMainDocumentError):
2014 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2016 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2020 * Export the PageCache and Cache capacity call one to one. This is only there
2021 to allow the QtLauncher to play with caching.
2022 * TODO: make API decisions and consider following the windows Api to set a WebCacheModel
2023 and determine certain values automatically.
2026 * Api/qwebsettings.cpp:
2027 (QWebSettings::setPageCacheCapacity):
2028 (QWebSettings::setObjectCacheCapacities):
2029 * Api/qwebsettings.h:
2030 * QtLauncher/main.cpp:
2032 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2036 Prepapre everything for enabling the PageCache for the Qt Platform:
2037 * Claim that we can cache pages
2038 * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using
2039 the initial size of the viewport and stop creating it in the QWebFramePrivate::init
2041 Differences to the Windows port:
2042 * attachToWindow/detachFromWindow is not called and is not (yet) part
2043 of Widget/ScrollView of the Qt platform. We might need that for plugin
2044 support in the future.
2045 * We store the margin's and scrolling flag inside QWebFrame and use it when
2046 creating the FrameView.
2049 * API to call pageCache()->setCapacity(XYZ);
2052 * Api/qwebframe.cpp:
2053 (QWebFramePrivate::init):
2054 * Api/qwebframe_p.h:
2055 (QWebFramePrivate::QWebFramePrivate):
2057 (QWebPagePrivate::createMainFrame):
2058 * WebCoreSupport/FrameLoaderClientQt.cpp:
2059 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2060 (WebCore::FrameLoaderClientQt::blockedError):
2062 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2066 * For the PageCache support we do not want to create a FrameView in the constructor
2067 of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will
2068 create a QWebFrame if no mainFrame is present and this gets called when we try to
2069 create a FrameView...
2070 * Keep a copy of the initial viewportSize around and use it if we do not have a Frame
2075 (QWebPagePrivate::QWebPagePrivate):
2076 (QWebPage::triggerAction):
2079 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2083 * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port
2085 * WebCoreSupport/FrameLoaderClientQt.cpp:
2088 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2092 * Attempt to make the m_webFrame null pointer checking consistent. Always check for
2093 m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame
2094 call and should stay valid until the destruction of the QWebFrame.
2095 * Currently the same checking is not needed for m_frame as it will only set to 0 in
2096 FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame
2100 * WebCoreSupport/FrameLoaderClientQt.cpp:
2101 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2102 (WebCore::FrameLoaderClientQt::setMainDocumentError):
2103 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
2104 (WebCore::FrameLoaderClientQt::objectContentType):
2105 (WebCore::FrameLoaderClientQt::createPlugin):
2107 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2111 * Get the RefCounting of WebCore::Frame right and make sure that both QWebFrame
2112 and WebCore::Frame get destroyed if we leave site with subframes and on the
2113 end of the application.
2114 * Use adoptRef in FrameLoaderClientQt::createFrame to get the refs right for subframes. We
2115 do not want to add an extra reference. Without this we are leaking subframes.
2116 * Assume that the lifetime of a Frame and FrameLoader are the same, when the Frame is gone
2117 we want to destroy the QWebFrame (e.g. on a page with subframes). Add delete m_webFrame
2118 in the frameLoaderDestroyed method to do that.
2119 * If we happen to delete the QWebFrame before the FrameLoaderClientQt we set m_webFrame to
2120 zero in the FrameLoaderClientQt to avoid bad things.
2123 * Api/qwebframe.cpp:
2124 (QWebFrame::~QWebFrame):
2125 * WebCoreSupport/FrameLoaderClientQt.cpp:
2126 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2127 (WebCore::FrameLoaderClientQt::objectContentType):
2128 * WebCoreSupport/FrameLoaderClientQt.h:
2130 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2134 * Do not save a RefPtr to the frame. The FrameLoaderClient, Frame and
2135 QWebFrame should have the same lifetime everything else is a leak
2138 * Api/qwebframe.cpp:
2139 (QWebFramePrivate::init):
2140 * Api/qwebframe_p.h:
2141 * WebCoreSupport/FrameLoaderClientQt.cpp:
2143 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2147 * Do not store the QWebFrame associated with a ScrollView/FrameView
2148 in the WebCore::Widget.
2149 * Instead of asking the Widget for the QWebFrame use the QWebFramePrivate::core
2150 and QWebFramePrivate::kit function to convert from and to QWebFrame.
2153 * Api/qwebframe.cpp:
2154 (QWebFramePrivate::init):
2156 (QWebPagePrivate::createMainFrame):
2158 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2162 * Do not store the FrameView in the QWebFrame and cope with the situation when
2163 a WebCore::Frame has no WebCore::FrameView.
2166 * Api/qwebframe.cpp:
2167 (QWebFramePrivate::init):
2168 (QWebFramePrivate::horizontalScrollBar):
2169 (QWebFramePrivate::verticalScrollBar):
2170 (QWebFrame::innerText):
2171 (QWebFrame::renderTreeDump):
2172 (QWebFrame::setVerticalScrollBarPolicy):
2173 (QWebFrame::setHorizontalScrollBarPolicy):
2174 (QWebFrame::render):
2175 (QWebFrame::layout):
2177 * Api/qwebframe_p.h:
2178 (QWebFramePrivate::QWebFramePrivate):
2180 (QWebPagePrivate::updateEditorActions):
2181 (QWebPagePrivate::mouseMoveEvent):
2182 (QWebPagePrivate::mousePressEvent):
2183 (QWebPagePrivate::mouseDoubleClickEvent):
2184 (QWebPagePrivate::contextMenuEvent):
2185 (QWebPagePrivate::wheelEvent):
2186 (QWebPage::triggerAction):
2187 * WebCoreSupport/FrameLoaderClientQt.cpp:
2189 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2193 * Change the order of the methods to match with the FrameLoaderClient.h to ease
2194 removing methods in the future.
2196 * WebCoreSupport/FrameLoaderClientQt.h:
2198 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2202 * Remove virtuals in the FrameLoaderClientQt that don't exist in the base class.
2204 * WebCoreSupport/FrameLoaderClientQt.cpp:
2205 (WebCore::FrameLoaderClientQt::detachedFromParent4):
2206 * WebCoreSupport/FrameLoaderClientQt.h:
2208 2008-03-25 Brady Eidson <beidson@apple.com>
2212 Remove newly obsolete FrameLoaderClient methods
2214 * WebCoreSupport/FrameLoaderClientQt.cpp:
2215 * WebCoreSupport/FrameLoaderClientQt.h:
2217 2008-03-22 Mark Rowe <mrowe@apple.com>
2221 * WebCoreSupport/FrameLoaderClientQt.cpp:
2224 2008-03-18 Simon Hausmann <hausmann@webkit.org>
2228 Fix the Qt build. Don't return void in non-void functions.
2230 * Api/qwebpluginfactory.cpp:
2231 (QWebPluginFactory::extension):
2233 2008-03-16 Thiago Macieira <thiago.macieira@trolltech.com>
2237 Don't use RefPtr in classes you haven't seen the implementation of.
2239 Forward-declaration and declaration of RefPtr<Foo> is ok. But you
2240 cannot *use* said objects until Foo is defined. This is true even for
2241 initialisation with a 0.
2243 Seems the HP aCC compiler is more strict here than gcc.
2245 * Api/qwebframe_p.h:
2247 2008-03-14 Simon Hausmann <hausmann@webkit.org>
2251 * Api/qwebframe.cpp:
2252 (QWebFrame::setHtml):
2253 (QWebFrame::setContent):
2255 2008-03-13 Simon Hausmann <hausmann@webkit.org>
2259 * Api/qwebframe.cpp:
2260 (QWebFrame::addToJSWindowObject):
2262 2008-03-12 Simon Hausmann <hausmann@webkit.org>
2264 Fix compilation against Qt 4.3
2270 2008-03-11 Rodney Dawes <dobey@wayofthemonkey.com>
2274 * WebCoreSupport/FrameLoaderClientQt.cpp:
2275 (FrameLoaderClientQt::CreatePlugin):
2277 2008-03-11 Simon Hausmann <hausmann@webkit.org>
2279 Fix the Qt build (silly typo).
2281 * QtLauncher/main.cpp:
2282 (MainWindow::MainWindow):
2284 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
2288 Moved obscuring progress bar to the lower right corner.
2290 * QtLauncher/main.cpp:
2291 (MainWindow::MainWindow):
2292 (MainWindow::resizeEvent):
2294 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
2298 Added reload action and grouped stop and reload actions together.
2300 * QtLauncher/main.cpp:
2301 (MainWindow::MainWindow):
2303 2008-03-11 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2307 * Set a Icon on the QAction if we have one.
2312 2008-03-11 Simon Hausmann <hausmann@webkit.org>
2316 * Api/qwebframe.cpp:
2317 (QWebFrame::addToJSWindowObject):
2319 2008-03-07 Simon Hausmann <hausmann@webkit.org>
2325 Replaced the QWebObjectPlugin interfaces with QWebPluginFactory.
2327 * Api/qwebnetworkinterface.cpp:
2328 (QWebNetworkManager::add):
2329 (QWebNetworkManager::cancel):
2330 (QWebNetworkManager::started):
2331 (QWebNetworkManager::data):
2332 (QWebNetworkManager::finished):
2333 * Api/qwebnetworkinterface_p.h:
2334 (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
2335 * Api/qwebobjectplugin.cpp: Removed.
2336 * Api/qwebobjectplugin.h: Removed.
2337 * Api/qwebobjectplugin_p.h: Removed.
2338 * Api/qwebobjectpluginconnector.cpp: Removed.
2339 * Api/qwebobjectpluginconnector.h: Removed.
2341 (QWebPagePrivate::QWebPagePrivate):
2342 (QWebPage::setPluginFactory):
2343 (QWebPage::pluginFactory):
2346 * Api/qwebpluginfactory.cpp: Added.
2347 (QWebPluginFactory::QWebPluginFactory):
2348 (QWebPluginFactory::~QWebPluginFactory):
2349 (QWebPluginFactory::refreshPlugins):
2350 (QWebPluginFactory::extension):
2351 * Api/qwebpluginfactory.h: Added.
2353 * WebCoreSupport/FrameLoaderClientQt.cpp:
2354 (WebCore::FrameLoaderClientQt::objectContentType):
2355 (WebCore::FrameLoaderClientQt::createPlugin):
2357 2008-03-07 Simon Hausmann <hausmann@webkit.org>
2361 * Api/qwebframe.cpp:
2363 2008-03-04 Sam Weinig <sam@webkit.org>
2365 Reviewed by Mark Rowe.
2367 - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
2370 * Api/qwebframe.cpp:
2371 (QWebFrame::addToJSWindowObject):
2373 2008-03-04 Mark Rowe <mrowe@apple.com>
2375 Another go at fixing the Qt build.
2377 * Api/qwebframe.cpp:
2378 (QWebFrame::addToJSWindowObject):
2380 2008-02-24 Darin Adler <darin@apple.com>
2384 - remove separate client calls for "standard" and "reload' history
2386 * WebCoreSupport/FrameLoaderClientQt.cpp:
2387 (WebCore::FrameLoaderClientQt::updateGlobalHistory):
2388 * WebCoreSupport/FrameLoaderClientQt.h:
2390 2008-02-24 Darin Adler <darin@apple.com>
2392 - another try at fixing the build
2394 * Api/qwebframe.cpp:
2395 (QWebFrame::load): Replace new FormData with FormData::create.
2397 2008-02-22 Sam Weinig <sam@webkit.org>
2401 * Api/qwebhistoryinterface.cpp:
2403 2008-02-22 Sam Weinig <sam@webkit.org>
2405 Rubber-stamped by Adam Roben.
2407 Rid the project of the Devil known as DeprecatedString!
2409 * Api/qwebhistory.cpp:
2410 * Api/qwebhistoryinterface.cpp:
2412 2008-02-18 Darin Adler <darin@apple.com>
2416 * Api/qwebnetworkinterface.cpp:
2417 (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString.
2419 2008-01-24 David Boddie <dboddie@trolltech.com>
2423 Documentation tidying.
2426 * Api/qwebframe.cpp:
2427 * Api/qwebhistoryinterface.cpp:
2430 2008-01-24 Jarek Kobus <jkobus@trolltech.com>
2434 Text for translations were used wrongly as comments
2437 * WebCoreSupport/FrameLoaderClientQt.cpp:
2439 (WebCore::FrameLoaderClientQt::cannotShowURLError):
2440 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2441 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2442 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2443 (WebCore::FrameLoaderClientQt::shouldFallBack):
2445 2008-01-24 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2449 * We have a KURL->QUrl conversion on KURL itself, make use of it.
2450 * This conversion is supposed to be loss-free
2453 * Api/qwebframe.cpp:
2455 2008-01-23 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2457 * Rubber stamped by Simon
2459 * Fix leaking of sub frames (WebCore::Frame). We keep one reference too many.
2460 This was found while working on the page-cache, other ports are not affected.
2462 * WebCoreSupport/FrameLoaderClientQt.cpp:
2463 (WebCore::FrameLoaderClientQt::createFrame):
2465 2008-01-23 Rohan McGovern <rohan.mcgovern@trolltech.com>
2467 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2469 Fix Qtopia compilation with QT_NO_TOOLTIP
2472 * WebCoreSupport/ChromeClientQt.cpp:
2473 (WebCore::ChromeClientQt::print):
2475 2008-01-23 Geir Vattekar <gvatteka@trolltech.com>
2479 Doc: Replaced \code with snippets in the docs
2484 2008-01-23 Benjamin Meyer <bmeyer@trolltech.com>
2488 Tweak key presses even to match commonly expected behavior
2489 - space key == page down
2490 - page down moved down not a page, but slightly less then a page so you don't loose your spot when reading.
2491 - Use font height rather then a hard coded "10" for left, right, up, down
2492 - Ctrl-Up moves to the top of the page
2493 - Ctrl-Down move to the bottom of the page
2494 - Backspace == GoBack
2495 - Shift-Backspace == GoForward
2499 (dropActionToDragOp):
2500 (dragOpToDropAction):
2501 (QWebPagePrivate::keyPressEvent):
2503 2008-01-23 Simon Hausmann <hausmann@webkit.org>
2507 Implemented FrameLoaderClient::startDownload() and FrameLoaderClient::download().
2509 Added two signals to QWebPage to handle downloading of links and handling of
2510 unsupported content.
2514 (QWebPage::triggerAction):
2516 * WebCoreSupport/FrameLoaderClientQt.cpp:
2517 (WebCore::FrameLoaderClientQt::download):
2518 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2519 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2520 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2521 (WebCore::FrameLoaderClientQt::willUseArchive):
2523 2008-01-22 Lars Knoll <lars@trolltech.com>
2527 setup a family for cursive and fantasy fonts as well.
2530 * Api/qwebsettings.cpp:
2531 (QWebSettings::QWebSettings):
2533 2008-01-22 Benjamin Meyer <bmeyer@trolltech.com>
2537 Implement ChromeClientQt::setToolTip
2538 Implement ChromeClientQt::mouseDidMoveOverElement
2543 * WebCoreSupport/ChromeClientQt.cpp:
2544 (WebCore::ChromeClientQt::ChromeClientQt):
2545 (WebCore::ChromeClientQt::focus):
2546 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2547 (WebCore::ChromeClientQt::setToolTip):
2548 (WebCore::ChromeClientQt::print):
2549 * WebCoreSupport/ChromeClientQt.h:
2551 2008-01-21 Darin Adler <darin@apple.com>
2553 Reviewed by John Sullivan.
2555 - updated for changes to ChromeClient database functions
2557 * WebCoreSupport/ChromeClientQt.cpp:
2558 (WebCore::ChromeClientQt::exceededDatabaseQuota):
2559 * WebCoreSupport/ChromeClientQt.h:
2561 2008-01-21 Benjamin Meyer <bmeyer@trolltech.com>
2565 Change QWebHistoryInterface::addHistoryEntry() from const to non-const
2568 * Api/qwebhistoryinterface.h:
2570 2008-01-21 Adam Treat <treat@kde.org>
2574 * Don't leak the d-pointer in QWebSettings.
2577 * Api/qwebsettings.cpp:
2578 (QWebSettings::~QWebSettings):
2580 2008-01-21 Simon Hausmann <hausmann@webkit.org>
2584 Update the WebKit version number from WebKit/win/WebKit.vcproj/VERSION.
2586 This has the fortunate side-effect that gmail sends us sensible HTML/JS again :)
2591 2008-01-21 Simon Hausmann <hausmann@webkit.org>
2595 Fix focus chain handling and cycling through focusable objects (links) using tab/backtab.
2597 * Fix GraphicsContext::drawFocusRing to also draw single focus rects.
2598 * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events
2599 and make the return value depend on whether we successfully determined a focusable
2601 * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly
2602 if we could not handle the focus chain ourselves.
2603 * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus.
2604 * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only
2605 used to control the situation of stepping out of the focus chain inside the page.
2606 * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain.
2607 The layout tests expect this to be disabled but for the user it seems sensible to have it
2608 on by default, hence the default in qwebsettings.cpp
2612 (QWebPage::focusNextPrevChild):
2613 * Api/qwebsettings.cpp:
2614 (QWebSettings::QWebSettings):
2615 * Api/qwebsettings.h:
2617 (QWebView::QWebView):
2618 (QWebView::focusNextPrevChild):
2619 * WebCoreSupport/ChromeClientQt.cpp:
2620 (WebCore::ChromeClientQt::canTakeFocus):
2621 (WebCore::ChromeClientQt::takeFocus):
2623 2008-01-18 Simon Hausmann <hausmann@webkit.org>
2627 Coding style fixes and added a comment about the include order.
2631 2008-01-18 Marius Storm-Olsen <marius@trolltech.com>
2633 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2635 Add use of precompiled header, when building inside Qt.
2637 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.
2640 * WebKit_pch.h: Added.
2642 2008-01-18 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2646 * Ask the WebCore::IconDatabase only if our URL is not empty. Otherwise
2647 we will see a crash in a HashSet.
2648 * It is crashing there because the StringImpl of an empty String is 0.
2649 * We avoid this crash by checking for isEmpty() in WebKit as there is no
2650 use to ask the iconDatabase for an empty string. We will fallback to the
2654 * Api/qwebframe.cpp:
2657 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2661 Minor documentation fixes
2664 * Api/qwebframe.cpp:
2667 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2671 Fix form elements not focusing correctly after the qt widget lost its focus.
2673 When receiving a focus out event notify the focus controller. Otherwise its
2674 m_focusedFrame variable remains unchanged and setFocusedFrame on a focusIn
2675 event shortcuts and doesn't call setActive(true).
2680 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2684 Lots of updates to the documentation.
2687 * Api/qwebframe.cpp:
2688 * Api/qwebhistory.cpp:
2690 (QWebPagePrivate::dropEvent):
2691 (QWebPage::history):
2693 (QWebPage::triggerAction):
2694 (QWebPage::viewportSize):
2695 (QWebPage::navigationRequested):
2698 (QWebPageContext::targetFrame):
2702 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2706 Added a urlChanged signals to QWebFrame and QWebView.
2709 * Api/qwebframe.cpp:
2712 (QWebView::setPage):
2714 * WebCoreSupport/FrameLoaderClientQt.cpp:
2716 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2720 Fixed docs and sanity checks in QWebSettings::setIconDatabaseEnabled
2723 * Api/qwebsettings.cpp:
2724 (QWebSettings::setIconDatabaseEnabled):
2726 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2730 Added QWebView::createWindow() which is forwarded from QWebPage::createWindow() for convenience.
2734 (QWebPage::createWindow):
2736 (QWebView::createWindow):
2739 2008-01-17 Lars Knoll <lars@trolltech.com>
2743 add a 0 pointer check.
2745 Fixes a crash in the demo web browser.
2747 * WebCoreSupport/FrameLoaderClientQt.cpp:
2748 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2750 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2754 Fix QWebFrame::title().
2756 For the titleChanged() signal we use the documentloader's title. For the property we have to use the same
2757 instead of Document::title() as the latter is not trimmed and not suited for a window caption.
2760 * Api/qwebframe.cpp:
2763 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2765 Reviewed by Maciej, Lars, Holger.
2767 http://bugs.webkit.org/show_bug.cgi?id=16589
2769 Add a document parameter to WebCore::cookies, setCookies and cookiesEnabled.
2771 * Api/qwebnetworkinterface.cpp:
2772 (QWebNetworkRequestPrivate::init):
2773 (QWebNetworkManager::started):
2775 2008-01-17 Warwick Allison <warwick@trolltech.com>
2777 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2779 Follow QWidget::keyPressEvent advice and call parents.
2781 Without this, Back does not work in Qtopia, for example.
2785 (QWebView::keyPressEvent):
2786 (QWebView::keyReleaseEvent):
2788 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2792 Fix compilation against Qt 4.3 after the recent KURL <> QUrl conversion fixes.
2794 * Api/qwebnetworkinterface.cpp:
2795 (QWebNetworkManager::started):
2797 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2801 Fix compilation against Qt 4.4 without files that are specific for the Qt 4.3 build.
2804 * Api/qwebframe.cpp:
2806 * WebCoreSupport/FrameLoaderClientQt.cpp:
2808 2008-01-17 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
2810 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2812 Fixes compilation with QT_NO_DRAGANDDROP
2818 (QWebView::dragEnterEvent):
2819 (QWebView::dragLeaveEvent):
2820 (QWebView::dragMoveEvent):
2821 (QWebView::dropEvent):
2823 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2827 Fix compilation, removed obsolete privateBrowsingEnabled() method.
2829 * WebCoreSupport/FrameLoaderClientQt.cpp:
2831 2008-01-16 Lars Knoll <lars@trolltech.com>
2833 Reviewed by Simon Hausmann <simon.hausmann@trolltech.com>.
2835 Removed a whole bunch of notImplemented() warnings.
2837 I don't want to hide the real warnings in lots of things that
2838 I am by now pretty certain we won't need.
2841 * WebCoreSupport/FrameLoaderClientQt.cpp:
2842 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
2843 (WebCore::FrameLoaderClientQt::canShowMIMEType):
2845 2008-01-16 Simon Hausmann <hausmann@webkit.org>
2849 Fix crash when bringing up the context menu on maps.google.com.
2851 If the website provides its own context menu then we don't have a ContextMenu pointer.
2855 (QWebPagePrivate::contextMenuEvent):
2857 2008-01-16 Simon Hausmann <hausmann@webkit.org>
2861 Don't crash when receiving all sorts of events on a default constructed QWebView without a page.
2864 (QWebView::mouseMoveEvent):
2865 (QWebView::mousePressEvent):
2866 (QWebView::mouseDoubleClickEvent):
2867 (QWebView::mouseReleaseEvent):
2868 (QWebView::contextMenuEvent):
2869 (QWebView::wheelEvent):
2870 (QWebView::keyPressEvent):
2871 (QWebView::keyReleaseEvent):
2872 (QWebView::focusInEvent):
2873 (QWebView::focusOutEvent):
2874 (QWebView::dragEnterEvent):
2875 (QWebView::dragLeaveEvent):
2876 (QWebView::dragMoveEvent):
2877 (QWebView::dropEvent):
2878 (QWebView::focusNextPrevChild):
2880 2008-01-16 Simon Hausmann <hausmann@webkit.org>
2884 Made the url property read-write.
2888 2008-01-16 Simon Hausmann <hausmann@webkit.org>
2892 Don't crash when showing a default initialized QWebView that has no page/frame yet.
2895 (QWebView::paintEvent):
2897 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
2901 Change hoveringOverLink implementation to have less issues.
2903 * Currently we only compare a pointer. In the worst case we
2904 could delete the Element we have pointed to and a new one
2905 gets the same address. But even if that doesn't happen the
2906 WebCore::Element is mutable and JavaScript could change the
2907 URL, Title or Content. So we have to compare all these three
2909 * This does not seem to be a performance impact.
2913 (QWebPagePrivate::mouseMoveEvent):
2916 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
2920 * Move the hoverElement from QWebFrame to QWebPage. As it is
2924 * Api/qwebframe_p.h:
2925 (QWebFramePrivate::QWebFramePrivate):
2927 (QWebPagePrivate::mouseMoveEvent):
2930 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
2934 EventHandler changes/fixes in QWebPage:
2935 -mouse{Press,Move,Release}Event:
2936 Send the event always to the mainFrame of the QWebPage.
2938 -contextMenuEvent, key{Press,Release}Event:
2939 Send the event to the focused frame.
2941 This is following the Windows port and fixes a issue with the
2942 Web Inspector where we were sending the events to a wrong frame.
2944 It is guaranteed that the mainFrame will always have an eventHandler
2945 and frameView set. There is no need to check for this in QWebPage.
2948 * Api/qwebframe.cpp:
2949 (QWebFramePrivate::init):
2950 * Api/qwebframe_p.h:
2951 (QWebFramePrivate::QWebFramePrivate):
2953 (QWebPagePrivate::updateEditorActions):
2954 (QWebPagePrivate::mouseMoveEvent):
2955 (QWebPagePrivate::mousePressEvent):
2956 (QWebPagePrivate::mouseDoubleClickEvent):
2957 (QWebPagePrivate::mouseReleaseEvent):
2958 (QWebPagePrivate::contextMenuEvent):
2959 (QWebPagePrivate::wheelEvent):
2960 (QWebPagePrivate::keyPressEvent):
2961 (QWebPagePrivate::keyReleaseEvent):
2962 (QWebPagePrivate::focusInEvent):
2965 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
2969 * Add core and kit functions to QWebFramePrivate to convert from
2970 QWebFrame to WebCore::Frame and vice versa.
2973 * Api/qwebframe.cpp:
2974 (QWebFramePrivate::core):
2975 (QWebFramePrivate::kit):
2977 * Api/qwebframe_p.h:
2979 2008-01-16 Lars Knoll <lars@trolltech.com>
2983 add conversion methods from and to QUrl to KURL.
2985 Use them in the places I found at the moment. Fixes a bug
2986 where form data was encoded twice.
2987 Also fix QWebSettings to take a QUrl for the user style sheet
2991 * Api/qwebframe.cpp:
2994 (QWebPage::createPlugin):
2996 (QWebPage::triggerAction):
2997 * Api/qwebsettings.cpp:
2998 (QWebSettingsPrivate::apply):
2999 * Api/qwebsettings.h:
3000 * WebCoreSupport/ChromeClientQt.cpp:
3001 (WebCore::ChromeClientQt::createWindow):
3002 (WebCore::ChromeClientQt::show):
3004 2008-01-16 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3008 * Make the InspectorClientView inherit from QWebView instead of QWidget. This
3009 way paintEvent, mouse{Press,Release}Event and other events get forwarded to
3010 the QWebPage/WebInspector automatically.
3013 * WebCoreSupport/InspectorClientQt.cpp:
3014 (WebCore::InspectorClientWebPage::createWindow):
3015 (WebCore::InspectorClientView::InspectorClientView):
3017 2008-01-10 Maciej Stachowiak <mjs@apple.com>
3021 - remove SecurityOriginData and fold its functionality into SecurityOrigin
3023 * WebCoreSupport/ChromeClientQt.cpp:
3024 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
3025 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
3026 * WebCoreSupport/ChromeClientQt.h:
3028 2008-01-10 Lars Knoll <lars@trolltech.com>
3032 document QWebHistory
3035 * Api/qwebhistory.cpp:
3036 (QWebHistoryItem::QWebHistoryItem):
3037 (QWebHistoryItem::operator=):
3038 (QWebHistoryItem::~QWebHistoryItem):
3039 (QWebHistoryItem::originalUrl):
3040 (QWebHistoryItem::currentUrl):
3041 (QWebHistoryItem::title):
3042 (QWebHistoryItem::icon):
3043 (QWebHistory::canGoBack):
3044 (QWebHistory::canGoForward):
3045 (QWebHistory::goBack):
3046 (QWebHistory::goForward):
3047 (QWebHistory::goToItem):
3048 * Api/qwebhistory.h:
3050 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3054 Make the reset() functions not do anything on the default QWebSettings object.
3057 * Api/qwebsettings.cpp:
3058 (QWebSettings::resetFontSize):
3059 (QWebSettings::resetFontFamily):
3060 (QWebSettings::clearAttribute):
3062 2008-01-10 Lars Knoll <lars@trolltech.com>
3066 rename QWebPageHistory to QWebHistory.
3069 * Api/qwebhistory.cpp: Added.
3070 (QWebHistoryItem::QWebHistoryItem):
3071 (QWebHistoryItem::operator=):
3072 (QWebHistoryItem::~QWebHistoryItem):
3073 (QWebHistoryItem::originalUrl):
3074 (QWebHistoryItem::currentUrl):
3075 (QWebHistoryItem::title):
3076 (QWebHistoryItem::lastVisited):
3077 (QWebHistoryItem::icon):
3078 (QWebHistory::QWebHistory):
3079 (QWebHistory::~QWebHistory):
3080 (QWebHistory::clear):
3081 (QWebHistory::items):
3082 (QWebHistory::backItems):
3083 (QWebHistory::forwardItems):
3084 (QWebHistory::canGoBack):
3085 (QWebHistory::canGoForward):
3086 (QWebHistory::goBack):
3087 (QWebHistory::goForward):
3088 (QWebHistory::goToItem):
3089 (QWebHistory::backItem):
3090 (QWebHistory::currentItem):
3091 (QWebHistory::forwardItem):
3092 (QWebHistory::itemAtIndex):
3093 * Api/qwebhistory.h: Added.
3094 * Api/qwebhistory_p.h: Added.
3095 (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
3096 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
3097 (QWebHistoryPrivate::QWebHistoryPrivate):
3098 (QWebHistoryPrivate::~QWebHistoryPrivate):
3100 (QWebPagePrivate::QWebPagePrivate):
3103 * Api/qwebpagehistory.cpp: Removed.
3104 * Api/qwebpagehistory.h: Removed.
3105 * Api/qwebpagehistory_p.h: Removed.
3109 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3113 Documentation for QWebSettings
3116 * Api/qwebsettings.cpp:
3117 (QWebSettings::~QWebSettings):
3118 (QWebSettings::setFontSize):
3119 (QWebSettings::resetFontSize):
3120 (QWebSettings::setUserStyleSheetLocation):
3121 (QWebSettings::userStyleSheetLocation):
3122 (QWebSettings::iconDatabaseEnabled):
3123 (QWebSettings::webGraphic):
3124 (QWebSettings::setFontFamily):
3125 (QWebSettings::resetFontFamily):
3126 (QWebSettings::setAttribute):
3128 2008-01-10 Lars Knoll <lars@trolltech.com>
3132 Document QWebHistoryInterface.
3135 * Api/qwebhistoryinterface.cpp:
3136 (QWebHistoryInterface::defaultInterface):
3137 (QWebHistoryInterface::~QWebHistoryInterface):
3139 2008-01-10 Lars Knoll <lars@trolltech.com>
3143 Documentation for QWebFrame.
3146 * Api/qwebframe.cpp:
3150 (QWebFrame::setHtml):
3151 (QWebFrame::parentFrame):
3152 (QWebFrame::render):
3154 (QWebFrame::geometry):
3156 * Api/qwebframe_p.h:
3158 2008-01-10 Lars Knoll <lars@trolltech.com>
3162 fix the drawing errors that where introduced due to refactoring.
3164 Correctly clip to the rectangle we want to draw in ScrollView::paint().
3167 * Api/qwebframe.cpp:
3168 (QWebFrame::render):
3171 (QWebView::paintEvent):
3172 * WebCoreSupport/ChromeClientQt.cpp:
3173 (WebCore::ChromeClientQt::scrollBackingStore):
3175 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3179 Added a whole bunch of docs for QWebPage and fixed some minor doc glitches in QWebView.
3183 (QWebPagePrivate::dropEvent):
3184 (QWebPage::QWebPage):
3185 (QWebPage::~QWebPage):
3186 (QWebPage::mainFrame):
3187 (QWebPage::currentFrame):
3188 (QWebPage::history):
3189 (QWebPage::setView):
3191 (QWebPage::javaScriptConsoleMessage):
3192 (QWebPage::javaScriptAlert):
3193 (QWebPage::javaScriptConfirm):
3194 (QWebPage::javaScriptPrompt):
3195 (QWebPage::createWindow):
3196 (QWebPage::createModalDialog):
3198 (QWebPage::triggerAction):
3199 (QWebPage::viewportSize):
3200 (QWebPage::navigationRequested):
3201 (QWebPage::selectedText):
3202 (QWebPage::isModified):
3203 (QWebPage::focusNextPrevChild):
3204 (QWebPage::settings):
3205 (QWebPage::networkProxy):
3206 (QWebPage::setNetworkAccessManager):
3207 (QWebPage::networkAccessManager):
3208 (QWebPagePrivate::_q_onLoadProgressChanged):
3211 2008-01-07 Holger Freyther <zecke@selfish.org>
3213 Reviewed by Alp Toker.
3215 * Qt and Gtk must know if a ContextMenuItem is checkable. Add a new ContextMenuItemType for checkable
3217 * Use this information in the Gtk platform to create a GtkCheckMenuItem when needed.
3218 * Update the ContextMenuController to accept CheckableActionTypes as well.
3219 * Change ContextMenu.cpp to use the CheckableActionType. The information if a item is checkable
3220 was extracted from ContextMenu::checkOrEnableIfNeeded.
3221 * Update the Qt and Windows port.
3224 (QWebPagePrivate::createContextMenu):
3226 2008-01-07 Simon Hausmann <hausmann@webkit.org>
3228 Build fix for the Windows build. MSVC wants to see the full
3229 declaration of arguments even when just passing them through.
3233 2008-01-07 Simon Hausmann <hausmann@webkit.org>
3237 Added the missing parameters to make it possible to do POST operations from the public API.
3239 This is ugly though as it also requires including qnetworkaccessmanager.h. It would be nicer if the
3240 two extra arguments were in QNetworkRequest :-/
3243 * Api/qwebframe.cpp:
3250 2008-01-07 Simon Hausmann <hausmann@webkit.org>
3254 Ported of the network backend of the Qt platform to Qt 4.4's new networking API.
3257 * Api/qwebframe.cpp:
3260 * Api/qwebnetworkinterface.cpp:
3261 * Api/qwebnetworkinterface.h:
3262 * Api/qwebnetworkinterface_p.h:
3263 * Api/qwebobjectplugin.cpp:
3264 * Api/qwebobjectplugin.h:
3265 * Api/qwebobjectplugin_p.h:
3266 * Api/qwebobjectpluginconnector.cpp:
3267 * Api/qwebobjectpluginconnector.h:
3269 (QWebPagePrivate::QWebPagePrivate):
3270 (QWebPagePrivate::~QWebPagePrivate):
3271 (QWebPagePrivate::navigationRequested):
3272 (QWebPage::setNetworkInterface):
3273 (QWebPage::networkInterface):
3274 (QWebPage::setNetworkAccessManager):
3275 (QWebPage::networkAccessManager):
3280 * WebCoreSupport/FrameLoaderClientQt.cpp:
3281 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3282 (WebCore::FrameLoaderClientQt::objectContentType):
3283 (WebCore::FrameLoaderClientQt::createPlugin):
3285 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3289 * Move the QWebPagePrivate methods up to the other private ones
3292 (dropActionToDragOp):
3293 (dragOpToDropAction):
3294 (QWebPagePrivate::mouseMoveEvent):
3295 (QWebPagePrivate::mousePressEvent):
3296 (QWebPagePrivate::mouseDoubleClickEvent):
3297 (QWebPagePrivate::mouseReleaseEvent):
3298 (QWebPagePrivate::contextMenuEvent):
3299 (QWebPagePrivate::wheelEvent):
3300 (QWebPagePrivate::keyPressEvent):
3301 (QWebPagePrivate::keyReleaseEvent):
3302 (QWebPagePrivate::focusInEvent):
3303 (QWebPagePrivate::focusOutEvent):
3304 (QWebPagePrivate::dragEnterEvent):
3305 (QWebPagePrivate::dragLeaveEvent):
3306 (QWebPagePrivate::dragMoveEvent):
3307 (QWebPagePrivate::dropEvent):
3308 (QWebPage::focusNextPrevChild):
3310 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3314 * Add reimplemented comments for the methods reimplemented in QWebView and QWebPage.
3318 (dragOpToDropAction):
3320 (QWebView::mouseMoveEvent):
3321 (QWebView::mousePressEvent):
3322 (QWebView::mouseDoubleClickEvent):
3323 (QWebView::mouseReleaseEvent):
3324 (QWebView::contextMenuEvent):
3325 (QWebView::keyPressEvent):
3326 (QWebView::keyReleaseEvent):
3327 (QWebView::focusInEvent):
3328 (QWebView::focusOutEvent):
3329 (QWebView::dragEnterEvent):
3330 (QWebView::dragLeaveEvent):
3331 (QWebView::dragMoveEvent):
3332 (QWebView::dropEvent):
3334 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3338 * This layout is not needed anymore as Widget::invalidateRect will not
3343 (QWebView::paintEvent):
3345 2008-01-04 Lars Knoll <lars@trolltech.com>
3349 Remove most dependencies of Widget/ScrollView onto native QWidgets.
3351 This also brings the code closer in line with the Windows code. Seems
3352 to work nicely on first try :)
3355 * WebCoreSupport/ChromeClientQt.cpp:
3356 (WebCore::ChromeClientQt::updateBackingStore):
3357 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3358 (WebCore::ChromeClientQt::setToolTip):
3359 * WebCoreSupport/FrameLoaderClientQt.cpp:
3360 (WebCore::FrameLoaderClientQt::createPlugin):
3362 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3366 * Remove the todo from QWebPage and move the code to QWebView.
3370 (QWebPagePrivate::wheelEvent):
3371 (QWebPagePrivate::focusInEvent):
3373 (QWebView::wheelEvent):
3374 (QWebView::focusInEvent):
3376 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3380 * Move the various event methods to QWebPagePrivate. This is similar to
3381 QTextControl as well.
3386 (QWebPagePrivate::mouseMoveEvent):
3387 (QWebPagePrivate::mousePressEvent):
3388 (QWebPagePrivate::mouseDoubleClickEvent):
3389 (QWebPagePrivate::mouseReleaseEvent):
3390 (QWebPagePrivate::contextMenuEvent):
3391 (QWebPagePrivate::wheelEvent):
3392 (QWebPagePrivate::keyPressEvent):
3393 (QWebPagePrivate::keyReleaseEvent):
3394 (QWebPagePrivate::focusInEvent):
3395 (QWebPagePrivate::focusOutEvent):
3396 (QWebPage::focusNextPrevChild):
3397 (QWebPagePrivate::dragEnterEvent):
3398 (QWebPagePrivate::dragLeaveEvent):
3399 (QWebPagePrivate::dragMoveEvent):
3400 (QWebPagePrivate::dropEvent):
3404 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3408 * Forward the event from QWebView to QWebPage through QObject::event. This
3409 is similar to the way QTextControl is working.
3413 (dragOpToDropAction):
3417 (QWebView::mouseMoveEvent):
3418 (QWebView::mousePressEvent):
3419 (QWebView::mouseDoubleClickEvent):
3420 (QWebView::mouseReleaseEvent):
3421 (QWebView::contextMenuEvent):
3422 (QWebView::wheelEvent):
3423 (QWebView::keyPressEvent):
3424 (QWebView::keyReleaseEvent):
3425 (QWebView::focusInEvent):
3426 (QWebView::focusOutEvent):
3427 (QWebView::dragEnterEvent):
3428 (QWebView::dragLeaveEvent):
3429 (QWebView::dragMoveEvent):
3430 (QWebView::dropEvent):
3433 2008-01-04 Lars Knoll <lars@trolltech.com>
3437 make QWebPage a QObject and get things to compile.
3439 Nothing works currently though.
3442 * Api/qwebobjectpluginconnector.cpp:
3444 (QWebPagePrivate::QWebPagePrivate):
3445 (QWebPagePrivate::createMainFrame):
3446 (QWebPage::QWebPage):
3447 (QWebPage::setView):
3449 (QWebPage::javaScriptAlert):
3450 (QWebPage::javaScriptPrompt):
3451 (dragOpToDropAction):
3452 (QWebPage::mousePressEvent):
3453 (QWebPage::mouseDoubleClickEvent):
3454 (QWebPage::mouseReleaseEvent):
3455 (QWebPage::wheelEvent):
3456 (QWebPage::keyPressEvent):
3457 (QWebPage::focusInEvent):
3461 (QWebView::QWebView):
3462 (QWebView::setPage):
3463 (QWebView::resizeEvent):
3464 (QWebView::paintEvent):
3466 * WebCoreSupport/ChromeClientQt.cpp:
3467 (WebCore::ChromeClientQt::windowRect):
3468 (WebCore::ChromeClientQt::pageRect):
3469 (WebCore::ChromeClientQt::focus):
3470 (WebCore::ChromeClientQt::unfocus):
3471 (WebCore::ChromeClientQt::canTakeFocus):
3472 (WebCore::ChromeClientQt::takeFocus):
3473 (WebCore::ChromeClientQt::canRunModal):
3474 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3475 * WebCoreSupport/DragClientQt.cpp:
3476 (WebCore::DragClientQt::startDrag):
3477 * WebCoreSupport/FrameLoaderClientQt.cpp:
3478 (WebCore::FrameLoaderClientQt::createPlugin):
3479 * WebCoreSupport/InspectorClientQt.cpp:
3480 (WebCore::InspectorClientWebPage::createWindow):
3481 (WebCore::InspectorClientView::InspectorClientView):
3482 (WebCore::InspectorClientView::page):
3483 (WebCore::InspectorClientView::hideEvent):
3484 (WebCore::InspectorClientView::closeEvent):
3485 (WebCore::InspectorClientQt::createPage):
3486 (WebCore::InspectorClientQt::closeWindow):
3488 2008-01-04 Simon Hausmann <hausmann@webkit.org>
3492 Added some preliminary class documentation for QWebView, fixed a missing const() and some missing Q_PROPERTYs
3496 (QWebView::setHtml):
3497 (QWebView::setContent):
3498 (QWebView::history):
3499 (QWebView::settings):
3501 (QWebView::triggerAction):
3503 (QWebView::backward):
3504 (QWebView::forward):
3508 2008-01-04 Lars Knoll <lars@trolltech.com>
3512 add a viewportSize to QWebPage.
3514 This is required to eventually make it a QObject only.
3518 (QWebPage::triggerAction):
3519 (QWebPage::viewportSize):
3520 (QWebPage::setViewportSize):
3523 2008-01-04 Lars Knoll <lars@trolltech.com>
3527 take a QString as identifier in QWebFrame::addToJSWindowObject.
3529 * Api/qwebframe.cpp:
3530 (QWebFrame::addToJSWindowObject):
3533 2008-01-04 Simon Hausmann <hausmann@webkit.org>
3537 Call the frame arguments for the javascript callbacks "originatingFrame"
3542 2008-01-04 Simon Hausmann <hausmann@webkit.org>
3546 Moved the QWebPage::addToHistory signal into QWebHistoryInterface
3549 * Api/qwebhistoryinterface.h:
3551 * WebCoreSupport/FrameLoaderClientQt.cpp:
3552 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
3554 2008-01-04 Lars Knoll <lars@trolltech.com>
3558 moved title(), url(), icon() and initialLayoutComplete() from QWebPage to QWebFrame
3560 * Api/qwebframe.cpp:
3563 (QWebFrame::setVerticalScrollBarPolicy):
3566 (QWebPage::javaScriptAlert):
3567 (QWebPage::javaScriptPrompt):
3568 (QWebPage::networkInterface):
3574 * WebCoreSupport/FrameLoaderClientQt.cpp:
3576 2008-01-03 Simon Hausmann <hausmann@webkit.org>
3580 Moved QWebPage::open to QWebFrame::load and added setHtml.
3583 * Api/qwebframe.cpp:
3585 (QWebFrame::setHtml):
3586 (QWebFrame::setContent):
3592 (QWebView::setHtml):
3594 * WebCoreSupport/ChromeClientQt.cpp:
3595 (WebCore::ChromeClientQt::createWindow):
3596 * WebCoreSupport/InspectorClientQt.cpp:
3597 (WebCore::InspectorClientQt::createPage):
3599 2008-01-03 Simon Hausmann <hausmann@webkit.org>
3603 Added the first revision of QWebView and started moving functionality from QWebPave over to QWebView and QWebFrame.
3609 (QWebPagePrivate::createMainFrame):
3611 * Api/qwebpagehistory.h:
3612 * Api/qwebview.cpp: Added.
3613 (QWebView::QWebView):
3614 (QWebView::~QWebView):
3616 (QWebView::setPage):
3618 (QWebView::setHtml):
3619 (QWebView::history):
3620 (QWebView::settings):
3624 (QWebView::selectedText):
3626 (QWebView::triggerAction):
3627 (QWebView::isModified):
3628 (QWebView::textInteractionFlags):
3629 (QWebView::setTextInteractionFlags):
3630 (QWebView::sizeHint):
3632 (QWebView::backward):
3633 (QWebView::forward):
3635 * Api/qwebview.h: Added.
3636 * QtLauncher/main.cpp:
3637 (MainWindow::MainWindow):
3638 (MainWindow::webPage):
3639 (MainWindow::changeLocation):
3640 * WebCoreSupport/FrameLoaderClientQt.cpp:
3641 (WebCore::FrameLoaderClientQt::setFrame):
3642 * WebCoreSupport/FrameLoaderClientQt.h:
3644 2007-12-14 Darin Adler <darin@apple.com>
3649 (QWebPage::triggerAction): Removed some use of Editor member functions we plan
3650 to eventually eliminate. Switch from Editor::execCommand to Editor::command.
3651 * WebCoreSupport/EditorClientQt.cpp:
3652 (WebCore::EditorClientQt::handleKeyboardEvent): Ditto. Also updated name from
3653 MoveUpByPageAndModifyCaret to MovePageUp and from MoveDownByPageAndModifyCaret
3656 2007-12-12 Brady Eidson <beidson@apple.com>
3658 Reviewed by Sam Weinig
3660 As part of doing some CachedPage and client cleanup, keep Qt building
3662 * WebCoreSupport/FrameLoaderClientQt.cpp:
3663 (WebCore::FrameLoaderClientQt::savePlatformDataToCachedPage):
3664 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
3665 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
3666 * WebCoreSupport/FrameLoaderClientQt.h:
3668 2007-12-12 Sam Weinig <sam@webkit.org>
3672 * WebCoreSupport/FrameLoaderClientQt.cpp:
3673 (WebCore::FrameLoaderClientQt::userAgent):
3675 2007-12-12 Sam Weinig <sam@webkit.org>
3679 * Api/qwebnetworkinterface.cpp:
3680 (QWebNetworkRequestPrivate::init):
3683 (QWebPageContext::QWebPageContext):
3684 * Api/qwebpagehistory.cpp:
3685 (QWebHistoryItem::originalUrl):
3686 (QWebHistoryItem::currentUrl):
3687 * WebCoreSupport/FrameLoaderClientQt.cpp:
3688 (WebCore::FrameLoaderClientQt::cannotShowURLError):
3689 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
3690 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
3691 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
3692 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
3693 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
3694 (WebCore::FrameLoaderClientQt::createPlugin):
3696 2007-12-07 Alexey Proskuryakov <ap@webkit.org>
3700 <rdar://problem/5535636>
3701 Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
3703 http://bugs.webkit.org/show_bug.cgi?id=13916
3704 JavaScript detects Tab as a character input on a textfield validation
3706 * WebCoreSupport/EditorClientQt.cpp:
3707 (WebCore::EditorClientQt::handleKeyboardEvent):
3708 (WebCore::EditorClientQt::handleInputMethodKeydown):
3709 * WebCoreSupport/EditorClientQt.h:
3710 Updated for cross-platform changes as much as it was possible without a Qt build environment.
3712 2007-12-07 Darin Adler <darin@apple.com>
3716 * Api/qwebhistoryinterface.cpp:
3717 (WebCore::historyContains): There's a WebCore function here in WebKit! Needs to
3718 be updated, since WebCore changed, but this should not be here.
3720 2007-12-04 Darin Adler <darin@apple.com>
3722 Reviewed by Kevin Decker.
3724 * WebCoreSupport/FrameLoaderClientQt.cpp: Removed obsolete privateBrowsingEnabled.
3725 * WebCoreSupport/FrameLoaderClientQt.h: Ditto.
3727 2007-12-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3731 * Implement the InspectorClient for the Qt port
3732 * It does not support highlighting of nodes yet
3733 * Use QRC to open the internal page. The important thing is the
3734 '/' in the URL to make WebCore::Document::completeURL behave the
3736 * To make the InspectorClient work we will have to mark qrc as secure.
3739 (QWebPagePrivate::QWebPagePrivate):
3741 * WebCoreSupport/InspectorClientQt.cpp:
3742 (WebCore::InspectorClientWebPage::hideEvent):
3743 (WebCore::InspectorClientQt::InspectorClientQt):
3744 (WebCore::InspectorClientQt::inspectorDestroyed):
3745 (WebCore::InspectorClientQt::createPage):
3746 (WebCore::InspectorClientQt::localizedStringsURL):
3747 (WebCore::InspectorClientQt::showWindow):
3748 (WebCore::InspectorClientQt::closeWindow):
3749 (WebCore::InspectorClientQt::attachWindow):
3750 (WebCore::InspectorClientQt::detachWindow):
3751 * WebCoreSupport/InspectorClientQt.h: