Closed
Bug 697475
Opened 12 years ago
Closed 12 years ago
deCOMtaminate nsSVGPatternFrame::GetPatternFirstChild
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla10
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
(Whiteboard: [inbound])
Attachments
(1 file)
3.43 KB,
patch
|
longsonr
:
review+
|
Details | Diff | Splinter Review |
This MXR search... http://mxr.mozilla.org/mozilla-central/search?string=PatternFirstChild ...shows that GetPatternFirstChild() is only mentioned inside of nsSVGPatternFrame.[h,cpp] This currently has NS_IMETHOD / NS_IMETHODIMP annotations, but these aren't necessary, because the method isn't declared in an IDL file. This method can just return nsresult. BTW, hg/cvs archeology shows that the line of code with this method's declaration hasn't changed since the original revision of the file, from bug 336653 ("Remove nsISVGPattern"). So, presumably this is just left over from when we had an XPCOM nsISVGPattern interface. http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/layout/svg/base/src/nsSVGPatternFrame.h#135
Assignee | ||
Comment 1•12 years ago
|
||
Actually, this method can just directly return a nsIFrame*.
Assignee: nobody → dholbert
OS: Linux → All
Hardware: x86 → All
Assignee | ||
Updated•12 years ago
|
Summary: nsSVGPatternFrame::GetPatternFirstChild has unnecessary NS_IMETHOD → de-COM nsSVGPatternFrame::GetPatternFirstChild
Assignee | ||
Updated•12 years ago
|
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #569730 -
Flags: review?(longsonr)
Updated•12 years ago
|
Attachment #569730 -
Flags: review?(longsonr) → review+
Assignee | ||
Comment 3•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b317557f9b78
Whiteboard: [inbound]
Target Milestone: --- → mozilla10
Comment 4•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b317557f9b78
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•