RESOLVED FIXED 52558
ShadowElement::m_shadowParent should be removed
https://bugs.webkit.org/show_bug.cgi?id=52558
Summary ShadowElement::m_shadowParent should be removed
Hajime Morrita
Reported 2011-01-17 00:42:34 PST
ShadowElement::m_shadowParent is used by anyone and there is Node::shadowParent(). Currently m_shadowParent is served for some lifecycle trick, but we shouldn't need that.
Attachments
Patch (1.35 KB, patch)
2011-01-19 23:32 PST, Hajime Morrita
eric: review+
Hajime Morrita
Comment 1 2011-01-19 23:32:26 PST
Hajime Morrita
Comment 2 2011-01-19 23:33:09 PST
Hi Dimitri, could you take a look? I just removed an unused variable. Tests passed.
Eric Seidel (no email)
Comment 3 2011-01-20 02:26:45 PST
Comment on attachment 79556 [details] Patch OK. Do we need to ref the parent? That's the only side-effect of this change I can see.
Hajime Morrita
Comment 4 2011-01-20 04:02:12 PST
Hi Eric, thank you for taking a look! I'll land this soon. (In reply to comment #3) > (From update of attachment 79556 [details]) > OK. Do we need to ref the parent? That'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.
Hajime Morrita
Comment 5 2011-01-20 04:08:27 PST
Dimitri Glazkov (Google)
Comment 6 2011-01-22 09:54:07 PST
For what it's worth, we should remove ShadowElement entirely. Its purpose is very limited already, and it'll become completely useless once we convert all elements that rely on it to new shadow DOM.
Hajime Morrita
Comment 7 2011-01-23 23:32:22 PST
(In reply to comment #6) > For what it's worth, we should remove ShadowElement entirely. Its purpose is very limited already, and it'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.
Note You need to log in before you can comment on or make changes to this bug.