[Webkit-unassigned] [Bug 71579] Exposing getRect function in WebNode for chromium

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 9 12:38:31 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=71579





--- Comment #17 from Ilya Sherman <isherman at chromium.org>  2011-11-09 12:38:31 PST ---
(In reply to comment #16)
> Hmm, I hadn't run into or though about those issues before, the test pages I worked with were very simple. I did do a pick of poking around in the code and I think that it might be possible to query the WebKit::WebFrames and the like to get enough location data to convert this value to a viewport coordinate. I'm not 100% sure, so I'll try and do some experimentation with this to see if this is possible, or if we need more functions exposed.
> Regardless of my finding though I think we still need to expose this function because this seems to be the only place we can get the element specific position, regardless of its mapping, there just seems to be more work to complete the mapping then I had expected.

If the clients of this method are all interested in viewport-relative coordinates, it probably makes sense to do whatever conversion is necessary within this method.  That way, we hide the conversion complexity from clients, and we potentially need to expose fewer methods via the Chromium WebKit API.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list