From: Hyeonji Kim Date: Tue, 1 Oct 2013 11:56:43 +0000 (+0900) Subject: Use contents scale even if the layer's transform is not affine X-Git-Tag: 2.2.1_release~158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6e41afd6ba9d278058aa5bc1e591c5e74e9e5c4;p=framework%2Fweb%2Fwebkit-efl.git Use contents scale even if the layer's transform is not affine [Title] Use contents scale even if the layer's transform is not affine [Issue#] P131001-01728 [Problem] The image of 3D transform layer is not clear [Cause] Always use contents scale of 1 when the layer's transform is not affine [Solution] Modify to use contents scale even if the layer's transform is not affine Change-Id: I22475292d3517ff7a4f97154b1c5301cd6eb3624 --- diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h index 59fcd28..b63bcda 100644 --- a/Source/WTF/wtf/Platform.h +++ b/Source/WTF/wtf/Platform.h @@ -611,6 +611,7 @@ #define WTF_USE_UI_SIDE_COMPOSITING 1 /* Youngtaeck Song(youngtaeck.song@samsung.com) : Compositing on the UI-process in WebKit2 */ #define ENABLE_TIZEN_CANVAS_GRAPHICS_SURFACE 1 /* Heejin Chung(heejin.r.chung@samsung.com) : WebGL Based on GraphicsSurface */ #define ENABLE_TIZEN_SET_INITIAL_COLOR_OF_WEBVIEW_EVAS_IMAGE 1 /* Youngtaeck Song(youngtaeck.song@samsung.com) : Set initial color of webview evas image */ +#define ENABLE_TIZEN_USE_CONTENTS_SCALE 1 /* Hyeonji Kim(hyeonji.kim@samsung.com) : use contents scale even if the layer's transform is not affine */ #endif #define ENABLE_TIZEN_WEBKIT2_DDK_CHECK 1 /* JungJik Lee(jungjik.lee@samsung.com) : Fail in initialzing view when No DDK installed */ diff --git a/Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp b/Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp old mode 100755 new mode 100644 index 3a43f2c..5ce79e6 --- a/Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp +++ b/Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp @@ -1046,8 +1046,10 @@ bool WebGraphicsLayer::selfOrAncestorHaveNonAffineTransforms() if (m_animations.hasActiveAnimationsOfType(AnimatedPropertyWebkitTransform)) return true; +#if !ENABLE(TIZEN_USE_CONTENTS_SCALE) if (!m_layerTransform.combined().isAffine()) return true; +#endif return false; }