<?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>124396</bug_id>
          
          <creation_ts>2013-11-15 00:12:50 -0800</creation_ts>
          <short_desc>Few webpages flicker(shift in offset) while scrolling</short_desc>
          <delta_ts>2014-02-13 03:45:43 -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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>118548</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>125943</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Praveen Jadhav">praveen.j</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cmarcelo</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dev_sachin</cc>
    
    <cc>enmi.lee</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>kenneth</cc>
    
    <cc>luiz</cc>
    
    <cc>marcelo.lira</cc>
    
    <cc>noam</cc>
    
    <cc>sergio</cc>
    
    <cc>zeno</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>950977</commentid>
    <comment_count>0</comment_count>
    <who name="Praveen Jadhav">praveen.j</who>
    <bug_when>2013-11-15 00:12:50 -0800</bug_when>
    <thetext>In a few webpages where content scale factor is not equal to 1, UI position of content(visible rectangle offset) in webpage is saved after scaling. So, the display offset and content position as saved in WebView are not equal. Whenever there is a request to update viewsize port, the values stored as content position are passed for displaying without rescaling it back. This changes display offset and hence flickers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>950979</commentid>
    <comment_count>1</comment_count>
      <attachid>217019</attachid>
    <who name="Praveen Jadhav">praveen.j</who>
    <bug_when>2013-11-15 00:21:41 -0800</bug_when>
    <thetext>Created attachment 217019
P</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>950981</commentid>
    <comment_count>2</comment_count>
      <attachid>217021</attachid>
    <who name="Praveen Jadhav">praveen.j</who>
    <bug_when>2013-11-15 00:23:37 -0800</bug_when>
    <thetext>Created attachment 217021
Patch

Patch to recalculate WebPage viewsize port with content scalefactor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>952004</commentid>
    <comment_count>3</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2013-11-19 01:41:30 -0800</bug_when>
    <thetext>CC&apos;ing Noam. This patch needs to be reviewed by Noam.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>952005</commentid>
    <comment_count>4</comment_count>
    <who name="Noam Rosenthal">noam</who>
    <bug_when>2013-11-19 02:03:54 -0800</bug_when>
    <thetext>Marcelo, does this seem right? It seems sensible to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>952010</commentid>
    <comment_count>5</comment_count>
    <who name="Sergio Correia (qrwteyrutiyoup)">sergio</who>
    <bug_when>2013-11-19 02:41:00 -0800</bug_when>
    <thetext>Pra(In reply to comment #0)
&gt; In a few webpages where content scale factor is not equal to 1, UI position of content(visible rectangle offset) in webpage is saved after scaling. So, the display offset and content position as saved in WebView are not equal. Whenever there is a request to update viewsize port, the values stored as content position are passed for displaying without rescaling it back. This changes display offset and hence flickers.

Would you have any website to give as an example, that demonstrate this problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>952011</commentid>
    <comment_count>6</comment_count>
    <who name="Praveen Jadhav">praveen.j</who>
    <bug_when>2013-11-19 02:50:59 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; Pra(In reply to comment #0)
&gt; &gt; In a few webpages where content scale factor is not equal to 1, UI position of content(visible rectangle offset) in webpage is saved after scaling. So, the display offset and content position as saved in WebView are not equal. Whenever there is a request to update viewsize port, the values stored as content position are passed for displaying without rescaling it back. This changes display offset and hence flickers.
&gt; Would you have any website to give as an example, that demonstrate this problem?

I was going through http://www.rediff.com. While scrolling, we can observe blinking effect mentioned in this bug. I have tested this patch on EFL port and it seems to have fixed the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>952043</commentid>
    <comment_count>7</comment_count>
    <who name="Sergio Correia (qrwteyrutiyoup)">sergio</who>
    <bug_when>2013-11-19 05:29:22 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; Pra(In reply to comment #0)
&gt; &gt; &gt; In a few webpages where content scale factor is not equal to 1, UI position of content(visible rectangle offset) in webpage is saved after scaling. So, the display offset and content position as saved in WebView are not equal. Whenever there is a request to update viewsize port, the values stored as content position are passed for displaying without rescaling it back. This changes display offset and hence flickers.
&gt; &gt; Would you have any website to give as an example, that demonstrate this problem?
&gt; 
&gt; I was going through http://www.rediff.com. While scrolling, we can observe blinking effect mentioned in this bug. I have tested this patch on EFL port and it seems to have fixed the problem.

Thanks. I am going to test it on EFL and Nix Minibrowser (as we also use Coordinated Graphics). I have added EunMi Lee, since his patch at https://bugs.webkit.org/show_bug.cgi?id=118548 is almost identical to this one. He might have insights on this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>952297</commentid>
    <comment_count>8</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2013-11-19 16:21:48 -0800</bug_when>
    <thetext>(In reply to comment #7)

&gt; Thanks. I am going to test it on EFL and Nix Minibrowser (as we also use Coordinated Graphics). I have added EunMi Lee, since his patch at https://bugs.webkit.org/show_bug.cgi?id=118548 is almost identical to this one. He might have insights on this issue.

Yes, this patch seems same one with Eunmi&apos;s patch in Bug 118548. Eunmi, what do you think ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>952399</commentid>
    <comment_count>9</comment_count>
    <who name="Eunmi Lee">enmi.lee</who>
    <bug_when>2013-11-19 20:53:50 -0800</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; 
&gt; &gt; Thanks. I am going to test it on EFL and Nix Minibrowser (as we also use Coordinated Graphics). I have added EunMi Lee, since his patch at https://bugs.webkit.org/show_bug.cgi?id=118548 is almost identical to this one. He might have insights on this issue.
&gt; 
&gt; Yes, this patch seems same one with Eunmi&apos;s patch in Bug 118548. Eunmi, what do you think ?

Yes, this patch is same with Bug 118548.
The m_contentPosition(= contentPosition()) is scaled value with contentsScaleFactor, so we have to be careful to use it.

The transformToScene() also should be fixed with same reason, so I think it is better to merge Bug 118548.

Noam, would you review Bug 118548? I&apos;ve fixed for your comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>954383</commentid>
    <comment_count>10</comment_count>
    <who name="Praveen Jadhav">praveen.j</who>
    <bug_when>2013-11-26 16:51:29 -0800</bug_when>
    <thetext>Lets follow up this issue in https://bugs.webkit.org/show_bug.cgi?id=118548. Patch in Bug 118548 consider more scenarios than that proposed in this bug.

*** This bug has been marked as a duplicate of bug 118548 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>980212</commentid>
    <comment_count>11</comment_count>
      <attachid>217021</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-02-13 03:45:43 -0800</bug_when>
    <thetext>Comment on attachment 217021
Patch

Cleared review? from attachment 217021 so that this bug does not appear in http://webkit.org/pending-review.  If you would like this patch reviewed, please attach it to a new bug (or re-open this bug before marking it for review again).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>217019</attachid>
            <date>2013-11-15 00:21:41 -0800</date>
            <delta_ts>2013-11-15 00:23:37 -0800</delta_ts>
            <desc>P</desc>
            <filename>WebKit2-124396.txt</filename>
            <type>text/plain</type>
            <size>1971</size>
            <attacher name="Praveen Jadhav">praveen.j</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDE1OTMyOCkKKysrIFNvdXJjZS9XZWJLaXQyL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE3IEBACisyMDEzLTExLTE1ICBQcmF2ZWVu
IFIgSmFkaGF2ICA8cHJhdmVlbi5qQHNhbXN1bmcuY29tPgorCisgICAgICAgIEZldyB3ZWJwYWdl
cyBmbGlja2VyKHNoaWZ0IGluIG9mZnNldCkgd2hpbGUgc2Nyb2xsaW5nCisgICAgICAgIGh0dHBz
Oi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMjQzOTYKKworICAgICAgICBSZXZp
ZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBPZmZzZXQgc2hvdWxkIGJlIHJlY2Fs
Y3VsYXRlZCB3aXRoIGNvbnRlbnRTY2FsZUZhY3RvciB3aGlsZQorICAgICAgICB1cGRhdGluZyB2
aWV3cG9ydC4gVGhpcyB3aWxsIGVuc3VyZSBubyBmbGlja2VyaW5nIGluIGNhc2Ugb2YKKyAgICAg
ICAgd2VicGFnZXMgd2l0aCBjb250ZW50U2NhbGVGYWN0b3Igb3RoZXIgdGhhbiAxLgorCisgICAg
ICAgICogVUlQcm9jZXNzL0Nvb3JkaW5hdGVkR3JhcGhpY3MvV2ViVmlldy5jcHA6CisgICAgICAg
IChXZWJLaXQ6OldlYlZpZXc6OnVwZGF0ZVZpZXdwb3J0U2l6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IHZpc2li
bGVDb250ZW50c1JlY3QoY29udGVudFBvc2l0aW9uKCksIHZpc2libGVDb250ZW50c1NpemUoKSk7
CisgICAgICAgIEZsb2F0UG9pbnQgdWlQb3NpdGlvbihjb250ZW50UG9zaXRpb24oKSk7CisgICAg
ICAgIHVpUG9zaXRpb24uc2NhbGUoMSAvIGNvbnRlbnRTY2FsZUZhY3RvcigpLCAxIC8gY29udGVu
dFNjYWxlRmFjdG9yKCkpOworICAgICAgICBGbG9hdFJlY3QgdmlzaWJsZUNvbnRlbnRzUmVjdCh1
aVBvc2l0aW9uLCB2aXNpYmxlQ29udGVudHNTaXplKCkpOwogICAgICAgICB2aXNpYmxlQ29udGVu
dHNSZWN0LmludGVyc2VjdChGbG9hdFJlY3QoRmxvYXRQb2ludCgpLCBjb250ZW50c1NpemUoKSkp
OwogICAgICAgICBkcmF3aW5nQXJlYS0+c2V0VmlzaWJsZUNvbnRlbnRzUmVjdCh2aXNpYmxlQ29u
dGVudHNSZWN0LCBGbG9hdFBvaW50KCkpOwogICAgIH0K
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>217021</attachid>
            <date>2013-11-15 00:23:37 -0800</date>
            <delta_ts>2014-02-13 03:45:43 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>WebKit2-124396.txt</filename>
            <type>text/plain</type>
            <size>1971</size>
            <attacher name="Praveen Jadhav">praveen.j</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDE1OTMyOCkKKysrIFNvdXJjZS9XZWJLaXQyL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE3IEBACisyMDEzLTExLTE1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Y3QoRmxvYXRQb2ludCgpLCBjb250ZW50c1NpemUoKSkp
OwogICAgICAgICBkcmF3aW5nQXJlYS0+c2V0VmlzaWJsZUNvbnRlbnRzUmVjdCh2aXNpYmxlQ29u
dGVudHNSZWN0LCBGbG9hdFBvaW50KCkpOwogICAgIH0K
</data>

          </attachment>
      

    </bug>

</bugzilla>