diff --git a/gfx/2d/2D.h b/gfx/2d/2D.h index b0b9f0e423d3..18bbaccff469 100644 --- a/gfx/2d/2D.h +++ b/gfx/2d/2D.h @@ -985,6 +985,9 @@ public: void *GetUserData(UserDataKey *key) { return mUserData.Get(key); } + void *RemoveUserData(UserDataKey *key) { + return mUserData.Remove(key); + } /** Within this rectangle all pixels will be opaque by the time the result of * this DrawTarget is first used for drawing. Either by the underlying surface