Fix SmartThings show white page issue 57/318257/2
authorchenhuasheng <hsheng.chen@samsung.com>
Thu, 26 Sep 2024 05:56:50 +0000 (13:56 +0800)
committerBot Blink <blinkbot@samsung.com>
Thu, 26 Sep 2024 08:41:04 +0000 (08:41 +0000)
Sometimes when resize callback come, the RWHV is
not create yet, this make the render view size set
not done, but the old rect is set, so next time need
to set it even the rect is the same.

reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/301037/

Change-Id: I4cadb8e83695a0fa036ae3f38e63efd359e03fc3
Signed-off-by: chenhuasheng <hsheng.chen@samsung.com>
ui/compositor/layer.cc

index 58f79e929073cf9243414d6588e4977cb994769f..f38d17f09f953fdf2af0742b5180c5e9c40334c7 100644 (file)
@@ -49,6 +49,9 @@
 #include "ui/gfx/geometry/transform.h"
 #include "ui/gfx/image/image_skia_rep.h"
 #include "ui/gfx/interpolated_transform.h"
+#if BUILDFLAG(IS_TIZEN_TV)
+#include "tizen_src/ewk/efl_integration/common/application_type.h"
+#endif
 
 namespace ui {
 namespace {
@@ -1541,8 +1544,13 @@ bool Layer::ConvertPointFromAncestor(const Layer* ancestor,
 
 void Layer::SetBoundsFromAnimation(const gfx::Rect& bounds,
                                    PropertyChangeReason reason) {
+#if BUILDFLAG(IS_TIZEN_TV)
+  if (bounds == bounds_ && (content::IsTIZENWRT() || content::IsHbbTV()))
+    return;
+#else
   if (bounds == bounds_)
     return;
+#endif
 
   const gfx::Rect old_bounds = bounds_;
   bounds_ = bounds;