mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 1231864 (part 1) - Remove useless GetCairo() call in gfxWindowsNativeDrawing::BeginNativeDrawing(). r=mattwoodrow.
GetCairo() never returns null so testing its result like this is pointless.
This commit is contained in:
parent
e09094f3cd
commit
7df55cf9f2
@ -43,13 +43,9 @@ HDC
|
||||
gfxWindowsNativeDrawing::BeginNativeDrawing()
|
||||
{
|
||||
if (mRenderState == RENDER_STATE_INIT) {
|
||||
RefPtr<gfxASurface> surf;
|
||||
|
||||
if (mContext->GetCairo()) {
|
||||
surf = mContext->CurrentSurface(&mDeviceOffset.x, &mDeviceOffset.y);
|
||||
}
|
||||
|
||||
if (surf && surf->CairoStatus())
|
||||
RefPtr<gfxASurface> surf =
|
||||
mContext->CurrentSurface(&mDeviceOffset.x, &mDeviceOffset.y);
|
||||
if (surf && surf->CairoStatus() != 0)
|
||||
return nullptr;
|
||||
|
||||
gfxMatrix m = mContext->CurrentMatrix();
|
||||
|
Loading…
Reference in New Issue
Block a user