[NUI] Support CornerRadius in WebView
authorsunghyun kim <scholb.kim@samsung.com>
Tue, 23 Jan 2024 10:24:57 +0000 (19:24 +0900)
committertscholb <scholb.kim@samsung.com>
Wed, 24 Jan 2024 02:21:28 +0000 (11:21 +0900)
this patch supports cornerRadius in WebView
refer to : https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/304770/

src/Tizen.NUI/src/public/WebView/WebView.cs

index 4a10a3c..ee35d7f 100755 (executable)
@@ -2378,6 +2378,23 @@ namespace Tizen.NUI.BaseComponents
             return ret;
         }
 
+        internal override void ApplyCornerRadius()
+        {
+            base.ApplyCornerRadius();
+
+            if (backgroundExtraData == null) 
+            {
+                return;
+            }
+
+            // Update corner radius properties to webView by ActionUpdateProperty
+            if (backgroundExtraData.CornerRadius != null)
+            {
+                Interop.View.InternalUpdateVisualPropertyVector4(this.SwigCPtr, WebView.Property.Url, Visual.Property.CornerRadius, Vector4.getCPtr(backgroundExtraData.CornerRadius));
+            }
+            Interop.View.InternalUpdateVisualPropertyInt(this.SwigCPtr, WebView.Property.Url, Visual.Property.CornerRadiusPolicy, (int)backgroundExtraData.CornerRadiusPolicy);
+        }
+
         private void OnPageLoadStarted(string pageUrl)
         {
             WebViewPageLoadEventArgs e = new WebViewPageLoadEventArgs();