WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
136902
Have LiveNodeLists / HTMLCollections's elementMatches() take a reference
https://bugs.webkit.org/show_bug.cgi?id=136902
Summary
Have LiveNodeLists / HTMLCollections's elementMatches() take a reference
Chris Dumez
Reported
2014-09-17 18:00:33 PDT
Have LiveNodeLists / HTMLCollections's elementMatches() take a const reference instead of a pointer. The Element argument can never be null.
Attachments
Patch
(25.85 KB, patch)
2014-09-17 18:10 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2014-09-17 18:10:07 PDT
Created
attachment 238276
[details]
Patch
Darin Adler
Comment 2
2014-09-18 09:28:13 PDT
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.
WebKit Commit Bot
Comment 3
2014-09-18 09:32:50 PDT
Comment on
attachment 238276
[details]
Patch Clearing flags on attachment: 238276 Committed
r173723
: <
http://trac.webkit.org/changeset/173723
>
WebKit Commit Bot
Comment 4
2014-09-18 09:32:54 PDT
All reviewed patches have been landed. Closing bug.
Chris Dumez
Comment 5
2014-09-18 10:19:33 PDT
(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.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug