Closed Bug 1370727 Opened 3 years ago Closed 3 years ago

nsICanvasRenderingContextInternal::SetIsOpaque should return void

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: bytesized, Assigned: bytesized)

Details

Attachments

(1 file)

nsICanvasRenderingContextInternal::SetIsOpaque returns nsresult, but no implementations return errors. It should return void.
Priority: -- → P3
Assignee: nobody → ksteuber
Attachment #8876274 - Flags: review?(bzbarsky)
Comment on attachment 8876274 [details]
Bug 1370727 - Return void from nsICanvasRenderingContextInternal::SetIsOpaque

https://reviewboard.mozilla.org/r/147712/#review152012

::: dom/canvas/WebGLContext.h:385
(Diff revision 1)
>                                nsIInputStream** out_stream) override;
>  
>      virtual already_AddRefed<mozilla::gfx::SourceSurface>
>      GetSurfaceSnapshot(gfxAlphaType* out_alphaType) override;
>  
> -    NS_IMETHOD SetIsOpaque(bool) override { return NS_OK; };
> +    virtual void SetIsOpaque(bool) override { return; };

Just leave the body empty.
Attachment #8876274 - Flags: review?(bzbarsky) → review+
Pushed by ksteuber@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5b713fb1cd98
Return void from nsICanvasRenderingContextInternal::SetIsOpaque r=bz
https://hg.mozilla.org/mozilla-central/rev/5b713fb1cd98
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.