Improve debug description of WAKViews
[WebKit-https.git] / Source / WebCore / platform / ios / wak / WKView.mm
index 4583da7632c26cc6ea28698d7ae5700ef311bdba..a45eb6b30113732f0496a70e2765e50fa0239208 100644 (file)
@@ -143,6 +143,16 @@ CGRect WKViewGetFrame (WKViewRef view)
     return WKViewConvertRectToSuperview(view, view->bounds);
 }
 
+CGPoint WKViewGetOrigin(WKViewRef view)
+{
+    if (!view) {
+        WKError("invalid parameter");
+        return CGPointZero;
+    }
+
+    return view->origin;
+}
+
 static void _WKViewRecursivelyInvalidateGState(WKViewRef view)
 {
     if (!view) {