+
+void ewk_view_rotation_prepare(Evas_Object* ewkView, int angle)
+{
+#if ENABLE(TIZEN_PRERENDERING_FOR_ROTATION)
+ EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData);
+ EWK_VIEW_IMPL_GET_OR_RETURN(smartData, impl);
+
+ int width, height;
+ if (angle == 0 || angle == 180) {
+ width = WebCore::getDefaultScreenResolution().width();
+ height = WebCore::getDefaultScreenResolution().height() + 100;
+ }
+ if (angle == 90 || angle == 270) {
+ width = WebCore::getDefaultScreenResolution().height();
+ height = WebCore::getDefaultScreenResolution().width() + 100;
+ }
+
+ impl->pageProxy->drawingArea()->setSize(IntSize(width, height), IntSize());
+ impl->pageClient->setWaitFrameOfNewViewortSize(true);
+ ewk_view_suspend(ewkView);
+ impl->pageClient->updateViewportSize(IntSize(width, height), angle);
+#endif
+}
+
+#if ENABLE(TIZEN_PRERENDERING_FOR_ROTATION)
+void ewkViewRotatePrepared(Evas_Object* ewkView)
+{
+ evas_object_smart_callback_call(ewkView, "rotate,prepared", 0);
+}
+#endif
+