Changeset 86312 in webkit


Ignore:
Timestamp:
May 11, 2011 10:45:30 PM (13 years ago)
Author:
leviw@chromium.org
Message:

2011-05-11 Levi Weintraub <leviw@chromium.org>

Reviewed by Eric Seidel.

Rename Widget::pos()
https://bugs.webkit.org/show_bug.cgi?id=60575

Renaming Widget::pos() to the more-descriptive location().

No new tests as this is a simple rename

  • page/FrameView.cpp: (WebCore::FrameView::create):
  • platform/Widget.h: (WebCore::Widget::location): (WebCore::Widget::resize):

2011-05-11 Levi Weintraub <leviw@chromium.org>

Reviewed by Eric Seidel.

Rename Widget::pos()
https://bugs.webkit.org/show_bug.cgi?id=60575

Renaming Widget::pos() to the more-descriptive location().

  • src/WebInputEventConversion.cpp: (WebKit::WebMouseEventBuilder::WebMouseEventBuilder): (WebKit::WebMouseWheelEventBuilder::WebMouseWheelEventBuilder):
Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86311 r86312  
     12011-05-11  Levi Weintraub  <leviw@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Rename Widget::pos()
     6        https://bugs.webkit.org/show_bug.cgi?id=60575
     7
     8        Renaming Widget::pos() to the more-descriptive location().
     9
     10        No new tests as this is a simple rename
     11
     12        * page/FrameView.cpp:
     13        (WebCore::FrameView::create):
     14        * platform/Widget.h:
     15        (WebCore::Widget::location):
     16        (WebCore::Widget::resize):
     17
    1182011-05-10  MORITA Hajime  <morrita@google.com>
    219
  • trunk/Source/WebCore/page/FrameView.cpp

    r86197 r86312  
    160160{
    161161    RefPtr<FrameView> view = adoptRef(new FrameView(frame));
    162     view->Widget::setFrameRect(IntRect(view->pos(), initialSize));
     162    view->Widget::setFrameRect(IntRect(view->location(), initialSize));
    163163    view->setInitialBoundsSize(initialSize);
    164164    view->show();
  • trunk/Source/WebCore/platform/Widget.h

    r79167 r86312  
    151151    int height() const { return frameRect().height(); }
    152152    IntSize size() const { return frameRect().size(); }
    153     IntPoint pos() const { return frameRect().location(); }
     153    IntPoint location() const { return frameRect().location(); }
    154154
    155155    virtual void setFrameRect(const IntRect&);
     
    159159
    160160    void resize(int w, int h) { setFrameRect(IntRect(x(), y(), w, h)); setBoundsSize(IntSize(w, h)); }
    161     void resize(const IntSize& s) { setFrameRect(IntRect(pos(), s)); setBoundsSize(s); }
     161    void resize(const IntSize& s) { setFrameRect(IntRect(location(), s)); setBoundsSize(s); }
    162162    void move(int x, int y) { setFrameRect(IntRect(x, y, width(), height())); }
    163163    void move(const IntPoint& p) { setFrameRect(IntRect(p, size())); }
  • trunk/Source/WebKit/chromium/ChangeLog

    r86290 r86312  
     12011-05-11  Levi Weintraub  <leviw@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Rename Widget::pos()
     6        https://bugs.webkit.org/show_bug.cgi?id=60575
     7
     8        Renaming Widget::pos() to the more-descriptive location().
     9
     10        * src/WebInputEventConversion.cpp:
     11        (WebKit::WebMouseEventBuilder::WebMouseEventBuilder):
     12        (WebKit::WebMouseWheelEventBuilder::WebMouseWheelEventBuilder):
     13
    1142011-05-11  Antoine Labour  <piman@chromium.org>
    215
  • trunk/Source/WebKit/chromium/src/WebInputEventConversion.cpp

    r79534 r86312  
    292292    windowX = p.x();
    293293    windowY = p.y();
    294     x = event.absoluteLocation().x() - widget->pos().x();
    295     y = event.absoluteLocation().y() - widget->pos().y();
     294    x = event.absoluteLocation().x() - widget->location().x();
     295    y = event.absoluteLocation().y() - widget->location().y();
    296296    clickCount = event.detail();
    297297}
     
    311311    windowX = p.x();
    312312    windowY = p.y();
    313     x = event.absoluteLocation().x() - widget->pos().x();
    314     y = event.absoluteLocation().y() - widget->pos().y();
     313    x = event.absoluteLocation().x() - widget->location().x();
     314    y = event.absoluteLocation().y() - widget->location().y();
    315315    deltaX = static_cast<float>(event.rawDeltaX());
    316316    deltaY = static_cast<float>(event.rawDeltaY());
Note: See TracChangeset for help on using the changeset viewer.