[webkit-help] Computing clientX & clientY for a Node.

Simon Fraser simon.fraser at apple.com
Mon Mar 5 12:07:52 PST 2012


I understand. If you look at the code for getClientBoundingRect(), you'll see how to do that.

Simon

On Mar 5, 2012, at 10:52 AM, Sam White wrote:

> Hey Simon,
> 
> I'm trying to get clientX & clientY from a Node* from within WebKit, not using .js from the client side.
> 
> Sam
> 
> On Mar 5, 2012, at 10:05 AM, Simon Fraser wrote:
> 
>> Try getClientBoundingRect().
>> 
>> Simon
>> 
>> On Mar 5, 2012, at 9:01 AM, Sam White wrote:
>> 
>>> Hey WebKit,
>>> 
>>> I'm trying to compute clientX & clientY for a Node in a way that is relative to the viewport. So far I've only found the absoluteBoundingBoxRect function on renderObject but the rect it returns is relative to the document. Any help with this would be great.
>>> 
>>> Thanks
>>> Sam
>>> _______________________________________________
>>> webkit-help mailing list
>>> webkit-help at lists.webkit.org
>>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
>> 
> 



More information about the webkit-help mailing list