Changeset 76267 in webkit


Ignore:
Timestamp:
Jan 20, 2011 11:07:20 AM (13 years ago)
Author:
kdecker@apple.com
Message:

Reviewed by Anders Carlsson.

<rdar://problem/8880689> need a way to obtain the rendered rectangle for box elements
https://bugs.webkit.org/show_bug.cgi?id=52823


  • WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp: (WKBundleNodeHandleGetRenderRect): Added new method that will return a rendered rectangle for box elements
  • WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h: Ditto.
  • WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp: Ditto. (WebKit::InjectedBundleNodeHandle::renderRect): Ditto.
  • WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h: Ditto.
Location:
trunk/Source/WebKit2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r76262 r76267  
     12011-01-20  Kevin Decker  <kdecker@apple.com>
     2
     3        Reviewed by Anders Carlsson.
     4
     5        <rdar://problem/8880689> need a way to obtain the rendered rectangle for box elements
     6        https://bugs.webkit.org/show_bug.cgi?id=52823
     7       
     8        * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
     9        (WKBundleNodeHandleGetRenderRect): Added new method that will return a rendered rectangle for box elements
     10        * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h: Ditto.
     11        * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp: Ditto.
     12        (WebKit::InjectedBundleNodeHandle::renderRect): Ditto.
     13        * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h: Ditto.
     14
    1152011-01-20  Kimmo Kinnunen  <kimmo.t.kinnunen@nokia.com>
    216
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp

    r73579 r76267  
    5050}
    5151
     52WKRect WKBundleNodeHandleGetRenderRect(WKBundleNodeHandleRef nodeHandleRef, bool* isReplaced)
     53{
     54    return toAPI(toImpl(nodeHandleRef)->renderRect(isReplaced));
     55}
     56
    5257void WKBundleNodeHandleSetHTMLInputElementValueForUser(WKBundleNodeHandleRef htmlInputElementHandleRef, WKStringRef valueRef)
    5358{
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h

    r73579 r76267  
    4141
    4242WK_EXPORT WKRect WKBundleNodeHandleGetElementBounds(WKBundleNodeHandleRef nodeHandle);
     43WK_EXPORT WKRect WKBundleNodeHandleGetRenderRect(WKBundleNodeHandleRef nodeHandle, bool* isReplaced);
     44
    4345
    4446/* HTMLInputElement Specific Operations */
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp

    r73579 r76267  
    105105    return static_cast<Element*>(m_node.get())->boundsInWindowSpace();
    106106}
     107   
     108IntRect InjectedBundleNodeHandle::renderRect(bool* isReplaced) const
     109{
     110    return m_node.get()->renderRect(isReplaced);
     111}
    107112
    108113void InjectedBundleNodeHandle::setHTMLInputElementValueForUser(const String& value)
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h

    r75971 r76267  
    5757    // Note: These should only be operations that are not exposed to JavaScript.
    5858    WebCore::IntRect elementBounds() const;
     59    WebCore::IntRect renderRect(bool*) const;
    5960    void setHTMLInputElementValueForUser(const String&);
    6061    bool isHTMLInputElementAutofilled() const;
Note: See TracChangeset for help on using the changeset viewer.