Fix the wrong parameter of ewkViewGetWindowFrame().
authorEunmi Lee <eunmi15.lee@samsung.com>
Fri, 5 Apr 2013 04:47:10 +0000 (13:47 +0900)
committerGerrit Code Review <gerrit2@kim11>
Fri, 5 Apr 2013 05:36:53 +0000 (14:36 +0900)
[Title] Fix the wrong parameter of ewkViewGetWindowFrame().
[Issue#]: N/A
[Problem] getWindowFrame() does not work.
[Cause] The first parameter of getWindowFrame() should be ewk_view, but the PageUIClient is set.
[Solution] Set ewk_view for the first parameter of ewkViewGetWindowFrame().

Change-Id: Ie697df42e0e0ffb4992d65f0737e7c6aa29e15c0

Source/WebKit2/UIProcess/efl/PageUIClientEfl.cpp

index 6162676..c77aecf 100755 (executable)
@@ -152,7 +152,7 @@ WKRect PageUIClientEfl::getWindowFrame(WKPageRef, const void* clientInfo)
     int x, y, width, height;
 
 #if ENABLE(TIZEN_VIEWPORT_META_TAG)
-    ewkViewGetWindowFrame(static_cast<Evas_Object*>(const_cast<void*>(clientInfo)), &x, &y, &width, &height);
+    ewkViewGetWindowFrame(toPageUIClientEfl(clientInfo)->m_viewImpl->view(), &x, &y, &width, &height);
     return WKRectMake(x, y, width, height);
 #endif
     Ecore_Evas* ee = ecore_evas_ecore_evas_get(evas_object_evas_get(toPageUIClientEfl(clientInfo)->m_viewImpl->view()));