<?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>106291</bug_id>
          
          <creation_ts>2013-01-07 20:00:06 -0800</creation_ts>
          <short_desc>[Meta][Shadow] Incremental distribution</short_desc>
          <delta_ts>2013-01-07 21:07:30 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</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>
          
          <blocked>103016</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Shinya Kawanaka">shinyak</reporter>
          <assigned_to name="Web Components Team">webcomponents-bugzilla</assigned_to>
          <cc>dominicc</cc>
    
    <cc>webcomponents-bugzilla</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>801951</commentid>
    <comment_count>0</comment_count>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2013-01-07 20:00:06 -0800</bug_when>
    <thetext>Currently when an element is added/removed to/from host element, whole distribution happens.
However, in some cases, we can skip such distribution. This will significantly improve ShadowDOM performance.

We assume that content does not have some kinds of select attribute (e.g. div:first-of-type, etc.) here.
if this assumption does not hold, it&apos;s safer to cause whole distribution.

When removing an element:
  we can just remove an element from distributed element.

When adding an element:
  find the first InsertionPoint the element will be distributed to, and add to it. (You have to care about node order.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>801989</commentid>
    <comment_count>1</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2013-01-07 21:07:30 -0800</bug_when>
    <thetext>We don’t know that this is a performance problem yet, and it will complicate the code. I would prefer to improve the quality of existing code first before embarking on this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>