1 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
5 * Move the QWebPagePrivate methods up to the other private ones
10 (QWebPagePrivate::mouseMoveEvent):
11 (QWebPagePrivate::mousePressEvent):
12 (QWebPagePrivate::mouseDoubleClickEvent):
13 (QWebPagePrivate::mouseReleaseEvent):
14 (QWebPagePrivate::contextMenuEvent):
15 (QWebPagePrivate::wheelEvent):
16 (QWebPagePrivate::keyPressEvent):
17 (QWebPagePrivate::keyReleaseEvent):
18 (QWebPagePrivate::focusInEvent):
19 (QWebPagePrivate::focusOutEvent):
20 (QWebPagePrivate::dragEnterEvent):
21 (QWebPagePrivate::dragLeaveEvent):
22 (QWebPagePrivate::dragMoveEvent):
23 (QWebPagePrivate::dropEvent):
24 (QWebPage::focusNextPrevChild):
26 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
30 * Add reimplemented comments for the methods reimplemented in QWebView and QWebPage.
36 (QWebView::mouseMoveEvent):
37 (QWebView::mousePressEvent):
38 (QWebView::mouseDoubleClickEvent):
39 (QWebView::mouseReleaseEvent):
40 (QWebView::contextMenuEvent):
41 (QWebView::keyPressEvent):
42 (QWebView::keyReleaseEvent):
43 (QWebView::focusInEvent):
44 (QWebView::focusOutEvent):
45 (QWebView::dragEnterEvent):
46 (QWebView::dragLeaveEvent):
47 (QWebView::dragMoveEvent):
48 (QWebView::dropEvent):
50 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
54 * This layout is not needed anymore as Widget::invalidateRect will not
59 (QWebView::paintEvent):
61 2008-01-04 Lars Knoll <lars@trolltech.com>
65 Remove most dependencies of Widget/ScrollView onto native QWidgets.
67 This also brings the code closer in line with the Windows code. Seems
68 to work nicely on first try :)
71 * WebCoreSupport/ChromeClientQt.cpp:
72 (WebCore::ChromeClientQt::updateBackingStore):
73 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
74 (WebCore::ChromeClientQt::setToolTip):
75 * WebCoreSupport/FrameLoaderClientQt.cpp:
76 (WebCore::FrameLoaderClientQt::createPlugin):
78 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
82 * Remove the todo from QWebPage and move the code to QWebView.
86 (QWebPagePrivate::wheelEvent):
87 (QWebPagePrivate::focusInEvent):
89 (QWebView::wheelEvent):
90 (QWebView::focusInEvent):
92 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
96 * Move the various event methods to QWebPagePrivate. This is similar to
102 (QWebPagePrivate::mouseMoveEvent):
103 (QWebPagePrivate::mousePressEvent):
104 (QWebPagePrivate::mouseDoubleClickEvent):
105 (QWebPagePrivate::mouseReleaseEvent):
106 (QWebPagePrivate::contextMenuEvent):
107 (QWebPagePrivate::wheelEvent):
108 (QWebPagePrivate::keyPressEvent):
109 (QWebPagePrivate::keyReleaseEvent):
110 (QWebPagePrivate::focusInEvent):
111 (QWebPagePrivate::focusOutEvent):
112 (QWebPage::focusNextPrevChild):
113 (QWebPagePrivate::dragEnterEvent):
114 (QWebPagePrivate::dragLeaveEvent):
115 (QWebPagePrivate::dragMoveEvent):
116 (QWebPagePrivate::dropEvent):
120 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
124 * Forward the event from QWebView to QWebPage through QObject::event. This
125 is similar to the way QTextControl is working.
129 (dragOpToDropAction):
133 (QWebView::mouseMoveEvent):
134 (QWebView::mousePressEvent):
135 (QWebView::mouseDoubleClickEvent):
136 (QWebView::mouseReleaseEvent):
137 (QWebView::contextMenuEvent):
138 (QWebView::wheelEvent):
139 (QWebView::keyPressEvent):
140 (QWebView::keyReleaseEvent):
141 (QWebView::focusInEvent):
142 (QWebView::focusOutEvent):
143 (QWebView::dragEnterEvent):
144 (QWebView::dragLeaveEvent):
145 (QWebView::dragMoveEvent):
146 (QWebView::dropEvent):
149 2008-01-04 Lars Knoll <lars@trolltech.com>
153 make QWebPage a QObject and get things to compile.
155 Nothing works currently though.
158 * Api/qwebobjectpluginconnector.cpp:
160 (QWebPagePrivate::QWebPagePrivate):
161 (QWebPagePrivate::createMainFrame):
162 (QWebPage::QWebPage):
165 (QWebPage::javaScriptAlert):
166 (QWebPage::javaScriptPrompt):
167 (dragOpToDropAction):
168 (QWebPage::mousePressEvent):
169 (QWebPage::mouseDoubleClickEvent):
170 (QWebPage::mouseReleaseEvent):
171 (QWebPage::wheelEvent):
172 (QWebPage::keyPressEvent):
173 (QWebPage::focusInEvent):
177 (QWebView::QWebView):
179 (QWebView::resizeEvent):
180 (QWebView::paintEvent):
182 * WebCoreSupport/ChromeClientQt.cpp:
183 (WebCore::ChromeClientQt::windowRect):
184 (WebCore::ChromeClientQt::pageRect):
185 (WebCore::ChromeClientQt::focus):
186 (WebCore::ChromeClientQt::unfocus):
187 (WebCore::ChromeClientQt::canTakeFocus):
188 (WebCore::ChromeClientQt::takeFocus):
189 (WebCore::ChromeClientQt::canRunModal):
190 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
191 * WebCoreSupport/DragClientQt.cpp:
192 (WebCore::DragClientQt::startDrag):
193 * WebCoreSupport/FrameLoaderClientQt.cpp:
194 (WebCore::FrameLoaderClientQt::createPlugin):
195 * WebCoreSupport/InspectorClientQt.cpp:
196 (WebCore::InspectorClientWebPage::createWindow):
197 (WebCore::InspectorClientView::InspectorClientView):
198 (WebCore::InspectorClientView::page):
199 (WebCore::InspectorClientView::hideEvent):
200 (WebCore::InspectorClientView::closeEvent):
201 (WebCore::InspectorClientQt::createPage):
202 (WebCore::InspectorClientQt::closeWindow):
204 2008-01-04 Simon Hausmann <hausmann@webkit.org>
208 Added some preliminary class documentation for QWebView, fixed a missing const() and some missing Q_PROPERTYs
213 (QWebView::setContent):
215 (QWebView::settings):
217 (QWebView::triggerAction):
219 (QWebView::backward):
224 2008-01-04 Lars Knoll <lars@trolltech.com>
228 add a viewportSize to QWebPage.
230 This is required to eventually make it a QObject only.
234 (QWebPage::triggerAction):
235 (QWebPage::viewportSize):
236 (QWebPage::setViewportSize):
239 2008-01-04 Lars Knoll <lars@trolltech.com>
243 take a QString as identifier in QWebFrame::addToJSWindowObject.
246 (QWebFrame::addToJSWindowObject):
249 2008-01-04 Simon Hausmann <hausmann@webkit.org>
253 Call the frame arguments for the javascript callbacks "originatingFrame"
258 2008-01-04 Simon Hausmann <hausmann@webkit.org>
262 Moved the QWebPage::addToHistory signal into QWebHistoryInterface
265 * Api/qwebhistoryinterface.h:
267 * WebCoreSupport/FrameLoaderClientQt.cpp:
268 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
270 2008-01-04 Lars Knoll <lars@trolltech.com>
274 moved title(), url(), icon() and initialLayoutComplete() from QWebPage to QWebFrame
279 (QWebFrame::setVerticalScrollBarPolicy):
282 (QWebPage::javaScriptAlert):
283 (QWebPage::javaScriptPrompt):
284 (QWebPage::networkInterface):
290 * WebCoreSupport/FrameLoaderClientQt.cpp:
292 2008-01-03 Simon Hausmann <hausmann@webkit.org>
296 Moved QWebPage::open to QWebFrame::load and added setHtml.
301 (QWebFrame::setHtml):
302 (QWebFrame::setContent):
310 * WebCoreSupport/ChromeClientQt.cpp:
311 (WebCore::ChromeClientQt::createWindow):
312 * WebCoreSupport/InspectorClientQt.cpp:
313 (WebCore::InspectorClientQt::createPage):
315 2008-01-03 Simon Hausmann <hausmann@webkit.org>
319 Added the first revision of QWebView and started moving functionality from QWebPave over to QWebView and QWebFrame.
325 (QWebPagePrivate::createMainFrame):
327 * Api/qwebpagehistory.h:
328 * Api/qwebview.cpp: Added.
329 (QWebView::QWebView):
330 (QWebView::~QWebView):
336 (QWebView::settings):
340 (QWebView::selectedText):
342 (QWebView::triggerAction):
343 (QWebView::isModified):
344 (QWebView::textInteractionFlags):
345 (QWebView::setTextInteractionFlags):
346 (QWebView::sizeHint):
348 (QWebView::backward):
351 * Api/qwebview.h: Added.
352 * QtLauncher/main.cpp:
353 (MainWindow::MainWindow):
354 (MainWindow::webPage):
355 (MainWindow::changeLocation):
356 * WebCoreSupport/FrameLoaderClientQt.cpp:
357 (WebCore::FrameLoaderClientQt::setFrame):
358 * WebCoreSupport/FrameLoaderClientQt.h:
360 2007-12-14 Darin Adler <darin@apple.com>
365 (QWebPage::triggerAction): Removed some use of Editor member functions we plan
366 to eventually eliminate. Switch from Editor::execCommand to Editor::command.
367 * WebCoreSupport/EditorClientQt.cpp:
368 (WebCore::EditorClientQt::handleKeyboardEvent): Ditto. Also updated name from
369 MoveUpByPageAndModifyCaret to MovePageUp and from MoveDownByPageAndModifyCaret
372 2007-12-12 Brady Eidson <beidson@apple.com>
374 Reviewed by Sam Weinig
376 As part of doing some CachedPage and client cleanup, keep Qt building
378 * WebCoreSupport/FrameLoaderClientQt.cpp:
379 (WebCore::FrameLoaderClientQt::savePlatformDataToCachedPage):
380 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
381 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
382 * WebCoreSupport/FrameLoaderClientQt.h:
384 2007-12-12 Sam Weinig <sam@webkit.org>
388 * WebCoreSupport/FrameLoaderClientQt.cpp:
389 (WebCore::FrameLoaderClientQt::userAgent):
391 2007-12-12 Sam Weinig <sam@webkit.org>
395 * Api/qwebnetworkinterface.cpp:
396 (QWebNetworkRequestPrivate::init):
399 (QWebPageContext::QWebPageContext):
400 * Api/qwebpagehistory.cpp:
401 (QWebHistoryItem::originalUrl):
402 (QWebHistoryItem::currentUrl):
403 * WebCoreSupport/FrameLoaderClientQt.cpp:
404 (WebCore::FrameLoaderClientQt::cannotShowURLError):
405 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
406 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
407 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
408 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
409 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
410 (WebCore::FrameLoaderClientQt::createPlugin):
412 2007-12-07 Alexey Proskuryakov <ap@webkit.org>
416 <rdar://problem/5535636>
417 Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
419 http://bugs.webkit.org/show_bug.cgi?id=13916
420 JavaScript detects Tab as a character input on a textfield validation
422 * WebCoreSupport/EditorClientQt.cpp:
423 (WebCore::EditorClientQt::handleKeyboardEvent):
424 (WebCore::EditorClientQt::handleInputMethodKeydown):
425 * WebCoreSupport/EditorClientQt.h:
426 Updated for cross-platform changes as much as it was possible without a Qt build environment.
428 2007-12-07 Darin Adler <darin@apple.com>
432 * Api/qwebhistoryinterface.cpp:
433 (WebCore::historyContains): There's a WebCore function here in WebKit! Needs to
434 be updated, since WebCore changed, but this should not be here.
436 2007-12-04 Darin Adler <darin@apple.com>
438 Reviewed by Kevin Decker.
440 * WebCoreSupport/FrameLoaderClientQt.cpp: Removed obsolete privateBrowsingEnabled.
441 * WebCoreSupport/FrameLoaderClientQt.h: Ditto.
443 2007-12-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
447 * Implement the InspectorClient for the Qt port
448 * It does not support highlighting of nodes yet
449 * Use QRC to open the internal page. The important thing is the
450 '/' in the URL to make WebCore::Document::completeURL behave the
452 * To make the InspectorClient work we will have to mark qrc as secure.
455 (QWebPagePrivate::QWebPagePrivate):
457 * WebCoreSupport/InspectorClientQt.cpp:
458 (WebCore::InspectorClientWebPage::hideEvent):
459 (WebCore::InspectorClientQt::InspectorClientQt):
460 (WebCore::InspectorClientQt::inspectorDestroyed):
461 (WebCore::InspectorClientQt::createPage):
462 (WebCore::InspectorClientQt::localizedStringsURL):
463 (WebCore::InspectorClientQt::showWindow):
464 (WebCore::InspectorClientQt::closeWindow):
465 (WebCore::InspectorClientQt::attachWindow):
466 (WebCore::InspectorClientQt::detachWindow):
467 * WebCoreSupport/InspectorClientQt.h:
469 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
471 Rubber stamped by Mark.
473 Always include config.h at the beginning of the file.
475 * Api/qwebsettings.cpp:
477 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
481 * Avoid crashes by making sure everything is layouted before
482 we start painting. This avoids a crash in Widget::invalidateRect
483 because QPainter::begin would fail
484 * The QWebFrame::layout() methods and calls are left untouched because
485 this would be an API decision.
491 (QWebPage::paintEvent):
493 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
497 * SubClass QWebPage to handle hide and close events.
498 * Forward these events to the InspectorController
499 * The other options would have been using an eventFilter
500 on the webpage and making InspectorClient a QObject or
501 creating a QObject Observer.
502 * Provide a simple QWebPage* createWindow implementation. This is needed
503 to make FrameLoaderClientQt::dispatchCreatePage stop crashing in the case
504 of the inspector client.
507 * WebCoreSupport/InspectorClientQt.cpp:
508 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
509 (WebCore::InspectorClientWebPage::createWindow):
510 (WebCore::InspectorClientWebPage::hideEvent):
511 (WebCore::InspectorClientWebPage::closeEvent):
512 (WebCore::InspectorClientQt::createPage):
514 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
518 * Allow adding the Inspect ContextMenuItem to our Menu
519 * Open the Inspector when Inspect was activated. This requires
520 that we keep the innerNonSharedNode from the HitTest around. This
521 forces us to include <wtf/RefPtr.h> in the private header. It is
522 the first non Qt header but should be okay.
526 (webActionForContextMenuAction):
527 (QWebPage::triggerAction):
529 (QWebPageContext::QWebPageContext):
533 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
537 * Add the Developer Extras to the WebAttribute and propagate it
538 to WebCore::Settings. This will enable the Inspect Element menu item
539 * CodingStyle fixes in QWebSettings
540 * Enable the Developer Extras in the QtLauncher
543 * Api/qwebsettings.cpp:
544 (QWebSettingsPrivate::apply):
545 * Api/qwebsettings.h:
546 * QtLauncher/main.cpp:
549 2007-12-03 Geoffrey Garen <ggaren@apple.com>
551 Removed unnecessary and possibly incorrect #include from my last
556 2007-12-03 Geoffrey Garen <ggaren@apple.com>
558 Qt build fix: Get globalExec() from the right place.
560 2007-11-30 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
564 * Self destruct the clients like the ohter ports do
567 * WebCoreSupport/ChromeClientQt.cpp:
568 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
569 * WebCoreSupport/ContextMenuClientQt.cpp:
570 * WebCoreSupport/DragClientQt.cpp:
571 * WebCoreSupport/EditorClientQt.cpp:
572 * WebCoreSupport/InspectorClientQt.cpp:
574 2007-11-29 Brady Eidson <beidson@apple.com>
576 Keep it building with new client method
578 * WebCoreSupport/ChromeClientQt.cpp:
579 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
580 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
581 * WebCoreSupport/ChromeClientQt.h:
583 2007-11-22 Simon Hausmann <hausmann@webkit.org>
585 Reviewed by Adam Treat.
587 Fix compilation (don't define notImplemented twice)
589 * Api/qwebnetworkinterface.cpp:
591 2007-11-22 Simon Hausmann <hausmann@kde.org>
595 Use Q_SIGNALS/Q_SLOTS in the public API
600 2007-11-22 Simon Hausmann <hausmann@kde.org>
604 Fixed the signature of the QWebPage constructor to follow Qt guidelines.
608 2007-11-22 Simon Hausmann <hausmann@kde.org>
612 Use <QtModule/headerfile.h> instead of <Classname> in public HEADER files, to not require the include paths for the other modules to be present
616 * Api/qwebhistoryinterface.h:
617 * Api/qwebnetworkinterface.h:
618 * Api/qwebobjectplugin.h:
619 * Api/qwebobjectplugin_p.h:
620 * Api/qwebobjectpluginconnector.h:
622 * Api/qwebpagehistory.h:
623 * Api/qwebsettings.h:
625 2007-11-22 Simon Hausmann <hausmann@kde.org>
629 Removed inline copy of QExplicitlySharedDataPointer. This is not needed anymore since we require Qt >= 4.3.0.
631 * Api/qwebpagehistory.h:
633 2007-11-22 George Staikos <staikos@kde.org>
635 Reviewed by Simon Hausmann <hausmann@kde.org>.
640 * Api/qwebobjectplugin.cpp:
641 * Api/qwebobjectplugin.h:
642 * Api/qwebobjectpluginconnector.cpp:
643 * Api/qwebobjectpluginconnector.h:
645 2007-11-22 Simon Hausmann <hausmann@kde.org>
647 Reviewed by George Staikos <staikos@kde.org>.
649 Fix shadowing of "page" variable that is passed as argument as well as a member variable.
651 This also fixes compilation with gcc 4.3.
655 (QWebFramePrivate::init):
657 2007-11-21 Adam Treat <treat@kde.org>
661 * Connect up the signal for all subframes too.
664 (QWebFramePrivate::init):
666 (QWebPagePrivate::createMainFrame):
668 2007-11-20 Simon Hausmann <hausmann@kde.org>
670 Reviewed by Adam Treat <treat@kde.org>.
672 Remove static linkage of QtWebKit against the ICO image format plugin.
674 Instead build the support for the ICO image format as a proper standalone qt image format plugin and install it.
677 * Plugins/Plugins.pro:
679 2007-11-20 Simon Hausmann <hausmann@kde.org>
681 Reviewed by George Staikos <staikos@kde.org>.
683 Added a default argument to textContent for the hoveringOverLink signal to keep existing two-argument connections working
688 2007-11-20 George Staikos <staikos@kde.org>
690 Reviewed by Simon Hausmann <hausmann@kde.org>.
692 Add an argument to pass the link text in the hovering signal
697 (QWebPagePrivate::createMainFrame):
698 (QWebPage::mouseMoveEvent):
701 2007-11-20 Adam Treat <treat@kde.org>
703 Reviewed by Simon and George.
705 * Be quiet and allow suppression of NotImplemented calls at runtime.
707 * WebCoreSupport/FrameLoaderClientQt.cpp:
708 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
710 2007-11-19 Adam Treat <treat@kde.org>
714 * Don't segfault when event pos is outside of the widget.
717 (QWebPage::mouseMoveEvent):
718 (QWebPage::mousePressEvent):
719 (QWebPage::mouseDoubleClickEvent):
720 (QWebPage::mouseReleaseEvent):
721 (QWebPage::contextMenuEvent):
723 2007-11-17 Timothy Hatcher <timothy@apple.com>
725 Reviewed by Mark Rowe.
727 Bug 13470: i18n: The Web Inspector is not localizable
728 http://bugs.webkit.org/show_bug.cgi?id=13470
730 * WebCoreSupport/InspectorClientQt.cpp:
731 (WebCore::InspectorClientQt::localizedStringsURL): Empty stub.
732 * WebCoreSupport/InspectorClientQt.h: Added localizedStringsURL.
734 2007-11-13 Geoffrey Garen <ggaren@apple.com>
736 Build fix: changed Shared to RefCounted.
738 * WebCoreSupport/ChromeClientQt.h:
739 * WebCoreSupport/ContextMenuClientQt.cpp:
740 * WebCoreSupport/ContextMenuClientQt.h:
741 * WebCoreSupport/EditorClientQt.h:
742 * WebCoreSupport/FrameLoaderClientQt.h:
744 2007-11-10 Simon Hausmann <hausmann@kde.org>
748 When populating the context menu with sub-menus don't add sub-menus if they're empty.
752 (QWebPagePrivate::createContextMenu):
754 2007-11-10 Simon Hausmann <hausmann@kde.org>
758 Added support for the Bold/Italic/Underline toggle actions.
762 (webActionForContextMenuAction):
763 (QWebPage::triggerAction):
767 2007-11-10 Simon Hausmann <hausmann@kde.org>
771 Before adding an action to the context menu call checkOrEnableIfNeeded for each action
772 to update the enable/checked state correctly.
776 (QWebPagePrivate::createContextMenu):
777 (QWebPage::contextMenuEvent):
780 2007-11-10 Simon Hausmann <hausmann@kde.org>
784 Mark the text direction actions as checkable actions.
790 2007-11-09 Simon Hausmann <hausmann@kde.org>
794 Implemented the webcore actions for changing the text direction.
798 (webActionForContextMenuAction):
799 (QWebPage::triggerAction):
803 2007-11-09 Simon Hausmann <hausmann@kde.org>
807 Fix ContextMenu allocation in the Qt port.
809 Store all items and submenus value based in ContextMenu and ContextMenuItem.
810 That fixes the crashes when the context menu was populated with sub-menus because
811 of the use of temporary ContextMenu objects like this:
813 ContextMenu subMenu(...);
814 subMenu.appendItem(...);
815 subMenu.appendItem(...);
817 subMenuItem.setSubMenu(&subMenu); // temporary pointer, need to _copy_ contents
821 (QWebPage::contextMenuEvent):
824 2007-11-09 Simon Hausmann <hausmann@kde.org>
828 Renamed QWebPage::NumWebActions to QWebPage::WebActionCount (for consistency) and fixed its value.
834 2007-11-08 Kevin McCullough <kmccullough@apple.com>
838 - windowObjectCleared() is no longer const. It needs to setup the
839 script debugger and cannot be const to do so.
841 * WebCoreSupport/FrameLoaderClientQt.cpp:
842 (WebCore::FrameLoaderClientQt::windowObjectCleared):
843 * WebCoreSupport/FrameLoaderClientQt.h:
845 2007-11-08 Simon Hausmann <hausmann@kde.org>
847 Reviewed by nobody (well, Holger knows about it), build fix for Qt 4.3.
849 The buildbots use Qt 4.4 which has the function in question, but Qt
850 4.3 doesn't have it. Use removeAll() as replacement instead, it
851 shouldn't make a difference in performance.
853 * Api/qwebsettings.cpp:
854 (QWebSettings::~QWebSettings):
856 2007-11-08 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
858 Reviewed by Lars Knoll <lars@trolltech.com>.
860 Cleanup checking for the request method.
862 * Check the request method only in QWebNetworkManager::add.
863 * Currently HEAD, GET, POST are allowed and for everything else
864 QWebNetworkManager::add returns false.
865 * Returning false is compatible with ResourceHandle::start and it
866 can be used in ResourceHandle::loadResourceSynchronously to generate
870 * Api/qwebnetworkinterface.cpp:
871 (QWebNetworkManager::add):
873 2007-11-08 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
875 Reviewed by Lars Knoll <lars@trolltech.com>.
877 Fix bug in the implementation of synchronous network jobs.
879 * George (pmax) reviewed the networking patches and found the following bug (thanks for reviewing)
880 - if (jobMode == AsynchronousJob) {
881 + if (jobMode == SynchronousJob) {
882 add job to synchronous list/hash
884 * Just applying the above change will lead to crashes because we can finish
885 jobs before we started them.
887 * Avoid these issues by saving all work (starting a job, sending data and
888 finishing it) inside one list. JobWork will contain any
889 of the above three work types and doWork will just work on this list
890 (m_pendingWork). As foreach takes a copy of the list calling started, data
891 and finished will not add new work and we gurantee that if we have JobStarted
892 it will be in the list before JobData and JobFinished.
894 * Observation: We might just kill the code to handle sync jobs.
897 * Api/qwebnetworkinterface.cpp:
898 (QWebNetworkManager::add):
899 (QWebNetworkManager::queueStart):
900 (QWebNetworkManager::queueData):
901 (QWebNetworkManager::queueFinished):
902 (QWebNetworkManager::doWork):
903 * Api/qwebnetworkinterface_p.h:
904 (QWebNetworkManager::JobWork::):
905 (QWebNetworkManager::JobWork::JobWork):
907 2007-11-07 Simon Hausmann <hausmann@kde.org>
909 Build fix, reviewed by nobody.
911 Fix the Qt build by setting up WindowFeatures before calling
912 createWindow on the Chrome. This is similar to openNewWindow in
913 page/ContextMenuController.cpp
918 2007-11-07 Simon Hausmann <hausmann@kde.org>
922 Make the setting of letting Javascript access the clipboard configurable through QWebSettings, turn it off by default and turn it on in DumpRenderTree.
925 (QWebPagePrivate::QWebPagePrivate):
926 * Api/qwebsettings.cpp:
927 (QWebSettingsPrivate::apply):
928 * Api/qwebsettings.h:
930 2007-11-07 Simon Hausmann <hausmann@kde.org>
934 Changed QWebPageHistory::goToItem to take a value instead of a pointer.
936 * Api/qwebpagehistory.cpp:
937 * Api/qwebpagehistory.h:
939 2007-11-07 Simon Hausmann <hausmann@kde.org>
943 Removed unimplemented QWebHistoryItem::children() function
945 * Api/qwebpagehistory.h:
947 2007-11-07 Simon Hausmann <hausmann@kde.org>
951 Changed the getter functions in QWebSettings to transparently resolve against the default settings.
953 * Api/qwebsettings.cpp:
954 (QWebSettings::fontSize):
955 (QWebSettings::fontFamily):
956 (QWebSettings::testAttribute):
958 2007-11-07 Simon Hausmann <hausmann@kde.org>
962 Added explicit functions for resetting the font sizes and font families.
964 * Api/qwebsettings.cpp:
965 (QWebSettings::resetFontSize):
966 (QWebSettings::resetFontFamily):
967 * Api/qwebsettings.h:
969 2007-11-07 Simon Hausmann <hausmann@kde.org>
973 Combined the font sizes accessors/setters under one setter/getter with an enum.
975 * Api/qwebsettings.cpp:
976 (QWebSettingsPrivate::QWebSettingsPrivate):
977 (QWebSettingsPrivate::apply):
978 (QWebSettings::QWebSettings):
979 (QWebSettings::setFontSize):
980 * Api/qwebsettings.h:
982 2007-11-07 Simon Hausmann <hausmann@kde.org>
986 Renamed QWebPage::userAgentStringForUrl(url) to QWebPage::userAgentFor(url);
990 * WebCoreSupport/FrameLoaderClientQt.cpp:
991 (WebCore::FrameLoaderClientQt::userAgent):
993 2007-11-07 Simon Hausmann <hausmann@kde.org>
997 Renamed QWebPage::webActionTriggered to QWebPage::triggerAction
1000 (QWebPagePrivate::_q_webActionTriggered):
1001 (QWebPage::keyPressEvent):
1004 2007-11-07 Simon Hausmann <hausmann@kde.org>
1008 Changed the virtual QWebPage::setWindowGeometry to be a geometryChangeRequest signal instead.
1012 * WebCoreSupport/ChromeClientQt.cpp:
1013 (WebCore::ChromeClientQt::setWindowRect):
1015 2007-11-07 Simon Hausmann <hausmann@kde.org>
1019 Renamed QWebPage::webAction() to QWebPage::action()
1022 (QWebPagePrivate::createContextMenu):
1024 * QtLauncher/main.cpp:
1025 (MainWindow::MainWindow):
1027 2007-11-07 Simon Hausmann <hausmann@kde.org>
1031 Removed a bunch of slots/functions that are now available through the new actions API.
1036 2007-11-07 Simon Hausmann <hausmann@kde.org>
1040 Added some more comments to the API after another round of API review with Lars.
1044 2007-11-07 Simon Hausmann <hausmann@kde.org>
1048 Moved QWebFrame::selectedText() to QWebPage::selectedText().
1050 The currently selected text is a property of the page as a whole.
1052 * Api/qwebframe.cpp:
1055 (QWebPage::selectedText):
1058 2007-11-07 Simon Hausmann <hausmann@kde.org>
1062 Implemented support for settings propagation.
1064 If an individual setting is not set in a page's QWebSettings then it is inherited from the default settings.
1066 * Api/qwebsettings.cpp:
1067 (QWebSettingsPrivate::QWebSettingsPrivate):
1068 (QWebSettingsPrivate::apply):
1069 (QWebSettings::QWebSettings):
1070 (QWebSettings::~QWebSettings):
1071 (QWebSettings::setFontFamily):
1072 * Api/qwebsettings.h:
1074 2007-11-07 Simon Hausmann <hausmann@kde.org>
1078 Reworked the QWebSettings API.
1079 QWebPage now returns a pointer to its mutable QWebSettings object and the settings of newly created QWebPageObjects are initialized from QWebSettings::defaultSettings().
1082 (QWebPagePrivate::QWebPagePrivate):
1083 (QWebPagePrivate::~QWebPagePrivate):
1084 (QWebPage::QWebPage):
1087 * Api/qwebsettings.cpp:
1088 (QWebSettingsPrivate::QWebSettingsPrivate):
1089 (QWebSettingsPrivate::apply):
1090 (QWebSettings::defaultSettings):
1091 (QWebSettings::QWebSettings):
1092 (QWebSettings::setMinimumFontSize):
1093 (QWebSettings::setMinimumLogicalFontSize):
1094 (QWebSettings::setDefaultFontSize):
1095 (QWebSettings::setDefaultFixedFontSize):
1096 (QWebSettings::setUserStyleSheetLocation):
1097 (QWebSettings::setFontFamily):
1098 (QWebSettings::fontFamily):
1099 (QWebSettings::setAttribute):
1100 * Api/qwebsettings.h:
1101 * QtLauncher/main.cpp:
1104 2007-11-07 Simon Hausmann <hausmann@kde.org>
1108 Made the QWebSettings::webGraphic functions static. The implementation was using QWebSettings::global() anyway.
1110 * Api/qwebsettings.cpp:
1111 (QWebSettings::setWebGraphic):
1112 * Api/qwebsettings.h:
1114 2007-11-07 Simon Hausmann <hausmann@kde.org>
1118 Moved the WebCore::Image specific function loadResourcePixmap from qwebsettings.cpp to ImageQt.cpp and made it static.
1120 * Api/qwebsettings.cpp:
1122 2007-11-07 Simon Hausmann <hausmann@kde.org>
1126 Changed the icondatabase accessor to be a static function because it doesn't change the QWebSettings object.
1128 * Api/qwebsettings.cpp:
1129 * Api/qwebsettings.h:
1131 2007-11-07 Simon Hausmann <hausmann@kde.org>
1135 Changed the webAction() accessor to not be a slot but just a public function.
1139 2007-11-07 Simon Hausmann <hausmann@kde.org>
1143 Implemented createWindow() in QtLauncher.
1145 * QtLauncher/main.cpp:
1147 (MainWindow::MainWindow):
1148 (WebPage::createWindow):
1150 2007-11-07 Simon Hausmann <hausmann@kde.org>
1154 Implemented opening links in new windows
1159 (QWebPage::webActionTriggered):
1161 2007-11-07 Simon Hausmann <hausmann@kde.org>
1165 Added and implemented the "OpenLink" action.
1168 (webActionForContextMenuAction):
1169 (QWebPage::webActionTriggered):
1170 (QWebPage::webAction):
1173 2007-11-07 Simon Hausmann <hausmann@kde.org>
1177 Adjust the state of the reload action correctly.
1180 (QWebPagePrivate::updateAction):
1181 (QWebPagePrivate::updateNavigationActions):
1183 2007-11-07 Simon Hausmann <hausmann@kde.org>
1187 Initialize the undo/redo actions from QUndoStack. That automatically takes care of enabling/disabling them as well as the activation/trigger.
1190 (QWebPagePrivate::updateAction):
1191 (QWebPage::webAction):
1192 (QWebPage::undoStack):
1195 2007-11-07 Simon Hausmann <hausmann@kde.org>
1199 Added undo/redo toolbar buttons, moved the location line edit into a separate toolbar.
1201 * QtLauncher/main.cpp:
1202 (MainWindow::MainWindow):
1204 2007-11-07 Simon Hausmann <hausmann@kde.org>
1208 Update the editor actions when the selection changes.
1211 (QWebPagePrivate::updateAction):
1212 (QWebPagePrivate::updateEditorActions):
1214 * WebCoreSupport/EditorClientQt.cpp:
1215 (WebCore::EditorClientQt::respondToChangedSelection):
1217 2007-11-07 Simon Hausmann <hausmann@kde.org>
1221 Added cut/copy/paste actions to the toolbar of QtLauncher
1223 * QtLauncher/main.cpp:
1224 (MainWindow::MainWindow):
1226 2007-11-07 Simon Hausmann <hausmann@kde.org>
1230 Started working on keeping the state of the navigation actions up-to-date.
1233 (QWebPagePrivate::updateAction):
1234 (QWebPagePrivate::updateNavigationActions):
1235 (QWebPage::webAction):
1237 * WebCoreSupport/FrameLoaderClientQt.cpp:
1238 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
1239 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
1240 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
1241 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
1242 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
1244 2007-11-07 Simon Hausmann <hausmann@kde.org>
1248 Use the navigational web actions in the toolbar
1250 * QtLauncher/main.cpp:
1251 (MainWindow::MainWindow):
1253 2007-11-07 Simon Hausmann <hausmann@kde.org>
1257 Store a bunch of QActions in QWebPagePrivate, corresponding to QWebPage::WebAction.
1258 Added QWebPageContext to hold context sensitive information (for example used by the context menu).
1261 (QWebPagePrivate::QWebPagePrivate):
1262 (webActionForContextMenuAction):
1263 (QWebPagePrivate::createContextMenu):
1264 (QWebPagePrivate::_q_webActionTriggered):
1265 (QWebPage::webActionTriggered):
1266 (QWebPage::webAction):
1267 (QWebPage::contextMenuEvent):
1268 (QWebPageContext::QWebPageContext):
1269 (QWebPageContext::operator=):
1270 (QWebPageContext::~QWebPageContext):
1271 (QWebPageContext::pos):
1272 (QWebPageContext::text):
1273 (QWebPageContext::linkUrl):
1274 (QWebPageContext::imageUrl):
1275 (QWebPageContext::image):
1276 (QWebPageContext::targetFrame):
1280 2007-11-07 Simon Hausmann <hausmann@kde.org>
1284 Moved the editing actions implemented in keyPressEvent into webActionTriggered.
1287 (QWebPage::webActionTriggered):
1288 (QWebPage::keyPressEvent):
1291 2007-11-07 Simon Hausmann <hausmann@kde.org>
1295 Introduced a central virtual void webActionTriggered(WebAction action) method that is called from various
1296 convenience methods such as cut()/copy()/paste().
1300 (QWebPage::webActionTriggered):
1305 2007-11-07 Simon Hausmann <hausmann@kde.org>
1309 Restructure the context menu classes for the Qt port. ContextMenu and ContextMenuItem don't store
1310 QActions/QMenus anymore but just store the action type, tag, title and optionally submenu as created
1311 in ContextMenu::populate().
1312 For the actual Qt context menu we traverse this structure after sendContextMenuEvent and create a QMenu
1313 out of it. That menu is currently not functional anymore though.
1316 (QWebPagePrivate::createContextMenu):
1317 (QWebPage::contextMenuEvent):
1320 2007-11-07 Simon Hausmann <hausmann@kde.org>
1324 Changed ContextMenu::setPlatformDescription for the Qt port to not show the qmenu right away
1325 but instead just behave as a normal setter that takes ownership of the platform menu description (the qmenu).
1326 Instead now QWebPage::contextMenuEvent() retrieves the QMenu after calling sendContextMenuEvent and calls exec()
1330 (QWebPage::contextMenuEvent):
1331 * WebCoreSupport/ContextMenuClientQt.cpp:
1332 (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
1334 2007-11-07 Simon Hausmann <hausmann@kde.org>
1338 Changed to PlatformMouseEvent constructor to allow construction from a QContextMenuEvent.
1339 Call sendContextMenuEvent on the event handler from a QWidget::contextMenuEvent re-implementation instead of in mousePressEvent.
1342 (QWebPage::mousePressEvent):
1343 (QWebPage::contextMenuEvent):
1346 2007-11-07 Simon Hausmann <hausmann@kde.org>
1350 Turned onLoadProgressChanged into a real private slot.
1353 (QWebPage::QWebPage):
1357 2007-11-07 Simon Hausmann <hausmann@kde.org>
1361 Make QWebHistory an explicitly shared object, returned as a pointer by QWebPage::history().
1364 (QWebPagePrivate::QWebPagePrivate):
1367 * Api/qwebpagehistory.cpp:
1368 (QWebPageHistory::QWebPageHistory):
1369 * Api/qwebpagehistory.h:
1371 2007-11-07 Lars Knoll <lars@trolltech.com>
1375 comments on API changes that we'd like to do.
1379 2007-11-07 Simon Hausmann <hausmann@kde.org>
1381 Reviewed by Lars Knoll <lars@trolltech.com>.
1383 Add a QWebPage::frameCreated() signal and fix DRT
1385 The removal of createFrame in QWebPage broke the re-implementation
1386 in DumpRenderTree. Instead emit a frameCreated() signal and
1387 connect to it in DumpRenderTree.
1391 (QWebPagePrivate::createMainFrame):
1393 * WebCoreSupport/FrameLoaderClientQt.cpp:
1394 (WebCore::FrameLoaderClientQt::createFrame):
1396 2007-11-07 Lars Knoll <lars@trolltech.com>
1400 Remove QWebPage::createFrame()
1402 now that QWebFrame doesn't have virtual methods anymore, there
1403 is no need for a createFrame() factory method in QWebpage.
1406 (QWebPagePrivate::createMainFrame):
1408 * WebCoreSupport/FrameLoaderClientQt.cpp:
1409 (WebCore::FrameLoaderClientQt::createFrame):
1411 2007-11-07 Simon Hausmann <hausmann@kde.org>
1413 Reviewed by Lars Knoll <lars@trolltech.com>.
1415 Moved all the event handlers from QWebFrame into QWebPage.
1417 This cleans up the public API and allows us to remove the
1418 HackWebFrame hack in DumpRenderTree.
1421 * Api/qwebframe.cpp:
1424 * Api/qwebframe_p.h:
1426 (QWebPagePrivate::frameAt):
1427 (QWebPage::mouseMoveEvent):
1428 (QWebPage::mousePressEvent):
1429 (QWebPage::mouseDoubleClickEvent):
1430 (QWebPage::mouseReleaseEvent):
1431 (QWebPage::wheelEvent):
1434 2007-11-07 Holger Freyther <holger.freyther@trolltech.com>
1436 Reviewed by Lars Knoll <lars@trolltech.com>.
1438 Use correct UserAgent string.
1440 * Only have one User Agent String and this place is QWebPage
1441 * QWebPage::open -> QWebNetworkRequest -> QWebPage::open ->
1442 ResourceRequest -> FrameLoader::load -> QWebNetworkRequest
1443 * ResourceRequest is != 0 when getting called from WebCore, we
1444 will only do requests when coming from WebCore and then we can
1445 use the User-Agent set with the help of the FrameLoaderClient
1446 * We might want to change QWebNetworkRequest a bit
1449 * Api/qwebnetworkinterface.cpp:
1450 (QWebNetworkRequestPrivate::init):
1452 2007-11-07 Lars Knoll <lars@trolltech.com>
1456 remove two notImplemented() warnings, as I believe we don't
1457 have to implement these methods. Add some (commented out)
1458 debug code in one place.
1460 * WebCoreSupport/EditorClientQt.cpp:
1461 (WebCore::EditorClientQt::respondToChangedSelection):
1462 (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
1464 2007-11-05 Tristan O'Tierney <tristan@apple.com>
1466 Reviewed by Darin Adler.
1468 * WebCoreSupport/ChromeClientQt.cpp:
1469 (WebCore::ChromeClientQt::createWindow):
1470 * WebCoreSupport/ChromeClientQt.h:
1471 Revised to use new WebCore ChromeClient createWindow API.
1473 2007-10-31 Lars Knoll <lars@trolltech.com>
1477 fix most of the issues I found with Clipboard and DnD.
1480 (QWebPage::dragLeaveEvent):
1482 2007-10-31 Lars Knoll <lars@trolltech.com>
1486 QDrag objects need to be created on the heap.
1488 * WebCoreSupport/DragClientQt.cpp:
1489 (WebCore::DragClientQt::startDrag):
1491 2007-10-31 Lars Knoll <lars@trolltech.com>
1495 a dragLeave event is not the same as cancelling a drag.
1499 2007-10-26 Mark Rowe <mrowe@apple.com>
1501 Build fix. Add missing #include of Platform.h.
1503 * Api/qwebhistoryinterface.cpp:
1505 2007-10-25 Holger Freyther <zecke@selfish.org>
1507 Reviewed by Simon Hausmann <hausmann@kde.org>.
1509 * We need to set a != 0 status code for the fast/loader/xmlhttprequest-missing-file-exception.html
1510 * libxml2 has the semantic that when writing an empty string and finishing it will report an error. For QXmlStreamReader this is valid.
1511 * This is causing some regressions...
1514 * Api/qwebnetworkinterface.cpp:
1515 (QWebNetworkManager::started):
1516 (QWebNetworkInterface::addJob):
1518 2007-10-25 Holger Freyther <zecke@selfish.org>
1520 Reviewed by Simon Hausmann <hausmann@kde.org>.
1522 * Make fast/loader/xmlhttprequest-bad-mimetype.html pass. We use QHttp to download local files but we may not set the HTTP result code on the ResourceResponse.
1523 * We can use the cross-platform result now. QWebNetworkInterface/Manager behaves the same as mac for local files.
1526 * Api/qwebnetworkinterface.cpp:
1527 (QWebNetworkManager::started):
1529 2007-10-25 Holger Freyther <zecke@selfish.org>
1531 Reviewed by Simon Hausmann <hausmann@kde.org>.
1533 * fast/dom/onerror-img.html regressed due checking the JobStates because in case of error (e.g. not being able to connect) the job will no be started.
1534 * Use the error message from Qt. It might or might not be translated.
1537 * Api/qwebnetworkinterface.cpp:
1538 (QWebNetworkJob::errorString):
1539 (QWebNetworkJob::setErrorString):
1540 (QWebNetworkManager::finished):
1541 (QWebNetworkManager::doWork):
1542 (WebCoreHttp::onRequestFinished):
1543 * Api/qwebnetworkinterface.h:
1544 * Api/qwebnetworkinterface_p.h:
1546 2007-10-25 Holger Freyther <zecke@selfish.org>
1548 Reviewed by Simon Hausmann <hausmann@kde.org>.
1550 * Use the JobStatus to make sure to not deliver finished/data before the job has started. This is the case with the fast/dom/onerror-img.html test case.
1551 * We have no idea if any data will come so we can still finish and then get pending data. This luckily can't happen for the local file case.
1554 * Api/qwebnetworkinterface.cpp:
1555 (QWebNetworkManager::doWork):
1557 2007-10-25 Holger Freyther <zecke@selfish.org>
1559 Reviewed by Simon Hausmann <hausmann@kde.org>.
1561 * No need to initialize values in the QWebNetworkJob c'tor
1562 * Add a JobStatus to QWebNetworkJob and verify that the jobs are handled in the way we expect them to be handled. This means no data after the job has finished, not finishing a job before it has been started.
1565 * Api/qwebnetworkinterface.cpp:
1566 (QWebNetworkJob::status):
1567 (QWebNetworkJob::setStatus):
1568 (QWebNetworkManager::started):
1569 (QWebNetworkManager::data):
1570 (QWebNetworkManager::finished):
1571 * Api/qwebnetworkinterface.h:
1572 * Api/qwebnetworkinterface_p.h:
1573 (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
1575 2007-10-25 Holger Freyther <zecke@selfish.org>
1577 Reviewed by Simon Hausmann <hausmann@kde.org>.
1579 * Consistency: Always name the jobs job.
1582 * Api/qwebnetworkinterface.cpp:
1583 (WebCoreHttp::onReadyRead):
1584 (WebCoreHttp::onRequestFinished):
1585 (WebCoreHttp::onSslErrors):
1586 (WebCoreHttp::onAuthenticationRequired):
1587 (WebCoreHttp::onProxyAuthenticationRequired):
1589 2007-10-25 Holger Freyther <zecke@selfish.org>
1591 Reviewed by Simon Hausmann <hausmann@kde.org>.
1593 * Implement our own queuing of network jobs to allow special handling of synchronous jobs. This makes us pass the fast/dom/xmlhttprequest-html-response-encoding.html test without a crash. Sync jobs will get a special treatment over the normals ones and in theory more than one sync job is supported.
1594 * This should be thread-safe besides QWebNetworkJob::{ref,deref}
1597 * Api/qwebnetworkinterface.cpp:
1598 (QWebNetworkJob::~QWebNetworkJob):
1599 (QWebNetworkManager::QWebNetworkManager):
1600 (QWebNetworkManager::self):
1601 (QWebNetworkManager::add):
1602 (QWebNetworkManager::started):
1603 (QWebNetworkManager::finished):
1604 (QWebNetworkInterfacePrivate::sendFileData):
1605 (QWebNetworkInterfacePrivate::parseDataUrl):
1606 (QWebNetworkManager::queueStart):
1607 (QWebNetworkManager::queueData):
1608 (QWebNetworkManager::queueFinished):
1609 (QWebNetworkManager::doScheduleWork):
1610 (QWebNetworkManager::doWork):
1611 (gCleanupInterface):
1612 (QWebNetworkInterface::setDefaultInterface):
1613 (QWebNetworkInterface::defaultInterface):
1614 (QWebNetworkInterface::QWebNetworkInterface):
1615 (QWebNetworkInterface::started):
1616 (QWebNetworkInterface::data):
1617 (QWebNetworkInterface::finished):
1618 (WebCoreHttp::scheduleNextRequest):
1619 (WebCoreHttp::onResponseHeaderReceived):
1620 (WebCoreHttp::onReadyRead):
1621 (WebCoreHttp::onRequestFinished):
1622 (WebCoreHttp::cancel):
1623 * Api/qwebnetworkinterface.h:
1624 * Api/qwebnetworkinterface_p.h:
1625 (QWebNetworkManager::):
1626 (QWebNetworkManager::JobData::JobData):
1627 (QWebNetworkManager::JobFinished::JobFinished):
1629 2007-10-25 Holger Freyther <zecke@selfish.org>
1631 Reviewed by Simon Hausmann <hausmann@kde.org>.
1633 * Do the percent replacement only when we are not base64. With base64 we should not have any % in it anyway.
1634 * Have a custom decodePercentEncoding method that works without doing any charset conversion. With converting back to latin1() we lost some information.
1635 * We pass the char-decoding.html test now
1638 * Api/qwebnetworkinterface.cpp:
1639 (decodePercentEncoding):
1640 (QWebNetworkInterfacePrivate::parseDataUrl):
1642 2007-10-24 Holger Hans Peter Freyther <zecke@selfish.org>
1644 Reviewed by Lars Knoll <lars@trolltech.com>.
1646 * Stop crashing on fast/events/frame-tab-focus.html the keyEvent can be 0.
1649 * WebCoreSupport/EditorClientQt.cpp:
1650 (WebCore::EditorClientQt::handleKeypress):
1652 2007-10-24 Lars Knoll <lars@trolltech.com>
1656 remove some notImplemented() warnings.
1658 * WebCoreSupport/EditorClientQt.cpp:
1659 (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
1660 (WebCore::EditorClientQt::isGrammarCheckingEnabled):
1661 (WebCore::EditorClientQt::respondToChangedSelection):
1663 2007-10-24 Lars Knoll <lars@trolltech.com>
1667 allow paste from DOM so we pass more test cases.
1670 (QWebPage::setSettings):
1672 2007-10-24 Lars Knoll <lars@trolltech.com>
1676 Simplify the PlatformKeyEvent constructor. No need to have an extra boolean for isKeyUp in there, as the QKeyEvent has the information.
1679 (QWebPage::keyPressEvent):
1680 (QWebPage::keyReleaseEvent):
1682 2007-10-24 Lars Knoll <lars@trolltech.com>
1686 some smaller fixes to the editing support in DRT. Makes another few tests pass.
1688 * WebCoreSupport/EditorClientQt.cpp:
1689 (qt_dump_editing_callbacks):
1692 2007-10-24 Lars Knoll <lars@trolltech.com>
1696 implemented support for most editing shortcuts to make contentEditable usable.
1699 (QWebPage::keyPressEvent):
1701 2007-10-24 Lars Knoll <lars@trolltech.com>
1705 no need to call setIsActive ourselves on the frame, as the focus controller does it for us.
1708 (QWebPage::focusInEvent):
1710 2007-10-24 Lars Knoll <lars@trolltech.com>
1714 Implement support for testing editing.
1716 * WebCoreSupport/EditorClientQt.cpp:
1717 (qt_dump_editing_callbacks):
1718 (qt_dump_set_accepts_editing):
1721 (WebCore::EditorClientQt::shouldDeleteRange):
1722 (WebCore::EditorClientQt::shouldShowDeleteInterface):
1723 (WebCore::EditorClientQt::shouldBeginEditing):
1724 (WebCore::EditorClientQt::shouldEndEditing):
1725 (WebCore::EditorClientQt::shouldInsertText):
1726 (WebCore::EditorClientQt::shouldChangeSelectedRange):
1727 (WebCore::EditorClientQt::shouldApplyStyle):
1728 (WebCore::EditorClientQt::didBeginEditing):
1729 (WebCore::EditorClientQt::respondToChangedContents):
1730 (WebCore::EditorClientQt::respondToChangedSelection):
1731 (WebCore::EditorClientQt::didEndEditing):
1732 (WebCore::EditorClientQt::shouldInsertNode):
1734 2007-10-19 Alp Toker <alp@atoker.com>
1738 GTK+ build fix enabling the new local database storage feature.
1739 There is also a prospective Qt build fix.
1741 * WebCoreSupport/ChromeClientQt.cpp:
1742 (WebCore::ChromeClientQt::runDatabaseSizeLimitPrompt):
1743 * WebCoreSupport/ChromeClientQt.h:
1745 2007-10-19 Simon Hausmann <hausmann@kde.org>
1747 Fix the Qt/Windows build: Include the moc file from the .cpp file so
1748 that config.h is included before wtf/MathExtras. The former defines
1749 the MSVC defines for rand_s.
1751 * WebCoreSupport/FrameLoaderClientQt.cpp:
1753 2007-10-19 Simon Hausmann <shausman@trolltech.com>
1757 Fix the windows/qt build by including config.h first to fix wtf/MathExtras.h inclusion.
1759 * Api/qwebframe.cpp:
1762 2007-10-10 Alice Liu <alice.liu@apple.com>
1764 Reviewed by Geoff Garen.
1766 changes to keep the build from breaking
1768 * WebCoreSupport/FrameLoaderClientQt.cpp:
1769 (WebCore::FrameLoaderClientQt::createFrame):
1770 * WebCoreSupport/FrameLoaderClientQt.h:
1772 2007-10-09 Lars Knoll <lars@trolltech.com>
1776 set a default encoding for documents. Makes fast/dom/Document/document-charset.html pass.
1779 (QWebPage::setSettings):
1781 2007-10-09 Lars Knoll <lars@trolltech.com>
1785 Don't return a 404 status code for empty data: urls. Fixes fast/dom/HTMLHeadElement/head-check.html
1787 * Api/qwebnetworkinterface.cpp:
1788 (QWebNetworkManager::add):
1789 (QWebNetworkManager::cancel):
1790 (QWebNetworkManager::started):
1791 (QWebNetworkManager::data):
1792 (QWebNetworkInterfacePrivate::parseDataUrl):
1794 2007-10-09 Lars Knoll <lars@trolltech.com>
1798 Don't set up connections inside QWebPage::createFrame, as users might be reimplementing that method. Make sure we get only one titleChanged() signal per title change, and implement the support for testing this in DRT.
1801 (QWebPagePrivate::createMainFrame):
1802 (QWebPage::createFrame):
1803 * WebCoreSupport/FrameLoaderClientQt.cpp:
1804 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
1805 * WebCoreSupport/FrameLoaderClientQt.h:
1807 2007-10-09 Lars Knoll <lars@trolltech.com>
1811 add a clear() method to QWebPageHistory.
1813 * Api/qwebpagehistory.cpp:
1814 (QWebPageHistory::clear):
1815 (QWebPageHistory::itemAtIndex):
1816 * Api/qwebpagehistory.h:
1818 2007-10-05 Lars Knoll <lars@trolltech.com>
1820 add proper error messages to the FrameLoaderClient.
1821 Implement ChromeClientQt::closeWindowSoon and
1822 FrameLoaderClientQt::dispatchCreatePage (which should go away IMO).
1823 Some fixes in DRT to make it work correctly with multiple windows.
1828 * Api/qwebnetworkinterface.cpp:
1829 (QWebNetworkManager::cancel):
1830 (QWebNetworkInterface::addJob):
1831 * WebCoreSupport/ChromeClientQt.cpp:
1832 (WebCore::ChromeClientQt::closeWindowSoon):
1833 * WebCoreSupport/FrameLoaderClientQt.cpp:
1834 (WebCore::FrameLoaderClientQt::cancelledError):
1836 (WebCore::FrameLoaderClientQt::blockedError):
1837 (WebCore::FrameLoaderClientQt::cannotShowURLError):
1838 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
1839 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
1840 (WebCore::FrameLoaderClientQt::dispatchCreatePage):
1842 2007-10-03 Lars Knoll <lars@trolltech.com>
1844 Signed off by Olliej.
1846 move WebKitQt to WebKit/qt for consistency with the other ports.
1848 * Api/headers.pri: Renamed from WebKitQt/Api/headers.pri.
1849 * Api/qcookiejar.cpp: Renamed from WebKitQt/Api/qcookiejar.cpp.
1850 (QCookieJarPrivate::QCookieJarPrivate):
1852 (QCookieJar::QCookieJar):
1853 (QCookieJar::~QCookieJar):
1854 (QCookieJar::setCookies):
1855 (QCookieJar::cookies):
1856 (QCookieJar::isEnabled):
1857 (QCookieJar::setEnabled):
1859 (QCookieJar::setCookieJar):
1860 (QCookieJar::cookieJar):
1861 * Api/qcookiejar.h: Renamed from WebKitQt/Api/qcookiejar.h.
1862 * Api/qtwebkit.prf: Renamed from WebKitQt/Api/qtwebkit.prf.
1863 * Api/qwebframe.cpp: Renamed from WebKitQt/Api/qwebframe.cpp.
1864 (QWebFramePrivate::init):
1865 (QWebFramePrivate::parentFrame):
1866 (QWebFramePrivate::horizontalScrollBar):
1867 (QWebFramePrivate::verticalScrollBar):
1868 (QWebFrame::QWebFrame):
1869 (QWebFrame::~QWebFrame):
1870 (QWebFrame::addToJSWindowObject):
1871 (QWebFrame::markup):
1872 (QWebFrame::innerText):
1873 (QWebFrame::renderTreeDump):
1877 (QWebFrame::selectedText):
1878 (QWebFrame::childFrames):
1879 (QWebFrame::verticalScrollBarPolicy):
1880 (QWebFrame::setVerticalScrollBarPolicy):
1881 (QWebFrame::horizontalScrollBarPolicy):
1882 (QWebFrame::setHorizontalScrollBarPolicy):
1883 (QWebFrame::render):
1884 (QWebFrame::layout):
1886 (QWebFrame::geometry):
1887 (QWebFrame::evaluateJavaScript):
1888 (QWebFrame::mouseMoveEvent):
1889 (QWebFrame::mousePressEvent):
1890 (QWebFrame::mouseDoubleClickEvent):
1891 (QWebFrame::mouseReleaseEvent):
1892 (QWebFrame::wheelEvent):
1893 * Api/qwebframe.h: Renamed from WebKitQt/Api/qwebframe.h.
1894 * Api/qwebframe_p.h: Renamed from WebKitQt/Api/qwebframe_p.h.
1895 (QWebFramePrivate::QWebFramePrivate):
1896 * Api/qwebhistoryinterface.cpp: Renamed from WebKitQt/Api/qwebhistoryinterface.cpp.
1897 (WebCore::historyContains):
1898 (gCleanupInterface):
1899 (QWebHistoryInterface::setDefaultInterface):
1900 (QWebHistoryInterface::defaultInterface):
1901 (QWebHistoryInterface::QWebHistoryInterface):
1902 * Api/qwebhistoryinterface.h: Renamed from WebKitQt/Api/qwebhistoryinterface.h.
1903 * Api/qwebkitglobal.h: Renamed from WebKitQt/Api/qwebkitglobal.h.
1904 * Api/qwebnetworkinterface.cpp: Renamed from WebKitQt/Api/qwebnetworkinterface.cpp.
1907 (QWebNetworkRequestPrivate::init):
1908 (QWebNetworkRequestPrivate::setURL):
1909 (QWebNetworkRequest::QWebNetworkRequest):
1910 (QWebNetworkRequest::operator=):
1911 (QWebNetworkRequest::~QWebNetworkRequest):
1912 (QWebNetworkRequest::url):
1913 (QWebNetworkRequest::setUrl):
1914 (QWebNetworkRequest::httpHeader):
1915 (QWebNetworkRequest::setHttpHeader):
1916 (QWebNetworkRequest::httpHeaderField):
1917 (QWebNetworkRequest::setHttpHeaderField):
1918 (QWebNetworkRequest::postData):
1919 (QWebNetworkRequest::setPostData):
1920 (QWebNetworkJob::QWebNetworkJob):
1921 (QWebNetworkJob::~QWebNetworkJob):
1922 (QWebNetworkJob::url):
1923 (QWebNetworkJob::postData):
1924 (QWebNetworkJob::httpHeader):
1925 (QWebNetworkJob::request):
1926 (QWebNetworkJob::response):
1927 (QWebNetworkJob::setResponse):
1928 (QWebNetworkJob::cancelled):
1929 (QWebNetworkJob::ref):
1930 (QWebNetworkJob::deref):
1931 (QWebNetworkJob::networkInterface):
1932 (QWebNetworkJob::frame):
1933 (QWebNetworkManager::QWebNetworkManager):
1934 (QWebNetworkManager::self):
1935 (QWebNetworkManager::add):
1936 (QWebNetworkManager::cancel):
1937 (QWebNetworkManager::started):
1938 (QWebNetworkManager::data):
1939 (QWebNetworkManager::finished):
1940 (QWebNetworkManager::addHttpJob):
1941 (QWebNetworkManager::cancelHttpJob):
1942 (QWebNetworkManager::httpConnectionClosed):
1943 (QWebNetworkInterfacePrivate::sendFileData):
1944 (QWebNetworkInterfacePrivate::parseDataUrl):
1945 (gCleanupInterface):
1946 (QWebNetworkInterface::setDefaultInterface):
1947 (QWebNetworkInterface::defaultInterface):
1948 (QWebNetworkInterface::QWebNetworkInterface):
1949 (QWebNetworkInterface::~QWebNetworkInterface):
1950 (QWebNetworkInterface::addJob):
1951 (QWebNetworkInterface::cancelJob):
1952 (WebCoreHttp::WebCoreHttp):
1953 (WebCoreHttp::~WebCoreHttp):
1954 (WebCoreHttp::request):
1955 (WebCoreHttp::scheduleNextRequest):
1956 (WebCoreHttp::getConnection):
1957 (WebCoreHttp::onResponseHeaderReceived):
1958 (WebCoreHttp::onReadyRead):
1959 (WebCoreHttp::onRequestFinished):
1960 (WebCoreHttp::onDone):
1961 (WebCoreHttp::onStateChanged):
1962 (WebCoreHttp::cancel):
1963 (WebCoreHttp::onSslErrors):
1964 (WebCoreHttp::onAuthenticationRequired):
1965 (WebCoreHttp::onProxyAuthenticationRequired):
1966 (HostInfo::HostInfo):
1967 * Api/qwebnetworkinterface.h: Renamed from WebKitQt/Api/qwebnetworkinterface.h.
1968 * Api/qwebnetworkinterface_p.h: Renamed from WebKitQt/Api/qwebnetworkinterface_p.h.
1969 (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
1970 (WebCore::HostInfo::HostInfo):
1971 (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
1972 * Api/qwebobjectplugin.cpp: Renamed from WebKitQt/Api/qwebobjectplugin.cpp.
1973 (QWebFactoryLoader::QWebFactoryLoader):
1974 (QWebFactoryLoader::self):
1975 (QWebFactoryLoader::descriptionForName):
1976 (QWebFactoryLoader::mimetypesForName):
1977 (QWebFactoryLoader::mimeTypeForExtension):
1978 (QWebFactoryLoader::extensions):
1979 (QWebFactoryLoader::nameForMimetype):
1980 (QWebFactoryLoader::create):
1981 (QWebObjectPlugin::QWebObjectPlugin):
1982 (QWebObjectPlugin::~QWebObjectPlugin):
1983 (QWebObjectPlugin::descriptionForKey):
1984 (QWebObjectPlugin::mimetypesForKey):
1985 (QWebObjectPlugin::extensionsForMimetype):
1986 * Api/qwebobjectplugin.h: Renamed from WebKitQt/Api/qwebobjectplugin.h.
1987 * Api/qwebobjectplugin_p.h: Renamed from WebKitQt/Api/qwebobjectplugin_p.h.
1988 (QWebFactoryLoader::names):
1989 (QWebFactoryLoader::supportsMimeType):
1990 * Api/qwebobjectpluginconnector.cpp: Renamed from WebKitQt/Api/qwebobjectpluginconnector.cpp.
1991 (QWebObjectPluginConnector::QWebObjectPluginConnector):
1992 (QWebObjectPluginConnector::frame):
1993 (QWebObjectPluginConnector::pluginParentWidget):
1994 (QWebObjectPluginConnector::requestUrl):
1995 * Api/qwebobjectpluginconnector.h: Renamed from WebKitQt/Api/qwebobjectpluginconnector.h.
1996 * Api/qwebpage.cpp: Renamed from WebKitQt/Api/qwebpage.cpp.
1997 (QWebPagePrivate::QWebPagePrivate):
1998 (QWebPagePrivate::~QWebPagePrivate):
1999 (QWebPagePrivate::navigationRequested):
2000 (QWebPagePrivate::createMainFrame):
2001 (QWebPage::QWebPage):
2002 (QWebPage::~QWebPage):
2003 (QWebPage::createFrame):
2007 (QWebPage::mainFrame):
2008 (QWebPage::sizeHint):
2010 (QWebPage::history):
2012 (QWebPage::goForward):
2013 (QWebPage::goToHistoryItem):
2014 (QWebPage::javaScriptConsoleMessage):
2015 (QWebPage::javaScriptAlert):
2016 (QWebPage::javaScriptConfirm):
2017 (QWebPage::javaScriptPrompt):
2018 (QWebPage::createWindow):
2019 (QWebPage::createModalDialog):
2020 (QWebPage::createPlugin):
2021 (QWebPage::navigationRequested):
2022 (QWebPage::setWindowGeometry):
2024 (QWebPage::canCopy):
2025 (QWebPage::canPaste):
2029 (QWebPage::isModified):
2030 (QWebPage::undoStack):
2031 (dropActionToDragOp):
2032 (dragOpToDropAction):
2033 (QWebPage::resizeEvent):
2034 (QWebPage::paintEvent):
2035 (QWebPage::mouseMoveEvent):
2036 (QWebPage::mousePressEvent):
2037 (QWebPage::mouseDoubleClickEvent):
2038 (QWebPage::mouseReleaseEvent):
2039 (QWebPage::wheelEvent):
2040 (QWebPage::keyPressEvent):
2041 (QWebPage::keyReleaseEvent):
2042 (QWebPage::focusInEvent):
2043 (QWebPage::focusOutEvent):
2044 (QWebPage::focusNextPrevChild):
2045 (QWebPage::dragEnterEvent):
2046 (QWebPage::dragLeaveEvent):
2047 (QWebPage::dragMoveEvent):
2048 (QWebPage::dropEvent):
2049 (QWebPage::setNetworkInterface):
2050 (QWebPage::networkInterface):
2052 (QWebPage::setSettings):
2053 (QWebPage::settings):
2054 (QWebPage::chooseFile):
2055 (QWebPage::setNetworkProxy):
2056 (QWebPage::networkProxy):
2057 (QWebPage::userAgentStringForUrl):
2058 (QWebPage::onLoadProgressChanged):
2059 (QWebPage::totalBytes):
2060 * Api/qwebpage.h: Renamed from WebKitQt/Api/qwebpage.h.
2061 * Api/qwebpage_p.h: Renamed from WebKitQt/Api/qwebpage_p.h.
2062 * Api/qwebpagehistory.cpp: Renamed from WebKitQt/Api/qwebpagehistory.cpp.
2063 (QWebHistoryItem::QWebHistoryItem):
2064 (QWebHistoryItem::operator=):
2065 (QWebHistoryItem::~QWebHistoryItem):
2066 (QWebHistoryItem::originalUrl):
2067 (QWebHistoryItem::currentUrl):
2068 (QWebHistoryItem::title):
2069 (QWebHistoryItem::lastVisited):
2070 (QWebHistoryItem::icon):
2071 (QWebPageHistory::QWebPageHistory):
2072 (QWebPageHistory::itemAtIndex):
2073 (QWebPageHistory::operator=):
2074 (QWebPageHistory::~QWebPageHistory):
2075 (QWebPageHistory::items):
2076 (QWebPageHistory::backItems):
2077 (QWebPageHistory::forwardItems):
2078 (QWebPageHistory::canGoBack):
2079 (QWebPageHistory::canGoForward):
2080 (QWebPageHistory::goBack):
2081 (QWebPageHistory::goForward):
2082 (QWebPageHistory::goToItem):
2083 (QWebPageHistory::backItem):
2084 (QWebPageHistory::currentItem):
2085 (QWebPageHistory::forwardItem):
2086 * Api/qwebpagehistory.h: Renamed from WebKitQt/Api/qwebpagehistory.h.
2087 (QExplicitlySharedDataPointer::operator*):
2088 (QExplicitlySharedDataPointer::operator->):
2089 (QExplicitlySharedDataPointer::operator T *):
2090 (QExplicitlySharedDataPointer::operator const T *):
2091 (QExplicitlySharedDataPointer::data):
2092 (QExplicitlySharedDataPointer::constData):
2093 (QExplicitlySharedDataPointer::operator==):
2094 (QExplicitlySharedDataPointer::operator!=):
2095 (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer):
2096 (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer):
2097 (QExplicitlySharedDataPointer::operator=):
2098 (QExplicitlySharedDataPointer::operator!):
2099 (::QExplicitlySharedDataPointer):
2100 * Api/qwebpagehistory_p.h: Renamed from WebKitQt/Api/qwebpagehistory_p.h.
2101 (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
2102 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
2103 (QWebPageHistoryPrivate::QWebPageHistoryPrivate):
2104 (QWebPageHistoryPrivate::~QWebPageHistoryPrivate):
2105 * Api/qwebsettings.cpp: Renamed from WebKitQt/Api/qwebsettings.cpp.
2106 (QWebSettingsPrivate::QWebSettingsPrivate):
2107 (QWebSettings::QWebSettings):
2108 (QWebSettings::~QWebSettings):
2109 (QWebSettings::setMinimumFontSize):
2110 (QWebSettings::minimumFontSize):
2111 (QWebSettings::setMinimumLogicalFontSize):
2112 (QWebSettings::minimumLogicalFontSize):
2113 (QWebSettings::setDefaultFontSize):
2114 (QWebSettings::defaultFontSize):
2115 (QWebSettings::setDefaultFixedFontSize):
2116 (QWebSettings::defaultFixedFontSize):
2117 (QWebSettings::setUserStyleSheetLocation):
2118 (QWebSettings::userStyleSheetLocation):
2119 (QWebSettings::setIconDatabaseEnabled):
2120 (QWebSettings::iconDatabaseEnabled):
2121 (QWebSettings::setWebGraphic):
2122 (QWebSettings::webGraphic):
2123 (QWebSettings::operator=):
2124 (QWebSettings::setGlobal):
2125 (QWebSettings::global):
2126 (QWebSettings::setFontFamily):
2127 (QWebSettings::fontFamily):
2128 (QWebSettings::setAttribute):
2129 (QWebSettings::testAttribute):
2130 (loadResourcePixmap):
2131 * Api/qwebsettings.h: Renamed from WebKitQt/Api/qwebsettings.h.
2132 * ChangeLog: Renamed from WebKitQt/ChangeLog.
2133 * Plugins/ICOHandler.cpp: Renamed from WebKitQt/Plugins/ICOHandler.cpp.
2134 (IcoHeader::operator >>):
2135 (IcoHeader::BMP_INFOHDR::):
2136 (IcoHeader::operator<<):
2137 (IcoHeader::LessDifference::LessDifference):
2138 (IcoHeader::LessDifference::operator ()):
2139 (IcoHeader::loadFromDIB):
2140 (ICOHandler::ICOHandler):
2141 (ICOHandler::canRead):
2143 (ICOHandler::write):
2146 (ICOPlugin::capabilities):
2147 (ICOPlugin::create):
2148 * Plugins/ICOHandler.h: Renamed from WebKitQt/Plugins/ICOHandler.h.
2149 * Plugins/Plugins.pro: Renamed from WebKitQt/Plugins/Plugins.pro.
2150 * QtLauncher/QtLauncher.pro: Renamed from WebKitQt/QtLauncher/QtLauncher.pro.
2151 * QtLauncher/main.cpp: Renamed from WebKitQt/QtLauncher/main.cpp.
2152 (HoverLabel::HoverLabel):
2153 (HoverLabel::setHoverLink):
2154 (HoverLabel::sizeForFont):
2155 (HoverLabel::sizeHint):
2156 (HoverLabel::updateSize):
2157 (HoverLabel::resetAnimation):
2158 (HoverLabel::paintEvent):
2159 (HoverLabel::interpolate):
2160 (ClearButton::ClearButton):
2161 (ClearButton::paintEvent):
2162 (SearchEdit::SearchEdit):
2163 (SearchEdit::~SearchEdit):
2164 (SearchEdit::paintEvent):
2165 (SearchEdit::resizeEvent):
2166 (SearchEdit::moveEvent):
2167 (MainWindow::MainWindow):
2168 (MainWindow::changeLocation):
2169 (MainWindow::loadFinished):
2170 (MainWindow::showLinkHover):
2171 (MainWindow::resizeEvent):
2173 * WebCoreSupport/ChromeClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.cpp.
2174 (WebCore::ChromeClientQt::ChromeClientQt):
2175 (WebCore::ChromeClientQt::~ChromeClientQt):
2176 (WebCore::ChromeClientQt::setWindowRect):
2177 (WebCore::ChromeClientQt::windowRect):
2178 (WebCore::ChromeClientQt::pageRect):
2179 (WebCore::ChromeClientQt::scaleFactor):
2180 (WebCore::ChromeClientQt::focus):
2181 (WebCore::ChromeClientQt::unfocus):
2182 (WebCore::ChromeClientQt::canTakeFocus):
2183 (WebCore::ChromeClientQt::takeFocus):
2184 (WebCore::ChromeClientQt::createWindow):
2185 (WebCore::ChromeClientQt::createModalDialog):
2186 (WebCore::ChromeClientQt::show):
2187 (WebCore::ChromeClientQt::canRunModal):
2188 (WebCore::ChromeClientQt::runModal):
2189 (WebCore::ChromeClientQt::setToolbarsVisible):
2190 (WebCore::ChromeClientQt::toolbarsVisible):
2191 (WebCore::ChromeClientQt::setStatusbarVisible):
2192 (WebCore::ChromeClientQt::statusbarVisible):
2193 (WebCore::ChromeClientQt::setScrollbarsVisible):
2194 (WebCore::ChromeClientQt::scrollbarsVisible):
2195 (WebCore::ChromeClientQt::setMenubarVisible):
2196 (WebCore::ChromeClientQt::menubarVisible):
2197 (WebCore::ChromeClientQt::setResizable):
2198 (WebCore::ChromeClientQt::addMessageToConsole):
2199 (WebCore::ChromeClientQt::chromeDestroyed):
2200 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
2201 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
2202 (WebCore::ChromeClientQt::closeWindowSoon):
2203 (WebCore::ChromeClientQt::runJavaScriptAlert):
2204 (WebCore::ChromeClientQt::runJavaScriptConfirm):
2205 (WebCore::ChromeClientQt::runJavaScriptPrompt):
2206 (WebCore::ChromeClientQt::setStatusbarText):
2207 (WebCore::ChromeClientQt::shouldInterruptJavaScript):
2208 (WebCore::ChromeClientQt::tabsToLinks):
2209 (WebCore::ChromeClientQt::windowResizerRect):
2210 (WebCore::ChromeClientQt::addToDirtyRegion):
2211 (WebCore::ChromeClientQt::scrollBackingStore):
2212 (WebCore::ChromeClientQt::updateBackingStore):
2213 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2214 (WebCore::ChromeClientQt::setToolTip):
2215 (WebCore::ChromeClientQt::print):
2216 * WebCoreSupport/ChromeClientQt.h: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.h.
2217 * WebCoreSupport/ContextMenuClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.cpp.
2218 (WebCore::ContextMenuClientQt::contextMenuDestroyed):
2219 (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
2220 (WebCore::ContextMenuClientQt::contextMenuItemSelected):
2221 (WebCore::ContextMenuClientQt::downloadURL):
2222 (WebCore::ContextMenuClientQt::lookUpInDictionary):
2223 (WebCore::ContextMenuClientQt::speak):
2224 (WebCore::ContextMenuClientQt::stopSpeaking):
2225 (WebCore::ContextMenuClientQt::searchWithGoogle):
2226 * WebCoreSupport/ContextMenuClientQt.h: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.h.
2227 * WebCoreSupport/DragClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/DragClientQt.cpp.
2228 (WebCore::DragClientQt::actionMaskForDrag):
2229 (WebCore::DragClientQt::willPerformDragDestinationAction):
2230 (WebCore::DragClientQt::dragControllerDestroyed):
2231 (WebCore::DragClientQt::dragSourceActionMaskForPoint):
2232 (WebCore::DragClientQt::willPerformDragSourceAction):
2233 (WebCore::DragClientQt::startDrag):
2234 * WebCoreSupport/DragClientQt.h: Renamed from WebKitQt/WebCoreSupport/DragClientQt.h.
2235 (WebCore::DragClientQt::DragClientQt):
2236 * WebCoreSupport/EditCommandQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.cpp.
2237 (EditCommandQt::EditCommandQt):
2238 (EditCommandQt::~EditCommandQt):
2239 (EditCommandQt::redo):
2240 (EditCommandQt::undo):
2241 * WebCoreSupport/EditCommandQt.h: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.h.
2242 * WebCoreSupport/EditorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.cpp.
2243 (WebCore::EditorClientQt::shouldDeleteRange):
2244 (WebCore::EditorClientQt::shouldShowDeleteInterface):
2245 (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
2246 (WebCore::EditorClientQt::isGrammarCheckingEnabled):
2247 (WebCore::EditorClientQt::spellCheckerDocumentTag):
2248 (WebCore::EditorClientQt::shouldBeginEditing):
2249 (WebCore::EditorClientQt::shouldEndEditing):
2250 (WebCore::EditorClientQt::shouldInsertText):
2251 (WebCore::EditorClientQt::shouldChangeSelectedRange):
2252 (WebCore::EditorClientQt::shouldApplyStyle):
2253 (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
2254 (WebCore::EditorClientQt::didBeginEditing):
2255 (WebCore::EditorClientQt::respondToChangedContents):
2256 (WebCore::EditorClientQt::respondToChangedSelection):
2257 (WebCore::EditorClientQt::didEndEditing):
2258 (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
2259 (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard):
2260 (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
2261 (WebCore::EditorClientQt::isEditable):
2262 (WebCore::EditorClientQt::registerCommandForUndo):
2263 (WebCore::EditorClientQt::registerCommandForRedo):
2264 (WebCore::EditorClientQt::clearUndoRedoOperations):
2265 (WebCore::EditorClientQt::canUndo):
2266 (WebCore::EditorClientQt::canRedo):
2267 (WebCore::EditorClientQt::undo):
2268 (WebCore::EditorClientQt::redo):
2269 (WebCore::EditorClientQt::shouldInsertNode):
2270 (WebCore::EditorClientQt::pageDestroyed):
2271 (WebCore::EditorClientQt::smartInsertDeleteEnabled):
2272 (WebCore::EditorClientQt::toggleContinuousSpellChecking):
2273 (WebCore::EditorClientQt::toggleGrammarChecking):
2274 (WebCore::EditorClientQt::handleKeypress):
2275 (WebCore::EditorClientQt::handleInputMethodKeypress):
2276 (WebCore::EditorClientQt::EditorClientQt):
2277 (WebCore::EditorClientQt::textFieldDidBeginEditing):
2278 (WebCore::EditorClientQt::textFieldDidEndEditing):
2279 (WebCore::EditorClientQt::textDidChangeInTextField):
2280 (WebCore::EditorClientQt::doTextFieldCommandFromEvent):
2281 (WebCore::EditorClientQt::textWillBeDeletedInTextField):
2282 (WebCore::EditorClientQt::textDidChangeInTextArea):
2283 (WebCore::EditorClientQt::ignoreWordInSpellDocument):
2284 (WebCore::EditorClientQt::learnWord):
2285 (WebCore::EditorClientQt::checkSpellingOfString):
2286 (WebCore::EditorClientQt::checkGrammarOfString):
2287 (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
2288 (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord):
2289 (WebCore::EditorClientQt::showSpellingUI):
2290 (WebCore::EditorClientQt::spellingUIIsShowing):
2291 (WebCore::EditorClientQt::getGuessesForWord):
2292 (WebCore::EditorClientQt::isEditing):
2293 (WebCore::EditorClientQt::setInputMethodState):
2294 * WebCoreSupport/EditorClientQt.h: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.h.
2295 * WebCoreSupport/FrameLoaderClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp.
2296 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2297 (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
2298 (WebCore::FrameLoaderClientQt::setFrame):
2299 (WebCore::FrameLoaderClientQt::webFrame):
2300 (WebCore::FrameLoaderClientQt::callPolicyFunction):
2301 (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
2302 (WebCore::FrameLoaderClientQt::hasWebView):
2303 (WebCore::FrameLoaderClientQt::hasFrameView):
2304 (WebCore::FrameLoaderClientQt::hasBackForwardList):
2305 (WebCore::FrameLoaderClientQt::resetBackForwardList):
2306 (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
2307 (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
2308 (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
2309 (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
2310 (WebCore::FrameLoaderClientQt::makeDocumentView):
2311 (WebCore::FrameLoaderClientQt::makeRepresentation):
2312 (WebCore::FrameLoaderClientQt::forceLayout):
2313 (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
2314 (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
2315 (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
2316 (WebCore::FrameLoaderClientQt::resetAfterLoadError):
2317 (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
2318 (WebCore::FrameLoaderClientQt::willCloseDocument):
2319 (WebCore::FrameLoaderClientQt::detachedFromParent2):
2320 (WebCore::FrameLoaderClientQt::detachedFromParent3):
2321 (WebCore::FrameLoaderClientQt::detachedFromParent4):
2322 (WebCore::FrameLoaderClientQt::loadedFromCachedPage):
2323 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2324 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
2325 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
2326 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2327 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
2328 (WebCore::FrameLoaderClientQt::dispatchWillClose):
2329 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2330 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2331 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2332 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
2333 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2334 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
2335 (WebCore::FrameLoaderClientQt::dispatchShow):
2336 (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
2337 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
2338 (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
2339 (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
2340 (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
2341 (WebCore::FrameLoaderClientQt::revertToProvisionalState):
2342 (WebCore::FrameLoaderClientQt::clearUnarchivingState):
2343 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
2344 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
2345 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
2346 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2347 (WebCore::FrameLoaderClientQt::willChangeTitle):
2348 (WebCore::FrameLoaderClientQt::didChangeTitle):
2349 (WebCore::FrameLoaderClientQt::finishedLoading):
2350 (WebCore::FrameLoaderClientQt::finalSetupForReplace):
2351 (WebCore::FrameLoaderClientQt::setDefersLoading):
2352 (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
2353 (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
2354 (WebCore::FrameLoaderClientQt::clearArchivedResources):
2355 (WebCore::FrameLoaderClientQt::canShowMIMEType):
2356 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
2357 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
2358 (WebCore::FrameLoaderClientQt::frameLoadCompleted):
2359 (WebCore::FrameLoaderClientQt::restoreViewState):
2360 (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
2361 (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
2362 (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
2363 (WebCore::FrameLoaderClientQt::didFinishLoad):
2364 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
2365 (WebCore::FrameLoaderClientQt::setTitle):
2366 (WebCore::FrameLoaderClientQt::userAgent):
2367 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
2368 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
2369 (WebCore::FrameLoaderClientQt::canHandleRequest):
2370 (WebCore::FrameLoaderClientQt::windowObjectCleared):
2371 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
2372 (WebCore::FrameLoaderClientQt::registerForIconNotification):
2373 (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage):
2374 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
2375 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload):
2376 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2377 (WebCore::FrameLoaderClientQt::saveViewStateToItem):
2378 (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage):
2379 (WebCore::FrameLoaderClientQt::canCachePage):
2380 (WebCore::FrameLoaderClientQt::setMainDocumentError):
2381 (WebCore::FrameLoaderClientQt::committedLoad):
2382 (WebCore::FrameLoaderClientQt::cancelledError):
2383 (WebCore::FrameLoaderClientQt::blockedError):
2384 (WebCore::FrameLoaderClientQt::cannotShowURLError):
2385 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2386 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2387 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2388 (WebCore::FrameLoaderClientQt::shouldFallBack):
2389 (WebCore::FrameLoaderClientQt::createDocumentLoader):
2390 (WebCore::FrameLoaderClientQt::download):
2391 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2392 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
2393 (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
2394 (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
2395 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
2396 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
2397 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2398 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2399 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
2400 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
2401 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
2402 (WebCore::FrameLoaderClientQt::dispatchCreatePage):
2403 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2404 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2405 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2406 (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
2407 (WebCore::FrameLoaderClientQt::startDownload):
2408 (WebCore::FrameLoaderClientQt::willUseArchive):
2409 (WebCore::FrameLoaderClientQt::createFrame):
2410 (WebCore::FrameLoaderClientQt::objectContentType):
2412 (WebCore::FrameLoaderClientQt::createPlugin):
2413 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
2414 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
2415 (WebCore::FrameLoaderClientQt::overrideMediaType):
2416 * WebCoreSupport/FrameLoaderClientQt.h: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.h.
2417 * WebCoreSupport/InspectorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.cpp.
2418 (WebCore::InspectorClientQt::inspectorDestroyed):
2419 (WebCore::InspectorClientQt::createPage):
2420 (WebCore::InspectorClientQt::showWindow):
2421 (WebCore::InspectorClientQt::closeWindow):
2422 (WebCore::InspectorClientQt::attachWindow):
2423 (WebCore::InspectorClientQt::detachWindow):
2424 (WebCore::InspectorClientQt::highlight):
2425 (WebCore::InspectorClientQt::hideHighlight):
2426 * WebCoreSupport/InspectorClientQt.h: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.h.
2427 * WebKitPart/WebKitFactory.cpp: Renamed from WebKitQt/WebKitPart/WebKitFactory.cpp.
2428 (WebKitFactory::WebKitFactory):
2429 (WebKitFactory::~WebKitFactory):
2430 (WebKitFactory::createPartObject):
2431 (WebKitFactory::instance):
2432 (WebKitFactory::ref):
2433 (WebKitFactory::deref):
2434 * WebKitPart/WebKitFactory.h: Renamed from WebKitQt/WebKitPart/WebKitFactory.h.
2435 * WebKitPart/WebKitPart.cpp: Renamed from WebKitQt/WebKitPart/WebKitPart.cpp.
2436 (WebKitPart::WebKitPart):
2437 (WebKitPart::~WebKitPart):
2438 (WebKitPart::openFile):
2439 (WebKitPart::openUrl):
2440 (WebKitPart::closeUrl):
2441 (WebKitPart::parentPart):
2442 (WebKitPart::frame):
2443 (WebKitPart::initView):
2444 * WebKitPart/WebKitPart.desktop: Renamed from WebKitQt/WebKitPart/WebKitPart.desktop.
2445 * WebKitPart/WebKitPart.h: Renamed from WebKitQt/WebKitPart/WebKitPart.h.
2447 * WebKitPart/WebKitPart.rc: Renamed from WebKitQt/WebKitPart/WebKitPart.rc.
2448 * WebKitPart/WebKitPartBrowser.rc: Renamed from WebKitQt/WebKitPart/WebKitPartBrowser.rc.
2449 * WebKitPart/WebKitPartBrowserExtension.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.cpp.
2450 (WebKitPartBrowserExtension::WebKitPartBrowserExtension):
2451 * WebKitPart/WebKitPartBrowserExtension.h: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.h.
2452 * WebKitPart/WebKitPartClient.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartClient.cpp.
2453 (WebKitPartClient::WebKitPartClient):
2454 (WebKitPartClient::~WebKitPartClient):
2455 * WebKitPart/WebKitPartClient.h: Renamed from WebKitQt/WebKitPart/WebKitPartClient.h.
2456 * WebKitPart/WebKitPartInterface.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.cpp.
2457 (WebKitPartInterface::WebKitPartInterface):
2458 (WebKitPartInterface::~WebKitPartInterface):
2459 (WebKitPartInterface::url):
2460 * WebKitPart/WebKitPartInterface.h: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.h.
2461 * WebKitPart/org.kde.WebKitPart.xml: Renamed from WebKitQt/WebKitPart/org.kde.WebKitPart.xml.
2463 2007-10-02 Adam Treat <treat@kde.org>
2465 Reviewed by Eric Seidel.
2467 Open the requested url on the newly created window.
2468 Implement createModalDialog and provide new API for this.
2469 Patch by M. Mehdi Salem Naraghi (momesana) with additions by me.
2472 (QWebPage::createModalDialog):
2474 * WebCoreSupport/ChromeClientQt.cpp:
2475 (WebCore::ChromeClientQt::createWindow):
2476 (WebCore::ChromeClientQt::createModalDialog):
2478 2007-10-02 Lars Knoll <lars@trolltech.com>
2482 Add API to retrieve the frame name from QWebFrame.
2483 Implement support for DRT::dumpChildrenAsText.
2485 * Api/qwebframe.cpp:
2489 2007-10-02 Lars Knoll <lars@trolltech.com>
2493 Fix the handling of the response header for data urls. Make sure we always pass absolute URLs to WebKit from both DRT and QtLauncher.
2495 * Api/qwebnetworkinterface.cpp:
2496 (QWebNetworkManager::started):
2497 (QWebNetworkManager::data):
2498 (QWebNetworkManager::finished):
2499 (QWebNetworkInterfacePrivate::sendFileData):
2500 (QWebNetworkInterfacePrivate::parseDataUrl):
2501 (WebCoreHttp::scheduleNextRequest):
2502 (WebCoreHttp::onSslErrors):
2503 * QtLauncher/main.cpp:
2506 2007-10-01 Lars Knoll <lars@trolltech.com>
2510 Fix a wrong extension mapping in the MIMETypeRegistry and identify about: url's as frames in the FrameLoaderClient.
2512 * WebCoreSupport/FrameLoaderClientQt.cpp:
2513 (WebCore::FrameLoaderClientQt::makeDocumentView):
2514 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2515 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
2516 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
2517 (WebCore::FrameLoaderClientQt::objectContentType):
2518 (WebCore::FrameLoaderClientQt::createPlugin):
2520 2007-09-30 George Staikos <staikos@kde.org>
2522 Qt build fix (OS X specific).
2524 * QtLauncher/QtLauncher.pro:
2526 2007-09-26 Mark Rowe <mrowe@apple.com>
2530 * WebCoreSupport/FrameLoaderClientQt.cpp:
2531 (WebCore::FrameLoaderClientQt::objectContentType): Check for empty URL instead of invalid URL.
2533 2007-09-25 David Kilzer <ddkilzer@webkit.org>
2537 - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
2538 LGPL'ed files contain incorrect FSF address
2540 * Api/qcookiejar.cpp:
2542 * Api/qwebframe.cpp:
2544 * Api/qwebframe_p.h:
2545 * Api/qwebhistoryinterface.cpp:
2546 * Api/qwebhistoryinterface.h:
2547 * Api/qwebkitglobal.h:
2548 * Api/qwebnetworkinterface.cpp:
2549 * Api/qwebnetworkinterface.h:
2550 * Api/qwebnetworkinterface_p.h:
2551 * Api/qwebobjectplugin.cpp:
2552 * Api/qwebobjectplugin.h:
2553 * Api/qwebobjectpluginconnector.cpp:
2554 * Api/qwebobjectpluginconnector.h:
2558 * Api/qwebpagehistory.cpp:
2559 * Api/qwebpagehistory.h:
2560 * Api/qwebsettings.cpp:
2561 * Api/qwebsettings.h:
2562 * WebCoreSupport/EditCommandQt.cpp:
2563 * WebCoreSupport/EditCommandQt.h:
2565 2007-09-25 Adam Treat <treat@kde.org>
2567 Reviewed by Simon and Lars.
2569 Modifies the addToJSWindowObject to bind js objects using the built-in
2570 kjs_window class. Make sure to protect the created runtime object from
2573 Adds a signal to QWebFrame to notify clients of the beginning of a
2574 provisional load. DRT needs this.
2576 * Api/qwebframe.cpp:
2577 (QWebFrame::addToJSWindowObject):
2579 * WebCoreSupport/FrameLoaderClientQt.cpp:
2580 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2582 2007-09-10 Qing Zhao <qing@staikos.net>
2584 Reviewed by George Staikos.
2586 Don't re-encode urls, resulting in double encoding. Fixes login to
2589 * Api/qwebnetworkinterface.cpp:
2590 (QWebNetworkRequestPrivate::init):
2591 (QWebNetworkManager::started):
2593 2007-09-08 Mark Rowe <mrowe@apple.com>
2595 Qt build fix. Move stub method implementations to the right class.
2597 * WebCoreSupport/FrameLoaderClientQt.cpp:
2598 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
2600 2007-09-08 Brady Eidson <beidson@apple.com>
2602 YABF (Yet Another Build Fix)
2604 * Api/qwebsettings.cpp:
2605 (QWebSettings::iconDatabaseEnabled):
2607 2007-09-08 Brady Eidson <beidson@apple.com>
2611 * WebCoreSupport/FrameLoaderClientQt.cpp:
2612 (WebCore::FrameLoaderClient::registerForIconNotification):
2613 * WebCoreSupport/FrameLoaderClientQt.h:
2615 2007-09-08 Brady Eidson <beidson@apple.com>
2619 * WebCoreSupport/FrameLoaderClientQt.cpp:
2620 (WebCore::FrameLoaderClient::registerForIconNotification):
2621 * WebCoreSupport/FrameLoaderClientQt.h:
2623 2007-09-05 Geoffrey Garen <ggaren@apple.com>
2625 Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
2627 Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no
2628 memory cache, or a very tiny one
2630 Keep the Qt build working with an empty stub.
2632 * WebCoreSupport/FrameLoaderClientQt.cpp:
2633 (WebCore::FrameLoaderClient::didPerformFirstNavigation):
2634 * WebCoreSupport/FrameLoaderClientQt.h:
2636 2007-09-07 George Staikos <staikos@kde.org>
2641 (QWebPage::onLoadProgressChanged):
2643 2007-09-07 Qing Zhao <qing@staikos.net>
2645 Reviewed by Anders and George.
2647 Export page size and load progress in bytes.
2650 (QWebPage::QWebPage):
2651 (QWebPage::onLoadProgressChanged):
2652 (QWebPage::totalBytes):
2653 (QWebPage::bytesReceived):
2657 2007-09-06 George Staikos <staikos@kde.org>
2661 Make popup windows work again.
2663 * WebCoreSupport/FrameLoaderClientQt.cpp:
2664 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2666 2007-09-01 Oliver Hunt <oliver@apple.com>
2670 <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
2672 EditorClient::setInputMethodState stub
2674 * WebCoreSupport/EditorClientQt.cpp:
2675 (WebCore::EditorClientQt::setInputMethodState):
2676 * WebCoreSupport/EditorClientQt.h:
2678 2007-08-30 Simon Hausmann <hausmann@kde.org>
2682 Use QKeySequence::StandardKey for the page wise scrolling shortcuts.
2685 (QWebPage::keyPressEvent):
2687 2007-08-30 Simon Hausmann <hausmann@kde.org>
2691 When scrolling with the keyboard don't call update() on the entire widget.
2692 The scrollbar/scrollview implementation is already smart enough to scroll with bitblt
2696 (QWebPage::keyPressEvent):
2698 2007-08-30 Simon Hausmann <hausmann@kde.org>
2702 Fix scrolling with the keyboard if only one of the two scrollbars is visible.
2705 (QWebPage::keyPressEvent):
2707 2007-08-29 Simon Hausmann <hausmann@kde.org>
2713 * WebCoreSupport/FrameLoaderClientQt.cpp:
2714 (WebCore::FrameLoaderClientQt::objectContentType):
2716 2007-08-19 Mike Hommey <mh+webkit@glandium.org>
2718 Reviewed by George Staikos.
2720 Don't export ICO symbols.
2722 * Plugins/Plugins.pro:
2724 2007-08-19 George Staikos <staikos@kde.org>
2728 * WebCoreSupport/FrameLoaderClientQt.cpp:
2729 (WebCore::FrameLoaderClientQt::createPlugin):
2730 * WebCoreSupport/FrameLoaderClientQt.h:
2732 2007-08-10 Lars Knoll <lars@trolltech.com>
2734 Reviewed and landed by Simon.
2736 Limit the set of properties from the computed style to apply to Qt
2737 plugin widgets, as only a few of them make sense.
2739 * WebCoreSupport/FrameLoaderClientQt.cpp:
2742 2007-08-10 Lars Knoll <lars@trolltech.com>
2746 Use <object>'s classid attribute for creation of plugins through QWebPage::createPlugin.
2749 (QWebPage::createPlugin):
2751 * WebCoreSupport/FrameLoaderClientQt.cpp:
2752 (WebCore::FrameLoaderClientQt::objectContentType):
2753 (WebCore::FrameLoaderClientQt::createPlugin):
2755 2007-08-10 Simon Hausmann <hausmann@kde.org>
2759 Added support for network jobs from Qt resources using the qrc protocol.
2761 * Api/qwebnetworkinterface.cpp:
2762 (QWebNetworkInterface::addJob):
2764 2007-08-10 Simon Hausmann <hausmann@kde.org>
2768 Added support for "application/x-qt-styled-widget" that is treated like "application/x-qt-plugin" but also
2769 gets a Qt widget stylesheet set from the CSS computed style and the element style attribute.
2771 * WebCoreSupport/FrameLoaderClientQt.cpp:
2772 (WebCore::FrameLoaderClientQt::objectContentType):
2774 (WebCore::FrameLoaderClientQt::createPlugin):
2776 2007-08-10 Simon Hausmann <hausmann@kde.org>
2780 Added virtual QWebPage::createPlugin that is called for embedded objects with the mime type "application/x-qt-plugin"
2781 and fixed widget embedding by setting the right QWidget parent.
2784 (QWebPage::createPlugin):
2786 * WebCoreSupport/FrameLoaderClientQt.cpp:
2787 (WebCore::FrameLoaderClientQt::objectContentType):
2788 (WebCore::FrameLoaderClientQt::createPlugin):
2790 2007-08-02 George Staikos <staikos@kde.org>
2794 Add an interface for the useragent string.
2797 (QWebPage::userAgentStringForUrl):
2799 * WebCoreSupport/FrameLoaderClientQt.cpp:
2800 (WebCore::FrameLoaderClientQt::userAgent):
2802 2007-08-01 Adam Treat <treat@kde.org>
2804 Reviewed by George Staikos.
2806 Add an interface to manage global history for clients
2809 * Api/qwebhistoryinterface.cpp: Added.
2810 (WebCore::historyContains):
2811 (gCleanupInterface):
2812 (QWebHistoryInterface::setDefaultInterface):
2813 (QWebHistoryInterface::defaultInterface):
2814 (QWebHistoryInterface::QWebHistoryInterface):
2815 * Api/qwebhistoryinterface.h: Added.
2817 2007-07-30 Adam Treat <treat@kde.org>
2821 * WebCoreSupport/EditorClientQt.cpp:
2822 (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
2823 * WebCoreSupport/EditorClientQt.h:
2825 2007-07-30 Simon Hausmann <hausmann@kde.org>
2829 Link QtLauncher into $$OUTPUT_DIR/bin
2831 * QtLauncher/QtLauncher.pro:
2833 2007-07-29 Adam Treat <treat@kde.org>
2835 Reviewed by George Staikos.
2837 Change QWebPage::paintEvent to draw using the individual rects provided
2838 via the QRegion and set the widget to use opaque paint events.
2840 These changes greatly reduce the cpu load as we are no longer painting the
2841 entire page for each 1px scroll :P
2843 * Api/qwebframe.cpp:
2844 (QWebFrame::render):
2846 (QWebPage::QWebPage):
2847 (QWebPage::paintEvent):
2848 * WebCoreSupport/ChromeClientQt.cpp:
2849 (WebCore::ChromeClientQt::addToDirtyRegion):
2851 2007-07-29 Adam Treat <treat@kde.org>
2853 Reviewed by Alexey Proskuryakov.
2855 Respect the margins when creating frames.
2856 Set the scroll mode to always off like we did before the rendered
2857 frames patch and the other ports do now.
2859 * Api/qwebframe.cpp:
2860 (QWebFramePrivate::init):
2862 2007-07-27 Holger Hans Peter Freyther <zecke@selfish.org>
2866 Don't create an app bundle on OSX to keep WebKitTools/Scripts/run-launcher working.
2868 * QtLauncher/QtLauncher.pro:
2870 2007-07-27 Simon Hausmann <hausmann@kde.org>
2874 Fix compilation with MSVC.
2876 * Api/qwebpagehistory.cpp:
2877 (QWebPageHistory::operator=):
2878 * Api/qwebpagehistory.h:
2879 * Api/qwebsettings.cpp:
2880 (QWebSettings::operator=):
2881 * Api/qwebsettings.h:
2883 2007-07-26 Qing Zhao <qing@staikos.net>
2885 Reviewed by George Staikos.
2887 Add a signal for history notification.
2890 * WebCoreSupport/FrameLoaderClientQt.cpp:
2892 2007-07-24 Adam Treat <treat@kde.org>
2894 Reviewed by Niko and Lars.
2896 These are no longer necessary or used.
2898 * WebCoreSupport/FrameLoaderClientQt.cpp:
2899 * WebCoreSupport/FrameLoaderClientQt.h:
2901 2007-07-20 Adam Treat <adam@staikos.net>
2903 Reviewed by George Staikos.
2905 Add a signal for first layout and add the action type for the policy
2909 (QWebPagePrivate::navigationRequested):
2910 (QWebPage::navigationRequested):
2913 * WebCoreSupport/FrameLoaderClientQt.cpp:
2914 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
2915 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2917 2007-07-19 Adam Treat <treat@kde.org>
2921 Do a recursive layout on the frame's children. This fixes a
2922 segfault found when rendering some framesets.
2924 * Api/qwebframe.cpp:
2925 (QWebFrame::render):
2926 (QWebFrame::layout):
2929 2007-07-18 Timothy Hatcher <timothy@apple.com>
2933 Make the Page with the now required InspectorClient.
2936 (QWebPagePrivate::QWebPagePrivate):
2937 * WebKitPart/WebKitPart.cpp:
2938 (WebKitPart::initView):
2940 2007-07-18 Sam Weinig <sam@webkit.org>
2944 * Api/qwebnetworkinterface.cpp:
2945 (QWebNetworkManager::started):
2946 * WebCoreSupport/FrameLoaderClientQt.cpp:
2947 (WebCore::FrameLoaderClientQt::canShowMIMEType):
2948 (WebCore::FrameLoaderClientQt::objectContentType):
2950 2007-07-18 Lars Knoll <lars@trolltech.com>
2952 Reviewed by Zack & Simon
2954 Reallow setting of scrollbar policies on QWebFrame.
2956 * Api/qwebframe.cpp:
2957 (QWebFrame::verticalScrollBarPolicy):
2958 (QWebFrame::setVerticalScrollBarPolicy):
2959 (QWebFrame::horizontalScrollBarPolicy):
2962 2007-07-17 Adam Treat <treat@kde.org>
2966 * WebCoreSupport/FrameLoaderClientQt.cpp:
2967 (WebCore::FrameLoaderClientQt::createFrame):
2969 2007-07-17 Holger Hans Peter Freyther <zecke@selfish.org>
2971 Blind build fix for Qt after r24366 by adding the additional
2972 WebCore::ResourceRequest& parameter to the download method.
2974 * WebCoreSupport/FrameLoaderClientQt.cpp:
2975 (WebCore::FrameLoaderClientQt::download):
2976 * WebCoreSupport/FrameLoaderClientQt.h:
2978 2007-07-17 Adam Roben <aroben@apple.com>
2980 Remove ContextMenuClientQt::shouldIncludeInspectElementItem
2984 * WebCoreSupport/ContextMenuClientQt.cpp:
2985 * WebCoreSupport/ContextMenuClientQt.h:
2987 2007-07-16 Adam Roben <aroben@apple.com>
2989 Updated ChromeClientQt for ChromeClient changes.
2993 * WebCoreSupport/ChromeClientQt.cpp:
2994 (WebCore::ChromeClientQt::print): Added a Frame* parameter.
2995 * WebCoreSupport/ChromeClientQt.h: Ditto.
2997 2007-07-13 Mark Rowe <mrowe@apple.com>
3001 Build fix. Stub out ChromeClientQt::print.
3003 * WebCoreSupport/ChromeClientQt.cpp:
3004 (WebCore::ChromeClientQt::print):
3005 * WebCoreSupport/ChromeClientQt.h:
3007 2007-07-12 George Staikos <staikos@kde.org>
3009 Qt build fix for assertions.
3011 * Api/qwebnetworkinterface.cpp:
3012 (QWebNetworkManager::add):
3014 2007-07-12 George Staikos <staikos@kde.org>
3018 * Api/qwebnetworkinterface.cpp:
3019 (QWebNetworkManager::add):
3021 2007-07-10 Mark Rowe <mrowe@apple.com>
3023 Qt build fix after r24126.
3025 * Api/qwebframe.cpp:
3026 (QWebFrame::evaluateJavaScript):
3028 2007-07-10 Eli Fidler <eli@staikos.net>
3030 Reviewed by George Staikos.
3032 Properly url-decode data urls.
3034 * Api/qwebnetworkinterface.cpp:
3035 (QWebNetworkInterfacePrivate::parseDataUrl):
3037 2007-07-09 Adam Treat <adam@staikos.net>
3039 Reviewed by George Staikos.
3041 Convert QWebFrame from a QFrame to a pure QObject to eliminate all
3044 * Api/qwebframe.cpp:
3045 (QWebFramePrivate::init):
3046 (QWebFramePrivate::parentFrame):
3047 (QWebFrame::QWebFrame):
3048 (QWebFrame::render):
3050 (QWebFrame::geometry):
3051 (QWebFrame::evaluateJavaScript):
3052 (QWebFrame::mouseMoveEvent):
3053 (QWebFrame::mousePressEvent):
3054 (QWebFrame::mouseDoubleClickEvent):
3055 (QWebFrame::mouseReleaseEvent):
3056 (QWebFrame::wheelEvent):
3058 * Api/qwebobjectpluginconnector.cpp:
3059 (QWebObjectPluginConnector::pluginParentWidget):
3061 (QWebPagePrivate::QWebPagePrivate):
3062 (QWebPagePrivate::createMainFrame):
3063 (QWebPage::QWebPage):
3064 (QWebPage::javaScriptAlert):
3065 (QWebPage::javaScriptConfirm):
3066 (QWebPage::javaScriptPrompt):
3067 (QWebPage::resizeEvent):
3068 (QWebPage::paintEvent):
3069 (QWebPage::mouseMoveEvent):
3070 (QWebPage::mousePressEvent):
3071 (QWebPage::mouseDoubleClickEvent):
3072 (QWebPage::mouseReleaseEvent):
3073 (QWebPage::wheelEvent):
3074 (QWebPage::keyPressEvent):
3075 (QWebPage::keyReleaseEvent):
3076 (QWebPage::focusInEvent):
3077 (QWebPage::focusOutEvent):
3078 (QWebPage::focusNextPrevChild):
3079 (QWebPage::chooseFile):
3082 * WebCoreSupport/ChromeClientQt.cpp:
3083 (WebCore::ChromeClientQt::addToDirtyRegion):
3085 2007-07-09 George Staikos <staikos@kde.org>
3087 Fix a minor memory leak in the loader.
3089 * Api/qwebnetworkinterface.cpp:
3090 (gCleanupInterface):
3091 (QWebNetworkInterface::setDefaultInterface):
3092 (QWebNetworkInterface::defaultInterface):
3094 2007-07-09 George Staikos <staikos@kde.org>
3096 Fix a massive memory leak in the loader.
3098 * Api/qwebnetworkinterface.cpp:
3099 (QWebNetworkManager::httpConnectionClosed):
3100 (WebCoreHttp::~WebCoreHttp):
3102 2007-07-09 George Staikos <staikos@kde.org>
3106 Rework much of the HTTP stuff to make it more stable, and add SSL and
3107 proxy support. Major memory leak also discovered but it needs more
3108 research as the obvious fix causes crashes.
3110 * Api/qwebnetworkinterface.cpp:
3111 (QWebNetworkManager::add):
3112 (QWebNetworkManager::started):
3113 (QWebNetworkManager::data):
3114 (WebCoreHttp::WebCoreHttp):
3115 (WebCoreHttp::~WebCoreHttp):
3116 (WebCoreHttp::request):
3117 (WebCoreHttp::scheduleNextRequest):
3118 (WebCoreHttp::getConnection):
3119 (WebCoreHttp::onResponseHeaderReceived):
3120 (WebCoreHttp::onReadyRead):
3121 (WebCoreHttp::onRequestFinished):
3122 (WebCoreHttp::onDone):
3123 (WebCoreHttp::onStateChanged):
3124 (WebCoreHttp::onSslErrors):
3125 (WebCoreHttp::onAuthenticationRequired):
3126 (WebCoreHttp::onProxyAuthenticationRequired):
3127 * Api/qwebnetworkinterface.h:
3128 * Api/qwebnetworkinterface_p.h:
3129 (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
3131 2007-07-06 Adam Treat <adam@staikos.net>
3133 Reviewed by George Staikos.
3135 Convert QWebFrame to a QFrame from a scroll area.
3137 * Api/qwebframe.cpp:
3138 (QWebFramePrivate::init):
3139 (QWebFramePrivate::parentFrame):
3140 (QWebFramePrivate::horizontalScrollBar):
3141 (QWebFramePrivate::verticalScrollBar):
3142 (QWebFrame::QWebFrame):
3143 (QWebFrame::resizeEvent):
3144 (QWebFrame::suppressScrollbars):
3145 (QWebFrame::paintEvent):
3146 (QWebFrame::mouseMoveEvent):
3147 (QWebFrame::mousePressEvent):
3148 (QWebFrame::mouseDoubleClickEvent):
3149 (QWebFrame::mouseReleaseEvent):
3150 (QWebFrame::wheelEvent):
3151 (QWebFrame::keyPressEvent):
3152 (QWebFrame::focusInEvent):
3153 (QWebFrame::focusOutEvent):
3154 (QWebFrame::evaluateJavaScript):
3156 * Api/qwebframe_p.h:
3157 * Api/qwebobjectpluginconnector.cpp:
3158 (QWebObjectPluginConnector::pluginParentWidget):
3160 2007-07-04 Adam Roben <aroben@apple.com>
3162 Added a stub for ChromeClientQt::setToolTip
3166 * WebCoreSupport/ChromeClientQt.cpp:
3167 (WebCore::ChromeClientQt::setToolTip):
3168 * WebCoreSupport/ChromeClientQt.h:
3170 2007-07-04 Adam Roben <aroben@apple.com>
3172 Added a stub for ChromeClientQt::mouseDidMoveOverElement
3176 * WebCoreSupport/ChromeClientQt.cpp:
3177 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3178 * WebCoreSupport/ChromeClientQt.h:
3180 2007-06-28 Simon Hausmann <hausmann@kde.org>
3184 Propagate mouse double click events from Qt to WebCore.
3186 * Api/qwebframe.cpp:
3187 (QWebFrame::mouseDoubleClickEvent):
3190 2007-06-28 Simon Hausmann <hausmann@kde.org>
3194 Implemented clipboard functions in QWebPage, in particular can(Cut|Copy|Paste), cut/copy/paste as slot as well as a selectionChanged() signal.
3198 (QWebPage::canCopy):
3199 (QWebPage::canPaste):
3204 * WebCoreSupport/EditorClientQt.cpp:
3206 2007-06-27 George Staikos <staikos@kde.org>
3208 Compile with various Qt configurations.
3210 * Api/qwebnetworkinterface.cpp:
3211 (WebCoreHttp::scheduleNextRequest):
3213 (QWebPage::javaScriptPrompt):
3214 (QWebPage::dragEnterEvent):
3215 (QWebPage::dragLeaveEvent):
3216 (QWebPage::dragMoveEvent):
3217 (QWebPage::dropEvent):
3218 (QWebPage::chooseFile):
3221 * WebCoreSupport/DragClientQt.cpp:
3222 (WebCore::DragClientQt::startDrag):
3224 2007-06-27 Eli Fidler <eli@staikos.net>
3226 Reviewed by George Staikos.
3228 Check for QT_NO_IMAGE_TEXT and compile either way.
3230 * Plugins/ICOHandler.cpp:
3233 2007-06-27 Eli Fidler <eli@staikos.net>
3235 Reviewed by George Staikos.
3237 Remove QT3_SUPPORT dependency in the ICO plugin.
3239 * Plugins/ICOHandler.cpp:
3240 (IcoHeader::loadFromDIB):
3242 2007-06-25 George Staikos <staikos@kde.org>
3246 Start to add proxy and SSL support to WebKit Qt. Proxy works
3247 unauthenticated. Added hooks to be able to add authentication.
3248 Also fixes some network errors.
3250 * Api/qwebnetworkinterface.cpp:
3251 (QWebNetworkRequestPrivate::setURL):
3252 (QWebNetworkJob::frame):
3253 (WebCoreHttp::WebCoreHttp):
3254 (WebCoreHttp::scheduleNextRequest):
3255 (WebCoreHttp::onRequestFinished):
3256 (WebCoreHttp::onDone):
3257 (WebCoreHttp::onSslErrors):
3258 (WebCoreHttp::onAuthenticationRequired):
3259 (WebCoreHttp::onProxyAuthenticationRequired):
3260 * Api/qwebnetworkinterface.h:
3261 * Api/qwebnetworkinterface_p.h:
3263 (QWebPage::setNetworkProxy):
3264 (QWebPage::networkProxy):
3268 2007-06-21 Adam Treat <adam@staikos.net>
3270 Reviewed by George Staikos.
3272 Implement the default resources on Qt.
3276 * Api/qwebsettings.cpp:
3277 (QWebSettings::setWebGraphic):
3278 (QWebSettings::webGraphic):
3279 (loadResourcePixmap):
3280 * Api/qwebsettings.h:
3282 2007-06-15 Adam Treat <adam@staikos.net>
3284 Reviewed by George Staikos.
3286 Add ICO support to the Qt build.
3291 * Api/qwebsettings.cpp:
3292 (QWebSettings::setIconDatabaseEnabled):
3293 (QWebSettings::iconDatabaseEnabled):
3294 * Api/qwebsettings.h:
3296 * Plugins/ICOHandler.cpp: Added.
3297 (IcoHeader::operator >>):
3298 (IcoHeader::BMP_INFOHDR::):
3299 (IcoHeader::operator<<):
3300 (IcoHeader::LessDifference::LessDifference):
3301 (IcoHeader::LessDifference::operator ()):
3302 (IcoHeader::loadFromDIB):
3303 (ICOHandler::ICOHandler):
3304 (ICOHandler::canRead):
3306 (ICOHandler::write):
3309 (ICOPlugin::capabilities):
3310 (ICOPlugin::create):
3311 * Plugins/ICOHandler.h: Added.
3312 * Plugins/Plugins.pro: Added.
3313 * WebCoreSupport/FrameLoaderClientQt.cpp:
3314 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
3316 2007-06-15 George Staikos <staikos@kde.org>
3318 Fixing the Qt build.
3320 * WebCoreSupport/ContextMenuClientQt.cpp:
3321 (WebCore::ContextMenuClientQt::shouldIncludeInspectElementItem):
3322 * WebCoreSupport/ContextMenuClientQt.h:
3324 2007-06-20 Adam Roben <aroben@apple.com>
3326 More speculative Qt build fixes.
3328 Add a stub implementation of InspectorClientQt.
3330 * WebCoreSupport/InspectorClientQt.cpp: Added.
3331 (WebCore::InspectorClientQt::inspectorDestroyed):
3332 (WebCore::InspectorClientQt::createPage):
3333 (WebCore::InspectorClientQt::showWindow):
3334 (WebCore::InspectorClientQt::closeWindow):
3335 (WebCore::InspectorClientQt::attachWindow):
3336 (WebCore::InspectorClientQt::detachWindow):
3337 (WebCore::InspectorClientQt::highlight):
3338 (WebCore::InspectorClientQt::hideHighlight):
3339 * WebCoreSupport/InspectorClientQt.h: Added.
3341 2007-06-19 George Staikos <staikos@kde.org>
3343 Reviewed by Tim Hatcher.
3347 * Api/qwebnetworkinterface.cpp:
3348 (QWebNetworkInterface::addJob):
3349 (QWebNetworkInterface::cancelJob):
3350 (WebCoreHttp::WebCoreHttp):
3352 2007-06-14 George Staikos <staikos@kde.org>
3356 Add evaluateJavaScript() method.
3358 * Api/qwebframe.cpp:
3359 (QWebFrame::evaluateJavaScript):
3362 2007-06-14 George Staikos <staikos@kde.org>
3366 Implement most of the editing commands, better focus handling, fix some
3367 keyboard and mouse handling, and add keyboard navigation. May be
3368 refactored later as the key switches are ugly.
3370 * Api/qwebframe.cpp:
3371 (QWebFramePrivate::init):
3372 (QWebFrame::mousePressEvent):
3373 (QWebFrame::mouseReleaseEvent):
3374 (QWebFrame::wheelEvent):
3375 (QWebFrame::keyPressEvent):
3376 (QWebFrame::keyReleaseEvent):
3377 (QWebFrame::focusInEvent):
3378 (QWebFrame::focusOutEvent):
3379 (QWebFrame::focusNextPrevChild):
3381 * Api/qwebframe_p.h:
3382 * WebCoreSupport/EditorClientQt.cpp:
3383 (WebCore::EditorClientQt::handleKeypress):
3385 2007-06-14 George Staikos <staikos@kde.org>
3389 Implement all of the Javascript dialogs and file chooser.
3390 Also makes the statusbar virtual into a signal and shuffles some
3391 virtuals around a bit. The helper in FrameLoaderClientQt may go away
3395 (QWebPagePrivate::QWebPagePrivate):
3396 (QWebPage::javaScriptAlert):
3397 (QWebPage::javaScriptConfirm):
3398 (QWebPage::javaScriptPrompt):
3399 (QWebPage::chooseFile):
3401 * WebCoreSupport/ChromeClientQt.cpp:
3402 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
3403 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
3404 (WebCore::ChromeClientQt::runJavaScriptAlert):
3405 (WebCore::ChromeClientQt::runJavaScriptConfirm):
3406 (WebCore::ChromeClientQt::runJavaScriptPrompt):
3407 (WebCore::ChromeClientQt::setStatusbarText):
3408 * WebCoreSupport/FrameLoaderClientQt.cpp:
3409 (WebCore::FrameLoaderClientQt::chooseFile):
3410 * WebCoreSupport/FrameLoaderClientQt.h:
3412 2007-06-14 Simon Hausmann <hausmann@kde.org>
3416 Removed QWebHistoryItem::parent() as it is not implemented and WebCore's
3418 HistoryItem itself doesn't seem to have a parent pointer either.
3420 * Api/qwebpagehistory.h:
3422 2007-06-14 Simon Hausmann <hausmann@kde.org>
3426 Make it possible to copy QWebHistoryItem objects.
3428 * Api/qwebpagehistory.cpp:
3429 * Api/qwebpagehistory.h:
3431 2007-06-14 Lars Knoll <lars@trolltech.com>
3435 Fix a crash when a request from the plugin resulted
3438 * Api/qwebnetworkinterface.cpp:
3439 (QWebNetworkManager::started):
3441 2007-06-14 Lars Knoll <lars@trolltech.com>
3445 Work around a bug in Qt's QHttp implementation and
3446 get web pages to load again.
3451 2007-06-13 Simon Hausmann <hausmann@kde.org>
3455 Added a make install target that installs the Qt port and renamed
3456 WebKitQt to QtWebKit
3458 * Api/headers.pri: Added.
3459 * Api/qtwebkit.prf: Added.
3461 2007-06-13 Simon Hausmann <hausmann@kde.org>
3465 Added httpHeaderField setter/getter to QWebNetworkRequest for convenience.
3467 * Api/qwebnetworkinterface.cpp:
3468 * Api/qwebnetworkinterface.h:
3470 2007-06-13 Simon Hausmann <hausmann@kde.org>
3474 Changed QWebObjectPluginConnector::requestUrl to take a QWebNetworkRequest as argument.
3476 * Api/qwebnetworkinterface.h:
3477 * Api/qwebobjectpluginconnector.cpp:
3478 (QWebObjectPluginConnector::requestUrl):
3479 * Api/qwebobjectpluginconnector.h:
3481 2007-06-13 Simon Hausmann <hausmann@kde.org>
3485 Added a QWebNetworkRequest convenience constructor.
3487 * Api/qwebnetworkinterface.cpp:
3488 * Api/qwebnetworkinterface.h:
3492 2007-06-13 Simon Hausmann <hausmann@kde.org>
3496 Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData)
3497 overload to take a QWebNetworkRequest instead.
3503 2007-06-13 Simon Hausmann <hausmann@kde.org>
3507 In QWebPage::open(const QUrl &, const QHttpRequestHeader &, ...) don't make the population
3508 of the WebCore::ResourceRequest depend on the validity of the QHttpRequestHeader but just
3509 pick the individual fields if we can use them.
3514 2007-06-13 Simon Hausmann <hausmann@kde.org>
3518 Minor QWebNetworkRequet API fixlet
3520 * Api/qwebnetworkinterface.cpp:
3521 * Api/qwebnetworkinterface.h:
3523 2007-06-13 Simon Hausmann <hausmann@kde.org>
3527 Use QWebNetworkRequest for QWebPage::navigationRequested.
3529 * Api/qwebnetworkinterface.cpp:
3530 * Api/qwebnetworkinterface.h:
3532 (QWebPagePrivate::navigationRequested):
3533 (QWebPage::navigationRequested):
3536 * WebCoreSupport/FrameLoaderClientQt.cpp:
3537 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3539 2007-06-13 Simon Hausmann <hausmann@kde.org>
3543 Some docs for QWebNetworkRequest
3545 * Api/qwebnetworkinterface.cpp:
3546 (QWebNetworkRequest::QWebNetworkRequest):
3547 (QWebNetworkRequest::~QWebNetworkRequest):
3549 2007-06-13 Simon Hausmann <hausmann@kde.org>
3553 Moved QWebNetworkJob::Method enum into QWebNetworkRequest.
3555 * Api/qwebnetworkinterface.h:
3556 * Api/qwebobjectpluginconnector.cpp:
3557 (QWebObjectPluginConnector::requestUrl):
3558 * Api/qwebobjectpluginconnector.h:
3560 2007-06-13 Simon Hausmann <hausmann@kde.org>
3564 Rename QWebNetworkJob::request() into QWebNetworkJob::httpHeader() and added
3566 * Api/qwebnetworkinterface.cpp:
3567 (QWebNetworkJob::postData):
3568 (WebCoreHttp::WebCoreHttp):
3569 (WebCoreHttp::scheduleNextRequest):
3570 * Api/qwebnetworkinterface.h:
3572 2007-06-13 Simon Hausmann <hausmann@kde.org>
3576 Introduce QWebNetworkRequest in the public API.
3578 * Api/qwebnetworkinterface.cpp:
3579 (QWebNetworkRequestPrivate::init):
3580 * Api/qwebnetworkinterface.h:
3581 * Api/qwebnetworkinterface_p.h:
3582 * WebCoreSupport/FrameLoaderClientQt.cpp:
3583 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3585 2007-06-13 Simon Hausmann <hausmann@kde.org>
3589 Changed QWebNetworkJobPrivate to aggregate a QWebNetworkRequest instead of inheriting from it.
3591 * Api/qwebnetworkinterface.cpp:
3592 (QWebNetworkManager::add):
3593 (QWebNetworkManager::started):
3594 (QWebNetworkManager::data):
3595 (QWebNetworkManager::finished):
3596 * Api/qwebnetworkinterface_p.h:
3597 * Api/qwebobjectpluginconnector.cpp:
3598 (QWebObjectPluginConnector::requestUrl):
3600 2007-06-13 Simon Hausmann <hausmann@kde.org>
3604 Rename QWebNetworkRequest::request into QWebNetworkRequest::httpHeader.
3606 * Api/qwebnetworkinterface.cpp:
3607 (QWebNetworkRequest::init):
3608 (QWebNetworkRequest::setURL):
3609 (QWebNetworkManager::add):
3610 (QWebNetworkManager::started):
3611 * Api/qwebnetworkinterface_p.h:
3612 * WebCoreSupport/FrameLoaderClientQt.cpp:
3613 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3615 2007-06-12 Lars Knoll <lars@trolltech.com>
3617 Reviewed by George Staikos.
3619 Remove duplicate symbols.
3621 * Api/qwebobjectplugin_p.h:
3623 2007-06-13 Lars Knoll <lars@trolltech.com>
3627 Fix compilation, and remove dependency on Qt
3630 * Api/qwebobjectplugin_p.h:
3631 (QWebFactoryLoader::supportsMimeType):
3633 2007-06-13 Lars Knoll <lars@trolltech.com>
3637 Parts of the patch done by Zack.
3638 Fix up some parts in the implementation of QWebNetworkInterface
3639 so it can be used by plugins.
3640 Change the plugin API so we can actually get all the information
3641 required by the JS bridge from them as well.
3643 * Api/qwebnetworkinterface.cpp:
3644 (QWebNetworkJob::cancelled):
3645 (QWebNetworkManager::cancel):
3646 (QWebNetworkManager::started):
3647 (QWebNetworkManager::finished):
3648 * Api/qwebobjectplugin.cpp:
3649 (QWebFactoryLoader::QWebFactoryLoader):
3650 (QWebFactoryLoader::descriptionForName):
3651 (QWebFactoryLoader::mimetypesForName):
3652 (QWebFactoryLoader::mimeTypeForExtension):
3653 (QWebFactoryLoader::extensions):
3654 (QWebFactoryLoader::nameForMimetype):
3655 (QWebFactoryLoader::create):
3656 (QWebObjectPlugin::descriptionForKey):
3657 (QWebObjectPlugin::mimetypesForKey):
3658 * Api/qwebobjectplugin.h:
3659 * Api/qwebobjectplugin_p.h:
3660 (QWebFactoryLoader::names):
3661 * Api/qwebobjectpluginconnector.cpp:
3662 (QWebObjectPluginConnector::requestUrl):
3664 (QWebPage::networkInterface):
3666 2007-06-11 Simon Hausmann <hausmann@kde.org>
3670 Added a QWebPage::open overload to allow specifying the http header and post data.
3671 (it's an overload instead of a merged openUrl to avoid including qhttp.h in qwebpage.h,
3672 which would imply that one has to have QT += network in the .pro file for using WebKitQt)
3677 2007-06-11 Simon Hausmann <hausmann@kde.org>
3681 Added the possibility to intercept url requests through QWebPage::navigationRequested.
3684 (QWebPagePrivate::QWebPagePrivate):
3685 (QWebPage::createFrame):
3688 * WebCoreSupport/FrameLoaderClientQt.cpp:
3690 2007-06-11 Simon Hausmann <hausmann@kde.org>
3694 Added a QWebNetworkRequest::init overload that takes a WebCore::ResourceRequest,
3695 to be called from FrameLoaderClientQt in the near future.
3697 * Api/qwebnetworkinterface.cpp:
3698 (QWebNetworkManager::add):
3699 * Api/qwebnetworkinterface_p.h:
3701 2007-06-11 Simon Hausmann <hausmann@kde.org>
3705 Moved the postData setup into QWebNetworkRequest::init.
3707 * Api/qwebnetworkinterface.cpp:
3708 (QWebNetworkRequest::init):
3709 (QWebNetworkManager::add):
3711 2007-06-11 Simon Hausmann <hausmann@kde.org>