Changeset 37764 in webkit


Ignore:
Timestamp:
Oct 21, 2008 3:33:10 PM (16 years ago)
Author:
Simon Hausmann
Message:

2008-06-03 Siraj Razick <siraj.razick@collabora.co.uk>

Reviewed by Simon Hausmann.

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

Expose boundingBox value in QWebHitTestResult

Add API function QRect QWebHitResult::boundingBox() const

API docs by Ariya.

Location:
trunk/WebKit/qt
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qwebframe.cpp

    r37706 r37764  
    985985        return;
    986986    pos = hitTest.point();
     987    boundingBox = hitTest.boundingBox();
    987988    title = hitTest.title();
    988989    linkText = hitTest.textContent();
     
    10731074
    10741075/*!
     1076    \since 4.5
     1077    Returns the bounding box of the element.
     1078*/
     1079QRect QWebHitTestResult::boundingBox() const
     1080{
     1081    if (!d)
     1082        return QRect();
     1083    return d->boundingBox;
     1084}
     1085
     1086/*!
    10751087    Returns the title of the nearest enclosing HTML element.
    10761088*/
  • trunk/WebKit/qt/Api/qwebframe.h

    r37061 r37764  
    6868
    6969    QPoint pos() const;
     70    QRect boundingBox() const;
    7071    QString title() const;
    7172
  • trunk/WebKit/qt/Api/qwebframe_p.h

    r37061 r37764  
    101101
    102102    QPoint pos;
     103    QRect boundingBox;
    103104    QString title;
    104105    QString linkText;
  • trunk/WebKit/qt/ChangeLog

    r37754 r37764  
     12008-06-03  Siraj Razick  <siraj.razick@collabora.co.uk>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=19374
     6
     7        Expose boundingBox value in QWebHitTestResult
     8
     9        Add API function QRect QWebHitResult::boundingBox() const
     10
     11        API docs by Ariya.
     12
     13        * Api/qwebframe.cpp:
     14        (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
     15        (QWebHitTestResult::boundingBox):
     16        * Api/qwebframe.h:
     17        * Api/qwebframe_p.h:
     18
    1192008-10-20  Sam Weinig  <sam@webkit.org>
    220
Note: See TracChangeset for help on using the changeset viewer.