Commit 12628dc4 authored by adele's avatar adele
Browse files

Reviewed by Adele.

        Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092

        * platform/win/ScrollViewWin.cpp:
        (WebCore::ScrollView::convertToContainingWindow):
        (WebCore::ScrollView::convertFromContainingWindow):
        * platform/win/WidgetWin.cpp:
        (WebCore::Widget::convertToContainingWindow):
        (WebCore::Widget::convertFromContainingWindow):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16677 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 110cc417
2006-09-29 MorganL <morganl.webkit@yahoo.com>
Reviewed by Adele.
Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
* platform/win/ScrollViewWin.cpp:
(WebCore::ScrollView::convertToContainingWindow):
(WebCore::ScrollView::convertFromContainingWindow):
* platform/win/WidgetWin.cpp:
(WebCore::Widget::convertToContainingWindow):
(WebCore::Widget::convertFromContainingWindow):
2006-09-29 Adele Peterson <adele@apple.com> 2006-09-29 Adele Peterson <adele@apple.com>
   
Updated with new argument for PlatformScrollBar. Updated with new argument for PlatformScrollBar.
...@@ -141,12 +141,12 @@ int ScrollView::contentsHeight() const ...@@ -141,12 +141,12 @@ int ScrollView::contentsHeight() const
IntPoint ScrollView::convertToContainingWindow(const IntPoint& point) const IntPoint ScrollView::convertToContainingWindow(const IntPoint& point) const
{ {
return contentsPoint - scrollOffset(); return point - scrollOffset();
} }
IntPoint ScrollView::convertFromContainingWindow(const IntPoint& point) const IntPoint ScrollView::convertFromContainingWindow(const IntPoint& point) const
{ {
return IntPoint(point) + scrollOffset(); return point + scrollOffset();
} }
IntSize ScrollView::scrollOffset() const IntSize ScrollView::scrollOffset() const
......
...@@ -137,4 +137,14 @@ void Widget::setFrameGeometry(const IntRect &rect) ...@@ -137,4 +137,14 @@ void Widget::setFrameGeometry(const IntRect &rect)
MoveWindow(data->containingWindow, rect.x(), rect.y(), rect.width(), rect.height(), false); MoveWindow(data->containingWindow, rect.x(), rect.y(), rect.width(), rect.height(), false);
} }
IntPoint Widget::convertToContainingWindow(const IntPoint& point) const
{
return point;
}
IntPoint Widget::convertFromContainingWindow(const IntPoint& point) const
{
return point;
}
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment