Re: Notes about WebCore
Re: Notes about WebCore
- Subject: Re: Notes about WebCore
- From: Marcel Weiher <email@hidden>
- Date: Sun, 12 Jan 2003 13:59:02 +0100
On Saturday, January 11, 2003, at 03:53 Uhr, Adam Atlas wrote:
WebCoreBridge has a setRenderPart: method. I think that would be
required here, though I have no idea what it's for. If you still have
your WebCore source, take a look at khtml/rendering/render_frames.h,
and look for the RenderPart class (though it's in C++).
Well, I've beein looking at RenderPart, and it is a bit weird. If you
look at the WebCoreBridge.h, you have
- (void)setRenderPart:(KHTMLRenderPart *)renderPart;
so a KHTMLRenderPart is required. This may or may not be the C++
render part...
typedef khtml::RenderPart KHTMLRenderPart;
or
@class KHTMLRenderPart;
...an unspecified Objective-C class. Ahh <slaps-forhead/>, I guess the
Objective-C declaration is really just a dummy so the header file will
work in a pure Objective-C environment. Of course, that doesn't really
make sense if I need to instantiate a C++ object to make it work, right?
If you create one of those (maybe just a bare-bones one with nothing
special set,
I will probably try that, but ot almost looks like RenderPart itself is
really just abstract. For example, the constructor doesn't even look
at its argument. Still something to examine, though.
unless it looks like there needs to be more) and pass it to your
WebBridge object in its setRenderPart: method.
From the whole RenderArena bit (and other hints in the source code), it
seems to me that you need a whole bunch of renderers to handle
different aspects of the HTML element tree. It also looks like this
needs to be externally provided and properly constructed.
So I guess no easy [bridge renaderHtml: myHtmlData] method :-(
I don't know if this will work, but KHTMLRenderPart (and its c++
counterpart khtml::RenderPart) stood out when I was looking through
the source for more information on this.
Yup.
Thanks,
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.