Changeset 102283 in webkit


Ignore:
Timestamp:
Dec 7, 2011 4:32:51 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Exposing boundsInScreenSpace in WebElement.
https://bugs.webkit.org/show_bug.cgi?id=71579

Exposing boundsInScreenSpace through a new function,
boundsInViewportSpace, to assist in moving the Autofill UI out of
WebKit in Chromium. Renamed the exposed function to provide a better
meaning of what the function does in the Chromium code.
More information can be found at:
http://crbug.com/51644

Patch by Chris Sharp <csharp@chromium.org> on 2011-12-07
Reviewed by Darin Fisher.

  • public/WebElement.h:
  • src/WebElement.cpp:

(WebKit::WebElement::boundsInViewportSpace):

Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r102275 r102283  
     12011-12-07  Chris Sharp  <csharp@chromium.org>
     2       
     3        Exposing boundsInScreenSpace in WebElement.
     4        https://bugs.webkit.org/show_bug.cgi?id=71579
     5
     6        Exposing boundsInScreenSpace through a new function,
     7        boundsInViewportSpace, to assist in moving the Autofill UI out of
     8        WebKit in Chromium. Renamed the exposed function to provide a better
     9        meaning of what the function does in the Chromium code.
     10        More information can be found at:
     11        http://crbug.com/51644
     12
     13
     14        Reviewed by Darin Fisher.
     15
     16        * public/WebElement.h:
     17        * src/WebElement.cpp:
     18        (WebKit::WebElement::boundsInViewportSpace):
     19
    1202011-12-07  Adam Klein  <adamk@chromium.org>
    221
  • trunk/Source/WebKit/chromium/public/WebElement.h

    r95901 r102283  
    4040namespace WebKit {
    4141class WebNamedNodeMap;
     42struct WebRect;
    4243
    4344    // Provides access to some properties of a DOM element node.
     
    6869        WEBKIT_EXPORT WebString computeInheritedLanguage() const;
    6970
     71        // Returns the bounds of the element in viewport space. The bounds
     72        // have been adjusted to include any transformations. This view is
     73        // also called the Root View in WebKit.
     74        // This function will update the layout if required.
     75        WEBKIT_EXPORT WebRect boundsInViewportSpace();
     76
    7077#if WEBKIT_IMPLEMENTATION
    7178        WebElement(const WTF::PassRefPtr<WebCore::Element>&);
  • trunk/Source/WebKit/chromium/src/WebElement.cpp

    r95901 r102283  
    3030
    3131#include "config.h"
     32#include "platform/WebRect.h"
    3233#include "WebElement.h"
    3334#include "WebDocument.h"
     
    109110}
    110111
     112WebRect WebElement::boundsInViewportSpace()
     113{
     114    return unwrap<Element>()->boundsInRootViewSpace();
     115}
     116
    111117WebElement::WebElement(const PassRefPtr<Element>& elem)
    112118    : WebNode(elem)
Note: See TracChangeset for help on using the changeset viewer.