#define ENABLE_TIZEN_PREVENT_CRASH_OF_UI_SIDE_ANIMATION 1 /* Hurnjoo Lee(hurnjoo.lee@samsung.com) : Prevent crashes of UI side animation */
#define ENABLE_TIZEN_WEBKIT2_PRE_RENDERING_WITH_DIRECTIVITY 1 /*JungJik Lee(jungjik.lee@samsung.com : Calculates cover-rect with trajectory vector scalar value to consider directivity. */
#define ENABLE_TIZEN_CSS_OVERFLOW_CLIPPING_BACKING_STORE 0 /* JungJik Lee(jungjik.lee@samsung.com) : Clipping BackingStore off if parent layer is css overflow hidden */
+#define ENABLE_TIZEN_USE_FIXED_SCALE_ANIMATION 1 /* JungJik Lee(jungjik.lee@samsung.com) : use fixed scale if the layer is animating */
#if ENABLE(TIZEN_RUNTIME_BACKEND_SELECTION)
#define TIZEN_VIRTUAL virtual
#else
#endif
, m_webGraphicsLayerClient(0)
, m_contentsScale(1)
+#if ENABLE(TIZEN_USE_FIXED_SCALE_ANIMATION)
+ , m_fixedAnimationScale(1)
+#endif
, m_canvasPlatformLayer(0)
, m_animationStartedTimer(this, &WebGraphicsLayer::animationStartedTimerFired)
#if ENABLE(TIZEN_CSS_OVERFLOW_SCROLL_SCROLLBAR)
void WebGraphicsLayer::setContentsScale(float scale)
{
+#if ENABLE(TIZEN_USE_FIXED_SCALE_ANIMATION)
+ if (!m_animations.hasActiveAnimationsOfType(AnimatedPropertyWebkitTransform))
+ m_fixedAnimationScale = scale;
+#endif
+
m_contentsScale = scale;
adjustContentsScale();
}
float WebGraphicsLayer::effectiveContentsScale()
{
+#if ENABLE(TIZEN_USE_FIXED_SCALE_ANIMATION)
+ if (m_animations.hasActiveAnimationsOfType(AnimatedPropertyWebkitTransform))
+ return m_fixedAnimationScale;
+#endif
+
return selfOrAncestorHaveNonAffineTransforms() ? 1 : m_contentsScale;
}
OwnPtr<WebCore::TiledBackingStore> m_mainBackingStore;
OwnPtr<WebCore::TiledBackingStore> m_previousBackingStore;
float m_contentsScale;
+#if ENABLE(TIZEN_USE_FIXED_SCALE_ANIMATION)
+ float m_fixedAnimationScale;
+#endif
#if ENABLE(TIZEN_CSS_OVERFLOW_SCROLL_ACCELERATION)
IntRect m_visibleRect;