<?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>52558</bug_id>
          
          <creation_ts>2011-01-17 00:42:34 -0800</creation_ts>
          <short_desc>ShadowElement::m_shadowParent should be removed</short_desc>
          <delta_ts>2011-01-23 23:32:22 -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>PC</rep_platform>
          <op_sys>OS X 10.5</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>
          <dependson>48698</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hajime Morrita">morrita</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>dominicc</cc>
    
    <cc>rolandsteiner</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>335192</commentid>
    <comment_count>0</comment_count>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2011-01-17 00:42:34 -0800</bug_when>
    <thetext>ShadowElement::m_shadowParent is used by anyone and there is Node::shadowParent().
Currently m_shadowParent is served for some lifecycle trick, but we shouldn&apos;t need that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>337149</commentid>
    <comment_count>1</comment_count>
      <attachid>79556</attachid>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2011-01-19 23:32:26 -0800</bug_when>
    <thetext>Created attachment 79556
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>337150</commentid>
    <comment_count>2</comment_count>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2011-01-19 23:33:09 -0800</bug_when>
    <thetext>Hi Dimitri, could you take a look? I just removed an unused variable. Tests passed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>337201</commentid>
    <comment_count>3</comment_count>
      <attachid>79556</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-01-20 02:26:45 -0800</bug_when>
    <thetext>Comment on attachment 79556
Patch

OK.  Do we need to ref the parent?  That&apos;s the only side-effect of this change I can see.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>337245</commentid>
    <comment_count>4</comment_count>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2011-01-20 04:02:12 -0800</bug_when>
    <thetext>Hi Eric, thank you for taking a look!
I&apos;ll land this soon.

(In reply to comment #3)
&gt; (From update of attachment 79556 [details])
&gt; OK.  Do we need to ref the parent?  That&apos;s the only side-effect of this change I can see.
No, the shadow root belongs the host(parent), and the host has normal lifecycle as usual DOM node.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>337246</commentid>
    <comment_count>5</comment_count>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2011-01-20 04:08:27 -0800</bug_when>
    <thetext>Committed r76221: &lt;http://trac.webkit.org/changeset/76221&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338597</commentid>
    <comment_count>6</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2011-01-22 09:54:07 -0800</bug_when>
    <thetext>For what it&apos;s worth, we should remove ShadowElement entirely. Its purpose is very limited already, and it&apos;ll become completely useless once we convert all elements that rely on it to new shadow DOM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338857</commentid>
    <comment_count>7</comment_count>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2011-01-23 23:32:22 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; For what it&apos;s worth, we should remove ShadowElement entirely. Its purpose is very limited already, and it&apos;ll become completely useless once we convert all elements that rely on it to new shadow DOM.
Yes. I think we should do it after shadow migration is finished.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>79556</attachid>
            <date>2011-01-19 23:32:26 -0800</date>
            <delta_ts>2011-01-20 02:26:45 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-52558-20110120163224.patch</filename>
            <type>text/plain</type>
            <size>1386</size>
            <attacher name="Hajime Morrita">morrita</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCBiZDkxZDFhODU2OGU2MjgzNWQ4YjllMWY4N2E2OTE1MDgwYzhmM2IzLi5j
OTE5NTM0ZTQ1ODM2NWE0NGJkMDAxODM5NjcxODQ3MTRlNGU4N2NkIDEwMDY0NAotLS0gYS9Tb3Vy
Y2UvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0x
LDMgKzEsMTUgQEAKKzIwMTEtMDEtMTkgIE1PUklUQSBIYWppbWUgIDxtb3JyaXRhQGdvb2dsZS5j
b20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgU2hh
ZG93RWxlbWVudDo6bV9zaGFkb3dQYXJlbnQgc2hvdWxkIGJlIHJlbW92ZWQKKyAgICAgICAgaHR0
cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTUyNTU4CisKKyAgICAgICAgTm8g
bmV3IHRlc3RzLiBObyBiZWhhdmlvcmFsIGNoYW5nZS4KKworICAgICAgICAqIHJlbmRlcmluZy9T
aGFkb3dFbGVtZW50Lmg6CisgICAgICAgIChXZ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zaGFkb3dQYXJlbnQ7CiB9OwogCiB0ZW1wbGF0ZTxj
bGFzcyBCYXNlRWxlbWVudD4K
</data>
<flag name="review"
          id="70967"
          type_id="1"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>