fixup! fixup! fixup! Fix ewk_view_orientation_send API Reviewed by: Piotr Tworek...
authorChandan Padhi <c.padhi@samsung.com>
Wed, 25 Feb 2015 13:45:38 +0000 (19:15 +0530)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Change-Id: I8e80329d12e5b6cae84b549c860b7a0ae8743a52
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
tizen_src/impl/browser/web_contents/web_contents_view_efl.cc

index d020813..48c6b77 100644 (file)
@@ -250,15 +250,16 @@ void WebContentsViewEfl::SetOrientation(int orientation) {
     rwh->GetWebScreenInfo(&screen_info);
     screen_info.orientationAngle = orientation;
 
+    WebContentsImpl& contents_impl = static_cast<WebContentsImpl&>(*web_contents_);
+
     ViewMsg_Resize_Params params;
     params.screen_info = screen_info;
     params.new_size = gfx::Size(screen_info.rect.width, screen_info.rect.height);
-    params.is_fullscreen = GetEWebView()->IsFullscreen();
+    params.is_fullscreen = contents_impl.IsFullscreenForCurrentTab();
 
     rwh->Send(new ViewMsg_Resize(rwh->GetRoutingID(), params));
     rwhv->UpdateScreenInfo(rwhv->GetNativeView());
 
-    WebContentsImpl& contents_impl = static_cast<WebContentsImpl&>(*web_contents_);
     contents_impl.screen_orientation_dispatcher_host()->OnOrientationChange();
   }