| Summary: | Have LiveNodeLists / HTMLCollections's elementMatches() take a reference | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||
| Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue, darin, rniwa, sam | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Chris Dumez
2014-09-17 18:00:33 PDT
Created attachment 238276 [details]
Patch
Comment on attachment 238276 [details]
Patch
Seems fine. The choice of when to use const and when not to seems a little random, but everything in the patch seems to make things better, not worse.
Comment on attachment 238276 [details] Patch Clearing flags on attachment: 238276 Committed r173723: <http://trac.webkit.org/changeset/173723> All reviewed patches have been landed. Closing bug. (In reply to comment #2) > (From update of attachment 238276 [details]) > Seems fine. The choice of when to use const and when not to seems a little random, but everything in the patch seems to make things better, not worse. I made the argument const when possible, that is, everywhere except for the virtual elementMatches() because some of the implementation calls non-const getters on the Element. |