2006-10-03 Mark Rowe <bdash@webkit.org>
[WebKit-https.git] / WebCore / platform / gdk / WidgetGdk.cpp
index ae7c940bb101497d0eb7e2b15f9c053d15c613e8..1fb789d30cf22d1daab1feda1607f0bd43fb6074 100644 (file)
@@ -158,15 +158,14 @@ void Widget::setFrameGeometry(const IntRect& r)
     gdk_window_move_resize(window, r.x(), r.y(), r.width(), r.height());
 }
 
-IntPoint Widget::mapFromGlobal(const IntPoint& p) const
+IntPoint Widget::convertToContainingWindow(const IntPoint& point) const
 {
-    GdkDrawable* drawable = data->drawable;
-    if (!drawable || !GDK_IS_WINDOW(drawable))
-        return p;
-    GdkWindow* window = GDK_WINDOW(drawable);
-    gint x, y;
-    gdk_window_get_origin(window, &x, &y);
-    return IntPoint(p.x() - x, p.y() - y);
+  return point;
+}
+
+IntPoint Widget::convertFromContainingWindow(const IntPoint& point) const
+{
+  return point;
 }
 
 }