WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
58460
childTypeAllowed() should be const
https://bugs.webkit.org/show_bug.cgi?id=58460
Summary
childTypeAllowed() should be const
Roland Steiner
Reported
2011-04-13 11:32:18 PDT
childTypeAllowed() is a pure info method without side effects and as such should be const.
Attachments
Patch
(11.69 KB, patch)
2011-04-13 11:38 PDT
,
Roland Steiner
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Roland Steiner
Comment 1
2011-04-13 11:35:11 PDT
Incidentally, I wonder why this method, as well as nodeName() and nodeType() are private within all subclasses of Node...
Roland Steiner
Comment 2
2011-04-13 11:38:09 PDT
Created
attachment 89415
[details]
Patch
Dimitri Glazkov (Google)
Comment 3
2011-04-13 12:48:35 PDT
(In reply to
comment #1
)
> Incidentally, I wonder why this method, as well as nodeName() and nodeType() are private within all subclasses of Node...
making a virtual impl private is a great trick for preventing the users of the function call them directly. It's also a great visual indication, saying "DON'T USE THIS METHOD DIRECTLY."
WebKit Commit Bot
Comment 4
2011-04-13 22:44:51 PDT
Comment on
attachment 89415
[details]
Patch Clearing flags on attachment: 89415 Committed
r83816
: <
http://trac.webkit.org/changeset/83816
>
WebKit Commit Bot
Comment 5
2011-04-13 22:44:56 PDT
All reviewed patches have been landed. Closing bug.
WebKit Commit Bot
Comment 6
2011-04-14 00:09:19 PDT
The commit-queue encountered the following flaky tests while processing
attachment 89415
[details]
: http/tests/misc/favicon-loads-with-icon-loading-override.html
bug 58412
(author:
alice.liu@apple.com
) The commit-queue is continuing to process your patch.
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