RESOLVED FIXED Bug 77714
Implement querySelector on ShadowRoot
https://bugs.webkit.org/show_bug.cgi?id=77714
Summary Implement querySelector on ShadowRoot
Hayato Ito
Reported 2012-02-02 22:04:31 PST
Now ShadowRoot inherits DocumentFragment both in WebCore and IDL, but it seems there is some cases that its querySelector APIs does not work correctly. I'll attach a LayoutTest for error cases.
Attachments
FAIL case (2.63 KB, patch)
2012-02-02 22:09 PST, Hayato Ito
no flags
implement querySelector (4.83 KB, patch)
2012-02-06 01:25 PST, Hayato Ito
no flags
Patch for landing (4.82 KB, patch)
2012-02-06 18:36 PST, Hayato Ito
no flags
Hayato Ito
Comment 1 2012-02-02 22:09:45 PST
Created attachment 125259 [details] FAIL case
Hayato Ito
Comment 2 2012-02-06 01:25:18 PST
Created attachment 125594 [details] implement querySelector
Dimitri Glazkov (Google)
Comment 3 2012-02-06 09:10:35 PST
Comment on attachment 125594 [details] implement querySelector View in context: https://bugs.webkit.org/attachment.cgi?id=125594&action=review > Source/WebCore/dom/SelectorQuery.cpp:101 > +static inline bool nodeIsRootNodeOfTreeScope(Node* node) seems too long of a name. Maybe isTreeScopeRoot?
Hayato Ito
Comment 4 2012-02-06 18:30:19 PST
Thank you for the review. (In reply to comment #3) > (From update of attachment 125594 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=125594&action=review > > > Source/WebCore/dom/SelectorQuery.cpp:101 > > +static inline bool nodeIsRootNodeOfTreeScope(Node* node) > > seems too long of a name. Maybe isTreeScopeRoot? Sounds good. Let me rename it and land this patch.
Hayato Ito
Comment 5 2012-02-06 18:36:11 PST
Created attachment 125747 [details] Patch for landing
WebKit Review Bot
Comment 6 2012-02-06 20:47:32 PST
Comment on attachment 125747 [details] Patch for landing Clearing flags on attachment: 125747 Committed r106902: <http://trac.webkit.org/changeset/106902>
WebKit Review Bot
Comment 7 2012-02-06 20:47:38 PST
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.