Paulo Matias wrote:
For porting Gecko, we must port the classes contained in two
directories in its sourcecode: gfx and widget. The "gfx" dir provides
drawing functions and the "widget" dir provides basical widget
implementations.
I checked out mozilla from CVS and looked at the different gfx
implementations and I think the best starting point wouldn't be
GTK backend. It's a sh** load of PITA code for all the advanced
rendering topics like blending, scaling, rendering to images, etc.
Same goes for the Windows backend, though it seems a bt more
feasible to be ported.
The best starting point seems to be the Mac backend.
Quartz is the graphics system that is most similar to DirectFB :-)
It's also the backend with the fewest code lines:
- GTK 24697
- Win 17986
- Mac 15118
For example have a look at nsImage{GTK,Win,Mac}.cpp, e.g. Draw().
That says everything!
Perhaps Gecko has mostly all the code for drawing the widgets it
needs. So we don't need all the power a complex toolkit like Gtk
provides. Yes, maybe using Gtk makes the porting process more easy,
but it doens't is the ideal.
It actually will be harder to convert GTK code to DFB code IMO.
Maybe we could use some LiTE in the Gecko port, as I've already said,
as it should provide all that we need.
Do you know if the widget stuff must be implemented or is there some
generic widget code that uses the gfx backend? Hmm, but input...
The company I work will sponsor me in the project of porting Gecko to
DirectFB, as they want to run Gecko under really poor hardware. It
Cool!
must run as lighter as possible, so "pure" DirectFB should be the
best. Then, we could make terminals with Linux kernel + uclibc +
DirectFB + Gecko. It seems to be very light...
Indeed :)
And yes, I've looked at WebKit. It's the Apple's khtml-based engine.
I've even tested a port of it to gtk, named gtk-webcore. It seems very
promising, but Gecko is far more madure.
I also had a look at WebKit, but I didn't like it, can't remember
exactly why, but somehow it sucked.
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev