<?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>118555</bug_id>
          
          <creation_ts>2013-07-11 02:12:20 -0700</creation_ts>
          <short_desc>Do not update compositing layers when the style is forced from JavaScript</short_desc>
          <delta_ts>2013-07-11 11:12:56 -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>Layout and Rendering</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>84393</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Chiculita">achicu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>907571</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Chiculita">achicu</who>
    <bug_when>2013-07-11 02:12:20 -0700</bug_when>
    <thetext>Some websites trigger many relayouts from JS. Each time the layout is triggered, Document::recalcStyle will call view()-&gt;updateCompositingLayersAfterStyleChange(). That happens even if we are only going to repaint only once when the JS execution is finished. However, there&apos;s no need to update the composited layers to answer questions from JS, so we could postpone it until the very last moment and compute the layers only once.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>907572</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Chiculita">achicu</who>
    <bug_when>2013-07-11 02:17:06 -0700</bug_when>
    <thetext>The issue is visible on http://www.milwaukeepolicenews.com . Scrolling is really bad because the JavaScript listens for scroll events and updates the layout every single frame. There are at least 10-15 style updates for each frame and each update will recalculate the compositing requirements of the layers.

RenderLayerCompositor::updateCompositingLayers takes 96% of the total time while scrolling the document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>907718</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2013-07-11 11:12:56 -0700</bug_when>
    <thetext>Yep, aware of this. We have another bug:84393

*** This bug has been marked as a duplicate of bug 84393 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>