[webkit-help] How to get the layout infomation use qtwebkit?

Simon Fraser simon.fraser at apple.com
Wed Feb 23 17:09:47 PST 2011

On Feb 23, 2011, at 5:00 PM, achellies wrote:

> 			baseRect = node->renderer()->enclosingBox()->absoluteContentBox();

> 			node->renderer()->absoluteRects(leafNodesRect, baseRect.x(), baseRect.y());

These methods do not give the correct results with CSS transforms. You want absoluteBoundingBoxRect(true) or absoluteQuads().


More information about the webkit-help mailing list