<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>76165</bug_id>
          
          <creation_ts>2012-01-12 03:59:40 -0800</creation_ts>
          <short_desc>[EFL] Add visible field into ewk_tiled_backing_store&apos;s data.</short_desc>
          <delta_ts>2012-01-16 05:26:54 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit EFL</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="KwangHyuk">hyuki.kim</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gyuyoung.kim</cc>
    
    <cc>lucas.de.marchi</cc>
    
    <cc>rakuco</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>534725</commentid>
    <comment_count>0</comment_count>
    <who name="KwangHyuk">hyuki.kim</who>
    <bug_when>2012-01-12 03:59:40 -0800</bug_when>
    <thetext>Using of evas_object_visible_get() API can&apos;t gurantee the correctness of evas_object&apos;s visible status if it&apos;s called inside of evas_object&apos;s smart_show() method.

From the EFL&apos;s evas_object_show() API&apos;s implementation, I could see the reason why.

EAPI void
evas_object_show(Evas_Object *obj)
{
   MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
   return;
   MAGIC_CHECK_END();
   if (obj-&gt;delete_me) return;
   if (evas_object_intercept_call_show(obj)) return;
   if (obj-&gt;smart.smart)
     {
       if (obj-&gt;smart.smart-&gt;smart_class-&gt;show)
         obj-&gt;smart.smart-&gt;smart_class-&gt;show(obj); // This calls object&apos;s smart_show() method. e.g) _ewk_tiled_backing_store_smart_show()
     }
   if (obj-&gt;cur.visible)
     {
        return;
     }
   obj-&gt;cur.visible = 1; // This will set the visibility of object and it is used by evas_object_visible_get() API.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>534732</commentid>
    <comment_count>1</comment_count>
      <attachid>122210</attachid>
    <who name="KwangHyuk">hyuki.kim</who>
    <bug_when>2012-01-12 04:11:24 -0800</bug_when>
    <thetext>Created attachment 122210
Patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>535465</commentid>
    <comment_count>2</comment_count>
      <attachid>122210</attachid>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2012-01-12 23:23:55 -0800</bug_when>
    <thetext>Comment on attachment 122210
Patch.

Looks OK. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>535533</commentid>
    <comment_count>3</comment_count>
      <attachid>122210</attachid>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2012-01-13 02:04:27 -0800</bug_when>
    <thetext>Comment on attachment 122210
Patch.

r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>535562</commentid>
    <comment_count>4</comment_count>
      <attachid>122210</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-01-13 03:25:22 -0800</bug_when>
    <thetext>Comment on attachment 122210
Patch.

Clearing flags on attachment: 122210

Committed r104915: &lt;http://trac.webkit.org/changeset/104915&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>535563</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-01-13 03:25:27 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>535667</commentid>
    <comment_count>6</comment_count>
      <attachid>122210</attachid>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-01-13 07:39:54 -0800</bug_when>
    <thetext>Comment on attachment 122210
Patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=122210&amp;action=review

&gt; Source/WebKit/efl/ChangeLog:10
&gt; +        Using of evas_object_visible_get() API can&apos;t gurantee the correctness of
&gt; +        evas_object&apos;s visible status if it&apos;s called inside of evas_object&apos;s
&gt; +        smart_show() method.

This sounds weird. What kind of problems were you having, and couldn&apos;t they be solved if you call the parent show/hide functions in your smart_{show,hide} _before_ the functions enabling/disabling rendering?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>536306</commentid>
    <comment_count>7</comment_count>
    <who name="KwangHyuk">hyuki.kim</who>
    <bug_when>2012-01-15 16:59:51 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; (From update of attachment 122210 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=122210&amp;action=review
&gt; 
&gt; &gt; Source/WebKit/efl/ChangeLog:10
&gt; &gt; +        Using of evas_object_visible_get() API can&apos;t gurantee the correctness of
&gt; &gt; +        evas_object&apos;s visible status if it&apos;s called inside of evas_object&apos;s
&gt; &gt; +        smart_show() method.
&gt; 
&gt; This sounds weird. What kind of problems were you having, and couldn&apos;t they be solved if you call the parent show/hide functions in your smart_{show,hide} _before_ the functions enabling/disabling rendering?

for example, If any API which is using evas_object_visible_getUI provide unexpected behavior if it would be called inside of smart_show api.

I had already checked the case you suggested too, but it wasn&apos;t effective  either. but, let me check it one more time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>536380</commentid>
    <comment_count>8</comment_count>
    <who name="KwangHyuk">hyuki.kim</who>
    <bug_when>2012-01-15 23:27:58 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; (From update of attachment 122210 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=122210&amp;action=review
&gt; 
&gt; &gt; Source/WebKit/efl/ChangeLog:10
&gt; &gt; +        Using of evas_object_visible_get() API can&apos;t gurantee the correctness of
&gt; &gt; +        evas_object&apos;s visible status if it&apos;s called inside of evas_object&apos;s
&gt; &gt; +        smart_show() method.
&gt; 
&gt; This sounds weird. What kind of problems were you having, and couldn&apos;t they be solved if you call the parent show/hide functions in your smart_{show,hide} _before_ the functions enabling/disabling rendering?

Double check was done.
No significant effect from change calling position of parent show/hide function.

I have also checked the return value as follows.

static void _ewk_tiled_backing_store_smart_show(Evas_Object* ewkBackingStore)
{
    printf(&quot;visible =  %d in \n&quot;,evas_object_visible_get(ewkBackingStore));
    ewk_tiled_backing_store_enable_render(ewkBackingStore);
    _parent_sc.show(ewkBackingStore);
    printf(&quot;visible =  %d out \n&quot;,evas_object_visible_get(ewkBackingStore));
}

AFAIK, as parent&apos;s methods are just for smart clipped, it calls evas_object_smart_clipped_smart_show() or hide().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>536498</commentid>
    <comment_count>9</comment_count>
    <who name="Raphael Kubo da Costa (:rakuco)">rakuco</who>
    <bug_when>2012-01-16 05:26:54 -0800</bug_when>
    <thetext>(In reply to comment #8)
&gt; I have also checked the return value as follows.
&gt; 
&gt; static void _ewk_tiled_backing_store_smart_show(Evas_Object* ewkBackingStore)
&gt; {
&gt;     printf(&quot;visible =  %d in \n&quot;,evas_object_visible_get(ewkBackingStore));
&gt;     ewk_tiled_backing_store_enable_render(ewkBackingStore);
&gt;     _parent_sc.show(ewkBackingStore);
&gt;     printf(&quot;visible =  %d out \n&quot;,evas_object_visible_get(ewkBackingStore));
&gt; }

Hmm, the problem is that this is called from evas_object_show() before it sets its own `cur.visible&apos; to 1. If these functions which have been patched are indeed called from the smart_show function, the flag added by the patch is probably needed. Thanks for the details.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>122210</attachid>
            <date>2012-01-12 04:11:24 -0800</date>
            <delta_ts>2012-01-13 07:39:54 -0800</delta_ts>
            <desc>Patch.</desc>
            <filename>0112_active.patch</filename>
            <type>text/plain</type>
            <size>4111</size>
            <attacher name="KwangHyuk">hyuki.kim</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQvZWZsL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQv
ZWZsL0NoYW5nZUxvZwppbmRleCA5OWI2MTAyLi5iOTExMTVmIDEwMDY0NAotLS0gYS9Tb3VyY2Uv
V2ViS2l0L2VmbC9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdC9lZmwvQ2hhbmdlTG9nCkBA
IC0xLDMgKzEsMjUgQEAKKzIwMTItMDEtMTIgIEt3YW5nSHl1ayBLaW0gIDxoeXVraS5raW1Ac2Ft
c3VuZy5jb20+CisKKyAgICAgICAgW0VGTF0gQWRkIHZpc2libGUgZmllbGQgaW50byBld2tfdGls
ZWRfYmFja2luZ19zdG9yZSdzIGRhdGEuCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3Jn
L3Nob3dfYnVnLmNnaT9pZD03NjE2NQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09Q
UyEpLgorCisgICAgICAgIFVzaW5nIG9mIGV2YXNfb2JqZWN0X3Zpc2libGVfZ2V0KCkgQVBJIGNh
bid0IGd1cmFudGVlIHRoZSBjb3JyZWN0bmVzcyBvZgorICAgICAgICBldmFzX29iamVjdCdzIHZp
c2libGUgc3RhdHVzIGlmIGl0J3MgY2FsbGVkIGluc2lkZSBvZiBldmFzX29iamVjdCdzCisgICAg
ICAgIHNtYXJ0X3Nob3coKSBtZXRob2QuCisgICAgICAgIFNvLCBhIHZpc2libGUgZmxhZyBmb3Ig
dGhlIGV3a190aWxlZF9iYWNraW5nX3N0b3JlIGlzIGFkZGVkLgorICAgICAgICBJbiBhZGRpdG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Bwcml2LT52aWV3LnZp
c2libGUgPSBmYWxzZTsKICAgICBld2tfdGlsZWRfYmFja2luZ19zdG9yZV9kaXNhYmxlX3JlbmRl
cihld2tCYWNraW5nU3RvcmUpOworICAgIF9ld2tfdGlsZWRfYmFja2luZ19zdG9yZV90aWxlX2Rp
c3NvY2lhdGVfYWxsKHByaXYpOwogICAgIF9wYXJlbnRfc2MuaGlkZShld2tCYWNraW5nU3RvcmUp
OwogfQogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>