Changeset 86312 in webkit
- Timestamp:
- May 11, 2011 10:45:30 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r86311 r86312 1 2011-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 1 18 2011-05-10 MORITA Hajime <morrita@google.com> 2 19 -
trunk/Source/WebCore/page/FrameView.cpp
r86197 r86312 160 160 { 161 161 RefPtr<FrameView> view = adoptRef(new FrameView(frame)); 162 view->Widget::setFrameRect(IntRect(view-> pos(), initialSize));162 view->Widget::setFrameRect(IntRect(view->location(), initialSize)); 163 163 view->setInitialBoundsSize(initialSize); 164 164 view->show(); -
trunk/Source/WebCore/platform/Widget.h
r79167 r86312 151 151 int height() const { return frameRect().height(); } 152 152 IntSize size() const { return frameRect().size(); } 153 IntPoint pos() const { return frameRect().location(); }153 IntPoint location() const { return frameRect().location(); } 154 154 155 155 virtual void setFrameRect(const IntRect&); … … 159 159 160 160 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); } 162 162 void move(int x, int y) { setFrameRect(IntRect(x, y, width(), height())); } 163 163 void move(const IntPoint& p) { setFrameRect(IntRect(p, size())); } -
trunk/Source/WebKit/chromium/ChangeLog
r86290 r86312 1 2011-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 1 14 2011-05-11 Antoine Labour <piman@chromium.org> 2 15 -
trunk/Source/WebKit/chromium/src/WebInputEventConversion.cpp
r79534 r86312 292 292 windowX = p.x(); 293 293 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(); 296 296 clickCount = event.detail(); 297 297 } … … 311 311 windowX = p.x(); 312 312 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(); 315 315 deltaX = static_cast<float>(event.rawDeltaX()); 316 316 deltaY = static_cast<float>(event.rawDeltaY());
Note: See TracChangeset
for help on using the changeset viewer.