Bug 1118547 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/canvas; r=baku

This commit is contained in:
Ehsan Akhgari 2015-01-06 19:53:47 -05:00
parent f2cdebfc35
commit 37f6a68ce3
4 changed files with 6 additions and 6 deletions

View File

@ -162,7 +162,7 @@ public:
NS_IMETHODIMP Observe(nsISupports* aSubject,
const char* aTopic,
const char16_t* aSomeData)
const char16_t* aSomeData) MOZ_OVERRIDE
{
if (!mImageCache || strcmp(aTopic, "memory-pressure")) {
return NS_OK;

View File

@ -164,7 +164,7 @@ public:
NS_DECL_ISUPPORTS
NS_IMETHOD CollectReports(nsIHandleReportCallback* aHandleReport,
nsISupports* aData, bool aAnonymize)
nsISupports* aData, bool aAnonymize) MOZ_OVERRIDE
{
return MOZ_COLLECT_REPORT(
"canvas-2d-pixels", KIND_OTHER, UNITS_BYTES,

View File

@ -584,15 +584,15 @@ public:
friend class CanvasRenderingContext2DUserData;
virtual void GetImageBuffer(uint8_t** aImageBuffer, int32_t* aFormat);
virtual void GetImageBuffer(uint8_t** aImageBuffer, int32_t* aFormat) MOZ_OVERRIDE;
// Given a point, return hit region ID if it exists
nsString GetHitRegion(const mozilla::gfx::Point& aPoint);
nsString GetHitRegion(const mozilla::gfx::Point& aPoint) MOZ_OVERRIDE;
// return true and fills in the bound rect if element has a hit region.
bool GetHitRegionRect(Element* aElement, nsRect& aRect);
bool GetHitRegionRect(Element* aElement, nsRect& aRect) MOZ_OVERRIDE;
protected:
nsresult GetImageDataArray(JSContext* aCx, int32_t aX, int32_t aY,

View File

@ -192,7 +192,7 @@ public:
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_AMBIGUOUS(WebGLContext,
nsIDOMWebGLRenderingContext)
virtual JSObject* WrapObject(JSContext* cx) = 0;
virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE = 0;
NS_DECL_NSIDOMWEBGLRENDERINGCONTEXT