Summary: | getElementsByTagName() should take a qualifiedName in parameter | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||||||||||
Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||
Severity: | Normal | CC: | cdumez, commit-queue, darin, dbates, esprehn+autocc, gyuyoung.kim, kangil.han, rniwa, sam | ||||||||||||||
Priority: | P2 | Keywords: | WebExposed | ||||||||||||||
Version: | WebKit Nightly Build | ||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||
OS: | Unspecified | ||||||||||||||||
Bug Depends on: | 164705 | ||||||||||||||||
Bug Blocks: | |||||||||||||||||
Attachments: |
|
Description
Chris Dumez
2016-08-08 19:30:11 PDT
Created attachment 285894 [details]
WIP Patch
Created attachment 285896 [details]
WIP Patch
Created attachment 285897 [details]
WIP Patch
Created attachment 285913 [details]
Patch
This passes all the tests. I'll evaluate performance on Speedometer and Dromaeo today. (In reply to comment #5) > This passes all the tests. I'll evaluate performance on Speedometer and > Dromaeo today. Seems to be perf-neutral on Dromaeo DOM core. However, it looks like this is a 1-3% regression on Speedometer. I'll see what I can do to avoid regressing Speedometer. Created attachment 285920 [details]
Patch
Ok, this now seems to be perf-neutral on Speedometer as well. I'll closely monitor the perf bots when it lands though. Relevant spec discussion: https://github.com/whatwg/dom/issues/143 Comment on attachment 285920 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=285920&action=review > Source/WebCore/dom/AllDescendantsCollection.h:32 > +// Collection that matches all element descendants. I don't think this comment is necessary given the code below that says: CachedHTMLCollection<AllDescendantsCollection, > Source/WebCore/dom/AllDescendantsCollection.h:33 > +class AllDescendantsCollection final : public CachedHTMLCollection<AllDescendantsCollection, CollectionTypeTraits<AllDescendants>::traversalType> { Can we use this in HTMLAllCollection as well? Comment on attachment 285920 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=285920&action=review >> Source/WebCore/dom/AllDescendantsCollection.h:33 >> +class AllDescendantsCollection final : public CachedHTMLCollection<AllDescendantsCollection, CollectionTypeTraits<AllDescendants>::traversalType> { > > Can we use this in HTMLAllCollection as well? Do you mean have HTMLAllCollection subclass AllDescendantsCollection to avoid duplicating the elementMatches() implementation? Created attachment 286000 [details]
Patch
Comment on attachment 286000 [details] Patch Clearing flags on attachment: 286000 Committed r204441: <http://trac.webkit.org/changeset/204441> All reviewed patches have been landed. Closing bug. I monitored the perf bots and did not see any obvious regression from this change. |