WebCore:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jun 2002 23:15:53 +0000 (23:15 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jun 2002 23:15:53 +0000 (23:15 +0000)
commitfba2d04a7a468aca3ff99151e24f2bde3a58a5a1
tree698616667c042f3bb1e4c2930e9bf530de7ad13f
parent794abe2ccd8f0b6a38bed2a7768013c001fa3776
WebCore:

Add the new bridge class that connects us to WebCore in a nicer way.
Started to use it for some things. More to come.

* WebKit.pbproj/project.pbxproj:
* IFWebCoreBridge.h: Added.
* IFWebCoreBridge.mm: Added.

* Misc.subproj/IFDownloadHandler.mm:
(-[IFDownloadHandler initWithDataSource:]): Call [super init].
(-[IFDownloadHandler dealloc]): Call [super dealloc].
* Plugins.subproj/IFPluginNullEventSender.m:
(-[IFPluginNullEventSender initializeWithNPP:functionPointer:window:]): Call [super init].
(-[IFPluginNullEventSender dealloc]): Call [super dealloc].
* WebView.subproj/IFDOMNode.mm: (-[IFDOMNode dealloc]): Call [super dealloc].
* WebView.subproj/IFImageView.m: (-[IFImageView dealloc]): Call [super dealloc].
* WebView.subproj/IFRenderNode.mm: (-[IFRenderNode dealloc]): Call [super dealloc].

* WebView.subproj/IFHTMLRepresentation.h: Moved variables into a private structure so
this class can be made public.
* WebView.subproj/IFHTMLRepresentationPrivate.h: Added. Has _bridge method.
* WebView.subproj/IFHTMLRepresentation.mm:
(-[IFHTMLRepresentation init]): Call [super init]. Also use the new private structure,
and allocate the IFWebCoreBridge.
(-[IFHTMLRepresentation dealloc]): Release the private structure and the IFWebCoreBridge.
Also, call [super dealloc].
(-[IFHTMLRepresentation _bridge]): Private method to get to the bridge.
(-[IFHTMLRepresentation receivedData:withDataSource:]): Use IFWebCoreBridge.

* WebView.subproj/IFWebViewPrivate.h: Add _setMarginWidth and _setMarginHeight.

* WebView.subproj/IFWebDataSourcePrivate.h: Tweak.
* WebView.subproj/IFWebDataSource.mm: Tweak.
* History.subproj/IFWebHistoryPrivate.m: Tweak.

WebKit:

Worked on eliminating calls to WebKit. About 3/4 done.

* WebCore.exp: Export new WebCoreBridge class, fewer other things.

* WebCorePrefix.h: #include <ostream> in debug builds; we couldn't
before because of a PFE bug that has since been fixed (2920556).

* khtml/html/html_objectimpl.cpp: (HTMLObjectElementImpl::attach):
Add a comment explaining our latest change here.

* khtml/khtml_part.cpp: (KHTMLPart::~KHTMLPart): Fix storage leak
by deleting m_hostExtension.

* khtml/misc/loader.h: Set type properly on client member so we
don't have to do so much casting.

* kwq/KWQKHTMLPartImpl.h: Add getBridge and setBridge, remove setDataSource.
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPartImpl::KWQKHTMLPartImpl): Eliminate m_dataSource.
(KWQKHTMLPartImpl::openURLInFrame): Use WebCoreBridge.
(KWQKHTMLPartImpl::urlSelected): Use WebCoreBridge.
(KWQKHTMLPartImpl::requestFrame): Use WebCoreBridge.
(KWQKHTMLPartImpl::requestObject): Move WebCoreViewFactory code
here; we don't need an entire WCPluginWidget file just for this
function.
(KWQKHTMLPartImpl::submitForm): Use WebCoreBridge.
(KWQKHTMLPartImpl::frameExists): Use WebCoreBridge.
(KWQKHTMLPartImpl::frames): Use WebCoreBridge.
(KWQKHTMLPartImpl::setTitle): Use WebCoreBridge.
(KWQKHTMLPartImpl::getDataSource): Use WebCoreBridge.
(KWQKHTMLPartImpl::parentPart): Use WebCoreBridge.

* kwq/KWQKHTMLPartBrowserExtension.mm:
(KHTMLPartBrowserExtension::createNewWindow): Use WebCoreBridge.

* kwq/KWQKloader.mm: Move the part of external.h that we still use in
here, with the expectation of eliminating it soon. Also renamed
URLLoadClient to KWQURLLoadClient so we don't hog namespace.

* kwq/qt/qscrollview.h:
* kwq/KWQScrollView.mm: Used helper functions to do the "documentView"
selector thing more consistently.

* kwq/KWQWidget.mm: Get interface for changing the cursor from
WebCoreViewFactory.h instead of from external.h.

* kwq/WebCoreViewFactory.h:
* kwq/Makefile.am: Remove WCPluginWidget.mm, add WebCoreBridge.mm.
* kwq/WCPluginWidget.h: Removed.
* kwq/WCPluginWidget.mm: Removed.
* kwq/WebCoreBridge.h: Added.
* kwq/WebCoreBridge.mm: Added.

* kwq/qt/qarray.h: Use <ostream> instead of <iostream>.
* kwq/qt/qcstring.h: Remove <iostream> include since we include <qarray.h>.
* kwq/qt/qdatetime.h: Replace unconditional <iostream> include with a
conditional <ostream> include. Also made streaming operators conditional.
* kwq/qt/qlist.h: Use <ostream> instead of <iostream>.
* kwq/qt/qmap.h: Use <ostream> instead of <iostream>.
* kwq/qt/qpoint.h: Use <iosfwd> instead of <iostream>.
* kwq/qt/qsize.h: Use <iosfwd> instead of <iostream>.
* kwq/qt/qvaluelist.h: Use <ostream> instead of <iostream>.
* kwq/qt/qvector.h: Replace unconditional <iostream> include with a
conditional <ostream> include. Also made streaming operators conditional.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@1357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
73 files changed:
WebCore/ChangeLog-2002-12-03
WebCore/ChangeLog-2003-10-25
WebCore/ChangeLog-2005-08-23
WebCore/WebCore.exp
WebCore/WebCorePrefix.h
WebCore/khtml/html/html_objectimpl.cpp
WebCore/khtml/khtml_part.cpp
WebCore/khtml/misc/loader.h
WebCore/kwq/KWQCString.h
WebCore/kwq/KWQDateTime.h
WebCore/kwq/KWQKHTMLPart.h
WebCore/kwq/KWQKHTMLPart.mm
WebCore/kwq/KWQKHTMLPartBrowserExtension.mm
WebCore/kwq/KWQKHTMLPartImpl.h
WebCore/kwq/KWQKHTMLPartImpl.mm
WebCore/kwq/KWQKloader.mm
WebCore/kwq/KWQLoader.mm
WebCore/kwq/KWQLoaderImpl.mm
WebCore/kwq/KWQMap.h
WebCore/kwq/KWQMemArray.h
WebCore/kwq/KWQPointArray.h
WebCore/kwq/KWQPtrList.h
WebCore/kwq/KWQPtrVector.h
WebCore/kwq/KWQScrollView.h
WebCore/kwq/KWQScrollView.mm
WebCore/kwq/KWQSize.h
WebCore/kwq/KWQValueList.h
WebCore/kwq/KWQWidget.mm
WebCore/kwq/Makefile.am
WebCore/kwq/WebCoreBridge.h [moved from WebCore/kwq/WCPluginWidget.mm with 55% similarity]
WebCore/kwq/WebCoreBridge.mm [moved from WebCore/kwq/WCPluginWidget.h with 54% similarity]
WebCore/kwq/WebCoreViewFactory.h
WebCore/kwq/qt/qarray.h
WebCore/kwq/qt/qcstring.h
WebCore/kwq/qt/qdatetime.h
WebCore/kwq/qt/qlist.h
WebCore/kwq/qt/qmap.h
WebCore/kwq/qt/qpoint.h
WebCore/kwq/qt/qscrollview.h
WebCore/kwq/qt/qsize.h
WebCore/kwq/qt/qvaluelist.h
WebCore/kwq/qt/qvector.h
WebKit/ChangeLog
WebKit/ChangeLog-2002-12-03
WebKit/History.subproj/IFWebHistoryPrivate.m
WebKit/History.subproj/WebHistoryPrivate.m
WebKit/IFWebCoreBridge.h [new file with mode: 0644]
WebKit/IFWebCoreBridge.mm [new file with mode: 0644]
WebKit/Misc.subproj/IFDownloadHandler.mm
WebKit/Misc.subproj/WebDownloadHandler.m
WebKit/Plugins.subproj/IFPluginNullEventSender.m
WebKit/Plugins.subproj/WebPluginNullEventSender.m
WebKit/WebKit.pbproj/project.pbxproj
WebKit/WebView.subproj/IFDOMNode.mm
WebKit/WebView.subproj/IFHTMLRepresentation.h
WebKit/WebView.subproj/IFHTMLRepresentation.mm
WebKit/WebView.subproj/IFHTMLRepresentationPrivate.h [new file with mode: 0644]
WebKit/WebView.subproj/IFImageView.m
WebKit/WebView.subproj/IFRenderNode.mm
WebKit/WebView.subproj/IFWebDataSource.mm
WebKit/WebView.subproj/IFWebDataSourcePrivate.h
WebKit/WebView.subproj/IFWebViewPrivate.h
WebKit/WebView.subproj/WebDOMNode.m
WebKit/WebView.subproj/WebDataSource.m
WebKit/WebView.subproj/WebDataSourcePrivate.h
WebKit/WebView.subproj/WebDebugDOMNode.m
WebKit/WebView.subproj/WebFrameViewInternal.h
WebKit/WebView.subproj/WebFrameViewPrivate.h
WebKit/WebView.subproj/WebHTMLRepresentation.h
WebKit/WebView.subproj/WebHTMLRepresentation.m
WebKit/WebView.subproj/WebHTMLRepresentationPrivate.h [new file with mode: 0644]
WebKit/WebView.subproj/WebImageView.m
WebKit/WebView.subproj/WebRenderNode.m