⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 99778 in webkit


Ignore:
Timestamp:
Nov 9, 2011, 3:59:21 PM (15 years ago)
Author:
andersca@apple.com
Message:

Element::boundsInWindowSpace should be Element::boundsInRootViewSpace
https://bugs.webkit.org/show_bug.cgi?id=71955

Reviewed by Sam Weinig.

Source/WebCore:

Element::boundsInWindowSpace is only used by WebKit2, where the window coordinate space is the
same as the root view coordinate space. This lets us get rid of another use of contentsToWindow.

  • WebCore.exp.in:
  • dom/Element.cpp:

(WebCore::Element::boundsInRootViewSpace):

  • dom/Element.h:

Source/WebKit2:

  • WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:

(WebKit::InjectedBundleNodeHandle::elementBounds):
Call Element::boundsInRootViewSpace.

Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r99776 r99778  
     12011-11-09  Anders Carlsson  <andersca@apple.com>
     2
     3        Element::boundsInWindowSpace should be Element::boundsInRootViewSpace
     4        https://bugs.webkit.org/show_bug.cgi?id=71955
     5
     6        Reviewed by Sam Weinig.
     7
     8        Element::boundsInWindowSpace is only used by WebKit2, where the window coordinate space is the
     9        same as the root view coordinate space. This lets us get rid of another use of contentsToWindow.
     10
     11        * WebCore.exp.in:
     12        * dom/Element.cpp:
     13        (WebCore::Element::boundsInRootViewSpace):
     14        * dom/Element.h:
     15
    1162011-11-09  Kentaro Hara  <haraken@chromium.org>
    217
  • trunk/Source/WebCore/WebCore.exp.in

    r99754 r99778  
    882882__ZN7WebCore7Element16ensureShadowRootEv
    883883__ZN7WebCore7Element16removeShadowRootEv
    884 __ZN7WebCore7Element19boundsInWindowSpaceEv
     884__ZN7WebCore7Element21boundsInRootViewSpaceEv
    885885__ZN7WebCore7Element9innerTextEv
    886886__ZN7WebCore7IntRect5scaleEf
  • trunk/Source/WebCore/dom/Element.cpp

    r99338 r99778  
    471471}
    472472
    473 LayoutRect Element::boundsInWindowSpace()
     473LayoutRect Element::boundsInRootViewSpace()
    474474{
    475475    document()->updateLayoutIgnorePendingStylesheets();
     
    502502        result.unite(quads[i].enclosingBoundingBox());
    503503
    504     result = view->contentsToWindow(result);
     504    result = view->contentsToRootView(result);
    505505    return result;
    506506}
  • trunk/Source/WebCore/dom/Element.h

    r97670 r99778  
    170170    virtual int scrollHeight();
    171171
    172     // Note that the 'window space' has a flipped coordinate system on some platforms.
    173     LayoutRect boundsInWindowSpace();
     172    LayoutRect boundsInRootViewSpace();
    174173
    175174    PassRefPtr<ClientRectList> getClientRects();
  • trunk/Source/WebKit2/ChangeLog

    r99769 r99778  
     12011-11-09  Anders Carlsson  <andersca@apple.com>
     2
     3        Element::boundsInWindowSpace should be Element::boundsInRootViewSpace
     4        https://bugs.webkit.org/show_bug.cgi?id=71955
     5
     6        Reviewed by Sam Weinig.
     7
     8        * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
     9        (WebKit::InjectedBundleNodeHandle::elementBounds):
     10        Call Element::boundsInRootViewSpace.
     11
    1122011-11-09  Alexis Menard  <alexis.menard@openbossa.org>
    213
  • trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp

    r95901 r99778  
    110110        return IntRect();
    111111
    112     return static_cast<Element*>(m_node.get())->boundsInWindowSpace();
     112    return static_cast<Element*>(m_node.get())->boundsInRootViewSpace();
    113113}
    114114   
Note: See TracChangeset for help on using the changeset viewer.