Skip to content

Commit

Permalink
Bug 1864537 - Drop an unused deviceOffset parameter. r=jfkthame
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmuizel committed Nov 14, 2023
1 parent 42530b5 commit 8263a24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions gfx/thebes/gfxContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,14 @@ PatternFromState::operator Pattern&() {
}

/* static */
UniquePtr<gfxContext> gfxContext::CreateOrNull(DrawTarget* aTarget,
const Point& aDeviceOffset) {
UniquePtr<gfxContext> gfxContext::CreateOrNull(DrawTarget* aTarget) {
if (!aTarget || !aTarget->IsValid()) {
gfxCriticalNote << "Invalid target in gfxContext::CreateOrNull "
<< hexa(aTarget);
return nullptr;
}

return MakeUnique<gfxContext>(aTarget, aDeviceOffset);
return MakeUnique<gfxContext>(aTarget);
}

gfxContext::~gfxContext() {
Expand Down
3 changes: 1 addition & 2 deletions gfx/thebes/gfxContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ class gfxContext final {
* If aTarget is null or invalid, nullptr is returned. The caller
* is responsible for handling this scenario as appropriate.
*/
static mozilla::UniquePtr<gfxContext> CreateOrNull(
DrawTarget* aTarget, const Point& aDeviceOffset = Point());
static mozilla::UniquePtr<gfxContext> CreateOrNull(DrawTarget* aTarget);

DrawTarget* GetDrawTarget() const { return mDT; }

Expand Down

0 comments on commit 8263a24

Please sign in to comment.