Bug 1276824 (part 1) - Rename gfxContext::ForDrawTarget{,WithTransform}(). r=milan.

The new names Create{,PreservingTransform}OrNull() better communicate that
these functions (a) do object creation, and (b) are fallible.
This commit is contained in:
Nicholas Nethercote
2016-06-07 09:39:56 +10:00
parent 3120189209
commit a41e57a9b1
41 changed files with 68 additions and 73 deletions

View File

@@ -725,7 +725,7 @@ nsBaseDragService::DrawDragForImage(nsIImageLoadingContent* aImageLoader,
if (!dt || !dt->IsValid())
return NS_ERROR_FAILURE;
RefPtr<gfxContext> ctx = gfxContext::ForDrawTarget(dt);
RefPtr<gfxContext> ctx = gfxContext::CreateOrNull(dt);
if (!ctx)
return NS_ERROR_FAILURE;