<?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>151361</bug_id>
          
          <creation_ts>2015-11-17 14:38:56 -0800</creation_ts>
          <short_desc>Disable flattening the stage iframe of the graphics benchmark when running on iOS</short_desc>
          <delta_ts>2015-11-17 16:27:26 -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>Animations</component>
          <version>WebKit 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>1</everconfirmed>
          <reporter name="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Said Abou-Hallawa">sabouhallawa</assigned_to>
          <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dino</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1142668</commentid>
    <comment_count>0</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2015-11-17 14:38:56 -0800</bug_when>
    <thetext>This was happening because the iframe&apos;s width and height not fixed. When animating the particles, the size of the stage gets changed. On iOS the iframe, by default, gets flattened if its contents go beyond the its boundaries.

Also ensure the bouncing particles tests do not go outside the boundaries of the graphic benchmark stage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142673</commentid>
    <comment_count>1</comment_count>
      <attachid>265709</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2015-11-17 14:44:50 -0800</bug_when>
    <thetext>Created attachment 265709
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142674</commentid>
    <comment_count>2</comment_count>
      <attachid>265709</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-11-17 14:47:42 -0800</bug_when>
    <thetext>Comment on attachment 265709
Patch

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

&gt; PerformanceTests/Animometer/runner/resources/animometer.css:359
&gt; +    section#running &gt; #running-test &gt; iframe {

It&apos;s rare that you need both the element name and #id, since the #id should be enough. And is #running-test &gt; iframe not sufficient?

&gt; PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-particles.js:64
&gt;          // If particle is going to move off right side
&gt;          if (this._position.x + this._size.x &gt; this._stageSize.x) {
&gt; -            // If direction is East-South
&gt; +            // If direction is East-South, go West-South.
&gt;              if (this._angle &gt;= 0 &amp;&amp; this._angle &lt; Math.PI / 2)
&gt;                  this._angle = Math.PI - this._angle;
&gt; -            // If angle is East-North
&gt; +            // If angle is East-North, go West-North.
&gt;              else if (this._angle &gt; Math.PI / 2 * 3)
&gt;                  this._angle = this._angle - (this._angle - Math.PI / 2 * 3) * 2;
&gt; +            // Make sure the particle does not go outside the stage boundaries.
&gt; +            this._position.x = this._stageSize.x - this._size.x;
&gt;          }
&gt;          
&gt;          // If particle is going to move off left side
&gt;          if (this._position.x &lt; 0) {
&gt; -            // If angle is West-South
&gt; +            // If angle is West-South, go East-South.
&gt;              if (this._angle &gt; Math.PI / 2 &amp;&amp; this._angle &lt; Math.PI)
&gt;                  this._angle = Math.PI - this._angle;
&gt; -            // If angle is West-North
&gt; +            // If angle is West-North, go East-North.
&gt;              else if (this._angle &gt; Math.PI &amp;&amp; this._angle &lt; Math.PI / 2 * 3)
&gt;                  this._angle = this._angle + (Math.PI / 2 * 3 - this._angle) * 2;
&gt; +            // Make sure the particle does not go outside the stage boundaries.
&gt; +            this._position.x = 0;
&gt;          }
&gt;  
&gt;          // If particle is going to move off bottom side
&gt;          if (this._position.y + this._size.y &gt; this._stageSize.y) {
&gt; -            // If direction is South
&gt; +            // If direction is South, go North.
&gt;              if (this._angle &gt; 0 &amp;&amp; this._angle &lt; Math.PI)
&gt;                  this._angle = Math.PI * 2 - this._angle;
&gt; +            // Make sure the particle does not go outside the stage boundaries.
&gt; +            this._position.y = this._stageSize.y - this._size.y;
&gt;          }
&gt;  
&gt;          // If particle is going to move off top side
&gt;          if (this._position.y &lt; 0) {
&gt; -            // If direction is North
&gt; +            // If direction is North, go South.
&gt;              if (this._angle &gt; Math.PI &amp;&amp; this._angle &lt; Math.PI * 2)
&gt;                  this._angle = this._angle - (this._angle - Math.PI) * 2;
&gt; +            // Make sure the particle does not go outside the stage boundaries.
&gt; +            this._position.y = 0;
&gt;          }

Do you still need this bit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142704</commentid>
    <comment_count>3</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2015-11-17 16:18:23 -0800</bug_when>
    <thetext>Committed r192550: &lt;http://trac.webkit.org/changeset/192550&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142709</commentid>
    <comment_count>4</comment_count>
      <attachid>265709</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2015-11-17 16:27:26 -0800</bug_when>
    <thetext>Comment on attachment 265709
Patch

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

&gt;&gt; PerformanceTests/Animometer/runner/resources/animometer.css:359
&gt;&gt; +    section#running &gt; #running-test &gt; iframe {
&gt; 
&gt; It&apos;s rare that you need both the element name and #id, since the #id should be enough. And is #running-test &gt; iframe not sufficient?

Yes either of the element name to its id is sufficient. And even #running-test &gt; iframe is sufficient to select the iframe. But I found the css more readable when being very specific in writing the css selectors for in this stylesheet. For example, I can read the above line without returning to the HTML file like this:

This css rule is for the &lt;iframe&gt; element which is inside a frame container whose id is #running-test which is inside a &lt;section&gt; element whose id is #running.

I may not following the css best practices by doing that. So I will look for an example and file a bug to clean the animometer.css from this verbosity since the above rule is not the only which has this issue.

&gt;&gt; PerformanceTests/Animometer/tests/bouncing-particles/resources/bouncing-particles.js:64
&gt;&gt;          }
&gt; 
&gt; Do you still need this bit?

No is not needed to disable the flattening but it makes the animation looks cleaner. So I kept it.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>265709</attachid>
            <date>2015-11-17 14:44:50 -0800</date>
            <delta_ts>2015-11-17 14:47:42 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-151361-20151117144440.patch</filename>
            <type>text/plain</type>
            <size>4975</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">SW5kZXg6IFBlcmZvcm1hbmNlVGVzdHMvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFBlcmZvcm1h
bmNlVGVzdHMvQ2hhbmdlTG9nCShyZXZpc2lvbiAxOTI1NDApCisrKyBQZXJmb3JtYW5jZVRlc3Rz
L0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDIwIEBACisyMDE1LTExLTE3ICBT
YWlkIEFib3UtSGFsbGF3YSAgPHNhYm91aGFsbGF3YUBhcHBsZS5jb20+CisKKyAgICAgICAgRGlz
YWJsZSBmbGF0dGVuaW5nIHRoZSBzdGFnZSBpZnJhbWUgb2YgdGhlIGdyYXBoaWNzIGJlbmNobWFy
ayB3aGVuIHJ1bm5pbmcgb24gaU9TCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3No
b3dfYnVnLmNnaT9pZD0xNTEzNjEKKworICAgICAgICBSZXZpZXdlZ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H0KIAogICAgICAgICAvLyBJZiBwYXJ0aWNsZSBpcyBnb2luZyB0byBtb3ZlIG9m
ZiB0b3Agc2lkZQogICAgICAgICBpZiAodGhpcy5fcG9zaXRpb24ueSA8IDApIHsKLSAgICAgICAg
ICAgIC8vIElmIGRpcmVjdGlvbiBpcyBOb3J0aAorICAgICAgICAgICAgLy8gSWYgZGlyZWN0aW9u
IGlzIE5vcnRoLCBnbyBTb3V0aC4KICAgICAgICAgICAgIGlmICh0aGlzLl9hbmdsZSA+IE1hdGgu
UEkgJiYgdGhpcy5fYW5nbGUgPCBNYXRoLlBJICogMikKICAgICAgICAgICAgICAgICB0aGlzLl9h
bmdsZSA9IHRoaXMuX2FuZ2xlIC0gKHRoaXMuX2FuZ2xlIC0gTWF0aC5QSSkgKiAyOworICAgICAg
ICAgICAgLy8gTWFrZSBzdXJlIHRoZSBwYXJ0aWNsZSBkb2VzIG5vdCBnbyBvdXRzaWRlIHRoZSBz
dGFnZSBib3VuZGFyaWVzLgorICAgICAgICAgICAgdGhpcy5fcG9zaXRpb24ueSA9IDA7CiAgICAg
ICAgIH0KICAgICB9CiB9Cg==
</data>
<flag name="review"
          id="290734"
          type_id="1"
          status="+"
          setter="simon.fraser"
    />
          </attachment>
      

    </bug>

</bugzilla>