john alden wrote:
What sort of rendering information do you want?
Given an element in DOM, i want information about its layout. For example, for a given text element i want co-ordinates of the rectangle in which the text element is rendered. The co-ordinates can be top,left,bottom,right ( as mentioned in the bug pointed by you initially).
Given a standard window size ( and other enviroment variables which influence layout of elements), i want to build a dom which has layout information ( rectangle co-ordinates) of each of the elemnent.
I wanted to build an application on top of DOM which has rendering information of its elements. So i wanted to use Gecko layout engine ( and DOM ) to get this. It would be difficult for me to use the JavaScript APIs ( exposed in the patch described in the inital bug pointed by you ) to get what i want. As i have previously said, i want to build an interface to give the url and get the DOM with rendering information. I would later serialize it and use it.
I don't understand why it would be difficult to use getClientRects to
get what you say you want.
Rob
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout