WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
25345
Make EventListener::virtualisAttribute pure virtual
https://bugs.webkit.org/show_bug.cgi?id=25345
Summary
Make EventListener::virtualisAttribute pure virtual
Dimitri Glazkov (Google)
Reported
2009-04-23 09:53:00 PDT
This has bitten us several times during the merge now, where renaming this method did not trigger any compile failures -- but had pretty severe consequences.
Attachments
Change EventListener::virtualisAttribute to be pure virtual, v1.
(3.63 KB, patch)
2009-04-23 09:54 PDT
,
Dimitri Glazkov (Google)
darin
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dimitri Glazkov (Google)
Comment 1
2009-04-23 09:54:40 PDT
Created
attachment 29712
[details]
Change EventListener::virtualisAttribute to be pure virtual, v1. WebCore/ChangeLog | 17 +++++++++++++++++ WebCore/bindings/objc/ObjCEventListener.h | 1 + WebCore/dom/EventListener.h | 2 +- WebCore/loader/ImageDocument.cpp | 1 + WebCore/svg/animation/SVGSMILElement.cpp | 2 ++ WebCore/xml/XPathResult.cpp | 1 + 6 files changed, 23 insertions(+), 1 deletions(-)
Darin Adler
Comment 2
2009-04-23 10:03:38 PDT
Comment on
attachment 29712
[details]
Change EventListener::virtualisAttribute to be pure virtual, v1. The overrides should be private, like the function in the base class. Also, it's a programming mistake to call isAttribute on a subclass object, so isAttribute should either be overridden to return false in those subclasses, or be made private by putting "using EventListener::isAttribute" in the private section of those classes. Since this patch doesn't fix a bug, I'm going to say review- until you make the overrides private.
Sam Weinig
Comment 3
2009-04-23 10:53:22 PDT
I don't see the point of this at all. This adds complexity while not fixing any issue.
Dimitri Glazkov (Google)
Comment 4
2009-04-23 15:40:25 PDT
Dave Levin suggested a simpler approach using COMPILE_ASSERT, which sounds good, too. I think I'll close this and go with that, instead.
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