<?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>114501</bug_id>
          
          <creation_ts>2013-04-12 03:32:12 -0700</creation_ts>
          <short_desc>AnimationController: set timer delay to 0.016 in the BlackBerry port</short_desc>
          <delta_ts>2013-04-15 03:28:42 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Alberto Garcia">berto</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>anilsson</cc>
    
    <cc>anlo</cc>
    
    <cc>cgarcia</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>xan.lopez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>874456</commentid>
    <comment_count>0</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-04-12 03:32:12 -0700</bug_when>
    <thetext>The BlackBerry is set to 60fps instead of 40.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>874457</commentid>
    <comment_count>1</comment_count>
      <attachid>197741</attachid>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-04-12 03:35:35 -0700</bug_when>
    <thetext>Created attachment 197741
Patch

This would be the trivial option, but I think anilsson has a better proposal, can you comment?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>874458</commentid>
    <comment_count>2</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-04-12 03:36:21 -0700</bug_when>
    <thetext>Updating bug title since it affects cross-platform code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>874460</commentid>
    <comment_count>3</comment_count>
    <who name="Arvid Nilsson">anilsson</who>
    <bug_when>2013-04-12 03:40:47 -0700</bug_when>
    <thetext>The thing I told berto about was: Another approach we have been discussing at BlackBerry is to hook up the AnimationController to the requestAnimationFrame mechanism. Then it would not have to use a Timer at all, and wouldn&apos;t have to hard code any timeout.

It would perhaps be good if we could prioritize the tasks performed when RAF fires, so that JS handlers fire first (so they can start/stop animations, modify DOM etc) and then the AnimationController gets to run its native handlers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>874461</commentid>
    <comment_count>4</comment_count>
    <who name="Arvid Nilsson">anilsson</who>
    <bug_when>2013-04-12 03:41:34 -0700</bug_when>
    <thetext>CC&apos;ing Simon for his input</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>874788</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2013-04-12 09:18:04 -0700</bug_when>
    <thetext>AnimationController does use requestAnimationFrame for CSS animations: bug 64591, if the platform supports them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>875561</commentid>
    <comment_count>6</comment_count>
    <who name="Arvid Nilsson">anilsson</who>
    <bug_when>2013-04-15 03:24:30 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; AnimationController does use requestAnimationFrame for CSS animations: bug 64591, if the platform supports them.

Thank you very much Simon - that&apos;s very useful! We can drop our local timer timeout tweak as soon as we pick up the fix for 64591.

Marking this as invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>875562</commentid>
    <comment_count>7</comment_count>
    <who name="Arvid Nilsson">anilsson</who>
    <bug_when>2013-04-15 03:28:42 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; The thing I told berto about was: Another approach we have been discussing at BlackBerry is to hook up the AnimationController to the requestAnimationFrame mechanism. Then it would not have to use a Timer at all, and wouldn&apos;t have to hard code any timeout.
&gt; 
&gt; It would perhaps be good if we could prioritize the tasks performed when RAF fires, so that JS handlers fire first (so they can start/stop animations, modify DOM etc) and then the AnimationController gets to run its native handlers.

It&apos;s interesting to see that the developers on bug #64591 chose to let the AnimationController animations fire first, and only then service JS animations. I&apos;m sure there&apos;s good arguments for doing it that way around, too.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>197741</attachid>
            <date>2013-04-12 03:35:35 -0700</date>
            <delta_ts>2013-04-12 03:35:35 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>114501.diff</filename>
            <type>text/plain</type>
            <size>1166</size>
            <attacher name="Alberto Garcia">berto</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCAzZjQzODY1Li42ZDc3NDJjNyAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNv
cmUvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEz
IEBACisyMDEzLTA0LTEyICBBbGJlcnRvIEdhcmNpYSAgPGFnYXJjaWFAaWdhbGlhLmNvbT4KKwor
ICAgICAgICBbQmxhY2tCZXJyeV0gQW5pbWF0aW9uQ29udHJvbGxlcjogc2V0IHRpbWVyIGRlbGF5
IHRvIDAuMDE2CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9p
ZD0xMTQ1MDEKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAg
ICAqIHBhZ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