RESOLVED FIXED 77608
Remove Element::ensureShadowRoot
https://bugs.webkit.org/show_bug.cgi?id=77608
Summary Remove Element::ensureShadowRoot
Shinya Kawanaka
Reported 2012-02-01 23:21:10 PST
We often use ensureShadowRoot, but most of them are not necessary, because a shadow root is created in Something::create method. If we can remove it, the code can be much clearer when supporting multiple shadow trees.
Attachments
Patch (2.68 KB, patch)
2012-08-07 21:01 PDT, Shinya Kawanaka
no flags
Shinya Kawanaka
Comment 1 2012-02-06 19:44:06 PST
ensureShadowRoot makes the life cycle of shadow root confusing. Most of shadow roots are created near the constructor, so let's remove it to make the life cycle of shadow root understanding.
Shinya Kawanaka
Comment 2 2012-02-06 19:52:00 PST
Let me mention that INPUT and MEDIA may create their shadow root in the non-constructor phase. So when adding shadow root to these elements, we should be careful.
Shinya Kawanaka
Comment 3 2012-02-06 20:03:57 PST
SVG and ValidationMessage also create shadow root in non-constructor phase...
Shinya Kawanaka
Comment 4 2012-07-10 21:22:33 PDT
To support Shadow DOM for all the elements, this should be fixed immediately...
Shinya Kawanaka
Comment 5 2012-08-07 21:01:39 PDT
Ryosuke Niwa
Comment 6 2012-08-07 23:05:20 PDT
Comment on attachment 157101 [details] Patch Yay! Less code.
WebKit Review Bot
Comment 7 2012-08-08 01:13:27 PDT
Comment on attachment 157101 [details] Patch Clearing flags on attachment: 157101 Committed r125007: <http://trac.webkit.org/changeset/125007>
WebKit Review Bot
Comment 8 2012-08-08 01:13:31 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.