[webkit-help] get screen coordinate of a DOM node

Antonio Gomes tonikitoo at gmail.com
Mon Aug 16 08:59:47 PDT 2010


Please read: https://lists.webkit.org/pipermail/webkit-help/2009-August/000146.html

If your port is QtWebKit:
/*!
    Returns the geometry of this element, relative to its containing frame.
    \sa tagName()
*/
QRect QWebElement::geometry() const
{
    if (!m_element)
        return QRect();
    return m_element->getRect();
}

On Fri, Aug 13, 2010 at 7:52 AM, Luka Napotnik <luka.napotnik at gmail.com> wrote:
> Hello.
>
> A quick question: can I get the screen coordinate of  a DOM Node
> relative to the page and the element dimensions?


-- 
--Antonio Gomes


More information about the webkit-help mailing list