RESOLVED FIXED 80501
Remove Node::isContentElement and Node::isShadowElement
https://bugs.webkit.org/show_bug.cgi?id=80501
Summary Remove Node::isContentElement and Node::isShadowElement
Shinya Kawanaka
Reported 2012-03-07 00:59:24 PST
We can remove these methods to use isInsertionPoint.
Attachments
Patch (11.75 KB, patch)
2012-03-07 03:06 PST, Shinya Kawanaka
no flags
Build test (13.08 KB, patch)
2012-03-07 18:55 PST, Shinya Kawanaka
no flags
Patch (8.89 KB, patch)
2012-03-07 21:47 PST, Shinya Kawanaka
no flags
Patch (10.05 KB, patch)
2012-03-07 22:50 PST, Shinya Kawanaka
no flags
Patch (9.36 KB, patch)
2012-03-07 22:56 PST, Shinya Kawanaka
no flags
Patch (7.86 KB, patch)
2012-03-07 23:00 PST, Shinya Kawanaka
no flags
Patch (7.75 KB, patch)
2012-03-07 23:48 PST, Shinya Kawanaka
morrita: review+
Shinya Kawanaka
Comment 1 2012-03-07 03:06:59 PST
Build Bot
Comment 2 2012-03-07 03:29:48 PST
Shinya Kawanaka
Comment 3 2012-03-07 04:21:22 PST
Ah, symbols are necessary? I'll add them after EWS building windows port.
WebKit Review Bot
Comment 4 2012-03-07 05:04:59 PST
Comment on attachment 130585 [details] Patch Attachment 130585 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11850020 New failing tests: fast/dom/shadow/content-element-user-agent-shadow.html
Gustavo Noronha (kov)
Comment 5 2012-03-07 05:15:46 PST
Dimitri Glazkov (Google)
Comment 6 2012-03-07 09:04:21 PST
Comment on attachment 130585 [details] Patch Looks great! please fix the build failures before landing.
Shinya Kawanaka
Comment 7 2012-03-07 18:55:01 PST
Created attachment 130747 [details] Build test
Shinya Kawanaka
Comment 8 2012-03-07 21:25:13 PST
I found this approach is very difficult now. We have RuntimeEnabledFeatures::shadowDOMEnabled() now, and the tagName of <content> is changed by the flag...
Shinya Kawanaka
Comment 9 2012-03-07 21:36:45 PST
(In reply to comment #8) > I found this approach is very difficult now. > We have RuntimeEnabledFeatures::shadowDOMEnabled() now, and the tagName of <content> is changed by the flag... I found I was wrong... The content elements in <details> and <summary> should always have HTMLNames::webkitShadowContentTag.
Shinya Kawanaka
Comment 10 2012-03-07 21:47:49 PST
Build Bot
Comment 11 2012-03-07 22:09:26 PST
Shinya Kawanaka
Comment 12 2012-03-07 22:50:51 PST
Shinya Kawanaka
Comment 13 2012-03-07 22:56:24 PST
Shinya Kawanaka
Comment 14 2012-03-07 23:00:00 PST
Hajime Morrita
Comment 15 2012-03-07 23:43:34 PST
Comment on attachment 130777 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=130777&action=review > Source/WebCore/html/shadow/InsertionPoint.h:54 > + virtual bool isInsertionPoint() const { return true; } OVERRIDE here. > Source/WebCore/html/shadow/InsertionPoint.h:77 > + // https://bugs.webkit.org/show_bug.cgi?id=78596 It looks we don't need something special for <shadow>.
Shinya Kawanaka
Comment 16 2012-03-07 23:48:57 PST
Shinya Kawanaka
Comment 17 2012-03-07 23:49:56 PST
(In reply to comment #16) > Created an attachment (id=130780) [details] > Patch (In reply to comment #15) > (From update of attachment 130777 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=130777&action=review > > > Source/WebCore/html/shadow/InsertionPoint.h:54 > > + virtual bool isInsertionPoint() const { return true; } > > OVERRIDE here. Done. > > > Source/WebCore/html/shadow/InsertionPoint.h:77 > > + // https://bugs.webkit.org/show_bug.cgi?id=78596 > > It looks we don't need something special for <shadow>. Done.
Hajime Morrita
Comment 18 2012-03-08 00:00:53 PST
Comment on attachment 130780 [details] Patch Looks OK.
Shinya Kawanaka
Comment 19 2012-03-08 00:22:32 PST
Note You need to log in before you can comment on or make changes to this bug.