[Webkit-unassigned] [Bug 70642] New: API to get selection bounds rect from QWebPage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 21 13:48:52 PDT 2011


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

           Summary: API to get selection bounds rect from QWebPage
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: srikumar.b at gmail.com
                CC: srikumar.b at gmail.com


It seems like, there is no direct API available from QWebPage to get the text selection bounds co-ordinates.

The API logic may look similar to 

QRect QWebPage::getTextSelectionBounds()
{
    Frame* focusedFrame = d->page->focusController()->focusedFrame();
    if (!focusedFrame)
        return QRect();
    IntRect intRect=enclosingIntRect(focusedFrame->selection()->bounds());
    return QRect(intRect.x(),intRect.y(),intRect.width(),intRect.height());
}

-- 
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