Bug 18024 - [PATCH] Misnamed method preventing the method overriding
Summary: [PATCH] Misnamed method preventing the method overriding
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-23 10:39 PDT by Vincent Ricard
Modified: 2010-06-11 17:30 PDT (History)
0 users

See Also:


Attachments
rename the declared method in RenderCounter (964 bytes, patch)
2008-03-23 10:40 PDT, Vincent Ricard
no flags Details | Formatted Diff | Diff
rename the declared method in RenderCounter + ChangeLog (1.54 KB, patch)
2008-03-23 11:00 PDT, Vincent Ricard
aroben: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Ricard 2008-03-23 10:39:37 PDT
RenderCounter inherits from RenderObject; while RenderObject declares a 'isCounter' method, RenderCounter declares a 'isRenderCounter' method. One of these methods should be renamed to have the correct behavior (method overriding to declare a RenderObject as a RenderCounter).
Comment 1 Vincent Ricard 2008-03-23 10:40:31 PDT
Created attachment 19982 [details]
rename the declared method in RenderCounter
Comment 2 Vincent Ricard 2008-03-23 10:43:12 PDT
Comment on attachment 19982 [details]
rename the declared method in RenderCounter

sorry... wrong review flag
Comment 3 mitz 2008-03-23 10:50:08 PDT
Comment on attachment 19982 [details]
rename the declared method in RenderCounter

Please add a layout test and a change log.
Comment 4 Vincent Ricard 2008-03-23 11:00:58 PDT
Created attachment 19983 [details]
rename the declared method in RenderCounter + ChangeLog

I dont know how to create a layout test, since this method is only called by CounterNode (which is only used by RenderCounter...)
Comment 5 Mark Rowe (bdash) 2008-03-23 18:20:47 PDT
One idea for creating a regression test that Mitz mentioned to me on IRC is to introduce an assertion at the single point where isCounter is called such that it will fail when this change makes a difference (eg, when the renderer is a RenderCounter instance.  From there it should be possible to determine how to create a regression test.
Comment 6 Adam Roben (:aroben) 2008-04-02 08:27:58 PDT
Comment on attachment 19983 [details]
rename the declared method in RenderCounter + ChangeLog

The patch looks fine, but please create a regression test as requested by Mitz and Mark. You can find some information on our regression tests here: <http://webkit.org/quality/testing.html>. The tests all reside in the LayoutTests directory, and any new test placed in that directory will be automatically found and run by the run-webkit-tests script.
Comment 7 Alexey Proskuryakov 2010-06-11 17:30:33 PDT
This was fixed in <http://trac.webkit.org/changeset/35667>.