[Title] Fix the issue that the webprocess is suspended
[Issues] P130823-01978
[Problem] When animation works, the webProcess is suspended after showing javascript alert.
[Solution] Prevent calling of serviceScriptedAnimations while webprocess waits finish of javascript popup.
Change-Id: I11ab6ec3299326feb8b5e6f42532d6f5c19d21df
#if ENABLE(REQUEST_ANIMATION_FRAME) && !USE(REQUEST_ANIMATION_FRAME_TIMER) && !USE(REQUEST_ANIMATION_FRAME_DISPLAY_MONITOR)
// Make sure that any previously registered animation callbacks are being executed before we flush the layers.
m_lastAnimationServiceTime = WTF::monotonicallyIncreasingTime();
+#if ENABLE(TIZEN_WEBKIT2_ROTATION_WHILE_JAVASCRIPT_POPUP)
+ if (!WebProcess::shared().isWaitingForJavaScriptPopupFinished())
+ m_webPage->corePage()->mainFrame()->view()->serviceScriptedAnimations(convertSecondsToDOMTimeStamp(currentTime()));
+#else
m_webPage->corePage()->mainFrame()->view()->serviceScriptedAnimations(convertSecondsToDOMTimeStamp(currentTime()));
#endif
+#endif
// We lock the animations while performing layout, to avoid flickers caused by animations continuing in the UI process while
// the web process layout wants to cancel them.